From 7e3e76430556c1fb300c87a5dbb04a367be56a9e Mon Sep 17 00:00:00 2001 From: bulia byak Date: Sat, 12 Apr 2008 08:41:15 +0000 Subject: Spiro splines LPE using code by Raph Levien (bzr r5409) --- src/live_effects/effect.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/live_effects/effect.cpp') diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index fdeda8a62..a1507dbc7 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -43,6 +43,7 @@ #include "live_effects/lpe-curvestitch.h" #include "live_effects/lpe-circle_with_radius.h" #include "live_effects/lpe-perspective_path.h" +#include "live_effects/lpe-spiro.h" #include "nodepath.h" @@ -65,6 +66,7 @@ const Util::EnumData LPETypeData[INVALID_LPE] = { {CURVE_STITCH, N_("Stitch Sub-Paths"), "curvestitching"}, {CIRCLE_WITH_RADIUS, N_("Circle (center+radius)"), "circle_with_radius"}, {PERSPECTIVE_PATH, N_("Perspective path"), "perspective_path"}, + {SPIRO, N_("Spiro spline"), "spiro"}, }; const Util::EnumDataConverter LPETypeConverter(LPETypeData, INVALID_LPE); @@ -108,6 +110,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj) case PERSPECTIVE_PATH: neweffect = static_cast ( new LPEPerspectivePath(lpeobj) ); break; + case SPIRO: + neweffect = static_cast ( new LPESpiro(lpeobj) ); + break; default: g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr); neweffect = NULL; -- cgit v1.2.3