summaryrefslogtreecommitdiffstats
path: root/src/live_effects/effect.cpp
diff options
context:
space:
mode:
authorMarkus Schwienbacher <mschwienbacher@gmail.com>2018-03-01 23:05:03 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2018-03-01 23:05:03 +0000
commita655be184a5a646cf2abd9fb41e472d9be261b84 (patch)
treee0d0f01527544c647fccd4d317472eb94bd8fbe7 /src/live_effects/effect.cpp
parentAllow to align multiple objects as group relatively to a single object (diff)
downloadinkscape-a655be184a5a646cf2abd9fb41e472d9be261b84.tar.gz
inkscape-a655be184a5a646cf2abd9fb41e472d9be261b84.zip
Live effect: Ellipse from Points
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 b827cff4b..1255d7421 100644
--- a/src/live_effects/effect.cpp
+++ b/src/live_effects/effect.cpp
@@ -66,6 +66,7 @@
#include "live_effects/lpe-vonkoch.h"
#include "live_effects/lpe-embrodery-stitch.h"
#include "live_effects/lpe-bool.h"
+#include "live_effects/lpe-pts2ellipse.h"
#include "live_effects/lpeobject.h"
@@ -136,9 +137,10 @@ const Util::EnumData<EffectType> LPETypeData[] = {
{MEASURE_SEGMENTS, N_("Measure Segments"), "measure_segments"},
{FILLET_CHAMFER, N_("Fillet/Chamfer"), "fillet_chamfer"},
{BOOL_OP, N_("Boolean operation"), "bool_op"},
- {EMBRODERY_STITCH, N_("Embroidery stitch"), "embrodery_stitch"},
+ {EMBRODERY_STITCH, N_("Embroidery stitch"), "embrodery_stitch"},
{POWERCLIP, N_("Power clip"), "powerclip"},
{POWERMASK, N_("Power mask"), "powermask"},
+ {PTS2ELLIPSE, N_("Ellipse from points"), "pts2ellipse"},
#ifdef LPE_ENABLE_TEST_EFFECTS
{DOEFFECTSTACK_TEST, N_("doEffect stack test"), "doeffectstacktest"},
{ANGLE_BISECTOR, N_("Angle bisector"), "angle_bisector"},
@@ -341,6 +343,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj)
case MEASURE_SEGMENTS:
neweffect = static_cast<Effect*> ( new LPEMeasureSegments(lpeobj) );
break;
+ case PTS2ELLIPSE:
+ neweffect = static_cast<Effect*> ( new LPEPts2Ellipse(lpeobj) );
+ break;
default:
g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr);
neweffect = NULL;