diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2008-11-23 13:55:26 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2008-11-23 13:55:26 +0000 |
| commit | 6b8572be4bdae9ee79fc42c9d18fd9882dec21aa (patch) | |
| tree | ccfc4f2203495ee82127b0cb596f23a9d9f48803 /src/snapped-point.h | |
| parent | Updating the includes on these files because they need to include simple-node... (diff) | |
| download | inkscape-6b8572be4bdae9ee79fc42c9d18fd9882dec21aa.tar.gz inkscape-6b8572be4bdae9ee79fc42c9d18fd9882dec21aa.zip | |
1) Improve the way the distance to the pointer is taken into account when finding the best snap
2) Use this distance also when snapping nodes in the path editor
3) Add a slider in the preferences dialog to control the weighing of this distance
(bzr r6895)
Diffstat (limited to 'src/snapped-point.h')
| -rw-r--r-- | src/snapped-point.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/snapped-point.h b/src/snapped-point.h index 254e46421..bc5b2d39e 100644 --- a/src/snapped-point.h +++ b/src/snapped-point.h @@ -46,12 +46,12 @@ public: SnappedPoint(Geom::Point const &p, SnapTargetType const &target, Geom::Coord const &d, Geom::Coord const &t, bool const &a, bool const &fully_constrained); ~SnappedPoint(); - Geom::Coord getDistance() const {return _distance;} - void setDistance(Geom::Coord const d) {_distance = d;} + Geom::Coord getSnapDistance() const {return _distance;} + void setSnapDistance(Geom::Coord const d) {_distance = d;} Geom::Coord getTolerance() const {return _tolerance;} bool getAlwaysSnap() const {return _always_snap;} - Geom::Coord getSecondDistance() const {return _second_distance;} - void setSecondDistance(Geom::Coord const d) {_second_distance = d;} + Geom::Coord getSecondSnapDistance() const {return _second_distance;} + void setSecondSnapDistance(Geom::Coord const d) {_second_distance = d;} Geom::Coord getSecondTolerance() const {return _second_tolerance;} bool getSecondAlwaysSnap() const {return _second_always_snap;} Geom::Coord getPointerDistance() const {return _pointer_distance;} @@ -79,7 +79,7 @@ public: void setTarget(SnapTargetType const target) {_target = target;} SnapTargetType getTarget() {return _target;} - bool isOtherOneBetter(SnappedPoint const &other_one) const; + bool isOtherOneBetter(SnappedPoint const &other_one, bool weighted) const; protected: Geom::Point _point; // Location of the snapped point |
