Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::LivePathEffect::PowerStrokePointArrayParam Class Reference

#include <powerstrokepointarray.h>

Inheritance diagram for Inkscape::LivePathEffect::PowerStrokePointArrayParam:
Inkscape::LivePathEffect::ArrayParam< Geom::Point > Inkscape::LivePathEffect::Parameter

Public Member Functions

 PowerStrokePointArrayParam (const Glib::ustring &label, const Glib::ustring &tip, const Glib::ustring &key, Inkscape::UI::Widget::Registry *wr, Effect *effect)
 
 ~PowerStrokePointArrayParam () override
 
 PowerStrokePointArrayParam (const PowerStrokePointArrayParam &)=delete
 
PowerStrokePointArrayParamoperator= (const PowerStrokePointArrayParam &)=delete
 
Gtk::Widget * param_newWidget () override
 
void param_transform_multiply (Geom::Affine const &postmul, bool) override
 
void set_oncanvas_looks (CanvasItemCtrlShape shape, uint32_t color)
 
float median_width ()
 
Geom::Point knot_get (size_t index)
 
Geom::Point knot_reposition (size_t index, Geom::PathVector pathv)
 
bool providesKnotHolderEntities () const override
 
void addKnotHolderEntities (KnotHolder *knotholder, SPItem *item) override
 
void param_update_default (const gchar *default_value) override
 
void set_pwd2 (Geom::Piecewise< Geom::D2< Geom::SBasis > > const &pwd2_in, Geom::Piecewise< Geom::D2< Geom::SBasis > > const &pwd2_normal_in)
 
Geom::Piecewise< Geom::D2< Geom::SBasis > > const & get_pwd2 () const
 
Geom::Piecewise< Geom::D2< Geom::SBasis > > const & get_pwd2_normal () const
 
void recalculate_controlpoints (Geom::PathVector pv)
 call this method to recalculate the controlpoints such that they stay at the same location relative to the new path.
 
std::vector< Geom::Pointreverse_controlpoints (bool write)
 call this method to recalculate the controlpoints when path is reversed.
 
void set_scale_width (double scale_width)
 
ParamType paramType () const override
 
- Public Member Functions inherited from Inkscape::LivePathEffect::ArrayParam< Geom::Point >
 ArrayParam (const Glib::ustring &label, const Glib::ustring &tip, const Glib::ustring &key, Inkscape::UI::Widget::Registry *wr, Effect *effect, std::size_t n=0)
 
 ArrayParam (const ArrayParam &)
 
ArrayParamoperator= (const ArrayParam &)
 
std::vector< Geom::Point > const & data () const
 
bool param_readSVGValue (char const *const strvalue) override
 
void param_update_default (char const *default_value) override
 
Glib::ustring param_getSVGValue () const override
 
Glib::ustring param_getDefaultSVGValue () const override
 
void param_setValue (std::vector< Geom::Point > const &new_vector)
 
void param_set_default () override
 
void param_set_and_write_new_value (std::vector< Geom::Point > const &new_vector)
 
bool valid_index (int index) const
 
- Public Member Functions inherited from Inkscape::LivePathEffect::Parameter
 Parameter (Glib::ustring label, Glib::ustring tip, Glib::ustring key, Inkscape::UI::Widget::Registry *wr, Effect *effect)
 
virtual ~Parameter ()
 
 Parameter (const Parameter &)=delete
 
Parameteroperator= (const Parameter &)=delete
 
virtual void param_widget_is_visible (bool is_visible)
 
virtual void param_widget_is_enabled (bool is_enabled)
 
void write_to_SVG ()
 
void read_from_SVG ()
 
void setUpdating (bool updating)
 
bool getUpdating () const
 
Glib::ustring const * param_getTooltip () const
 
virtual void addCanvasIndicators (SPLPEItem const *, std::vector< Geom::PathVector > &)
 
virtual void param_editOncanvas (SPItem *, SPDesktop *)
 
virtual void param_setup_nodepath (Inkscape::NodePath::Path *)
 
virtual std::vector< SPObject * > param_get_satellites ()
 
void param_higlight (bool highlight)
 
void change_selection (Inkscape::Selection *selection)
 
void update_satellites ()
 
EffectType effectType () const
 
void connect_selection_changed ()
 

Public Attributes

double _scale_width
 
bool unplaced = false
 
size_t current_path = Glib::ustring::npos
 
- Public Attributes inherited from Inkscape::LivePathEffect::Parameter
sigc::scoped_connection selection_changed_connection
 
Glib::ustring param_key
 
Glib::ustring param_tooltip
 
Inkscape::UI::Widget::Registryparam_wr
 
Glib::ustring param_label
 
bool oncanvas_editable
 
bool widget_is_visible
 
bool widget_is_enabled
 

Private Attributes

Inkscape::CanvasItemCtrlShape knot_shape = Inkscape::CANVAS_ITEM_CTRL_SHAPE_DIAMOND
 
guint32 knot_color
 
Geom::Piecewise< Geom::D2< Geom::SBasis > > last_pwd2
 
Geom::Piecewise< Geom::D2< Geom::SBasis > > last_pwd2_normal
 

Friends

class PowerStrokePointArrayParamKnotHolderEntity
 

Additional Inherited Members

- Protected Member Functions inherited from Inkscape::LivePathEffect::ArrayParam< Geom::Point >
void writesvg (SVGOStringStream &str, std::vector< Geom::Point > const &vector) const
 
void writesvgData (SVGOStringStream &str, float const &vector_data) const
 
void writesvgData (SVGOStringStream &str, double const &vector_data) const
 
void writesvgData (SVGOStringStream &str, Glib::ustring const &vector_data) const
 
void writesvgData (SVGOStringStream &str, Geom::Point const &vector_data) const
 
void writesvgData (SVGOStringStream &str, std::shared_ptr< SatelliteReference > const &vector_data) const
 
void writesvgData (SVGOStringStream &str, std::vector< NodeSatellite > const &vector_data) const
 
Geom::Point readsvg (char const *str)
 
double readsvg (char const *const str)
 
float readsvg (char const *const str)
 
Glib::ustring readsvg (char const *const str)
 
Geom::Point readsvg (char const *const str)
 
std::shared_ptr< SatelliteReferencereadsvg (char const *const str)
 
std::vector< NodeSatellitereadsvg (char const *const str)
 
- Protected Member Functions inherited from Inkscape::LivePathEffect::Parameter
void param_write_to_repr (const char *svgd)
 
- Protected Attributes inherited from Inkscape::LivePathEffect::ArrayParam< Geom::Point >
std::vector< Geom::Point_vector
 
std::size_t _default_size
 
- Protected Attributes inherited from Inkscape::LivePathEffect::Parameter
bool _updating = false
 
Inkscape::Display::TemporaryItemownerlocator = nullptr
 
Effectparam_effect
 

Detailed Description

Definition at line 24 of file powerstrokepointarray.h.

Constructor & Destructor Documentation

◆ PowerStrokePointArrayParam() [1/2]

Inkscape::LivePathEffect::PowerStrokePointArrayParam::PowerStrokePointArrayParam ( const Glib::ustring &  label,
const Glib::ustring &  tip,
const Glib::ustring &  key,
Inkscape::UI::Widget::Registry wr,
Effect effect 
)

Definition at line 32 of file powerstrokepointarray.cpp.

◆ ~PowerStrokePointArrayParam()

Inkscape::LivePathEffect::PowerStrokePointArrayParam::~PowerStrokePointArrayParam ( )
overridedefault

◆ PowerStrokePointArrayParam() [2/2]

Inkscape::LivePathEffect::PowerStrokePointArrayParam::PowerStrokePointArrayParam ( const PowerStrokePointArrayParam )
delete

Member Function Documentation

◆ addKnotHolderEntities()

void Inkscape::LivePathEffect::PowerStrokePointArrayParam::addKnotHolderEntities ( KnotHolder knotholder,
SPItem item 
)
overridevirtual

◆ get_pwd2()

Geom::Piecewise< Geom::D2< Geom::SBasis > > const & Inkscape::LivePathEffect::PowerStrokePointArrayParam::get_pwd2 ( ) const
inline

◆ get_pwd2_normal()

Geom::Piecewise< Geom::D2< Geom::SBasis > > const & Inkscape::LivePathEffect::PowerStrokePointArrayParam::get_pwd2_normal ( ) const
inline

◆ knot_get()

◆ knot_reposition()

Geom::Point Inkscape::LivePathEffect::PowerStrokePointArrayParam::knot_reposition ( size_t  index,
Geom::PathVector  pathv 
)

◆ median_width()

float Inkscape::LivePathEffect::PowerStrokePointArrayParam::median_width ( )

◆ operator=()

PowerStrokePointArrayParam & Inkscape::LivePathEffect::PowerStrokePointArrayParam::operator= ( const PowerStrokePointArrayParam )
delete

◆ param_newWidget()

Gtk::Widget * Inkscape::LivePathEffect::PowerStrokePointArrayParam::param_newWidget ( )
overridevirtual

Reimplemented from Inkscape::LivePathEffect::ArrayParam< Geom::Point >.

Definition at line 44 of file powerstrokepointarray.cpp.

◆ param_transform_multiply()

◆ param_update_default()

void Inkscape::LivePathEffect::PowerStrokePointArrayParam::param_update_default ( const gchar *  default_value)
inlineoverride

Definition at line 48 of file powerstrokepointarray.h.

◆ paramType()

ParamType Inkscape::LivePathEffect::PowerStrokePointArrayParam::paramType ( ) const
inlineoverridevirtual

◆ providesKnotHolderEntities()

bool Inkscape::LivePathEffect::PowerStrokePointArrayParam::providesKnotHolderEntities ( ) const
inlineoverridevirtual

Reimplemented from Inkscape::LivePathEffect::Parameter.

Definition at line 46 of file powerstrokepointarray.h.

◆ recalculate_controlpoints()

void Inkscape::LivePathEffect::PowerStrokePointArrayParam::recalculate_controlpoints ( Geom::PathVector  pv)

call this method to recalculate the controlpoints such that they stay at the same location relative to the new path.

Useful after adding/deleting nodes to the path.

Definition at line 69 of file powerstrokepointarray.cpp.

References Inkscape::LivePathEffect::ArrayParam< Geom::Point >::_vector, index, knot_reposition(), last_pwd2, Inkscape::LivePathEffect::Parameter::param_effect, Geom::path_from_piecewise(), and Inkscape::LivePathEffect::Parameter::write_to_SVG().

Referenced by Inkscape::LivePathEffect::LPEPowerStroke::doEffect_path().

◆ reverse_controlpoints()

std::vector< Geom::Point > Inkscape::LivePathEffect::PowerStrokePointArrayParam::reverse_controlpoints ( bool  write)

◆ set_oncanvas_looks()

void Inkscape::LivePathEffect::PowerStrokePointArrayParam::set_oncanvas_looks ( CanvasItemCtrlShape  shape,
uint32_t  color 
)

Definition at line 169 of file powerstrokepointarray.cpp.

References knot_color, and knot_shape.

◆ set_pwd2()

void Inkscape::LivePathEffect::PowerStrokePointArrayParam::set_pwd2 ( Geom::Piecewise< Geom::D2< Geom::SBasis > > const &  pwd2_in,
Geom::Piecewise< Geom::D2< Geom::SBasis > > const &  pwd2_normal_in 
)

◆ set_scale_width()

void Inkscape::LivePathEffect::PowerStrokePointArrayParam::set_scale_width ( double  scale_width)
inline

Friends And Related Symbol Documentation

◆ PowerStrokePointArrayParamKnotHolderEntity

Definition at line 59 of file powerstrokepointarray.h.

Referenced by addKnotHolderEntities().

Member Data Documentation

◆ _scale_width

double Inkscape::LivePathEffect::PowerStrokePointArrayParam::_scale_width

◆ current_path

◆ knot_color

guint32 Inkscape::LivePathEffect::PowerStrokePointArrayParam::knot_color
private

◆ knot_shape

Inkscape::CanvasItemCtrlShape Inkscape::LivePathEffect::PowerStrokePointArrayParam::knot_shape = Inkscape::CANVAS_ITEM_CTRL_SHAPE_DIAMOND
private

Definition at line 63 of file powerstrokepointarray.h.

Referenced by set_oncanvas_looks().

◆ last_pwd2

Geom::Piecewise<Geom::D2<Geom::SBasis> > Inkscape::LivePathEffect::PowerStrokePointArrayParam::last_pwd2
private

◆ last_pwd2_normal

Geom::Piecewise<Geom::D2<Geom::SBasis> > Inkscape::LivePathEffect::PowerStrokePointArrayParam::last_pwd2_normal
private

Definition at line 67 of file powerstrokepointarray.h.

Referenced by get_pwd2_normal(), and set_pwd2().

◆ unplaced


The documentation for this class was generated from the following files: