summaryrefslogtreecommitdiffstats
path: root/src/live_effects/effect.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-03-30 16:42:27 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-03-30 16:42:27 +0000
commit0289a62f1cc8c7da4a8bc890a34fb58ce8bcfcec (patch)
treeb6a7888ec7a5a21f825414496baafe0bdd7d215c /src/live_effects/effect.cpp
parentFactor out join endpoints validation & initialization code (diff)
downloadinkscape-0289a62f1cc8c7da4a8bc890a34fb58ce8bcfcec.tar.gz
inkscape-0289a62f1cc8c7da4a8bc890a34fb58ce8bcfcec.zip
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)
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 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<EffectType> 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<EffectType> 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;