diff --git a/src/line-snapper.h b/src/line-snapper.h
index a15e6ae2dc5ab6adbda34b69da1d1309d0f31ffd..e5fc95dcba82c4950744dbd9832fd915bc54b021 100644 (file)
--- a/src/line-snapper.h
+++ b/src/line-snapper.h
public:
LineSnapper(SPNamedView const *nv, NR::Coord const d);
+ void freeSnap(SnappedConstraints &sc,
+ Inkscape::Snapper::PointType const &t,
+ NR::Point const &p,
+ bool const &first_point,
+ NR::Maybe<NR::Rect> const &bbox_to_snap,
+ std::vector<SPItem const *> const *it,
+ std::vector<NR::Point> *unselected_nodes) const;
+
+ void constrainedSnap(SnappedConstraints &sc,
+ Inkscape::Snapper::PointType const &t,
+ NR::Point const &p,
+ bool const &first_point,
+ NR::Maybe<NR::Rect> const &bbox_to_snap,
+ ConstraintLine const &c,
+ std::vector<SPItem const *> const *it) const;
+
protected:
- typedef std::list<std::pair<NR::Dim2, NR::Coord> > LineList;
+ typedef std::list<std::pair<NR::Point, NR::Point> > LineList;
+ //first point is a vector normal to the line
+ //second point is a point on the line
private:
- void _doFreeSnap(SnappedConstraints &sc,
- Inkscape::Snapper::PointType const &t,
- NR::Point const &p,
- bool const &first_point,
- std::vector<NR::Point> &points_to_snap,
- std::list<SPItem const *> const &it) const;
-
- void _doConstrainedSnap(SnappedConstraints &sc,
- Inkscape::Snapper::PointType const &t,
- NR::Point const &p,
- bool const &first_point,
- std::vector<NR::Point> &points_to_snap,
- ConstraintLine const &c,
- std::list<SPItem const *> const &it) const;
-
/**
* \param p Point that we are trying to snap.
* \return List of lines that we should try snapping to.