X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fline-snapper.h;h=91e8ca596d8e2d2188d0b36c795c603eb19fad0b;hb=fe5d58baf204a41a7fc7b04dcc2b13cf43087684;hp=7767fe2ea5a0f25a4fbc87313ca3399b086e9c4c;hpb=f38d1b851669bf0fa14a2ca67d9bde7d3fb2dc9b;p=inkscape.git diff --git a/src/line-snapper.h b/src/line-snapper.h index 7767fe2ea..91e8ca596 100644 --- a/src/line-snapper.h +++ b/src/line-snapper.h @@ -7,6 +7,9 @@ * * Authors: * Carl Hetherington + * Diederik van Lierop + * + * Copyright (C) 1999-2008 Authors * * Released under GNU GPL, read the file 'COPYING' for more information. */ @@ -19,26 +22,26 @@ 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::Snapper::PointType const &t, + Inkscape::SnapPreferences::PointType const &t, Geom::Point const &p, bool const &first_point, - boost::optional const &bbox_to_snap, + Geom::OptRect const &bbox_to_snap, std::vector const *it, std::vector *unselected_nodes) const; - + void constrainedSnap(SnappedConstraints &sc, - Inkscape::Snapper::PointType const &t, + Inkscape::SnapPreferences::PointType const &t, Geom::Point const &p, bool const &first_point, - boost::optional const &bbox_to_snap, + Geom::OptRect const &bbox_to_snap, ConstraintLine const &c, std::vector const *it) const; protected: - typedef std::list > LineList; + typedef std::list > LineList; //first point is a vector normal to the line //second point is a point on the line @@ -48,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; };