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 PathParam width_path;\r
40 ScalarParam width_path_range;\r
41 EnumParam<PAPCopyType> copytype;\r
42 ScalarParam prop_scale;\r
43 BoolParam scale_y_rel;\r
44 BoolParam vertical_pattern;\r
45 \r
46 void on_pattern_pasted();\r
47 \r
48 LPEPathAlongPath(const LPEPathAlongPath&);\r
49 LPEPathAlongPath& operator=(const LPEPathAlongPath&);\r
50 };\r
51 \r
52 }; //namespace LivePathEffect\r
53 }; //namespace Inkscape\r
54 \r
55 #endif\r