1 #ifndef INKSCAPE_LPE_OFFSET_H
2 #define INKSCAPE_LPE_OFFSET_H
4 /** \file
5 * LPE <offset> implementation, see lpe-offset.cpp.
6 */
8 /*
9 * Authors:
10 * Maximilian Albert
11 *
12 * Copyright (C) Johan Engelen 2007 <j.b.c.engelen@utwente.nl>
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/point.h"
21 namespace Inkscape {
22 namespace LivePathEffect {
24 class LPEOffset : public Effect {
25 public:
26 LPEOffset(LivePathEffectObject *lpeobject);
27 virtual ~LPEOffset();
29 virtual void doOnApply (SPLPEItem *lpeitem);
31 virtual Geom::Piecewise<Geom::D2<Geom::SBasis> > doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in);
33 private:
34 PointParam offset_pt;
36 LPEOffset(const LPEOffset&);
37 LPEOffset& operator=(const LPEOffset&);
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 :