Inkscape
Vector Graphics Editor
|
#include <transformedpoint.h>
Public Member Functions | |
TransformedPointParam (const Glib::ustring &label, const Glib::ustring &tip, const Glib::ustring &key, Inkscape::UI::Widget::Registry *wr, Effect *effect, Geom::Point default_vector=Geom::Point(1, 0), bool dontTransform=false) | |
~TransformedPointParam () override | |
Gtk::Widget * | param_newWidget () override |
const gchar * | handleTip () const |
bool | param_readSVGValue (const gchar *strvalue) override |
Glib::ustring | param_getSVGValue () const override |
Glib::ustring | param_getDefaultSVGValue () const override |
Geom::Point | getVector () const |
Geom::Point | getOrigin () const |
void | setValues (Geom::Point const &new_origin, Geom::Point const &new_vector) |
void | setVector (Geom::Point const &new_vector) |
void | setOrigin (Geom::Point const &new_origin) |
void | param_set_default () override |
void | set_and_write_new_values (Geom::Point const &new_origin, Geom::Point const &new_vector) |
void | param_transform_multiply (Geom::Affine const &postmul, bool set) override |
void | set_vector_oncanvas_looks (CanvasItemCtrlShape shape, uint32_t color) |
void | set_oncanvas_color (guint32 color) |
Geom::Point | param_get_default () |
void | param_update_default (Geom::Point default_point) |
void | param_update_default (const gchar *default_point) override |
bool | providesKnotHolderEntities () const override |
virtual void | addKnotHolderEntities (KnotHolder *knotholder, SPDesktop *desktop, SPItem *item) |
ParamType | paramType () const override |
![]() | |
Parameter (Glib::ustring label, Glib::ustring tip, Glib::ustring key, Inkscape::UI::Widget::Registry *wr, Effect *effect) | |
virtual | ~Parameter () |
Parameter (const Parameter &)=delete | |
Parameter & | operator= (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 void | addKnotHolderEntities (KnotHolder *, SPItem *) |
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 () |
Private Member Functions | |
TransformedPointParam (const TransformedPointParam &)=delete | |
TransformedPointParam & | operator= (const TransformedPointParam &)=delete |
Private Attributes | |
Geom::Point | defvalue |
Geom::Point | origin |
Geom::Point | vector |
bool | noTransform |
Inkscape::CanvasItemCtrlShape | vec_knot_shape = Inkscape::CANVAS_ITEM_CTRL_SHAPE_DIAMOND |
The looks of the vector and origin knots oncanvas. | |
uint32_t | vec_knot_color = 0xffffb500 |
Friends | |
class | TransformedPointParamKnotHolderEntity_Vector |
Additional Inherited Members | |
![]() | |
sigc::scoped_connection | selection_changed_connection |
Glib::ustring | param_key |
Glib::ustring | param_tooltip |
Inkscape::UI::Widget::Registry * | param_wr |
Glib::ustring | param_label |
bool | oncanvas_editable |
bool | widget_is_visible |
bool | widget_is_enabled |
![]() | |
void | param_write_to_repr (const char *svgd) |
![]() | |
bool | _updating = false |
Inkscape::Display::TemporaryItem * | ownerlocator = nullptr |
Effect * | param_effect |
Definition at line 24 of file transformedpoint.h.
Inkscape::LivePathEffect::TransformedPointParam::TransformedPointParam | ( | const Glib::ustring & | label, |
const Glib::ustring & | tip, | ||
const Glib::ustring & | key, | ||
Inkscape::UI::Widget::Registry * | wr, | ||
Effect * | effect, | ||
Geom::Point | default_vector = Geom::Point(1,0) , |
||
bool | dontTransform = false |
||
) |
Definition at line 27 of file transformedpoint.cpp.
|
overridedefault |
|
privatedelete |
|
virtual |
Definition at line 181 of file transformedpoint.cpp.
References KnotHolder::add(), Inkscape::CANVAS_ITEM_CTRL_TYPE_LPE, desktop, handleTip(), item, TransformedPointParamKnotHolderEntity_Vector, and vec_knot_color.
|
inline |
Definition at line 43 of file transformedpoint.h.
References origin.
|
inline |
Definition at line 42 of file transformedpoint.h.
References vector.
Referenced by Inkscape::LivePathEffect::LPEAttachPath::doEffect().
|
inline |
Definition at line 36 of file transformedpoint.h.
References Inkscape::LivePathEffect::Parameter::param_tooltip.
Referenced by addKnotHolderEntities().
|
privatedelete |
|
inline |
Definition at line 56 of file transformedpoint.h.
References defvalue.
|
overridevirtual |
Implements Inkscape::LivePathEffect::Parameter.
Definition at line 81 of file transformedpoint.cpp.
References defvalue, and Inkscape::SVGOStringStream::str().
|
overridevirtual |
Implements Inkscape::LivePathEffect::Parameter.
Definition at line 73 of file transformedpoint.cpp.
References origin, Inkscape::SVGOStringStream::str(), and vector.
Referenced by set_and_write_new_values().
|
overridevirtual |
Implements Inkscape::LivePathEffect::Parameter.
Definition at line 108 of file transformedpoint.cpp.
References Inkscape::LivePathEffect::Effect::getRepr(), Inkscape::LivePathEffect::Effect::getSPDoc(), origin, Inkscape::UI::pack_start(), Inkscape::LivePathEffect::Parameter::param_effect, Inkscape::LivePathEffect::Parameter::param_key, Inkscape::LivePathEffect::Parameter::param_label, Inkscape::LivePathEffect::Parameter::param_tooltip, Inkscape::LivePathEffect::Parameter::param_wr, and vector.
|
override |
Definition at line 48 of file transformedpoint.cpp.
References setOrigin(), setVector(), and sp_svg_number_read_d().
|
overridevirtual |
Implements Inkscape::LivePathEffect::Parameter.
Definition at line 41 of file transformedpoint.cpp.
References defvalue, setOrigin(), and setVector().
|
overridevirtual |
Reimplemented from Inkscape::LivePathEffect::Parameter.
Definition at line 134 of file transformedpoint.cpp.
References noTransform, origin, set_and_write_new_values(), and vector.
|
override |
Definition at line 95 of file transformedpoint.cpp.
References param_update_default(), and sp_svg_number_read_d().
void Inkscape::LivePathEffect::TransformedPointParam::param_update_default | ( | Geom::Point | default_point | ) |
Definition at line 89 of file transformedpoint.cpp.
References defvalue.
Referenced by param_update_default().
|
inlineoverridevirtual |
Implements Inkscape::LivePathEffect::Parameter.
Definition at line 61 of file transformedpoint.h.
References Inkscape::LivePathEffect::TRANSFORMED_POINT.
|
inlineoverridevirtual |
Reimplemented from Inkscape::LivePathEffect::Parameter.
Definition at line 59 of file transformedpoint.h.
void Inkscape::LivePathEffect::TransformedPointParam::set_and_write_new_values | ( | Geom::Point const & | new_origin, |
Geom::Point const & | new_vector | ||
) |
Definition at line 127 of file transformedpoint.cpp.
References param_getSVGValue(), Inkscape::LivePathEffect::Parameter::param_write_to_repr(), and setValues().
Referenced by param_transform_multiply().
void Inkscape::LivePathEffect::TransformedPointParam::set_oncanvas_color | ( | guint32 | color | ) |
Definition at line 148 of file transformedpoint.cpp.
References vec_knot_color.
void Inkscape::LivePathEffect::TransformedPointParam::set_vector_oncanvas_looks | ( | CanvasItemCtrlShape | shape, |
uint32_t | color | ||
) |
Definition at line 141 of file transformedpoint.cpp.
References vec_knot_color, and vec_knot_shape.
|
inline |
Definition at line 46 of file transformedpoint.h.
References origin.
Referenced by Inkscape::LivePathEffect::LPEAttachPath::doEffect(), param_readSVGValue(), param_set_default(), and setValues().
|
inline |
Definition at line 44 of file transformedpoint.h.
References setOrigin(), and setVector().
Referenced by set_and_write_new_values().
|
inline |
Definition at line 45 of file transformedpoint.h.
References vector.
Referenced by param_readSVGValue(), param_set_default(), and setValues().
|
friend |
Definition at line 77 of file transformedpoint.h.
Referenced by addKnotHolderEntities().
|
private |
Definition at line 66 of file transformedpoint.h.
Referenced by param_get_default(), param_getDefaultSVGValue(), param_set_default(), and param_update_default().
|
private |
Definition at line 71 of file transformedpoint.h.
Referenced by param_transform_multiply().
|
private |
Definition at line 68 of file transformedpoint.h.
Referenced by getOrigin(), param_getSVGValue(), param_newWidget(), param_transform_multiply(), and setOrigin().
|
private |
Definition at line 75 of file transformedpoint.h.
Referenced by addKnotHolderEntities(), set_oncanvas_color(), and set_vector_oncanvas_looks().
|
private |
The looks of the vector and origin knots oncanvas.
Definition at line 74 of file transformedpoint.h.
Referenced by set_vector_oncanvas_looks().
|
private |
Definition at line 69 of file transformedpoint.h.
Referenced by getVector(), param_getSVGValue(), param_newWidget(), param_transform_multiply(), and setVector().