summaryrefslogtreecommitdiffstats
path: root/src/snapped-point.h
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2012-02-14 20:56:34 +0000
committerDiederik van Lierop <mail@diedenrezi.nl>2012-02-14 20:56:34 +0000
commite182d3546498c8c865fb155481890c5571430c6f (patch)
tree3ea9d416ab9610220a3e11fbdae0f62c1ba91741 /src/snapped-point.h
parentUpdate Authors & Translators lists in About dialog (diff)
downloadinkscape-e182d3546498c8c865fb155481890c5571430c6f.tar.gz
inkscape-e182d3546498c8c865fb155481890c5571430c6f.zip
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)
Diffstat (limited to 'src/snapped-point.h')
-rw-r--r--src/snapped-point.h2
1 files changed, 2 insertions, 0 deletions
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