From cb3a86cca0122bd58099787b02c82fd04fc5c000 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Mon, 18 Aug 2008 00:32:26 +0000 Subject: New LPE to draw infinite lines (cut by a limiting bounding box), rays and segments (bzr r6641) --- 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 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 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 ( new LPEPathLength(lpeobj) ); break; + case LINE_SEGMENT: + neweffect = static_cast ( new LPELineSegment(lpeobj) ); + break; default: g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr); neweffect = NULL; -- cgit v1.2.3