Code

a030f756763304e2ea15ef50d7673dee36b3f02c
[inkscape.git] / src / live_effects / lpe-knot.h
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 NArtBpath * doEffect_nartbpath (NArtBpath * path_in);
31     virtual std::vector<Geom::Path> doEffect_path (std::vector<Geom::Path> & path_in);
32 //    virtual Geom::Piecewise<Geom::D2<Geom::SBasis> > doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > & pwd2_in);
34 private:
35     // add the parameters for your effect here:
36     ScalarParam interruption_width;
37     // there are all kinds of parameters. Check the /live_effects/parameter directory which types exist!
39     LPEKnot(const LPEKnot&);
40     LPEKnot& operator=(const LPEKnot&);
41 };
43 } //namespace LivePathEffect
44 } //namespace Inkscape
46 #endif