index 2b3e4553e893edec9bcafa13c69f3c1da697956b..8a8e43f2c74a5f624485205c575c1d2436981ab7 100644 (file)
-#ifndef INKSCAPE_LPE_EXPRESSION_H\r
-#define INKSCAPE_LPE_EXPRESSION_H\r
-\r
-/** \file\r
- * Implementation of an effect similar to Expression, see lpe-expression.cpp\r
- */\r
-\r
-/*\r
- * Authors:\r
- * Johan Engelen\r
-*\r
-* Copyright (C) Johan Engelen 2007 <j.b.c.engelen@utwente.nl>\r
- *\r
- * Released under GNU GPL, read the file 'COPYING' for more information\r
- */\r
-\r
-#include "live_effects/effect.h"\r
-#include "live_effects/parameter/path.h"\r
-#include "live_effects/parameter/parameter.h"\r
-#include "live_effects/parameter/bool.h"\r
-#include "live_effects/parameter/random.h"\r
-\r
-namespace Inkscape {\r
-namespace LivePathEffect {\r
-\r
-class LPECurveStitch : public Effect {\r
-public:\r
- LPECurveStitch(LivePathEffectObject *lpeobject);\r
- ~LPECurveStitch();\r
-\r
- std::vector<Geom::Path> doEffect (std::vector<Geom::Path> & path_in);\r
-\r
-private:\r
- PathParam strokepath;\r
- ScalarParam nrofpaths;\r
- RandomParam startpoint_variation;\r
- RandomParam endpoint_variation;\r
- BoolParam scale_y;\r
-\r
- LPECurveStitch(const LPECurveStitch&);\r
- LPECurveStitch& operator=(const LPECurveStitch&);\r
-};\r
-\r
-} //namespace LivePathEffect\r
-} //namespace Inkscape\r
-\r
-#endif\r
+#ifndef INKSCAPE_LPE_CURVESTITCH_H
+#define INKSCAPE_LPE_CURVESTITCH_H
+
+/** \file
+ * Implementation of the curve stitch effect, see lpe-curvestitch.cpp
+ */
+
+/*
+ * Authors:
+ * Johan Engelen
+*
+* Copyright (C) Johan Engelen 2007 <j.b.c.engelen@utwente.nl>
+ *
+ * Released under GNU GPL, read the file 'COPYING' for more information
+ */
+
+#include "live_effects/effect.h"
+#include "live_effects/parameter/path.h"
+#include "live_effects/parameter/parameter.h"
+#include "live_effects/parameter/bool.h"
+#include "live_effects/parameter/random.h"
+
+namespace Inkscape {
+namespace LivePathEffect {
+
+class LPECurveStitch : public Effect {
+public:
+ LPECurveStitch(LivePathEffectObject *lpeobject);
+ virtual ~LPECurveStitch();
+
+ virtual std::vector<Geom::Path> doEffect_path (std::vector<Geom::Path> const & path_in);
+
+ virtual void resetDefaults(SPItem * item);
+
+ virtual void transform_multiply(Geom::Matrix const& postmul, bool set);
+
+private:
+ PathParam strokepath;
+ ScalarParam nrofpaths;
+ RandomParam startpoint_edge_variation;
+ RandomParam startpoint_spacing_variation;
+ RandomParam endpoint_edge_variation;
+ RandomParam endpoint_spacing_variation;
+ ScalarParam prop_scale;
+ BoolParam scale_y_rel;
+
+ LPECurveStitch(const LPECurveStitch&);
+ LPECurveStitch& operator=(const LPECurveStitch&);
+};
+
+} //namespace LivePathEffect
+} //namespace Inkscape
+
+#endif