1 /** @file
2 * @brief PowerStroke LPE effect, see lpe-powerstroke.cpp.
3 */
4 /* Authors:
5 * Johan Engelen <j.b.c.engelen@utwente.nl>
6 *
7 * Copyright (C) 2010 Authors
8 *
9 * Released under GNU GPL, read the file 'COPYING' for more information
10 */
12 #ifndef INKSCAPE_LPE_POWERSTROKE_H
13 #define INKSCAPE_LPE_POWERSTROKE_H
15 #include "live_effects/effect.h"
16 #include "live_effects/parameter/bool.h"
17 #include "live_effects/parameter/powerstrokepointarray.h"
19 namespace Inkscape {
20 namespace LivePathEffect {
22 class LPEPowerStroke : public Effect {
23 public:
24 LPEPowerStroke(LivePathEffectObject *lpeobject);
25 virtual ~LPEPowerStroke();
27 virtual Geom::Piecewise<Geom::D2<Geom::SBasis> > doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in);
29 virtual void doOnApply(SPLPEItem *lpeitem);
31 private:
32 PowerStrokePointArrayParam offset_points;
33 BoolParam sort_points;
35 LPEPowerStroke(const LPEPowerStroke&);
36 LPEPowerStroke& operator=(const LPEPowerStroke&);
37 };
39 } //namespace LivePathEffect
40 } //namespace Inkscape
42 #endif
44 /*
45 Local Variables:
46 mode:c++
47 c-file-style:"stroustrup"
48 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
49 indent-tabs-mode:nil
50 fill-column:99
51 End:
52 */
53 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :