sp-filter.cpp revision bbbcfcca035affdf7a344b211a9f53039077c7f7
6033N/A#ifdef HAVE_CONFIG_H
6033N/A#include "attributes.h"
6033N/A#include "document.h"
6033N/A#include "sp-filter.h"
6033N/A#include "sp-filter-reference.h"
6033N/A#include "sp-filter-primitive.h"
4070N/A#define SP_MACROS_SILENT
4070N/A#include "display/nr-filter.h"
4070N/A#include "sp-factory.h"
4070N/A * Reads the Inkscape::XML::Node, and initializes SPFilter variables. For this to get called,
4070N/A * sp-object-repr.cpp's repr_name_entries array.
4070N/A for (map<gchar *, int, ltstr>::const_iterator i = this->_image_name->begin() ; i != this->_image_name->end() ; i++) {
4070N/A delete this->_image_name;
4070N/A case SP_ATTR_FILTERUNITS:
case SP_ATTR_PRIMITIVEUNITS:
if (value) {
case SP_ATTR_X:
case SP_ATTR_Y:
case SP_ATTR_WIDTH:
case SP_ATTR_HEIGHT:
case SP_ATTR_FILTERRES:
case SP_ATTR_XLINK_HREF:
if (value) {
Inkscape::XML::Node* SPFilter::write(Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags) {
// Original from sp-item-group.cpp
if (!repr) {
if (crepr) {
switch (this->filterUnits) {
switch (this->primitiveUnits) {
if (this->x._set) {
if (this->y._set) {
return repr;
if (old_ref) {
while (primitive_obj) {
// ((SPFilterPrimitiveClass *) G_OBJECT_GET_CLASS(primitive))->build_renderer(primitive, nr_filter);
int count = 0;
while (primitive_obj) {
return count;
return value;
switch (image) {
return i->first;
int largest = 0;
while (primitive_obj) {
int index;
if (result)