2#ifndef INKSCAPE_LIVEPATHEFFECT_POWERSTROKE_POINT_ARRAY_H
3#define INKSCAPE_LIVEPATHEFFECT_POWERSTROKE_POINT_ARRAY_H
22namespace LivePathEffect {
27 const Glib::ustring& tip,
28 const Glib::ustring&
key,
Cartesian point / 2D vector and related operations.
3x3 matrix representing an affine transformation.
Adaptor that creates 2D functions from 1D ones.
Function defined as discrete pieces.
Two-dimensional point that doubles as a vector.
std::vector< StorageType > _vector
void knot_click(guint state) override
virtual void knot_set_offset(Geom::Point offset)
Geom::Point knot_get() const override
void knot_ungrabbed(Geom::Point const &p, Geom::Point const &origin, guint state) override
bool valid_index(unsigned int index) const
Checks whether the index falls within the size of the parameter's vector.
PowerStrokePointArrayParam * _pparam
void knot_set(Geom::Point const &p, Geom::Point const &origin, guint state) override
~PowerStrokePointArrayParamKnotHolderEntity() override=default
Geom::Piecewise< Geom::D2< Geom::SBasis > > const & get_pwd2() const
Geom::Point knot_get(size_t index)
Geom::Piecewise< Geom::D2< Geom::SBasis > > last_pwd2_normal
Inkscape::CanvasItemCtrlShape knot_shape
PowerStrokePointArrayParam & operator=(const PowerStrokePointArrayParam &)=delete
void addKnotHolderEntities(KnotHolder *knotholder, SPItem *item) override
PowerStrokePointArrayParam(const PowerStrokePointArrayParam &)=delete
Geom::Piecewise< Geom::D2< Geom::SBasis > > last_pwd2
void recalculate_controlpoints(Geom::PathVector pv)
call this method to recalculate the controlpoints such that they stay at the same location relative t...
void set_oncanvas_looks(CanvasItemCtrlShape shape, uint32_t color)
Geom::Point knot_reposition(size_t index, Geom::PathVector pathv)
void set_pwd2(Geom::Piecewise< Geom::D2< Geom::SBasis > > const &pwd2_in, Geom::Piecewise< Geom::D2< Geom::SBasis > > const &pwd2_normal_in)
std::vector< Geom::Point > reverse_controlpoints(bool write)
call this method to recalculate the controlpoints when path is reversed.
void param_update_default(const gchar *default_value) override
~PowerStrokePointArrayParam() override
void set_scale_width(double scale_width)
ParamType paramType() const override
bool providesKnotHolderEntities() const override
void param_transform_multiply(Geom::Affine const &postmul, bool) override
Geom::Piecewise< Geom::D2< Geom::SBasis > > const & get_pwd2_normal() const
Gtk::Widget * param_newWidget() override
KnotHolderEntity definition.
Base class for visual SVG elements.
@ POWERSTROKE_POINT_ARRAY
Helper class to stream background task notifications as a series of messages.
@ CANVAS_ITEM_CTRL_SHAPE_DIAMOND
static cairo_user_data_key_t key