1 #ifndef INKSCAPE_LPE_KNOT_H
2 #define INKSCAPE_LPE_KNOT_H
4 /** \file
5 * LPE <knot> implementation, see lpe-knot.cpp.
6 */
8 /*
9 * Authors:
10 * JFB, but derived from Johan Engelen!
11 *
12 * Copyright (C) Johan Engelen 2007 <j.b.c.engelen@utwente.nl>
13 *
14 * Released under GNU GPL, read the file 'COPYING' for more information
15 */
17 #include "live_effects/effect.h"
18 #include "live_effects/parameter/parameter.h"
20 namespace Inkscape {
21 namespace LivePathEffect {
23 class LPEKnot : public Effect {
24 public:
25 LPEKnot(LivePathEffectObject *lpeobject);
26 virtual ~LPEKnot();
28 // Choose to implement one of the doEffect functions. You can delete or comment out the others.
29 // virtual void doEffect (SPCurve * curve);
30 virtual std::vector<Geom::Path> doEffect_path (std::vector<Geom::Path> const & input_path);
31 // virtual Geom::Piecewise<Geom::D2<Geom::SBasis> > doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > & pwd2_in);
33 private:
34 // add the parameters for your effect here:
35 ScalarParam interruption_width;
36 // there are all kinds of parameters. Check the /live_effects/parameter directory which types exist!
38 LPEKnot(const LPEKnot&);
39 LPEKnot& operator=(const LPEKnot&);
40 };
42 } //namespace LivePathEffect
43 } //namespace Inkscape
45 #endif