Code

New LPE: Copy rotate
[inkscape.git] / src / live_effects / effect.cpp
index 73b5a578685b9a5845e86809a7285736c6422377..08745a74ea331331117954cd5c2f5b44be2b2e76 100644 (file)
@@ -59,6 +59,7 @@
 #include "live_effects/lpe-circle_3pts.h"
 #include "live_effects/lpe-angle_bisector.h"
 #include "live_effects/lpe-parallel.h"
+#include "live_effects/lpe-copy_rotate.h"
 // end of includes
 
 namespace Inkscape {
@@ -89,6 +90,7 @@ const Util::EnumData<EffectType> LPETypeData[INVALID_LPE] = {
     {CIRCLE_3PTS, N_("Circle through 3 points"), "circle_3pts"},
     {ANGLE_BISECTOR, N_("Angle bisector"), "angle_bisector"},
     {PARALLEL, N_("Parallel"), "parallel"},
+    {COPY_ROTATE, N_("Rotate copies"), "copy_rotate"},
 };
 const Util::EnumDataConverter<EffectType> LPETypeConverter(LPETypeData, INVALID_LPE);
 
@@ -159,6 +161,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj)
         case PARALLEL:
             neweffect = static_cast<Effect*> ( new LPEParallel(lpeobj) );
             break;
+        case COPY_ROTATE:
+            neweffect = static_cast<Effect*> ( new LPECopyRotate(lpeobj) );
+            break;
         default:
             g_warning("LivePathEffect::Effect::New   called with invalid patheffect type (%d)", lpenr);
             neweffect = NULL;