summaryrefslogtreecommitdiffstats
path: root/src/live_effects/effect.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-06-10 15:08:54 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-06-10 15:08:54 +0000
commite62803a342bd2e5c91964c78405e2c89e4d51535 (patch)
treefe96325c13e8137ec37e980669d451d680ba9c20 /src/live_effects/effect.cpp
parentGet rid of get_bpath() in lpe-tangent_to_curve.cpp (diff)
downloadinkscape-e62803a342bd2e5c91964c78405e2c89e4d51535.tar.gz
inkscape-e62803a342bd2e5c91964c78405e2c89e4d51535.zip
New LPE: Mirror reflection
(bzr r5875)
Diffstat (limited to 'src/live_effects/effect.cpp')
-rw-r--r--src/live_effects/effect.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp
index c46a9dd23..0aaedab0a 100644
--- a/src/live_effects/effect.cpp
+++ b/src/live_effects/effect.cpp
@@ -50,6 +50,7 @@
#include "live_effects/lpe-constructgrid.h"
#include "live_effects/lpe-perp_bisector.h"
#include "live_effects/lpe-tangent_to_curve.h"
+#include "live_effects/lpe-mirror_reflect.h"
// end of includes
#include "nodepath.h"
@@ -77,7 +78,8 @@ const Util::EnumData<EffectType> LPETypeData[INVALID_LPE] = {
{ENVELOPE, N_("Envelope Deformation"), "envelope"},
{CONSTRUCT_GRID, N_("Construct grid"), "construct_grid"},
{PERP_BISECTOR, N_("Perpendicular bisector"), "perp_bisector"},
- {TANGENT_TO_CURVE, N_("Tangent to curve"), "tangent_to_curve"}
+ {TANGENT_TO_CURVE, N_("Tangent to curve"), "tangent_to_curve"},
+ {MIRROR_REFLECT, N_("Mirror reflection"), "mirror_reflect"},
};
const Util::EnumDataConverter<EffectType> LPETypeConverter(LPETypeData, INVALID_LPE);
@@ -136,6 +138,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj)
case TANGENT_TO_CURVE:
neweffect = static_cast<Effect*> ( new LPETangentToCurve(lpeobj) );
break;
+ case MIRROR_REFLECT:
+ neweffect = static_cast<Effect*> ( new LPEMirrorReflect(lpeobj) );
+ break;
default:
g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr);
neweffect = NULL;