Code

From trunk
[inkscape.git] / src / live_effects / lpe-patternalongpath.h
1 #ifndef INKSCAPE_LPE_PATTERN_ALONG_PATH_H
2 #define INKSCAPE_LPE_PATTERN_ALONG_PATH_H
4 /*
5  * Inkscape::LPEPatternAlongPath
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 LPEPatternAlongPath : public Effect {
29 public:
30     LPEPatternAlongPath(LivePathEffectObject *lpeobject);
31     virtual ~LPEPatternAlongPath();
33     virtual Geom::Piecewise<Geom::D2<Geom::SBasis> > doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in);
35     PathParam  pattern;
36 private:
37     EnumParam<PAPCopyType> copytype;
38     ScalarParam  prop_scale;
39     BoolParam scale_y_rel;
40     ScalarParam  spacing;
41     ScalarParam  normal_offset;
42     ScalarParam  tang_offset;
43     BoolParam    prop_units;
44     BoolParam    vertical_pattern;
46     void on_pattern_pasted();
48     LPEPatternAlongPath(const LPEPatternAlongPath&);
49     LPEPatternAlongPath& operator=(const LPEPatternAlongPath&);
50 };
52 class LPEFreehandShape : public LPEPatternAlongPath {
53 public:
54   LPEFreehandShape(LivePathEffectObject *lpeobject);
55   virtual ~LPEFreehandShape() {}
56 };
58 }; //namespace LivePathEffect
59 }; //namespace Inkscape
61 #endif
63 /*
64   Local Variables:
65   mode:c++
66   c-file-style:"stroustrup"
67   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
68   indent-tabs-mode:nil
69   fill-column:99
70   End:
71 */
72 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :