diff options
| author | bulia byak <buliabyak@gmail.com> | 2008-04-12 08:41:15 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2008-04-12 08:41:15 +0000 |
| commit | 7e3e76430556c1fb300c87a5dbb04a367be56a9e (patch) | |
| tree | b8a74dff2c43090ce9bb8b597e90cd225757b205 /src/live_effects/effect.cpp | |
| parent | with ctrl, snap handles also to the direction of the opposite handle or line ... (diff) | |
| download | inkscape-7e3e76430556c1fb300c87a5dbb04a367be56a9e.tar.gz inkscape-7e3e76430556c1fb300c87a5dbb04a367be56a9e.zip | |
Spiro splines LPE using code by Raph Levien
(bzr r5409)
Diffstat (limited to 'src/live_effects/effect.cpp')
| -rw-r--r-- | src/live_effects/effect.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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<EffectType> 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<EffectType> LPETypeConverter(LPETypeData, INVALID_LPE); @@ -108,6 +110,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj) case PERSPECTIVE_PATH: neweffect = static_cast<Effect*> ( new LPEPerspectivePath(lpeobj) ); break; + case SPIRO: + neweffect = static_cast<Effect*> ( new LPESpiro(lpeobj) ); + break; default: g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr); neweffect = NULL; |
