Code

automatically add helperpath for PathParams
authorcilix42 <cilix42@users.sourceforge.net>
Tue, 29 Jul 2008 14:55:41 +0000 (14:55 +0000)
committercilix42 <cilix42@users.sourceforge.net>
Tue, 29 Jul 2008 14:55:41 +0000 (14:55 +0000)
src/live_effects/parameter/path.cpp
src/live_effects/parameter/path.h

index c954e09df85327eb1cf61a5d7e3ebce6cb95035f..2d659c2c7beee0ca4f84be3cb10b18af04286628 100644 (file)
@@ -217,6 +217,12 @@ PathParam::param_setup_nodepath(Inkscape::NodePath::Path *np)
     np->helperpath_width = 1.0;
 }
 
+void
+PathParam::addCanvasIndicators(SPLPEItem *lpeitem, std::vector<Geom::PathVector> &hp_vec)
+{
+    hp_vec.push_back(_pathvector);
+}
+
 /*
  * Only applies transform when not referring to other path!
  */
index 267ff48eae2d2ddecc787134ea5f6b3fea788986..76f3fa774ff61c633a23f6d598e65fca15c9ae97 100644 (file)
@@ -47,6 +47,7 @@ public:
 
     virtual void param_editOncanvas(SPItem * item, SPDesktop * dt);
     virtual void param_setup_nodepath(Inkscape::NodePath::Path *np);
+    virtual void addCanvasIndicators(SPLPEItem *lpeitem, std::vector<Geom::PathVector> &hp_vec);
 
     virtual void param_transform_multiply(Geom::Matrix const& /*postmul*/, bool /*set*/);