summaryrefslogtreecommitdiffstats
path: root/src/line-snapper.h
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2008-12-14 20:49:00 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2008-12-14 20:49:00 +0000
commitf643622c05d698103b68a0af90b96fadb021f815 (patch)
tree69f647af0776d8896263ee9c6694d1a64e649f32 /src/line-snapper.h
parentFilter quality setting revised, seems to not crash when viewing filters.svg (diff)
downloadinkscape-f643622c05d698103b68a0af90b96fadb021f815.tar.gz
inkscape-f643622c05d698103b68a0af90b96fadb021f815.zip
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)
Diffstat (limited to 'src/line-snapper.h')
-rw-r--r--src/line-snapper.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/line-snapper.h b/src/line-snapper.h
index 529db1caa..91e8ca596 100644
--- a/src/line-snapper.h
+++ b/src/line-snapper.h
@@ -8,7 +8,7 @@
* Authors:
* Carl Hetherington <inkscape@carlh.net>
* Diederik van Lierop <mail@diedenrezi.nl>
- *
+ *
* Copyright (C) 1999-2008 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information.
@@ -22,7 +22,7 @@ namespace Inkscape
class LineSnapper : public Snapper
{
public:
- LineSnapper(SnapManager const *sm, Geom::Coord const d);
+ LineSnapper(SnapManager *sm, Geom::Coord const d);
void freeSnap(SnappedConstraints &sc,
Inkscape::SnapPreferences::PointType const &t,
@@ -31,7 +31,7 @@ public:
Geom::OptRect const &bbox_to_snap,
std::vector<SPItem const *> const *it,
std::vector<Geom::Point> *unselected_nodes) const;
-
+
void constrainedSnap(SnappedConstraints &sc,
Inkscape::SnapPreferences::PointType const &t,
Geom::Point const &p,
@@ -41,7 +41,7 @@ public:
std::vector<SPItem const *> const *it) const;
protected:
- typedef std::list<std::pair<Geom::Point, Geom::Point> > LineList;
+ typedef std::list<std::pair<Geom::Point, Geom::Point> > LineList;
//first point is a vector normal to the line
//second point is a point on the line
@@ -51,7 +51,7 @@ private:
* \return List of lines that we should try snapping to.
*/
virtual LineList _getSnapLines(Geom::Point const &p) const = 0;
-
+
virtual void _addSnappedLine(SnappedConstraints &sc, Geom::Point const snapped_point, Geom::Coord const snapped_distance, Geom::Point const normal_to_line, Geom::Point const point_on_line) const = 0;
};