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.h | |
| 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.h')
| -rw-r--r-- | src/snapper.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/snapper.h b/src/snapper.h index 085eb156e..5b6b4a258 100644 --- a/src/snapper.h +++ b/src/snapper.h @@ -48,15 +48,18 @@ public: */ virtual bool ThisSnapperMightSnap() const {return (_enabled && _snap_from != 0);} // will likely be overridden by derived classes - void setEnabled(bool s); SnappedPoint freeSnap(PointType const &t, NR::Point const &p, + bool const &first_point, + std::vector<NR::Point> &points_to_snap, SPItem const *it) const; SnappedPoint 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; class ConstraintLine @@ -86,11 +89,15 @@ public: SnappedPoint 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; SnappedPoint 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; protected: @@ -111,6 +118,8 @@ private: */ virtual SnappedPoint _doFreeSnap(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 = 0; /** @@ -125,6 +134,8 @@ private: */ virtual SnappedPoint _doConstrainedSnap(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 = 0; |
