diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-06-16 16:16:38 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-06-16 16:16:38 +0000 |
| commit | 251b0986df5b12162d2fb4aa97b0cd6e2f932cff (patch) | |
| tree | 4d844d4e219ee2deee0203c7aeeb0cc3707de727 /src/live_effects/effect.cpp | |
| parent | Separate function to put pen context into 'wait for LPE mouse clicks' mode (diff) | |
| download | inkscape-251b0986df5b12162d2fb4aa97b0cd6e2f932cff.tar.gz inkscape-251b0986df5b12162d2fb4aa97b0cd6e2f932cff.zip | |
New LPE: circle through 3 points
(bzr r5959)
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 9476f0377..4f4aaff3f 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -56,6 +56,7 @@ #include "live_effects/lpe-perp_bisector.h" #include "live_effects/lpe-tangent_to_curve.h" #include "live_effects/lpe-mirror_reflect.h" +#include "live_effects/lpe-circle_3pts.h" // end of includes namespace Inkscape { @@ -83,6 +84,7 @@ const Util::EnumData<EffectType> LPETypeData[INVALID_LPE] = { {PERP_BISECTOR, N_("Perpendicular bisector"), "perp_bisector"}, {TANGENT_TO_CURVE, N_("Tangent to curve"), "tangent_to_curve"}, {MIRROR_REFLECT, N_("Mirror reflection"), "mirror_reflect"}, + {CIRCLE_3PTS, N_("Circle through 3 points"), "circle_3pts"}, }; const Util::EnumDataConverter<EffectType> LPETypeConverter(LPETypeData, INVALID_LPE); @@ -144,6 +146,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj) case MIRROR_REFLECT: neweffect = static_cast<Effect*> ( new LPEMirrorReflect(lpeobj) ); break; + case CIRCLE_3PTS: + neweffect = static_cast<Effect*> ( new LPECircle3Pts(lpeobj) ); + break; default: g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr); neweffect = NULL; |
