From e182d3546498c8c865fb155481890c5571430c6f Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Tue, 14 Feb 2012 21:56:34 +0100 Subject: 1) Add checkboxes for perpendicular and tangential snapping to the document properties dialog (on the snap tab) 2) Newly created guides (dragged off the ruler) will take on the angle of the curve that's being snapped to (either perpendicularly or tangentialy, depending of the settings in the document properties dialog) (bzr r10975) --- src/snapped-point.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/snapped-point.h') diff --git a/src/snapped-point.h b/src/snapped-point.h index 7dc6edeca..7ab572e82 100644 --- a/src/snapped-point.h +++ b/src/snapped-point.h @@ -59,6 +59,7 @@ public: */ Geom::Point getPoint() const {return _point;} void setPoint(Geom::Point const &p) {_point = p;} + Geom::Point getTangent() const {return _tangent;} bool getAtIntersection() const {return _at_intersection;} bool getFullyConstrained() const {return _fully_constrained;} @@ -95,6 +96,7 @@ public: protected: Geom::Point _point; // Location of the snapped point + Geom::Point _tangent; // Tangent of the curve we snapped to, at the snapped point SnapSourceType _source; // Describes what snapped long _source_num; // Sequence number of the source point that snapped, if that point is part of a set of points. (starting at zero if we might have a set of points; -1 if we only have a single point) SnapTargetType _target; // Describes to what we've snapped to -- cgit v1.2.3