Code

2821696749be5812c925cae700d88d0f0e74ebd9
[inkscape.git] / src / live_effects / lpe-envelope.h
1 #ifndef INKSCAPE_LPE_ENVELOPE_H
2 #define INKSCAPE_LPE_ENVELOPE_H
4 /*
5  * Inkscape::LPEEnvelope
6  *
7  * Copyright (C) Steren Giannini 2008 <steren.giannini@gmail.com>
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 #include <2geom/sbasis.h>
18 #include <2geom/sbasis-geometric.h>
19 #include <2geom/bezier-to-sbasis.h>
20 #include <2geom/sbasis-to-bezier.h>
21 #include <2geom/d2.h>
22 #include <2geom/piecewise.h>
24 #include "live_effects/lpegroupbbox.h"
26 namespace Inkscape {
27 namespace LivePathEffect {
29 class LPEEnvelope : public Effect, GroupBBoxEffect {
30 public:
31     LPEEnvelope(LivePathEffectObject *lpeobject);
32     virtual ~LPEEnvelope();
34     virtual void doBeforeEffect (SPLPEItem *lpeitem);
36     virtual Geom::Piecewise<Geom::D2<Geom::SBasis> > doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in);
38     virtual void resetDefaults(SPItem * item);
40     virtual void transform_multiply(Geom::Matrix const& postmul, bool set);
42 private:
43     PathParam  bend_path1;
44     PathParam  bend_path2;
45     PathParam  bend_path3;
46     PathParam  bend_path4;
47     BoolParam  xx;
48     BoolParam  yy;
50     void on_pattern_pasted();
52     LPEEnvelope(const LPEEnvelope&);
53     LPEEnvelope& operator=(const LPEEnvelope&);
54 };
56 }; //namespace LivePathEffect
57 }; //namespace Inkscape
59 #endif