diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2007-12-08 21:18:49 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2007-12-08 21:18:49 +0000 |
| commit | 60310d81f6d2ab4b7e919a07097e95d187c3273f (patch) | |
| tree | 0e907f212c69edb1674514bb28555dacd5fb746b /src/line-snapper.h | |
| parent | corrected a typo and added a check for modevia name definition. fall back on ... (diff) | |
| download | inkscape-60310d81f6d2ab4b7e919a07097e95d187c3273f.tar.gz inkscape-60310d81f6d2ab4b7e919a07097e95d187c3273f.zip | |
Snap to axonometric grid lines
(bzr r4194)
Diffstat (limited to 'src/line-snapper.h')
| -rw-r--r-- | src/line-snapper.h | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/line-snapper.h b/src/line-snapper.h index 8c307da53..6a1ff9016 100644 --- a/src/line-snapper.h +++ b/src/line-snapper.h @@ -22,23 +22,25 @@ public: LineSnapper(SPNamedView const *nv, NR::Coord const d); protected: - typedef std::list<std::pair<NR::Dim2, NR::Coord> > LineList; + typedef std::list<std::pair<NR::Point, NR::Point> > LineList; + //first point is a vector normal to the line + //second point is a point on the line private: void _doFreeSnap(SnappedConstraints &sc, - Inkscape::Snapper::PointType const &t, - NR::Point const &p, - bool const &first_point, - std::vector<NR::Point> &points_to_snap, - std::list<SPItem const *> const &it) const; + Inkscape::Snapper::PointType const &t, + NR::Point const &p, + bool const &first_point, + std::vector<NR::Point> &points_to_snap, + std::list<SPItem const *> const &it) const; void _doConstrainedSnap(SnappedConstraints &sc, - Inkscape::Snapper::PointType const &t, - NR::Point const &p, - bool const &first_point, - std::vector<NR::Point> &points_to_snap, - ConstraintLine const &c, - std::list<SPItem const *> const &it) const; + Inkscape::Snapper::PointType const &t, + NR::Point const &p, + bool const &first_point, + std::vector<NR::Point> &points_to_snap, + ConstraintLine const &c, + std::list<SPItem const *> const &it) const; /** * \param p Point that we are trying to snap. |
