summaryrefslogtreecommitdiffstats
path: root/src/object-snapper.h
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2011-10-27 04:55:51 +0000
committerJon A. Cruz <jon@joncruz.org>2011-10-27 04:55:51 +0000
commit2633767789e4264b13ef91a684accf734fb4e94f (patch)
tree0f6bc8d758b8e4bcf01d2dd393166907906c156e /src/object-snapper.h
parentCleanup pass on documentation that was dumping garbage into doxygen output. (diff)
downloadinkscape-2633767789e4264b13ef91a684accf734fb4e94f.tar.gz
inkscape-2633767789e4264b13ef91a684accf734fb4e94f.zip
Fixing more broken and split doc comments.
(bzr r10697)
Diffstat (limited to 'src/object-snapper.h')
-rw-r--r--src/object-snapper.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/object-snapper.h b/src/object-snapper.h
index 5526040f3..d51cade93 100644
--- a/src/object-snapper.h
+++ b/src/object-snapper.h
@@ -32,9 +32,16 @@ public:
ObjectSnapper(SnapManager *sm, Geom::Coord const d);
~ObjectSnapper();
+ /**
+ * @return true if this Snapper will snap at least one kind of point.
+ */
bool ThisSnapperMightSnap() const;
+ /**
+ * @return Snap tolerance (desktop coordinates); depends on current zoom so that it's always the same in screen pixels.
+ */
Geom::Coord getSnapperTolerance() const; //returns the tolerance of the snapper in screen pixels (i.e. independent of zoom)
+
bool getSnapperAlwaysSnap() const; //if true, then the snapper will always snap, regardless of its tolerance
void freeSnap(IntermSnapResults &isr,
@@ -56,6 +63,13 @@ private:
std::vector<SnapCandidatePoint> *_points_to_snap_to;
std::vector<SnapCandidatePath > *_paths_to_snap_to;
+ /**
+ * Find all items within snapping range.
+ * @param parent Pointer to the document's root, or to a clipped path or mask object.
+ * @param it List of items to ignore.
+ * @param bbox_to_snap Bounding box hulling the whole bunch of points, all from the same selection and having the same transformation.
+ * @param clip_or_mask The parent object being passed is either a clip or mask.
+ */
void _findCandidates(SPObject* parent,
std::vector<SPItem const *> const *it,
bool const &first_point,
@@ -88,6 +102,9 @@ private:
bool isUnselectedNode(Geom::Point const &point, std::vector<Inkscape::SnapCandidatePoint> const *unselected_nodes) const;
+ /**
+ * Returns index of first NR_END bpath in array.
+ */
void _collectPaths(Geom::Point p,
Inkscape::SnapSourceType const source_type,
bool const &first_point) const;