/** \file
* SVG <feOffset> implementation.
*
*/
/*
* Authors:
* hugo Rodrigues <haa.rodrigues@gmail.com>
* Niko Kiirala <niko@kiirala.com>
* Abhishek Sharma
*
* Copyright (C) 2006,2007 authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "attributes.h"
#include "helper-fns.h"
#include "display/nr-filter.h"
#include "display/nr-filter-offset.h"
this->dx = 0;
this->dy = 0;
}
SPFeOffset::~SPFeOffset() {
}
/**
* Reads the Inkscape::XML::Node, and initializes SPFeOffset 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( "dx" );
this->readAttr( "dy" );
}
/**
* Drops any allocated memory.
*/
}
/**
* Sets a specific value in the SPFeOffset.
*/
double read_num;
switch(key) {
case SP_ATTR_DX:
}
break;
case SP_ATTR_DY:
}
break;
/*DEAL WITH SETTING ATTRIBUTES HERE*/
default:
break;
}
}
/**
* Receives update notifications.
*/
if (flags & SP_OBJECT_MODIFIED_FLAG) {
this->readAttr( "dx" );
this->readAttr( "dy" );
}
}
/**
* Writes its settings to an incoming repr object, if any.
*/
Inkscape::XML::Node* SPFeOffset::write(Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags) {
/* TODO: Don't just clone, but create a new repr node and write all
* relevant values into it */
if (!repr) {
}
return repr;
}
Inkscape::Filters::FilterOffset *nr_offset = dynamic_cast<Inkscape::Filters::FilterOffset*>(nr_primitive);
}
/*
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 :