Code

New unit parameter for LPEs which lpe-ruler now uses
[inkscape.git] / src / live_effects / lpe-ruler.h
1 #ifndef INKSCAPE_LPE_RULER_H
2 #define INKSCAPE_LPE_RULER_H
4 /** \file
5  * LPE <ruler> implementation, see lpe-ruler.cpp.
6  */
8 /*
9  * Authors:
10  *   Maximilian Albert
11  *   Johan Engelen
12  *
13  * Copyright (C) Maximilian Albert 2008 <maximilian.albert@gmail.com>
14  *
15  * Released under GNU GPL, read the file 'COPYING' for more information
16  */
18 #include "live_effects/effect.h"
19 #include "live_effects/parameter/text.h"
20 #include "live_effects/parameter/unit.h"
22 namespace Inkscape {
23 namespace LivePathEffect {
25 class LPERuler : public Effect {
26 public:
27     LPERuler(LivePathEffectObject *lpeobject);
28     virtual ~LPERuler();
30     virtual Geom::Piecewise<Geom::D2<Geom::SBasis> > doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in);
32 private:
33     ScalarParam mark_distance;
34     ScalarParam mark_length;
35     ScalarParam scale;
36     TextParamInternal info_text;
37     UnitParam unit;
38     LPERuler(const LPERuler&);
39     LPERuler& operator=(const LPERuler&);
40 };
42 } //namespace LivePathEffect
43 } //namespace Inkscape
45 #endif
47 /*
48   Local Variables:
49   mode:c++
50   c-file-style:"stroustrup"
51   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
52   indent-tabs-mode:nil
53   fill-column:99
54   End:
55 */
56 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :