26 std::list<Inkscape::SnappedPoint>
points;
29 std::list<Inkscape::SnappedCurve>
curves;
62 std::vector<SPObject const *>
const *,
63 std::vector<SnapCandidatePoint> *)
const {};
126 printf(
"WARNING: Bug: trying to find the projection onto an undefined constraint");
142 std::vector<SPObject const *>
const *,
143 std::vector<SnapCandidatePoint> *)
const {};
Infinite line on a plane.
Axis-aligned rectangle that can be empty.
Two-dimensional point that doubles as a vector.
Class to store data for points which are snap candidates, either as a source or as a target.
Geom::Coord getRadius() const
SnapConstraint(Geom::Point const &p, Geom::Point const &d)
Geom::Point projection(Geom::Point const &p) const
SnapConstraint(Geom::Point const &p, Geom::Dim2 const &d)
SnapConstraint(Geom::Point const &p, Geom::Point const &d, Geom::Coord const &r)
Geom::Point getDirection() const
Geom::Point getPoint() const
SnapConstraint(Geom::Point const &d)
SnapConstraint(Geom::Line const &l)
Parent for classes that can snap points to something.
virtual Geom::Coord getSnapperTolerance() const =0
virtual bool ThisSnapperMightSnap() const
virtual bool getSnapperAlwaysSnap(SnapSourceType const &source) const =0
virtual void freeSnap(IntermSnapResults &, Inkscape::SnapCandidatePoint const &, Geom::OptRect const &, std::vector< SPObject const * > const *, std::vector< SnapCandidatePoint > *) const
void setSnapVisibleOnly(bool s)
virtual ~Snapper()=default
bool getSnapVisibleOnly() const
virtual void constrainedSnap(IntermSnapResults &, Inkscape::SnapCandidatePoint const &, Geom::OptRect const &, SnapConstraint const &, std::vector< SPObject const * > const *, std::vector< SnapCandidatePoint > *) const
SnapManager * _snapmanager
bool _snap_enabled
true if this snapper is enabled, otherwise false
SPObject is an abstract base class of all of the document nodes at the SVG document level.
Class to coordinate snapping operations.
Dim2
2D axis enumeration (X or Y).
double Coord
Floating point type used to store coordinates.
Point projection(Point const &p, Line const &line)
SBasis L2(D2< SBasis > const &a, unsigned k)
Helper class to stream background task notifications as a series of messages.
SnapSourceType
enumerations of snap source types and snap target types.
Some utility classes to store various kinds of snap candidates.
std::list< Inkscape::SnappedCurve > curves
std::list< Inkscape::SnappedLine > grid_lines
std::list< Inkscape::SnappedPoint > points
std::list< Inkscape::SnappedLine > guide_lines