summaryrefslogtreecommitdiffstats
path: root/src/live_effects/effect.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2012-01-12 21:06:16 +0000
committerJohan Engelen <goejendaagh@zonnet.nl>2012-01-12 21:06:16 +0000
commit76f0853b7d6bbe1233daa3141ce1379e2df1e934 (patch)
treecaeee88d187ec0312914f48953729d6f7f0b21d9 /src/live_effects/effect.cpp
parentInitial C++ification of SPCanvas. (diff)
downloadinkscape-76f0853b7d6bbe1233daa3141ce1379e2df1e934.tar.gz
inkscape-76f0853b7d6bbe1233daa3141ce1379e2df1e934.zip
LPE: add new LPE that outputs the original path data. used to make a clone (without LPE) of a path with an LPE applied
(bzr r10874)
Diffstat (limited to 'src/live_effects/effect.cpp')
-rw-r--r--src/live_effects/effect.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp
index 3ce2aeef3..35e87f76c 100644
--- a/src/live_effects/effect.cpp
+++ b/src/live_effects/effect.cpp
@@ -75,6 +75,7 @@
#include "live_effects/lpe-recursiveskeleton.h"
#include "live_effects/lpe-extrude.h"
#include "live_effects/lpe-powerstroke.h"
+#include "live_effects/lpe-clone-original.h"
namespace Inkscape {
@@ -122,6 +123,7 @@ const Util::EnumData<EffectType> LPETypeData[] = {
{RULER, N_("Ruler"), "ruler"},
/* 0.49 ?*/
{POWERSTROKE, N_("[Unstable!] Power stroke"), "powerstroke"},
+ {CLONE_ORIGINAL, N_("[Unstable!] Clone original path"), "clone_original"},
};
const Util::EnumDataConverter<EffectType> LPETypeConverter(LPETypeData, sizeof(LPETypeData)/sizeof(*LPETypeData));
@@ -242,6 +244,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj)
case POWERSTROKE:
neweffect = static_cast<Effect*> ( new LPEPowerStroke(lpeobj) );
break;
+ case CLONE_ORIGINAL:
+ neweffect = static_cast<Effect*> ( new LPECloneOriginal(lpeobj) );
+ break;
default:
g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr);
neweffect = NULL;