summaryrefslogtreecommitdiffstats
path: root/src/filters
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2014-01-13 12:55:24 +0000
committertavmjong-free <tavmjong@free.fr>2014-01-13 12:55:24 +0000
commit71abe5b8c4ed9e53a6a7299e4abc0deeb2c586a7 (patch)
tree8d10d310c278446985ee7340fbbb1d8b621cd38f /src/filters
parentPrevent segfault if 'tableValues' is empty. (diff)
downloadinkscape-71abe5b8c4ed9e53a6a7299e4abc0deeb2c586a7.tar.gz
inkscape-71abe5b8c4ed9e53a6a7299e4abc0deeb2c586a7.zip
Add GUI for feComponentTransfer filter primitive.
(bzr r12923)
Diffstat (limited to 'src/filters')
-rw-r--r--src/filters/componenttransfer-funcnode.cpp25
1 files changed, 11 insertions, 14 deletions
diff --git a/src/filters/componenttransfer-funcnode.cpp b/src/filters/componenttransfer-funcnode.cpp
index 7c7375802..d8c5b0d49 100644
--- a/src/filters/componenttransfer-funcnode.cpp
+++ b/src/filters/componenttransfer-funcnode.cpp
@@ -205,14 +205,18 @@ void SPFeFuncNode::set(unsigned int key, gchar const *value) {
}
/**
- * * Receives update notifications.
- * */
+ * Receives update notifications.
+ */
void SPFeFuncNode::update(SPCtx *ctx, guint flags) {
+ std::cout << "SPFeFuncNode::update" << std::endl;
if (flags & SP_OBJECT_MODIFIED_FLAG) {
- /* do something to trigger redisplay, updates? */
- //TODO
- //this->readAttr( "azimuth" );
- //this->readAttr( "elevation" );
+ this->readAttr( "type" );
+ this->readAttr( "tableValues" );
+ this->readAttr( "slope" );
+ this->readAttr( "intercept" );
+ this->readAttr( "amplitude" );
+ this->readAttr( "exponent" );
+ this->readAttr( "offset" );
}
SPObject::update(ctx, flags);
@@ -222,18 +226,11 @@ void SPFeFuncNode::update(SPCtx *ctx, guint flags) {
* Writes its settings to an incoming repr object, if any.
*/
Inkscape::XML::Node* SPFeFuncNode::write(Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags) {
+ std::cout << "SPFeFuncNode::write" << std::endl;
if (!repr) {
repr = this->getRepr()->duplicate(doc);
}
- /*
- TODO: I'm not sure what to do here...
-
- if (fefuncnode->azimuth_set)
- sp_repr_set_css_double(repr, "azimuth", fefuncnode->azimuth);
- if (fefuncnode->elevation_set)
- sp_repr_set_css_double(repr, "elevation", fefuncnode->elevation);*/
-
SPObject::write(doc, repr, flags);
return repr;