Inkscape
Vector Graphics Editor
|
KnotHolderEntity definition. More...
#include <knot-holder-entity.h>
Public Member Functions | |
virtual | ~KnotHolderEntity () |
void | create (SPDesktop *desktop, SPItem *item, KnotHolder *parent, Inkscape::CanvasItemCtrlType type=Inkscape::CANVAS_ITEM_CTRL_TYPE_DEFAULT, Glib::ustring const &name="unknown", char const *tip="", uint32_t color=0xffffff00) |
virtual void | knot_set (Geom::Point const &p, Geom::Point const &origin, unsigned state)=0 |
virtual void | knot_grabbed (Geom::Point const &, unsigned) |
virtual void | knot_ungrabbed (Geom::Point const &p, Geom::Point const &origin, unsigned state)=0 |
virtual bool | knot_missing () const |
virtual Geom::Point | knot_get () const =0 |
virtual void | knot_click (unsigned) |
virtual bool | set_item_clickpos (Geom::Point loc) |
virtual void | on_created () |
virtual void | update_knot () |
Geom::Point | snap_knot_position (Geom::Point const &p, unsigned state) |
Geom::Point | snap_knot_position_constrained (Geom::Point const &p, Inkscape::Snapper::SnapConstraint const &constraint, unsigned state) |
Public Attributes | |
SPKnot * | knot = nullptr |
SPItem * | item = nullptr |
SPDesktop * | desktop = nullptr |
KnotHolder * | parent_holder = nullptr |
Private Attributes | |
sigc::scoped_connection | _mousedown_connection |
sigc::scoped_connection | _moved_connection |
sigc::scoped_connection | _click_connection |
sigc::scoped_connection | _ungrabbed_connection |
KnotHolderEntity definition.
Definition at line 43 of file knot-holder-entity.h.
|
virtual |
Definition at line 64 of file knot-holder-entity.cpp.
References knot, and SPKnot::unref().
void KnotHolderEntity::create | ( | SPDesktop * | desktop, |
SPItem * | item, | ||
KnotHolder * | parent, | ||
Inkscape::CanvasItemCtrlType | type = Inkscape::CANVAS_ITEM_CTRL_TYPE_DEFAULT , |
||
Glib::ustring const & | name = "unknown" , |
||
char const * | tip = "" , |
||
uint32_t | color = 0xffffff00 |
||
) |
Definition at line 36 of file knot-holder-entity.cpp.
References _click_connection, _mousedown_connection, _moved_connection, _ungrabbed_connection, SPKnot::click_signal, desktop, item, knot, KnotHolder::knot_clicked_handler(), KnotHolder::knot_mousedown_handler(), KnotHolder::knot_moved_handler(), KnotHolder::knot_ungrabbed_handler(), SPKnot::mousedown_signal, SPKnot::moved_signal, name, on_created(), parent, parent_holder, SPKnot::show(), SPKnot::ungrabbed_signal, and update_knot().
Referenced by KnotHolder::add_hatch_knotholder(), Inkscape::LivePathEffect::LPEAngleBisector::addKnotHolderEntities(), Inkscape::LivePathEffect::LPEParallel::addKnotHolderEntities(), Inkscape::LivePathEffect::LPEPerpBisector::addKnotHolderEntities(), Inkscape::LivePathEffect::LPETiling::addKnotHolderEntities(), Inkscape::LivePathEffect::LPEBendPath::addKnotHolderEntities(), Inkscape::LivePathEffect::LPEKnot::addKnotHolderEntities(), Inkscape::LivePathEffect::LPEOffset::addKnotHolderEntities(), Inkscape::LivePathEffect::LPEPatternAlongPath::addKnotHolderEntities(), Inkscape::LivePathEffect::LPETangentToCurve::addKnotHolderEntities(), Inkscape::LivePathEffect::LPETaperStroke::addKnotHolderEntities(), Inkscape::LivePathEffect::PowerStrokePointArrayParam::addKnotHolderEntities(), Inkscape::LivePathEffect::NodeSatelliteArrayParam::addKnotHolderEntities(), and Inkscape::LivePathEffect::PowerStrokePointArrayParamKnotHolderEntity::knot_click().
|
inlinevirtual |
Definition at line 61 of file knot-holder-entity.h.
|
pure virtual |
Implemented in Inkscape::LivePathEffect::FilletChamferKnotHolderEntity, Inkscape::LivePathEffect::PowerStrokePointArrayParamKnotHolderEntity, PatternKnotHolderEntityXY, PatternKnotHolderEntityAngle, PatternKnotHolderEntityScale, HatchKnotHolderEntityXY, HatchKnotHolderEntityAngle, HatchKnotHolderEntityScale, FilterKnotHolderEntity, and BlurKnotHolderEntity.
Referenced by update_knot().
|
inlinevirtual |
Reimplemented in PatternKnotHolderEntityScale.
Definition at line 57 of file knot-holder-entity.h.
|
inlinevirtual |
Reimplemented in PatternKnotHolderEntity, and HatchKnotHolderEntity.
Definition at line 59 of file knot-holder-entity.h.
|
pure virtual |
|
pure virtual |
Implemented in LPEKnotHolderEntity, PatternKnotHolderEntity, HatchKnotHolderEntity, FilterKnotHolderEntity, and BlurKnotHolderEntity.
|
inlinevirtual |
Reimplemented in PatternKnotHolderEntity, PatternKnotHolderEntityXY, and BlurKnotHolderEntity.
Definition at line 64 of file knot-holder-entity.h.
Referenced by create(), and BlurKnotHolderEntity::on_created().
|
inlinevirtual |
Reimplemented in PatternKnotHolderEntity.
Definition at line 62 of file knot-holder-entity.h.
Geom::Point KnotHolderEntity::snap_knot_position | ( | Geom::Point const & | p, |
unsigned | state | ||
) |
Definition at line 88 of file knot-holder-entity.cpp.
References desktop, KnotHolder::getEditTransform(), SPDesktop::getNamedView(), SPItem::i2dt_affine(), item, parent_holder, SnapManager::setup(), SPNamedView::snap_manager, and Inkscape::SNAPSOURCE_NODE_HANDLE.
Referenced by Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_set(), Inkscape::LivePathEffect::PowerStrokePointArrayParamKnotHolderEntity::knot_set(), PatternKnotHolderEntityXY::knot_set(), PatternKnotHolderEntityScale::knot_set(), HatchKnotHolderEntityXY::knot_set(), HatchKnotHolderEntityScale::knot_set(), and FilterKnotHolderEntity::knot_set().
Geom::Point KnotHolderEntity::snap_knot_position_constrained | ( | Geom::Point const & | p, |
Inkscape::Snapper::SnapConstraint const & | constraint, | ||
unsigned | state | ||
) |
Definition at line 113 of file knot-holder-entity.cpp.
References desktop, Inkscape::Snapper::SnapConstraint::getDirection(), KnotHolder::getEditTransform(), SPDesktop::getNamedView(), Inkscape::Snapper::SnapConstraint::getPoint(), SPItem::i2dt_affine(), item, parent_holder, SnapManager::setup(), SPNamedView::snap_manager, and Inkscape::SNAPSOURCE_NODE_HANDLE.
|
virtual |
Reimplemented in PatternKnotHolderEntity, PatternKnotHolderEntityXY, and BlurKnotHolderEntity.
Definition at line 75 of file knot-holder-entity.cpp.
References _moved_connection, KnotHolder::getEditTransform(), SPKnot::hide(), SPItem::i2dt_affine(), Geom::Point::isFinite(), item, knot, knot_get(), parent_holder, SPKnot::setPosition(), and SP_KNOT_STATE_NORMAL.
Referenced by Inkscape::LivePathEffect::LPEBendPath::addKnotHolderEntities(), Inkscape::LivePathEffect::LPEPatternAlongPath::addKnotHolderEntities(), create(), Inkscape::LivePathEffect::PointParam::param_hide_knot(), Inkscape::LivePathEffect::PointParam::param_setValue(), PatternKnotHolderEntity::update_knot(), and BlurKnotHolderEntity::update_knot().
|
private |
Definition at line 79 of file knot-holder-entity.h.
Referenced by create().
|
private |
Definition at line 77 of file knot-holder-entity.h.
Referenced by create().
|
private |
Definition at line 78 of file knot-holder-entity.h.
Referenced by create(), and update_knot().
|
private |
Definition at line 80 of file knot-holder-entity.h.
Referenced by create().
SPDesktop* KnotHolderEntity::desktop = nullptr |
Definition at line 73 of file knot-holder-entity.h.
Referenced by create(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_click(), Inkscape::LivePathEffect::PowerStrokePointArrayParamKnotHolderEntity::knot_click(), PatternKnotHolderEntityXY::on_created(), BlurKnotHolderEntity::on_created(), snap_knot_position(), and snap_knot_position_constrained().
SPItem* KnotHolderEntity::item = nullptr |
Definition at line 72 of file knot-holder-entity.h.
Referenced by BlurKnotHolderEntity::_blur(), HatchKnotHolderEntity::_hatch(), PatternKnotHolderEntity::_pattern(), BlurKnotHolderEntity::_pos(), Inkscape::LivePathEffect::PointParam::addKnotHolderEntities(), create(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_click(), Inkscape::LivePathEffect::PowerStrokePointArrayParamKnotHolderEntity::knot_click(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_get(), FilterKnotHolderEntity::knot_get(), BlurKnotHolderEntity::knot_get(), PatternKnotHolderEntityScale::knot_grabbed(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_set(), Inkscape::LivePathEffect::PowerStrokePointArrayParamKnotHolderEntity::knot_set(), PatternKnotHolderEntityXY::knot_set(), PatternKnotHolderEntityAngle::knot_set(), PatternKnotHolderEntityScale::knot_set(), HatchKnotHolderEntityXY::knot_set(), HatchKnotHolderEntityAngle::knot_set(), HatchKnotHolderEntityScale::knot_set(), FilterKnotHolderEntity::knot_set(), PatternKnotHolderEntity::offset_to_cell(), PatternKnotHolderEntity::on_created(), BlurKnotHolderEntity::on_created(), snap_knot_position(), snap_knot_position_constrained(), update_knot(), PatternKnotHolderEntityXY::update_knot(), and BlurKnotHolderEntity::update_knot().
SPKnot* KnotHolderEntity::knot = nullptr |
Definition at line 71 of file knot-holder-entity.h.
Referenced by Inkscape::LivePathEffect::LPEBendPath::addKnotHolderEntities(), Inkscape::LivePathEffect::LPEOffset::addKnotHolderEntities(), Inkscape::LivePathEffect::LPEPatternAlongPath::addKnotHolderEntities(), create(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_click(), Inkscape::LivePathEffect::PowerStrokePointArrayParamKnotHolderEntity::knot_click(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_get(), Inkscape::LivePathEffect::PowerStrokePointArrayParamKnotHolderEntity::knot_set(), Inkscape::LivePathEffect::PowerStrokePointArrayParamKnotHolderEntity::knot_set_offset(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_set_offset(), Inkscape::LivePathEffect::PointParam::param_hide_knot(), update_knot(), BlurKnotHolderEntity::update_knot(), and ~KnotHolderEntity().
KnotHolder* KnotHolderEntity::parent_holder = nullptr |
Definition at line 74 of file knot-holder-entity.h.
Referenced by create(), Inkscape::LivePathEffect::PowerStrokePointArrayParamKnotHolderEntity::knot_click(), Inkscape::LivePathEffect::PowerStrokePointArrayParamKnotHolderEntity::knot_set_offset(), Inkscape::LivePathEffect::FilletChamferKnotHolderEntity::knot_set_offset(), snap_knot_position(), snap_knot_position_constrained(), update_knot(), and Inkscape::LivePathEffect::PointParam::~PointParam().