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

#include <path.h>

Inheritance diagram for Inkscape::LivePathEffect::PathParam:
Inkscape::LivePathEffect::Parameter Inkscape::LivePathEffect::OriginalPathParam Inkscape::LivePathEffect::VonKochPathParam Inkscape::LivePathEffect::VonKochRefPathParam

Public Member Functions

 PathParam (const Glib::ustring &label, const Glib::ustring &tip, const Glib::ustring &key, Inkscape::UI::Widget::Registry *wr, Effect *effect, const gchar *default_value="M0,0 L1,1")
 
 ~PathParam () override
 
Geom::PathVector const & get_pathvector () const
 
void reload ()
 
Geom::Affine get_relative_affine ()
 
Geom::Piecewise< Geom::D2< Geom::SBasis > > const & get_pwd2 ()
 
Gtk::Widget * param_newWidget () override
 
std::vector< SPObject * > param_get_satellites () override
 
bool param_readSVGValue (const gchar *strvalue) override
 
Glib::ustring param_getSVGValue () const override
 
Glib::ustring param_getDefaultSVGValue () const override
 
void param_set_default () override
 
void param_update_default (const gchar *default_value) override
 
void param_set_and_write_default ()
 
void set_new_value (Geom::PathVector const &newpath, bool write_to_svg)
 
void set_new_value (Geom::Piecewise< Geom::D2< Geom::SBasis > > const &newpath, bool write_to_svg)
 
void set_buttons (bool edit_button, bool copy_button, bool paste_button, bool link_button)
 
void param_editOncanvas (SPItem *item, SPDesktop *dt) override
 
void param_setup_nodepath (Inkscape::NodePath::Path *np) override
 
void addCanvasIndicators (SPLPEItem const *lpeitem, std::vector< Geom::PathVector > &hp_vec) override
 
void param_transform_multiply (Geom::Affine const &postmul, bool set) override
 
void setFromOriginalD (bool from_original_d)
 
SPItemgetItem () const
 
void paste_param_path (const char *svgd)
 
void on_paste_button_click ()
 
void linkitem (Glib::ustring pathid)
 
ParamType paramType () const override
 
- 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 bool param_readSVGValue (char const *strvalue)=0
 
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
 
virtual void param_update_default (char const *default_value)=0
 
Glib::ustring const * param_getTooltip () const
 
virtual bool providesKnotHolderEntities () const
 
virtual void addKnotHolderEntities (KnotHolder *, SPItem *)
 
void param_higlight (bool highlight)
 
void change_selection (Inkscape::Selection *selection)
 
void update_satellites ()
 
EffectType effectType () const
 
void connect_selection_changed ()
 

Public Attributes

sigc::signal< void()> signal_path_pasted
 
sigc::signal< void()> signal_path_changed
 
bool changed
 
- 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
 

Protected Member Functions

void ensure_pwd2 ()
 
void ref_changed (SPObject *old_ref, SPObject *new_ref)
 
void unlink ()
 
void start_listening (SPObject *to)
 
void quit_listening ()
 
void linked_deleted (SPObject *deleted)
 
void linked_modified (SPObject *linked_obj, guint flags)
 
void linked_transformed (Geom::Affine const *rel_transf, SPItem *moved_item)
 
virtual void linked_modified_callback (SPObject *linked_obj, guint flags)
 
void on_edit_button_click ()
 
void on_copy_button_click ()
 
void on_link_button_click ()
 
void emit_changed ()
 
- Protected Member Functions inherited from Inkscape::LivePathEffect::Parameter
void param_write_to_repr (const char *svgd)
 

Protected Attributes

Geom::PathVector _pathvector
 
Geom::Piecewise< Geom::D2< Geom::SBasis > > _pwd2
 
bool must_recalculate_pwd2
 
gchar * href
 
PathReference ref
 
sigc::connection ref_changed_connection
 
sigc::connection linked_deleted_connection
 
sigc::connection linked_modified_connection
 
sigc::connection linked_transformed_connection
 
gchar * defvalue
 
bool _from_original_d
 
- Protected Attributes inherited from Inkscape::LivePathEffect::Parameter
bool _updating = false
 
Inkscape::Display::TemporaryItemownerlocator = nullptr
 
Effectparam_effect
 

Private Member Functions

 PathParam (const PathParam &)=delete
 
PathParamoperator= (const PathParam &)=delete
 

Private Attributes

bool _edit_button
 
bool _copy_button
 
bool _paste_button
 
bool _link_button
 

Friends

class LPEFillBetweenStrokes
 
class LPEPatternAlongPath
 
class LPEBendPath
 
class LPECurveStitch
 
class LPEAttachPath
 
class LPEEnvelope
 
class LPEBoundingBox
 
class LPEInterpolate
 
class LPEVonKoch
 

Detailed Description

Definition at line 25 of file path.h.

Constructor & Destructor Documentation

◆ PathParam() [1/2]

Inkscape::LivePathEffect::PathParam::PathParam ( const Glib::ustring &  label,
const Glib::ustring &  tip,
const Glib::ustring &  key,
Inkscape::UI::Widget::Registry wr,
Effect effect,
const gchar *  default_value = "M0,0 L1,1" 
)

◆ ~PathParam()

Inkscape::LivePathEffect::PathParam::~PathParam ( )
override

Definition at line 69 of file path.cpp.

References defvalue, quit_listening(), and unlink().

◆ PathParam() [2/2]

Inkscape::LivePathEffect::PathParam::PathParam ( const PathParam )
privatedelete

Member Function Documentation

◆ addCanvasIndicators()

void Inkscape::LivePathEffect::PathParam::addCanvasIndicators ( SPLPEItem const *  lpeitem,
std::vector< Geom::PathVector > &  hp_vec 
)
overridevirtual

Reimplemented from Inkscape::LivePathEffect::Parameter.

Definition at line 314 of file path.cpp.

References _pathvector.

◆ emit_changed()

void Inkscape::LivePathEffect::PathParam::emit_changed ( )
protected

Definition at line 402 of file path.cpp.

References changed, and signal_path_changed.

Referenced by linked_modified_callback(), param_readSVGValue(), set_new_value(), and set_new_value().

◆ ensure_pwd2()

void Inkscape::LivePathEffect::PathParam::ensure_pwd2 ( )
protected

◆ get_pathvector()

◆ get_pwd2()

◆ get_relative_affine()

◆ getItem()

SPItem * Inkscape::LivePathEffect::PathParam::getItem ( ) const
inline

◆ linked_deleted()

void Inkscape::LivePathEffect::PathParam::linked_deleted ( SPObject deleted)
protected

Definition at line 451 of file path.cpp.

References _pathvector, quit_listening(), and set_new_value().

Referenced by start_listening().

◆ linked_modified()

void Inkscape::LivePathEffect::PathParam::linked_modified ( SPObject linked_obj,
guint  flags 
)
protected

Definition at line 458 of file path.cpp.

References linked_modified_callback().

Referenced by start_listening().

◆ linked_modified_callback()

◆ linked_transformed()

void Inkscape::LivePathEffect::PathParam::linked_transformed ( Geom::Affine const *  rel_transf,
SPItem moved_item 
)
protected

Definition at line 467 of file path.cpp.

References linked_modified_callback().

Referenced by start_listening().

◆ linkitem()

void Inkscape::LivePathEffect::PathParam::linkitem ( Glib::ustring  pathid)

◆ on_copy_button_click()

void Inkscape::LivePathEffect::PathParam::on_copy_button_click ( )
protected

◆ on_edit_button_click()

void Inkscape::LivePathEffect::PathParam::on_edit_button_click ( )
protected

Definition at line 528 of file path.cpp.

References item, and param_editOncanvas().

Referenced by param_newWidget().

◆ on_link_button_click()

void Inkscape::LivePathEffect::PathParam::on_link_button_click ( )
protected

◆ on_paste_button_click()

◆ operator=()

PathParam & Inkscape::LivePathEffect::PathParam::operator= ( const PathParam )
privatedelete

◆ param_editOncanvas()

◆ param_get_satellites()

std::vector< SPObject * > Inkscape::LivePathEffect::PathParam::param_get_satellites ( )
overridevirtual

◆ param_getDefaultSVGValue()

Glib::ustring Inkscape::LivePathEffect::PathParam::param_getDefaultSVGValue ( ) const
overridevirtual

Implements Inkscape::LivePathEffect::Parameter.

Definition at line 206 of file path.cpp.

References defvalue.

◆ param_getSVGValue()

Glib::ustring Inkscape::LivePathEffect::PathParam::param_getSVGValue ( ) const
overridevirtual

Implements Inkscape::LivePathEffect::Parameter.

Definition at line 196 of file path.cpp.

References _pathvector, href, and sp_svg_write_path().

Referenced by param_readSVGValue().

◆ param_newWidget()

◆ param_readSVGValue()

◆ param_set_and_write_default()

void Inkscape::LivePathEffect::PathParam::param_set_and_write_default ( )

◆ param_set_default()

void Inkscape::LivePathEffect::PathParam::param_set_default ( )
overridevirtual

Implements Inkscape::LivePathEffect::Parameter.

Definition at line 112 of file path.cpp.

References defvalue, and param_readSVGValue().

◆ param_setup_nodepath()

void Inkscape::LivePathEffect::PathParam::param_setup_nodepath ( Inkscape::NodePath::Path *  np)
overridevirtual

◆ param_transform_multiply()

◆ param_update_default()

void Inkscape::LivePathEffect::PathParam::param_update_default ( const gchar *  default_value)
override

Definition at line 522 of file path.cpp.

References defvalue.

◆ paramType()

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

Implements Inkscape::LivePathEffect::Parameter.

Definition at line 67 of file path.h.

References Inkscape::LivePathEffect::PATH.

◆ paste_param_path()

void Inkscape::LivePathEffect::PathParam::paste_param_path ( const char *  svgd)

◆ quit_listening()

void Inkscape::LivePathEffect::PathParam::quit_listening ( )
protected

◆ ref_changed()

void Inkscape::LivePathEffect::PathParam::ref_changed ( SPObject old_ref,
SPObject new_ref 
)
protected

Definition at line 432 of file path.cpp.

References quit_listening(), and start_listening().

Referenced by PathParam().

◆ reload()

◆ set_buttons()

void Inkscape::LivePathEffect::PathParam::set_buttons ( bool  edit_button,
bool  copy_button,
bool  paste_button,
bool  link_button 
)

Definition at line 212 of file path.cpp.

References _copy_button, _edit_button, _link_button, and _paste_button.

◆ set_new_value() [1/2]

◆ set_new_value() [2/2]

◆ setFromOriginalD()

void Inkscape::LivePathEffect::PathParam::setFromOriginalD ( bool  from_original_d)
inline

Definition at line 57 of file path.h.

References _from_original_d.

◆ start_listening()

◆ unlink()

void Inkscape::LivePathEffect::PathParam::unlink ( )
protected

Friends And Related Symbol Documentation

◆ LPEAttachPath

friend class LPEAttachPath
friend

Definition at line 82 of file path.h.

◆ LPEBendPath

friend class LPEBendPath
friend

Definition at line 80 of file path.h.

◆ LPEBoundingBox

friend class LPEBoundingBox
friend

Definition at line 84 of file path.h.

◆ LPECurveStitch

friend class LPECurveStitch
friend

Definition at line 81 of file path.h.

◆ LPEEnvelope

friend class LPEEnvelope
friend

Definition at line 83 of file path.h.

◆ LPEFillBetweenStrokes

friend class LPEFillBetweenStrokes
friend

Definition at line 78 of file path.h.

◆ LPEInterpolate

friend class LPEInterpolate
friend

Definition at line 85 of file path.h.

◆ LPEPatternAlongPath

friend class LPEPatternAlongPath
friend

Definition at line 79 of file path.h.

◆ LPEVonKoch

friend class LPEVonKoch
friend

Definition at line 86 of file path.h.

Member Data Documentation

◆ _copy_button

bool Inkscape::LivePathEffect::PathParam::_copy_button
private

Definition at line 110 of file path.h.

Referenced by param_newWidget(), PathParam(), and set_buttons().

◆ _edit_button

bool Inkscape::LivePathEffect::PathParam::_edit_button
private

Definition at line 109 of file path.h.

Referenced by param_newWidget(), PathParam(), and set_buttons().

◆ _from_original_d

bool Inkscape::LivePathEffect::PathParam::_from_original_d
protected

◆ _link_button

bool Inkscape::LivePathEffect::PathParam::_link_button
private

Definition at line 112 of file path.h.

Referenced by param_newWidget(), PathParam(), and set_buttons().

◆ _paste_button

bool Inkscape::LivePathEffect::PathParam::_paste_button
private

Definition at line 111 of file path.h.

Referenced by param_newWidget(), PathParam(), and set_buttons().

◆ _pathvector

◆ _pwd2

Geom::Piecewise<Geom::D2<Geom::SBasis> > Inkscape::LivePathEffect::PathParam::_pwd2
protected

Definition at line 72 of file path.h.

Referenced by ensure_pwd2(), get_pwd2(), and set_new_value().

◆ changed

bool Inkscape::LivePathEffect::PathParam::changed

Definition at line 61 of file path.h.

Referenced by Inkscape::LivePathEffect::LPEBendPath::doEffect_pwd2(), and emit_changed().

◆ defvalue

gchar* Inkscape::LivePathEffect::PathParam::defvalue
protected

◆ href

gchar* Inkscape::LivePathEffect::PathParam::href
protected

◆ linked_deleted_connection

sigc::connection Inkscape::LivePathEffect::PathParam::linked_deleted_connection
protected

Definition at line 88 of file path.h.

Referenced by quit_listening(), and start_listening().

◆ linked_modified_connection

sigc::connection Inkscape::LivePathEffect::PathParam::linked_modified_connection
protected

Definition at line 89 of file path.h.

Referenced by quit_listening(), and start_listening().

◆ linked_transformed_connection

sigc::connection Inkscape::LivePathEffect::PathParam::linked_transformed_connection
protected

Definition at line 90 of file path.h.

Referenced by param_get_satellites(), quit_listening(), and start_listening().

◆ must_recalculate_pwd2

bool Inkscape::LivePathEffect::PathParam::must_recalculate_pwd2
protected

◆ ref

◆ ref_changed_connection

sigc::connection Inkscape::LivePathEffect::PathParam::ref_changed_connection
protected

Definition at line 87 of file path.h.

Referenced by PathParam().

◆ signal_path_changed

sigc::signal<void ()> Inkscape::LivePathEffect::PathParam::signal_path_changed

Definition at line 60 of file path.h.

Referenced by emit_changed().

◆ signal_path_pasted

sigc::signal<void ()> Inkscape::LivePathEffect::PathParam::signal_path_pasted

Definition at line 59 of file path.h.

Referenced by paste_param_path().


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