1 #ifndef INKSCAPE_LPE_PATH_LENGTH_H
2 #define INKSCAPE_LPE_PATH_LENGTH_H
4 /** \file
5 * LPE <path_length> implementation.
6 */
8 /*
9 * Authors:
10 * Maximilian Albert <maximilian.albert@gmail.com>
11 *
12 * Copyright (C) 2007-2008 Authors
13 *
14 * Released under GNU GPL, read the file 'COPYING' for more information
15 */
17 #include "live_effects/effect.h"
18 #include "live_effects/parameter/text.h"
19 #include "live_effects/parameter/unit.h"
20 #include "live_effects/parameter/bool.h"
22 namespace Inkscape {
23 namespace LivePathEffect {
25 class LPEPathLength : public Effect {
26 public:
27 LPEPathLength(LivePathEffectObject *lpeobject);
28 virtual ~LPEPathLength();
30 virtual Geom::Piecewise<Geom::D2<Geom::SBasis> > doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in);
32 void hideCanvasText();
34 private:
35 LPEPathLength(const LPEPathLength&);
36 LPEPathLength& operator=(const LPEPathLength&);
37 ScalarParam scale;
38 TextParamInternal info_text;
39 UnitParam unit;
40 BoolParam display_unit;
41 };
43 } //namespace LivePathEffect
44 } //namespace Inkscape
46 #endif
48 /*
49 Local Variables:
50 mode:c++
51 c-file-style:"stroustrup"
52 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
53 indent-tabs-mode:nil
54 fill-column:99
55 End:
56 */
57 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :