summaryrefslogtreecommitdiffstats
path: root/src/live_effects
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-05-19 15:59:20 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-05-19 15:59:20 +0000
commitbdc027b935bb47e682dea35c97daca0aeae4e786 (patch)
treed07c573dab7676265a3f4a0cd0467ead4e33f99d /src/live_effects
parentnoop: cosmetics in lpe-skeleton.h (diff)
downloadinkscape-bdc027b935bb47e682dea35c97daca0aeae4e786.tar.gz
inkscape-bdc027b935bb47e682dea35c97daca0aeae4e786.zip
New LPE: Tangent to curve (draws a tangent of fixed length which can be dragged along the curve)
(bzr r5703)
Diffstat (limited to 'src/live_effects')
-rw-r--r--src/live_effects/Makefile_insert4
-rw-r--r--src/live_effects/effect.cpp5
-rw-r--r--src/live_effects/effect.h1
3 files changed, 9 insertions, 1 deletions
diff --git a/src/live_effects/Makefile_insert b/src/live_effects/Makefile_insert
index 7e8a9e3a3..4629a4d02 100644
--- a/src/live_effects/Makefile_insert
+++ b/src/live_effects/Makefile_insert
@@ -46,5 +46,7 @@ live_effects_liblive_effects_a_SOURCES = \
live_effects/lpe-envelope.cpp \
live_effects/lpe-envelope.h \
live_effects/lpe-perp_bisector.cpp \
- live_effects/lpe-perp_bisector.h
+ live_effects/lpe-perp_bisector.h \
+ live_effects/lpe-tangent_to_curve.cpp \
+ live_effects/lpe-tangent_to_curve.h
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp
index 2a90687f1..2e33098d2 100644
--- a/src/live_effects/effect.cpp
+++ b/src/live_effects/effect.cpp
@@ -46,6 +46,7 @@
#include "live_effects/lpe-constructgrid.h"
#include "live_effects/lpe-envelope.h"
#include "live_effects/lpe-perp_bisector.h"
+#include "live_effects/lpe-tangent_to_curve.h"
// end of includes
#include "nodepath.h"
@@ -72,6 +73,7 @@ const Util::EnumData<EffectType> LPETypeData[INVALID_LPE] = {
{CONSTRUCT_GRID, N_("Construct grid"), "construct_grid"},
{ENVELOPE, N_("Envelope Deformation"), "envelope"},
{PERP_BISECTOR, N_("Perpendicular bisector"), "perp_bisector"},
+ {TANGENT_TO_CURVE, N_("Tangent to curve"), "tangent_to_curve"},
};
const Util::EnumDataConverter<EffectType> LPETypeConverter(LPETypeData, INVALID_LPE);
@@ -124,6 +126,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj)
case PERP_BISECTOR:
neweffect = static_cast<Effect*> ( new LPEPerpBisector(lpeobj) );
break;
+ case TANGENT_TO_CURVE:
+ neweffect = static_cast<Effect*> ( new LPETangentToCurve(lpeobj) );
+ break;
default:
g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr);
neweffect = NULL;
diff --git a/src/live_effects/effect.h b/src/live_effects/effect.h
index 693c6ad46..ad2d5126f 100644
--- a/src/live_effects/effect.h
+++ b/src/live_effects/effect.h
@@ -68,6 +68,7 @@ enum EffectType {
CONSTRUCT_GRID,
ENVELOPE,
PERP_BISECTOR,
+ TANGENT_TO_CURVE,
INVALID_LPE // This must be last
};