summaryrefslogtreecommitdiffstats
path: root/src/live_effects/effect.h
diff options
context:
space:
mode:
authorLiam P. White <inkscapebronyat-signgmaildotcom>2014-04-06 21:38:30 +0000
committerLiam P. White <inkscapebronyat-signgmaildotcom>2014-04-06 21:38:30 +0000
commit6f10c7f675fae8c20f24f01b7cffb861f3726e9d (patch)
treea78b993f14603288e71637bb22f7a2929c8ba5bf /src/live_effects/effect.h
parentPrevent crash on "three knot" issue (diff)
downloadinkscape-6f10c7f675fae8c20f24f01b7cffb861f3726e9d.tar.gz
inkscape-6f10c7f675fae8c20f24f01b7cffb861f3726e9d.zip
Properly allow effect stacking with knotholders (and add extra LPE functionality)
(bzr r13090.1.48)
Diffstat (limited to 'src/live_effects/effect.h')
-rw-r--r--src/live_effects/effect.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/live_effects/effect.h b/src/live_effects/effect.h
index 85c930def..d2d9f3b63 100644
--- a/src/live_effects/effect.h
+++ b/src/live_effects/effect.h
@@ -53,6 +53,11 @@ public:
EffectType effectType() const;
+ //basically, to get this method called before the derived classes, a bit
+ //of indirection is needed. We first call these methods, then the below.
+ void doOnApply_impl(SPLPEItem const* lpeitem);
+ void doBeforeEffect_impl(SPLPEItem const* lpeitem);
+
virtual void doOnApply (SPLPEItem const* lpeitem);
virtual void doBeforeEffect (SPLPEItem const* lpeitem);
@@ -149,6 +154,9 @@ protected:
// instead of normally 'splitting' the path into continuous pwd2 paths and calling doEffect_pwd2 for each.
bool concatenate_before_pwd2;
+ SPLPEItem * sp_lpe_item; // these get stored in doBeforeEffect_impl, and derived classes may do as they please with them.
+ SPCurve * sp_curve;
+ std::vector<Geom::Path> pathvector_before_effect;
private:
bool provides_own_flash_paths; // if true, the standard flash path is suppressed