diff --git a/src/snapped-point.h b/src/snapped-point.h
index 575fd0e1cd3d6a650cba0974ab6bfabe92e3fc96..b50207429ab81c8ee2d6d3b0d87f515348acc10a 100644 (file)
--- a/src/snapped-point.h
+++ b/src/snapped-point.h
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;
- void setDistance(Geom::Coord const d) {_distance = d;}
- Geom::Coord getTolerance() const;
- bool getAlwaysSnap() const;
- Geom::Coord getSecondDistance() const;
- void setSecondDistance(Geom::Coord const d) {_second_distance = d;}
- Geom::Coord getSecondTolerance() const;
- bool getSecondAlwaysSnap() const;
+ 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 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;}
+ void setPointerDistance(Geom::Coord const d) {_pointer_distance = d;}
/* This is the preferred method to find out which point we have snapped
* to, because it only returns a point if snapping has actually occured
void setTarget(SnapTargetType const target) {_target = target;}
SnapTargetType getTarget() {return _target;}
- bool isOtherOneBetter(SnappedPoint const &other_one) const;
+ bool isOtherSnapBetter(SnappedPoint const &other_one, bool weighted) const;
protected:
Geom::Point _point; // Location of the snapped point
bool _second_always_snap;
/* The transformation (translation, scale, skew, or stretch) from the original point to the snapped point */
Geom::Point _transformation;
+ /* Distance from the un-transformed point to the mouse pointer, measured at the point in time when dragging started */
+ Geom::Coord _pointer_distance;
};
}