path.h revision 94f2e710e9cc2e0eb14c8d73abfe77d60f961db2
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm * Inkscape::LivePathEffectParameters
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm* Copyright (C) Johan Engelen 2007 <j.b.c.engelen@utwente.nl>
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm * Released under GNU GPL, read the file 'COPYING' for more information
43f848b15ee40a6c108ae9d965cf06f055ecb7a5johanengelen#include "live_effects/parameter/path-reference.h"
1673045848db9654bcb07a81fad34afb4b0623d1johanengelen std::vector<Geom::Path> const & get_pathvector();
3cc77bbe681dd68bde92a2c4796cd5020aecb214johanengelen Geom::Piecewise<Geom::D2<Geom::SBasis> > const & get_pwd2();
c0cd5511d3b975ebe07d019c1f5528108725e438johanengelen virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * tooltips);
94f2e710e9cc2e0eb14c8d73abfe77d60f961db2johanengelen virtual bool param_readSVGValue(const gchar * strvalue);
94f2e710e9cc2e0eb14c8d73abfe77d60f961db2johanengelen void set_new_value (std::vector<Geom::Path> const &newpath, bool write_to_svg);
94f2e710e9cc2e0eb14c8d73abfe77d60f961db2johanengelen void set_new_value (Geom::Piecewise<Geom::D2<Geom::SBasis> > const &newpath, bool write_to_svg);
d431763a9ec8059aa4962688de8144319969fb0fjohanengelen virtual void param_editOncanvas(SPItem * item, SPDesktop * dt);
d431763a9ec8059aa4962688de8144319969fb0fjohanengelen virtual void param_setup_nodepath(Inkscape::NodePath::Path *np);
0903335a0099bd7ee779925f43a15a2216a0e863johanengelen virtual void param_transform_multiply(Geom::Matrix const& /*postmul*/, bool /*set*/);
1673045848db9654bcb07a81fad34afb4b0623d1johanengelen std::vector<Geom::Path> _pathvector; // this is primary data storage, since it is closest to SVG.
1673045848db9654bcb07a81fad34afb4b0623d1johanengelen Geom::Piecewise<Geom::D2<Geom::SBasis> > _pwd2; // secondary, hence the bool must_recalculate_pwd2
1673045848db9654bcb07a81fad34afb4b0623d1johanengelen bool must_recalculate_pwd2; // set when _pathvector was updated, but _pwd2 not
1673045848db9654bcb07a81fad34afb4b0623d1johanengelen void ensure_pwd2(); // ensures _pwd2 is up to date
442e92e07cfe50f73dda0d06638025a65e23a956johanengelen gchar * href; // contains link to other object, e.g. "#path2428", NULL if PathParam contains pathdata itself
43f848b15ee40a6c108ae9d965cf06f055ecb7a5johanengelen void ref_changed(SPObject *old_ref, SPObject *new_ref);
43f848b15ee40a6c108ae9d965cf06f055ecb7a5johanengelen void linked_modified(SPObject *linked_obj, guint flags);
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm} //namespace LivePathEffect
f07bfd5a05d43a6d11f7cd442f085149092dea88pjrm} //namespace Inkscape