11d28530a2b6b2c84bd3ec59e64ddf5fff93c028
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 class LPEPathAlongPath : public Effect {
21 public:
22 LPEPathAlongPath(LivePathEffectObject *lpeobject);
23 virtual ~LPEPathAlongPath();
25 virtual Geom::Piecewise<Geom::D2<Geom::SBasis> > doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > & pwd2_in);
27 virtual void resetDefaults(SPItem * item);
29 virtual void transform_multiply(Geom::Matrix const& postmul, bool set);
31 private:
32 PathParam bend_path;
33 ScalarParam prop_scale;
34 BoolParam scale_y_rel;
35 BoolParam vertical_pattern;
37 void on_pattern_pasted();
39 LPEPathAlongPath(const LPEPathAlongPath&);
40 LPEPathAlongPath& operator=(const LPEPathAlongPath&);
41 };
43 }; //namespace LivePathEffect
44 }; //namespace Inkscape
46 #endif