#ifndef INKSCAPE_LIVEPATHEFFECT_POWERSTROKE_POINT_ARRAY_H #define INKSCAPE_LIVEPATHEFFECT_POWERSTROKE_POINT_ARRAY_H /* * Inkscape::LivePathEffectParameters * * Copyright (C) Johan Engelen 2007 * * Released under GNU GPL, read the file 'COPYING' for more information */ #include #include <2geom/point.h> #include #include "live_effects/parameter/array.h" #include "knot-holder-entity.h" namespace Inkscape { namespace LivePathEffect { class PowerStrokePointArrayParamKnotHolderEntity; class PowerStrokePointArrayParam : public ArrayParam { public: PowerStrokePointArrayParam( const Glib::ustring& label, const Glib::ustring& tip, const Glib::ustring& key, Inkscape::UI::Widget::Registry* wr, Effect* effect, const gchar *handle_tip = NULL); // tip for automatically associated on-canvas handle virtual ~PowerStrokePointArrayParam(); virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * tooltips); virtual void param_transform_multiply(Geom::Matrix const& /*postmul*/, bool /*set*/); void set_oncanvas_looks(SPKnotShapeType shape, SPKnotModeType mode, guint32 color); virtual bool providesKnotHolderEntities() { return true; } virtual void addKnotHolderEntities(KnotHolder *knotholder, SPDesktop *desktop, SPItem *item); void set_pwd2(Geom::Piecewise > const & pwd2_in) { last_pwd2 = pwd2_in; } Geom::Piecewise > const & get_pwd2() { return last_pwd2; } void set_pwd2_normal(Geom::Piecewise > const & pwd2_in) { last_pwd2_normal = pwd2_in; } Geom::Piecewise > const & get_pwd2_normal() { return last_pwd2_normal; } friend class PowerStrokePointArrayParamKnotHolderEntity; private: PowerStrokePointArrayParam(const PowerStrokePointArrayParam&); PowerStrokePointArrayParam& operator=(const PowerStrokePointArrayParam&); SPKnotShapeType knot_shape; SPKnotModeType knot_mode; guint32 knot_color; gchar *handle_tip; Geom::Piecewise > last_pwd2; Geom::Piecewise > last_pwd2_normal; }; } //namespace LivePathEffect } //namespace Inkscape #endif