Code

add default functions for transforming lpe-pathalongpath.cpp and lpe-skeletalstrokes.cpp
authorjohanengelen <johanengelen@users.sourceforge.net>
Fri, 18 Jan 2008 22:38:27 +0000 (22:38 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Fri, 18 Jan 2008 22:38:27 +0000 (22:38 +0000)
src/live_effects/lpe-pathalongpath.cpp
src/live_effects/lpe-pathalongpath.h
src/live_effects/lpe-skeletalstrokes.cpp
src/live_effects/lpe-skeletalstrokes.h

index b3d0fdd4cff70f29e0ce05c3d8232ac184acfa6c..d41a0d6f6b82fbe1f570d46d59d5ad6c29d97371 100644 (file)
@@ -206,6 +206,14 @@ LPEPathAlongPath::resetDefaults(SPItem * item)
 */
 }
 
+void
+LPEPathAlongPath::transform_multiply(Geom::Matrix const& postmul, bool set)
+{
+    // TODO: implement correct transformation instead of this default behavior
+    Effect::transform_multiply(postmul, set);
+}
+
+
 } // namespace LivePathEffect
 } /* namespace Inkscape */
 
index b556efd88fd30f612d33ca351b40f0de4aa144b6..139955d6bbc85553621911c8f707ef1bac4d4498 100644 (file)
@@ -34,6 +34,8 @@ public:
 
     virtual void resetDefaults(SPItem * item);
 
+    virtual void transform_multiply(Geom::Matrix const& postmul, bool set);
+
 private:
     PathParam  bend_path;
     //PathParam  width_path;
index a2fe2be8ac65bd330341d923c2a7d0da3f850d85..6ba9ac65c9cb69e3b5b65598a224f111ef00dd1e 100644 (file)
@@ -153,6 +153,13 @@ LPESkeletalStrokes::doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > & pw
     return output;
 }
 
+void
+LPESkeletalStrokes::transform_multiply(Geom::Matrix const& postmul, bool set)
+{
+    // TODO: implement correct transformation instead of this default behavior
+    Effect::transform_multiply(postmul, set);
+}
+
 
 } // namespace LivePathEffect
 } /* namespace Inkscape */
index b7739471c08d47dd9314941354956c072b1850a0..f57e8f2ca63e29d48eebf5de3f8aa424d9124e6b 100644 (file)
@@ -32,6 +32,8 @@ public:
 
     virtual Geom::Piecewise<Geom::D2<Geom::SBasis> > doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > & pwd2_in);
 
+    virtual void transform_multiply(Geom::Matrix const& postmul, bool set);
+
 private:
     PathParam  pattern;
     EnumParam<SkelCopyType> copytype;