Lines Matching defs:snap

13 #include "snap.h"
19 void PureTransform::snap(::SnapManager *sm, std::vector<Inkscape::SnapCandidatePoint> const &points, Geom::Point const &pointer) {
56 // requirements (this can happen when scaling, see PureScale::snap()), then freeSnap might never see the
66 Inkscape::SnappedPoint snapped_point = snap(sm, *j, (*i).getPoint(), bbox); // Calls the snap() method of the derived classes
77 // We snapped; keep track of the best snap
82 // So we didn't snap for this point
85 // We might still need to apply a constraint though, if we tried a constrained snap. And
86 // in case of a free snap we might have use for the transformed point, so let's return that
137 SnappedPoint PureTranslate::snap(::SnapManager *sm, SnapCandidatePoint const &p, Geom::Point /*pt_orig*/, Geom::OptRect const &bbox_to_snap) const {
141 SnappedPoint PureTranslateConstrained::snap(::SnapManager *sm, SnapCandidatePoint const &p, Geom::Point pt_orig, Geom::OptRect const &bbox_to_snap) const {
200 // move in that specific direction; therefore it should only snap in that direction, so this
201 // then becomes a constrained snap; otherwise we can use a free snap;
202 SnappedPoint PureScale::snap(::SnapManager *sm, SnapCandidatePoint const &p, Geom::Point pt_orig, Geom::OptRect const &bbox_to_snap) const {
215 SnappedPoint PureScaleConstrained::snap(::SnapManager *sm, SnapCandidatePoint const &p, Geom::Point pt_orig, Geom::OptRect const &bbox_to_snap) const {
240 SnappedPoint PureStretchConstrained::snap(::SnapManager *sm, SnapCandidatePoint const &p, Geom::Point pt_orig, Geom::OptRect const &bbox_to_snap) const {
292 SnappedPoint PureSkewConstrained::snap(::SnapManager *sm, SnapCandidatePoint const &p, Geom::Point pt_orig, Geom::OptRect const &bbox_to_snap) const {
323 SnappedPoint PureRotateConstrained::snap(::SnapManager *sm, SnapCandidatePoint const &p, Geom::Point pt_orig, Geom::OptRect const &bbox_to_snap) const {
343 if (Geom::L2(b) < 1e-9) { // points too close to the rotation center will not move. Don't try to snap these
344 // as they will always yield a perfect snap result if they're already snapped beforehand (e.g.
351 // the snap candidates. But hey, we're iterating here anyway.