summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-interpolate.h
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-07-27 18:58:20 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-07-27 18:58:20 +0000
commit124983da75225fe39a40c8a265acd3daeefa3e1f (patch)
treea3cbf4f05c59ccf3921aa6dafd4255d76f1b5cc5 /src/live_effects/lpe-interpolate.h
parentfix release mouse crash, add missed disconnects, remove unused callback (diff)
downloadinkscape-124983da75225fe39a40c8a265acd3daeefa3e1f.tar.gz
inkscape-124983da75225fe39a40c8a265acd3daeefa3e1f.zip
add LPE Interpolate
(bzr r6431)
Diffstat (limited to 'src/live_effects/lpe-interpolate.h')
-rw-r--r--src/live_effects/lpe-interpolate.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/live_effects/lpe-interpolate.h b/src/live_effects/lpe-interpolate.h
new file mode 100644
index 000000000..10d21e309
--- /dev/null
+++ b/src/live_effects/lpe-interpolate.h
@@ -0,0 +1,55 @@
+#ifndef INKSCAPE_LPE_INTERPOLATE_H
+#define INKSCAPE_LPE_INTERPOLATE_H
+
+/** \file
+ * LPE interpolate implementation, see lpe-interpolate.cpp.
+ */
+
+/*
+ * Authors:
+ * Johan Engelen
+ *
+ * Copyright (C) Johan Engelen 2007-2008 <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/parameter.h"
+#include "live_effects/parameter/path.h"
+
+namespace Inkscape {
+namespace LivePathEffect {
+
+class LPEInterpolate : public Effect {
+public:
+ LPEInterpolate(LivePathEffectObject *lpeobject);
+ virtual ~LPEInterpolate();
+
+ virtual std::vector<Geom::Path> doEffect_path (std::vector<Geom::Path> const & path_in);
+
+ virtual void resetDefaults(SPItem * item);
+private:
+ PathParam interpolate_path;
+ ScalarParam number_of_steps;
+ ScalarParam spacing;
+
+ LPEInterpolate(const LPEInterpolate&);
+ LPEInterpolate& operator=(const LPEInterpolate&);
+};
+
+} //namespace LivePathEffect
+} //namespace Inkscape
+
+#endif // INKSCAPE_LPE_INTERPOLATE_H
+
+/*
+ Local Variables:
+ mode:c++
+ c-file-style:"stroustrup"
+ c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
+ indent-tabs-mode:nil
+ fill-column:99
+ End:
+*/
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :