Inkscape
Vector Graphics Editor
|
#include <nodesatellitesarray.h>
Public Member Functions | |
NodeSatelliteArrayParam (const Glib::ustring &label, const Glib::ustring &tip, const Glib::ustring &key, Inkscape::UI::Widget::Registry *wr, Effect *effect) | |
Gtk::Widget * | param_newWidget () override |
void | addKnotHolderEntities (KnotHolder *knotholder, SPItem *item) override |
virtual void | addKnotHolderEntities (KnotHolder *knotholder, SPItem *item, bool mirror) |
void | addCanvasIndicators (SPLPEItem const *lpeitem, std::vector< Geom::PathVector > &hp_vec) override |
virtual void | updateCanvasIndicators () |
virtual void | updateCanvasIndicators (bool mirror) |
bool | providesKnotHolderEntities () const override |
void | param_transform_multiply (Geom::Affine const &postmul, bool) override |
void | setUseDistance (bool use_knot_distance) |
void | setCurrentZoom (double current_zoom) |
void | setGlobalKnotHide (bool global_knot_hide) |
void | setEffectType (EffectType et) |
void | reloadKnots () |
void | updateAmmount (double amount) |
void | setPathVectorNodeSatellites (PathVectorNodeSatellites *pathVectorNodeSatellites, bool write=true) |
void | set_oncanvas_looks (Inkscape::CanvasItemCtrlShape shape, uint32_t color) |
ParamType | paramType () const override |
![]() | |
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 &) | |
ArrayParam & | operator= (const ArrayParam &) |
std::vector< std::vector< NodeSatellite > > 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< std::vector< NodeSatellite > > const &new_vector) |
void | param_set_default () override |
void | param_set_and_write_new_value (std::vector< std::vector< NodeSatellite > > const &new_vector) |
bool | valid_index (int index) const |
![]() | |
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 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 | 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 | |
NodeSatelliteArrayParam (const NodeSatelliteArrayParam &)=delete | |
NodeSatelliteArrayParam & | operator= (const NodeSatelliteArrayParam &)=delete |
Private Attributes | |
Inkscape::CanvasItemCtrlShape | _knot_shape = Inkscape::CANVAS_ITEM_CTRL_SHAPE_DIAMOND |
guint32 | _knot_color = 0xaaff8800 |
Geom::PathVector | _hp |
bool | _use_distance = false |
bool | _global_knot_hide = false |
double | _current_zoom = 0 |
EffectType | _effectType = FILLET_CHAMFER |
PathVectorNodeSatellites * | _last_pathvector_nodesatellites = nullptr |
Friends | |
class | FilletChamferKnotHolderEntity |
class | LPEFilletChamfer |
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 | writesvg (SVGOStringStream &str, std::vector< std::vector< NodeSatellite > > 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 |
std::vector< NodeSatellite > | 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< SatelliteReference > | readsvg (char const *const str) |
std::vector< NodeSatellite > | readsvg (char const *const str) |
![]() | |
void | param_write_to_repr (const char *svgd) |
![]() | |
std::vector< std::vector< NodeSatellite > > | _vector |
std::size_t | _default_size |
![]() | |
bool | _updating = false |
Inkscape::Display::TemporaryItem * | ownerlocator = nullptr |
Effect * | param_effect |
Definition at line 36 of file nodesatellitesarray.h.
Inkscape::LivePathEffect::NodeSatelliteArrayParam::NodeSatelliteArrayParam | ( | const Glib::ustring & | label, |
const Glib::ustring & | tip, | ||
const Glib::ustring & | key, | ||
Inkscape::UI::Widget::Registry * | wr, | ||
Effect * | effect | ||
) |
Definition at line 38 of file nodesatellitesarray.cpp.
References Inkscape::LivePathEffect::Parameter::param_widget_is_visible().
|
privatedelete |
|
overridevirtual |
Reimplemented from Inkscape::LivePathEffect::Parameter.
Definition at line 172 of file nodesatellitesarray.cpp.
References _hp.
|
overridevirtual |
Reimplemented from Inkscape::LivePathEffect::Parameter.
Definition at line 259 of file nodesatellitesarray.cpp.
References addKnotHolderEntities(), and item.
Referenced by addKnotHolderEntities(), and addKnotHolderEntities().
|
virtual |
Definition at line 193 of file nodesatellitesarray.cpp.
References _effectType, _knot_color, _last_pathvector_nodesatellites, Inkscape::LivePathEffect::ArrayParam< std::vector< NodeSatellite > >::_vector, KnotHolder::add(), addKnotHolderEntities(), Inkscape::CANVAS_ITEM_CTRL_TYPE_LPE, CHAMFER, KnotHolderEntity::create(), Inkscape::LivePathEffect::FILLET_CHAMFER, FilletChamferKnotHolderEntity, PathVectorNodeSatellites::getTotalNodeSatellites(), index, INVERSE_CHAMFER, INVERSE_FILLET, and item.
|
privatedelete |
|
inlineoverridevirtual |
Reimplemented from Inkscape::LivePathEffect::ArrayParam< std::vector< NodeSatellite > >.
Definition at line 42 of file nodesatellitesarray.h.
|
overridevirtual |
Reimplemented from Inkscape::LivePathEffect::Parameter.
Definition at line 177 of file nodesatellitesarray.cpp.
References Inkscape::LivePathEffect::ArrayParam< std::vector< NodeSatellite > >::_vector, Geom::Affine::expansionX(), Geom::Affine::expansionY(), Inkscape::Preferences::get(), Inkscape::Preferences::getBool(), and Inkscape::LivePathEffect::ArrayParam< std::vector< NodeSatellite > >::param_set_and_write_new_value().
|
inlineoverridevirtual |
Reimplemented from Inkscape::LivePathEffect::ArrayParam< std::vector< NodeSatellite > >.
Definition at line 69 of file nodesatellitesarray.h.
References Inkscape::LivePathEffect::NODE_SATELLITE_ARRAY.
|
inlineoverridevirtual |
Reimplemented from Inkscape::LivePathEffect::Parameter.
Definition at line 51 of file nodesatellitesarray.h.
void Inkscape::LivePathEffect::NodeSatelliteArrayParam::reloadKnots | ( | ) |
Definition at line 63 of file nodesatellitesarray.cpp.
References _global_knot_hide, Inkscape::UI::Tools::NodeTool::_shape_editors, desktop, SPDesktop::getTool(), item, Inkscape::UI::ShapeEditor::lpeknotholder, and Inkscape::UI::ShapeEditor::set_item().
Referenced by Inkscape::LivePathEffect::LPEFilletChamfer::doBeforeEffect().
void Inkscape::LivePathEffect::NodeSatelliteArrayParam::set_oncanvas_looks | ( | Inkscape::CanvasItemCtrlShape | shape, |
uint32_t | color | ||
) |
Definition at line 46 of file nodesatellitesarray.cpp.
References _knot_color, and _knot_shape.
void Inkscape::LivePathEffect::NodeSatelliteArrayParam::setCurrentZoom | ( | double | current_zoom | ) |
Definition at line 87 of file nodesatellitesarray.cpp.
References _current_zoom.
Referenced by Inkscape::LivePathEffect::LPEFilletChamfer::doBeforeEffect().
void Inkscape::LivePathEffect::NodeSatelliteArrayParam::setEffectType | ( | EffectType | et | ) |
Definition at line 97 of file nodesatellitesarray.cpp.
References _effectType.
Referenced by Inkscape::LivePathEffect::LPEFilletChamfer::doBeforeEffect().
void Inkscape::LivePathEffect::NodeSatelliteArrayParam::setGlobalKnotHide | ( | bool | global_knot_hide | ) |
Definition at line 92 of file nodesatellitesarray.cpp.
References _global_knot_hide.
void Inkscape::LivePathEffect::NodeSatelliteArrayParam::setPathVectorNodeSatellites | ( | PathVectorNodeSatellites * | pathVectorNodeSatellites, |
bool | write = true |
||
) |
Definition at line 52 of file nodesatellitesarray.cpp.
References _last_pathvector_nodesatellites, PathVectorNodeSatellites::getNodeSatellites(), Inkscape::LivePathEffect::ArrayParam< std::vector< NodeSatellite > >::param_set_and_write_new_value(), and Inkscape::LivePathEffect::ArrayParam< std::vector< NodeSatellite > >::param_setValue().
Referenced by Inkscape::LivePathEffect::LPEFilletChamfer::doBeforeEffect(), Inkscape::LivePathEffect::LPEFilletChamfer::doOnApply(), Inkscape::LivePathEffect::LPEFilletChamfer::updateAmount(), Inkscape::LivePathEffect::LPEFilletChamfer::updateChamferSteps(), and Inkscape::LivePathEffect::LPEFilletChamfer::updateNodeSatelliteType().
void Inkscape::LivePathEffect::NodeSatelliteArrayParam::setUseDistance | ( | bool | use_knot_distance | ) |
Definition at line 82 of file nodesatellitesarray.cpp.
References _use_distance.
Referenced by Inkscape::LivePathEffect::LPEFilletChamfer::doBeforeEffect().
void Inkscape::LivePathEffect::NodeSatelliteArrayParam::updateAmmount | ( | double | amount | ) |
Definition at line 242 of file nodesatellitesarray.cpp.
References _last_pathvector_nodesatellites, Inkscape::LivePathEffect::ArrayParam< std::vector< NodeSatellite > >::_vector, PathVectorNodeSatellites::getNodeSatellites(), PathVectorNodeSatellites::getPathVector(), Geom::Curve::initialPoint(), Inkscape::LivePathEffect::Effect::isNodePointSelected(), and Inkscape::LivePathEffect::Parameter::param_effect.
Referenced by Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_set().
|
virtual |
Definition at line 167 of file nodesatellitesarray.cpp.
References updateCanvasIndicators().
Referenced by updateCanvasIndicators(), and updateCanvasIndicators().
|
virtual |
Definition at line 102 of file nodesatellitesarray.cpp.
References _effectType, _global_knot_hide, _hp, _last_pathvector_nodesatellites, Inkscape::LivePathEffect::ArrayParam< std::vector< NodeSatellite > >::_vector, Geom::PathVector::clear(), count_path_nodes(), Geom::PathVector::curveAt(), Geom::PathVector::empty(), Inkscape::LivePathEffect::FILLET_CHAMFER, PathVectorNodeSatellites::getPathVector(), Geom::Curve::length(), and updateCanvasIndicators().
|
friend |
Definition at line 67 of file nodesatellitesarray.h.
Referenced by addKnotHolderEntities().
|
friend |
Definition at line 68 of file nodesatellitesarray.h.
|
private |
Definition at line 79 of file nodesatellitesarray.h.
Referenced by Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_get(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_set(), and setCurrentZoom().
|
private |
Definition at line 80 of file nodesatellitesarray.h.
Referenced by addKnotHolderEntities(), setEffectType(), and updateCanvasIndicators().
|
private |
Definition at line 78 of file nodesatellitesarray.h.
Referenced by Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_get(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_set(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_set_offset(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_ungrabbed(), reloadKnots(), setGlobalKnotHide(), and updateCanvasIndicators().
|
private |
Definition at line 76 of file nodesatellitesarray.h.
Referenced by addCanvasIndicators(), and updateCanvasIndicators().
|
private |
Definition at line 75 of file nodesatellitesarray.h.
Referenced by addKnotHolderEntities(), and set_oncanvas_looks().
|
private |
Definition at line 74 of file nodesatellitesarray.h.
Referenced by set_oncanvas_looks().
|
private |
Definition at line 81 of file nodesatellitesarray.h.
Referenced by addKnotHolderEntities(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_click(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_get(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_set(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_set_offset(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_ungrabbed(), setPathVectorNodeSatellites(), updateAmmount(), and updateCanvasIndicators().
|
private |
Definition at line 77 of file nodesatellitesarray.h.
Referenced by Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_click(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_set_offset(), and setUseDistance().