From f643622c05d698103b68a0af90b96fadb021f815 Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Sun, 14 Dec 2008 20:49:00 +0000 Subject: 1) snap midpoints of line segments (both as source and as target) 2) snap intersections within a single shape (as source; as target was already implemented) (bzr r7008) --- src/snapper.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/snapper.h') diff --git a/src/snapper.h b/src/snapper.h index 0c405fd2b..f6e1a086e 100644 --- a/src/snapper.h +++ b/src/snapper.h @@ -42,9 +42,9 @@ class Snapper { public: Snapper() {} - Snapper(SnapManager const *sm, ::Geom::Coord const t); + Snapper(SnapManager *sm, ::Geom::Coord const t); virtual ~Snapper() {} - + void setSnapperTolerance(Geom::Coord t); 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 @@ -83,10 +83,10 @@ public: Geom::Point getDirection() const { return _direction; } - + void setPoint(Geom::Point const &p) { _point = p; - _has_point = true; + _has_point = true; } private: @@ -105,8 +105,8 @@ public: std::vector const */*it*/) const {}; protected: - SnapManager const *_snapmanager; - + SnapManager *_snapmanager; + bool _snap_enabled; ///< true if this snapper is enabled, otherwise false private: -- cgit v1.2.3