Inkscape
Vector Graphics Editor
|
Snap to guides. More...
#include <guide-snapper.h>
Public Member Functions | |
GuideSnapper (SnapManager *sm, Geom::Coord const d) | |
bool | ThisSnapperMightSnap () const override |
Geom::Coord | getSnapperTolerance () const override |
bool | getSnapperAlwaysSnap (SnapSourceType const &source) const override |
![]() | |
LineSnapper (SnapManager *sm, Geom::Coord const d) | |
void | freeSnap (IntermSnapResults &isr, Inkscape::SnapCandidatePoint const &p, Geom::OptRect const &bbox_to_snap, std::vector< SPObject const * > const *it, std::vector< Inkscape::SnapCandidatePoint > *unselected_nodes) const override |
void | constrainedSnap (IntermSnapResults &isr, Inkscape::SnapCandidatePoint const &p, Geom::OptRect const &bbox_to_snap, SnapConstraint const &c, std::vector< SPObject const * > const *it, std::vector< SnapCandidatePoint > *unselected_nodes) const override |
![]() | |
Snapper (SnapManager *sm, ::Geom::Coord const t) | |
Construct new Snapper for named view. | |
virtual | ~Snapper ()=default |
void | setEnabled (bool s) |
void | setSnapVisibleOnly (bool s) |
bool | getEnabled () const |
bool | getSnapVisibleOnly () const |
Private Member Functions | |
LineList | _getSnapLines (Geom::Point const &p) const override |
void | _addSnappedLine (IntermSnapResults &isr, Geom::Point const &snapped_point, Geom::Coord const &snapped_distance, SnapSourceType const &source, long source_num, Geom::Point const &normal_to_line, Geom::Point const &point_on_line) const override |
void | _addSnappedLinesOrigin (IntermSnapResults &isr, Geom::Point const &origin, Geom::Coord const &snapped_distance, SnapSourceType const &source, long source_num, bool constrained_snap) const override |
void | _addSnappedLinePerpendicularly (IntermSnapResults &isr, Geom::Point const &snapped_point, Geom::Coord const &snapped_distance, SnapSourceType const &source, long source_num, bool constrained_snap) const override |
void | _addSnappedPoint (IntermSnapResults &isr, Geom::Point const &snapped_point, Geom::Coord const &snapped_distance, SnapSourceType const &source, long source_num, bool constrained_snap) const override |
Additional Inherited Members | |
![]() | |
typedef std::list< std::pair< Geom::Point, Geom::Point > > | LineList |
![]() | |
SnapManager * | _snapmanager |
bool | _snap_enabled |
true if this snapper is enabled, otherwise false | |
bool | _snap_visible_only |
Snap to guides.
Definition at line 25 of file guide-snapper.h.
Inkscape::GuideSnapper::GuideSnapper | ( | SnapManager * | sm, |
Geom::Coord const | d | ||
) |
Definition at line 21 of file guide-snapper.cpp.
|
overrideprivatevirtual |
Implements Inkscape::LineSnapper.
Definition at line 72 of file guide-snapper.cpp.
References IntermSnapResults::guide_lines, and Inkscape::SNAPTARGET_GUIDE.
|
overrideprivatevirtual |
Implements Inkscape::LineSnapper.
Definition at line 84 of file guide-snapper.cpp.
References IntermSnapResults::points, and Inkscape::SNAPTARGET_GUIDE_PERPENDICULAR.
|
overrideprivatevirtual |
Reimplemented from Inkscape::LineSnapper.
Definition at line 78 of file guide-snapper.cpp.
References origin, IntermSnapResults::points, and Inkscape::SNAPTARGET_GUIDE_ORIGIN.
|
overrideprivatevirtual |
Implements Inkscape::LineSnapper.
Definition at line 90 of file guide-snapper.cpp.
References IntermSnapResults::points, and Inkscape::SNAPTARGET_GUIDE.
|
overrideprivatevirtual |
p | Point that we are trying to snap. |
Implements Inkscape::LineSnapper.
Definition at line 41 of file guide-snapper.cpp.
|
overridevirtual |
Implements Inkscape::Snapper.
Definition at line 34 of file guide-snapper.cpp.
References Inkscape::Preferences::get(), Inkscape::Preferences::getBool(), Inkscape::SNAPSOURCE_GUIDE, and Inkscape::SNAPSOURCE_GUIDE_ORIGIN.
|
overridevirtual |
Implements Inkscape::Snapper.
Definition at line 27 of file guide-snapper.cpp.
References SPDesktop::current_zoom().
|
overridevirtual |
Reimplemented from Inkscape::Snapper.
Definition at line 63 of file guide-snapper.cpp.
References Inkscape::SNAPTARGET_GUIDE.