From 0289a62f1cc8c7da4a8bc890a34fb58ce8bcfcec Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Sun, 30 Mar 2008 16:42:27 +0000 Subject: New LPE: Circle (with center at the first point and passing through the last point of the original path). This is just a proof-of-concept implementation for my tech drawing proposal for GSoC '08. (bzr r5237) --- src/live_effects/effect.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/live_effects/effect.cpp') diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index dc43af0d5..48a3ab9ff 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -42,6 +42,7 @@ #include "live_effects/lpe-test-doEffect-stack.h" #include "live_effects/lpe-gears.h" #include "live_effects/lpe-curvestitch.h" +#include "live_effects/lpe-circle_with_radius.h" #include "nodepath.h" @@ -61,7 +62,8 @@ const Util::EnumData LPETypeData[INVALID_LPE] = { {DOEFFECTSTACK_TEST, N_("doEffect stack test"), "doeffectstacktest"}, #endif {GEARS, N_("Gears"), "gears"}, - {CURVE_STITCH, N_("Stitch Sub-Paths"), "curvestitching"}, + {CURVE_STITCH, N_("Stitch Sub-Paths"), "curvestitching"}, + {CIRCLE_WITH_RADIUS, N_("Circle (center+radius)"), "circle_with_radius"}, }; const Util::EnumDataConverter LPETypeConverter(LPETypeData, INVALID_LPE); @@ -100,6 +102,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj) case CURVE_STITCH: neweffect = (Effect*) new LPECurveStitch(lpeobj); break; + case CIRCLE_WITH_RADIUS: + neweffect = (Effect*) new LPECircleWithRadius(lpeobj); + break; default: g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr); neweffect = NULL; -- cgit v1.2.3