Code

7ebc62fdbae6f0ad37230cc8b0cf73f65b585f9c
[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"
21 namespace Inkscape {
22 namespace LivePathEffect {
24 class LPERuler : public Effect {
25 public:
26     LPERuler(LivePathEffectObject *lpeobject);
27     virtual ~LPERuler();
29     virtual Geom::Piecewise<Geom::D2<Geom::SBasis> > doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in);
31 private:
32     ScalarParam mark_distance;
33     ScalarParam mark_length;
34     ScalarParam scale;
35     TextParamInternal info_text;
36     LPERuler(const LPERuler&);
37     LPERuler& operator=(const LPERuler&);
38 };
40 } //namespace LivePathEffect
41 } //namespace Inkscape
43 #endif
45 /*
46   Local Variables:
47   mode:c++
48   c-file-style:"stroustrup"
49   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
50   indent-tabs-mode:nil
51   fill-column:99
52   End:
53 */
54 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :