Code

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