summaryrefslogtreecommitdiffstats
path: root/src/live_effects/effect.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-04-02 11:23:50 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-04-02 11:23:50 +0000
commit969f4c83a1d257c43ef0a067f8edf2d93e2ff325 (patch)
tree0c6c8e11c9a6ba57bd7f06db7ca66b50af979f1d /src/live_effects/effect.cpp
parentMake BoolParam usable in boolean expressions directly (diff)
downloadinkscape-969f4c83a1d257c43ef0a067f8edf2d93e2ff325.tar.gz
inkscape-969f4c83a1d257c43ef0a067f8edf2d93e2ff325.zip
New LPE: Perspective paths
(bzr r5310)
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 48a3ab9ff..73f6e3dec 100644
--- a/src/live_effects/effect.cpp
+++ b/src/live_effects/effect.cpp
@@ -43,6 +43,7 @@
#include "live_effects/lpe-gears.h"
#include "live_effects/lpe-curvestitch.h"
#include "live_effects/lpe-circle_with_radius.h"
+#include "live_effects/lpe-perspective_path.h"
#include "nodepath.h"
@@ -64,6 +65,7 @@ const Util::EnumData<EffectType> LPETypeData[INVALID_LPE] = {
{GEARS, N_("Gears"), "gears"},
{CURVE_STITCH, N_("Stitch Sub-Paths"), "curvestitching"},
{CIRCLE_WITH_RADIUS, N_("Circle (center+radius)"), "circle_with_radius"},
+ {PERSPECTIVE_PATH, N_("Perspective path"), "perspective_path"},
};
const Util::EnumDataConverter<EffectType> LPETypeConverter(LPETypeData, INVALID_LPE);
@@ -105,6 +107,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj)
case CIRCLE_WITH_RADIUS:
neweffect = (Effect*) new LPECircleWithRadius(lpeobj);
break;
+ case PERSPECTIVE_PATH:
+ neweffect = (Effect*) new LPEPerspectivePath(lpeobj);
+ break;
default:
g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr);
neweffect = NULL;