From: johanengelen Date: Fri, 18 Jan 2008 22:38:27 +0000 (+0000) Subject: add default functions for transforming lpe-pathalongpath.cpp and lpe-skeletalstrokes.cpp X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4bb662d1e7a70cff93dd9a586f046d032a669063;p=inkscape.git add default functions for transforming lpe-pathalongpath.cpp and lpe-skeletalstrokes.cpp --- diff --git a/src/live_effects/lpe-pathalongpath.cpp b/src/live_effects/lpe-pathalongpath.cpp index b3d0fdd4c..d41a0d6f6 100644 --- a/src/live_effects/lpe-pathalongpath.cpp +++ b/src/live_effects/lpe-pathalongpath.cpp @@ -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 */ diff --git a/src/live_effects/lpe-pathalongpath.h b/src/live_effects/lpe-pathalongpath.h index b556efd88..139955d6b 100644 --- a/src/live_effects/lpe-pathalongpath.h +++ b/src/live_effects/lpe-pathalongpath.h @@ -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; diff --git a/src/live_effects/lpe-skeletalstrokes.cpp b/src/live_effects/lpe-skeletalstrokes.cpp index a2fe2be8a..6ba9ac65c 100644 --- a/src/live_effects/lpe-skeletalstrokes.cpp +++ b/src/live_effects/lpe-skeletalstrokes.cpp @@ -153,6 +153,13 @@ LPESkeletalStrokes::doEffect_pwd2 (Geom::Piecewise > & 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 */ diff --git a/src/live_effects/lpe-skeletalstrokes.h b/src/live_effects/lpe-skeletalstrokes.h index b7739471c..f57e8f2ca 100644 --- a/src/live_effects/lpe-skeletalstrokes.h +++ b/src/live_effects/lpe-skeletalstrokes.h @@ -32,6 +32,8 @@ public: virtual Geom::Piecewise > doEffect_pwd2 (Geom::Piecewise > & pwd2_in); + virtual void transform_multiply(Geom::Matrix const& postmul, bool set); + private: PathParam pattern; EnumParam copytype;