f1578d5bfdb0666803a04af2a9e975efbeb1a2d4
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 * Copyright (C) Steren Giannini 2008 <steren.giannini@gmail.com>
9 *
10 * Released under GNU GPL, read the file 'COPYING' for more information
11 */
13 #include "live_effects/effect.h"
14 #include "live_effects/parameter/path.h"
15 #include "live_effects/parameter/enum.h"
16 #include "live_effects/parameter/bool.h"
18 #include <2geom/sbasis.h>
19 #include <2geom/sbasis-geometric.h>
20 #include <2geom/bezier-to-sbasis.h>
21 #include <2geom/sbasis-to-bezier.h>
22 #include <2geom/d2.h>
23 #include <2geom/piecewise.h>
25 #include "live_effects/lpegroupbbox.h"
27 namespace Inkscape {
28 namespace LivePathEffect {
30 //for Bend path on group : we need information concerning the group Bounding box
31 class LPEPathAlongPath : public Effect, LivePathEffect_group_bbox {
32 public:
33 LPEPathAlongPath(LivePathEffectObject *lpeobject);
34 virtual ~LPEPathAlongPath();
36 virtual void doBeforeEffect (SPLPEItem *lpeitem);
38 virtual Geom::Piecewise<Geom::D2<Geom::SBasis> > doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > & pwd2_in);
40 virtual void resetDefaults(SPItem * item);
42 virtual void transform_multiply(Geom::Matrix const& postmul, bool set);
44 private:
45 PathParam bend_path;
46 ScalarParam prop_scale;
47 BoolParam scale_y_rel;
48 BoolParam vertical_pattern;
50 bool groupSpecialBehavior;
52 void on_pattern_pasted();
54 LPEPathAlongPath(const LPEPathAlongPath&);
55 LPEPathAlongPath& operator=(const LPEPathAlongPath&);
56 };
58 }; //namespace LivePathEffect
59 }; //namespace Inkscape
61 #endif