Code

CRLF fix
[inkscape.git] / src / live_effects / lpe-pathalongpath.h
1 #ifndef INKSCAPE_LPE_PATHALONGPATH_H
2 #define INKSCAPE_LPE_PATHALONGPATH_H
4 /*
5  * Inkscape::LPEPathAlongPath
6  *
7 * Copyright (C) Johan Engelen 2007 <j.b.c.engelen@utwente.nl>
8  *
9  * Released under GNU GPL, read the file 'COPYING' for more information
10  */
12 #include "live_effects/effect.h"
13 #include "live_effects/parameter/path.h"
14 #include "live_effects/parameter/enum.h"
15 #include "live_effects/parameter/bool.h"
17 namespace Inkscape {
18 namespace LivePathEffect {
20 enum PAPCopyType {
21     PAPCT_SINGLE = 0,
22     PAPCT_SINGLE_STRETCHED,
23     PAPCT_REPEATED,
24     PAPCT_REPEATED_STRETCHED,
25     PAPCT_END // This must be last
26 };
28 class LPEPathAlongPath : public Effect {
29 public:
30     LPEPathAlongPath(LivePathEffectObject *lpeobject);
31     virtual ~LPEPathAlongPath();
33     virtual Geom::Piecewise<Geom::D2<Geom::SBasis> > doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > & pwd2_in);
35     virtual void resetDefaults(SPItem * item);
37 private:
38     PathParam  bend_path;
39     //PathParam  width_path;
40     //ScalarParam  width_path_range;
41     EnumParam<PAPCopyType> copytype;
42     ScalarParam  prop_scale;
43     BoolParam scale_y_rel;
44     BoolParam    vertical_pattern;
46     void on_pattern_pasted();
48     LPEPathAlongPath(const LPEPathAlongPath&);
49     LPEPathAlongPath& operator=(const LPEPathAlongPath&);
50 };
52 }; //namespace LivePathEffect
53 }; //namespace Inkscape
55 #endif