diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2007-09-05 20:16:30 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2007-09-05 20:16:30 +0000 |
| commit | fc192305a5194959167fce74e6ff0ff9f11447cf (patch) | |
| tree | 98627181b625f5458c56c2a4bea9a06e82546fd9 /src/snapper.cpp | |
| parent | again increase default pressure a bit (diff) | |
| download | inkscape-fc192305a5194959167fce74e6ff0ff9f11447cf.tar.gz inkscape-fc192305a5194959167fce74e6ff0ff9f11447cf.zip | |
Improving the performance of the object snapper
(bzr r3689)
Diffstat (limited to 'src/snapper.cpp')
| -rw-r--r-- | src/snapper.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/snapper.cpp b/src/snapper.cpp index 5d39c6b02..17d7b7137 100644 --- a/src/snapper.cpp +++ b/src/snapper.cpp @@ -93,11 +93,13 @@ void Inkscape::Snapper::setEnabled(bool s) Inkscape::SnappedPoint Inkscape::Snapper::freeSnap(PointType const &t, NR::Point const &p, + bool const &first_point, + std::vector<NR::Point> &points_to_snap, SPItem const *it) const { std::list<SPItem const *> lit; lit.push_back(it); - return freeSnap(t, p, lit); + return freeSnap(t, p, first_point, points_to_snap, lit); } @@ -114,13 +116,15 @@ Inkscape::SnappedPoint Inkscape::Snapper::freeSnap(PointType const &t, Inkscape::SnappedPoint Inkscape::Snapper::freeSnap(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 { if (_enabled == false || getSnapFrom(t) == false) { return SnappedPoint(p, NR_HUGE); } - return _doFreeSnap(t, p, it); + return _doFreeSnap(t, p, first_point, points_to_snap, it); } @@ -139,12 +143,14 @@ Inkscape::SnappedPoint Inkscape::Snapper::freeSnap(PointType const &t, Inkscape::SnappedPoint Inkscape::Snapper::constrainedSnap(PointType const &t, NR::Point const &p, + bool const &first_point, + std::vector<NR::Point> &points_to_snap, ConstraintLine const &c, SPItem const *it) const { std::list<SPItem const *> lit; lit.push_back(it); - return constrainedSnap(t, p, c, lit); + return constrainedSnap(t, p, first_point, points_to_snap, c, lit); } @@ -161,6 +167,8 @@ Inkscape::SnappedPoint Inkscape::Snapper::constrainedSnap(PointType const &t, Inkscape::SnappedPoint Inkscape::Snapper::constrainedSnap(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 { @@ -168,7 +176,7 @@ Inkscape::SnappedPoint Inkscape::Snapper::constrainedSnap(PointType const &t, return SnappedPoint(p, NR_HUGE); } - return _doConstrainedSnap(t, p, c, it); + return _doConstrainedSnap(t, p, first_point, points_to_snap, c, it); } /* |
