diff options
| author | Bastien Bouclet <bastien.bouclet@gmail.com> | 2008-05-17 10:48:43 +0000 |
|---|---|---|
| committer | bgk <bgk@users.sourceforge.net> | 2008-05-17 10:48:43 +0000 |
| commit | 1711fdeb535dd756a0a1b57b4f792eec959c70be (patch) | |
| tree | c71d91deafc84c756c49f6bb21516705dc61e2bd /src/live_effects/effect.cpp | |
| parent | Fix LPE for groups bounding box calculation by using the SPItem->getBounds me... (diff) | |
| download | inkscape-1711fdeb535dd756a0a1b57b4f792eec959c70be.tar.gz inkscape-1711fdeb535dd756a0a1b57b4f792eec959c70be.zip | |
New LPE : Envelope deformation
(bzr r5684)
Diffstat (limited to 'src/live_effects/effect.cpp')
| -rw-r--r-- | src/live_effects/effect.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index 2d2a8cb22..4f0e97a3b 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -44,6 +44,7 @@ #include "live_effects/lpe-perspective_path.h" #include "live_effects/lpe-spiro.h" #include "live_effects/lpe-constructgrid.h" +#include "live_effects/lpe-envelope.h" #include "nodepath.h" @@ -66,7 +67,8 @@ const Util::EnumData<EffectType> LPETypeData[INVALID_LPE] = { {CIRCLE_WITH_RADIUS, N_("Circle (center+radius)"), "circle_with_radius"}, {PERSPECTIVE_PATH, N_("Perspective path"), "perspective_path"}, {SPIRO, N_("Spiro spline"), "spiro"}, - {CONSTRUCT_GRID, N_("Construct grid"), "construct_grid"}, + {CONSTRUCT_GRID, N_("Construct grid"), "construct_grid"}, + {ENVELOPE, N_("Envelope Deformation"), "envelope"}, }; const Util::EnumDataConverter<EffectType> LPETypeConverter(LPETypeData, INVALID_LPE); @@ -113,6 +115,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj) case CONSTRUCT_GRID: neweffect = static_cast<Effect*> ( new LPEConstructGrid(lpeobj) ); break; + case ENVELOPE: + neweffect = static_cast<Effect*> ( new LPEEnvelope(lpeobj) ); + break; default: g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr); neweffect = NULL; |
