Code

Translations. POTFILES.in, inkcape.pot and fr.po updated.
[inkscape.git] / src / live_effects / lpe-bendpath.h
1 #ifndef INKSCAPE_LPE_BENDPATH_H
2 #define INKSCAPE_LPE_BENDPATH_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 LPEBendPath : public Effect, GroupBBoxEffect {
32 public:
33     LPEBendPath(LivePathEffectObject *lpeobject);
34     virtual ~LPEBendPath();
36     virtual void doBeforeEffect (SPLPEItem *lpeitem);
38     virtual Geom::Piecewise<Geom::D2<Geom::SBasis> > doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in);
40     virtual void resetDefaults(SPItem * item);
43 private:
44     PathParam  bend_path;
45     ScalarParam  prop_scale;
46     BoolParam scale_y_rel;
47     BoolParam    vertical_pattern;
49     Geom::Piecewise<Geom::D2<Geom::SBasis> > uskeleton;
50     Geom::Piecewise<Geom::D2<Geom::SBasis> > n;
52     void on_pattern_pasted();
54     LPEBendPath(const LPEBendPath&);
55     LPEBendPath& operator=(const LPEBendPath&);
56 };
58 }; //namespace LivePathEffect
59 }; //namespace Inkscape
61 #endif