Lines Matching refs:snap

22 #include "snap.h"
23 #include "snap-enums.h"
29 #include "display/snap-indicator.h"
86 // If we're asking if some snapper might snap RIGHT NOW (without the snap being postponed)...
146 _snapindicator = false; // prevent other methods from drawing a snap indicator; we want to control this here
169 // It will snap to the grid for which we find the closest snap. This might be a different
187 // Find the best snap for this grid, including intersections of the grid-lines
194 // doesn't tell us anything about which node to snap
219 p = s.getPoint(); // If we didn't snap, then we will return the point projected onto the constraint
241 // to snap to things which don't intersect with the constraint line; this is basically
246 // only change the snap indicator if we really snapped to something
267 // only change the snap indicator if we really snapped to something
278 * and will try to snap the SnapCandidatePoint to only the closest constraint
297 // We haven't tried to snap yet; we will first determine which constraint is closest to where we are now,
303 // Project the mouse pointer onto the constraint; In case we don't snap then we will
335 // to snap to things which don't intersect with the constraint line; this is basically
342 // Try to snap along the closest constraint
359 // p is at an arbitrary angle. Now we should snap this angle to specific increments.
378 sp = multipleConstrainedSnaps(p, constraints); // Constraints will always be applied, even if we didn't snap
452 ** if any of these points, when transformed, snap to anything. If they do, we return the
461 // We will try to snap a set of points, but we don't want to have a snap indicator displayed
467 transform.snap(this, points, pointer);
502 // Display all snap candidates on the canvas
529 // We might have collected the paths only to snap to their intersection, without the intention to snap to the paths themselves
530 // Therefore we explicitly check whether the paths should be considered as snap targets themselves
551 // When doing a constrained snap however, we're already at an intersection of the constrained line and
600 // Filter out all snap targets that do NOT include a path; this is useful when we try to insert
626 // std::cout << "Finding the best snap..." << std::endl;
630 if (onScreen || allowOffScreen) { // Only snap to points which are not off the screen
631 if ((*i).getSnapDistance() <= (*i).getTolerance()) { // Only snap to points within snapping range
642 // Update the snap indicator, if requested
769 * Mark the location of the snap source (not the snap target!) on the canvas by drawing a symbol.
772 * @param p The transformed position of the source point, paired with an identifier of the type of the snap source.