diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-08-18 00:32:26 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-08-18 00:32:26 +0000 |
| commit | cb3a86cca0122bd58099787b02c82fd04fc5c000 (patch) | |
| tree | 4a169b935bac96505d1b14d1924920e9db0a6711 /src/live_effects/effect.cpp | |
| parent | cast for EnumParam (diff) | |
| download | inkscape-cb3a86cca0122bd58099787b02c82fd04fc5c000.tar.gz inkscape-cb3a86cca0122bd58099787b02c82fd04fc5c000.zip | |
New LPE to draw infinite lines (cut by a limiting bounding box), rays and segments
(bzr r6641)
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 64653863b..3f12345ae 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -64,6 +64,7 @@ #include "live_effects/lpe-interpolate.h" #include "live_effects/lpe-text_label.h" #include "live_effects/lpe-path_length.h" +#include "live_effects/lpe-line_segment.h" // end of includes namespace Inkscape { @@ -87,6 +88,7 @@ const Util::EnumData<EffectType> LPETypeData[] = { {INTERPOLATE, N_("Interpolate Sub-Paths"), "interpolate"}, {KNOT, N_("Knot"), "knot"}, {LATTICE, N_("Lattice Deformation"), "lattice"}, + {LINE_SEGMENT, N_("Line Segment"), "line_segment"}, {MIRROR_SYMMETRY, N_("Mirror symmetry"), "mirror_symmetry"}, {OFFSET, N_("Offset"), "offset"}, {PARALLEL, N_("Parallel"), "parallel"}, @@ -196,6 +198,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj) case PATH_LENGTH: neweffect = static_cast<Effect*> ( new LPEPathLength(lpeobj) ); break; + case LINE_SEGMENT: + neweffect = static_cast<Effect*> ( new LPELineSegment(lpeobj) ); + break; default: g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr); neweffect = NULL; |
