summaryrefslogtreecommitdiffstats
path: root/src/live_effects/effect.h
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-05-19 15:52:07 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-05-19 15:52:07 +0000
commit09089a141e8d8f5073bc4f767c02efc0fec711b1 (patch)
tree84b3185967f39d8bc3c010e0ecf05f6c42ee4ca0 /src/live_effects/effect.h
parentfixed broken intltool-update command :) (diff)
downloadinkscape-09089a141e8d8f5073bc4f767c02efc0fec711b1.tar.gz
inkscape-09089a141e8d8f5073bc4f767c02efc0fec711b1.zip
Provide knotholder for LPEPerpBisector; TODO: this replaces the usual nodepath in node context but in the long run it is desired to use both along with each other
(bzr r5701)
Diffstat (limited to 'src/live_effects/effect.h')
-rw-r--r--src/live_effects/effect.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/live_effects/effect.h b/src/live_effects/effect.h
index b5c1d6aeb..693c6ad46 100644
--- a/src/live_effects/effect.h
+++ b/src/live_effects/effect.h
@@ -17,6 +17,7 @@
#include "ui/widget/registry.h"
#include "util/enums.h"
#include "sp-lpe-item.h"
+#include "knotholder.h"
#define LPE_CONVERSION_TOLERANCE 0.01 // FIXME: find good solution for this.
@@ -97,6 +98,9 @@ public:
virtual void transform_multiply(Geom::Matrix const& postmul, bool set);
+ bool providesKnotholder() { return knotholder_func_vector.size() > 0; }
+ void addHandles(SPKnotHolder *knotholder);
+
Glib::ustring getName();
Inkscape::XML::Node * getRepr();
SPDocument * getSPDoc();
@@ -124,9 +128,11 @@ protected:
doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in);
void registerParameter(Parameter * param);
+ void registerKnotHolderHandle(SPKnotHolderSetFunc set_func, SPKnotHolderGetFunc get_func);
Parameter * getNextOncanvasEditableParam();
std::vector<Parameter *> param_vector;
+ std::vector<std::pair<SPKnotHolderSetFunc, SPKnotHolderGetFunc> > knotholder_func_vector;
int oncanvasedit_it;
Inkscape::UI::Widget::Registry wr;