mergenode.cpp revision 52d7f112938e9a090b452a6d1d7131e48924de83
/** \file
* feMergeNode implementation. A feMergeNode contains the name of one
* input image for feMerge.
*/
/*
* Authors:
* Kees Cook <kees@outflux.net>
* Niko Kiirala <niko@kiirala.com>
* Abhishek Sharma
*
* Copyright (C) 2004,2007 authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "attributes.h"
#include "filters/mergenode.h"
#include "display/nr-filter-types.h"
#include "sp-factory.h"
namespace {
SPObject* createMergeNode() {
return new SPFeMergeNode();
}
bool mergeNodeRegistered = SPFactory::instance().registerObject("svg:feMergeNode", createMergeNode);
}
}
SPFeMergeNode::~SPFeMergeNode() {
}
/**
* Reads the Inkscape::XML::Node, and initializes SPFeMergeNode variables. For this to get called,
* our name must be associated with a repr via "sp_object_type_register". Best done through
* sp-object-repr.cpp's repr_name_entries array.
*/
this->readAttr( "in" );
}
/**
* Drops any allocated memory.
*/
void SPFeMergeNode::release() {
}
/**
* Sets a specific value in the SPFeMergeNode.
*/
if (key == SP_ATTR_IN) {
}
}
/* See if any parents need this value. */
}
/**
* Receives update notifications.
*/
if (flags & SP_OBJECT_MODIFIED_FLAG) {
}
}
/**
* Writes its settings to an incoming repr object, if any.
*/
Inkscape::XML::Node* SPFeMergeNode::write(Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags) {
// Inkscape-only this, not copied during an "plain SVG" dump:
if (flags & SP_OBJECT_WRITE_EXT) {
if (repr) {
// is this sane?
//repr->mergeFrom(object->getRepr(), "id");
} else {
}
}
return repr;
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :