Code

new command: relink clone to copied object
[inkscape.git] / src / snapper.cpp
index efdc6bcbea8a4bebcd8630f56108a284187cb2bf..4dfb9042e6f74c710e78f7454bc3c2003fcfb37e 100644 (file)
@@ -4,6 +4,7 @@
  *
  *  Authors:
  *    Carl Hetherington <inkscape@carlh.net>
+ *    Diederik van Lierop <mail@diedenrezi.nl>
  *
  *  Released under GNU GPL, read the file 'COPYING' for more information.
  */
@@ -84,113 +85,6 @@ void Inkscape::Snapper::setEnabled(bool s)
     _snap_enabled = s;
 }
 
-
-/**
- *  Try to snap a point to whatever this snapper is interested in.  Any
- *  snap that occurs will be to the nearest "interesting" thing (e.g. a
- *  grid or guide line)
- *
- *  \param t Point type.
- *  \param p Point to snap (desktop coordinates).
- *  \param it Item that should not be snapped to.
- *  \return Snapped point.
- */
-
-void Inkscape::Snapper::freeSnap(SnappedConstraints &sc,
-                                                   
-                                                   PointType const &t,
-                                                   NR::Point const &p,
-                                                   bool const &first_point,
-                                                    std::vector<NR::Point> &points_to_snap,                         
-                                                   SPItem const *it) const
-{
-    std::list<SPItem const *> lit;
-    lit.push_back(it);
-    freeSnap(sc, t, p, first_point, points_to_snap, lit);
-}
-
-
-/**
- *  Try to snap a point to whatever this snapper is interested in.  Any
- *  snap that occurs will be to the nearest "interesting" thing (e.g. a
- *  grid or guide line)
- *
- *  \param t Point type.
- *  \param p Point to snap (desktop coordinates).
- *  \param it Items that should not be snapped to.
- *  \return Snapped point.
- */
-
-void Inkscape::Snapper::freeSnap(SnappedConstraints &sc, 
-                                                   
-                                                   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
-{
-    if (_snap_enabled == false || getSnapFrom(t) == false) {
-        return;
-    }
-
-    _doFreeSnap(sc, t, p, first_point, points_to_snap, it);
-}
-
-
-
-
-/**
- *  Try to snap a point to whatever this snapper is interested in, where
- *  the snap point is constrained to lie along a specified vector from the
- *  original point.
- *
- *  \param p Point to snap (desktop coordinates).
- *  \param c Vector to constrain the snap to.
- *  \param it Items that should not be snapped to.
- *  \return Snapped point.
- */
-
-void Inkscape::Snapper::constrainedSnap(SnappedConstraints &sc, 
-                                                          
-                                                          PointType const &t,
-                                                          NR::Point const &p,
-                                                          bool const &first_point,
-                                                           std::vector<NR::Point> &points_to_snap,
-                                                          ConstraintLine const &c,
-                                                          SPItem const *it) const
-{
-    std::list<SPItem const *> lit;
-    lit.push_back(it);
-    constrainedSnap(sc, t, p, first_point, points_to_snap, c, lit);
-}
-
-
-/**
- *  Try to snap a point to whatever this snapper is interested in, where
- *  the snap point is constrained to lie along a specified vector from the
- *  original point.
- *
- *  \param p Point to snap (desktop coordinates).
- *  \param c Vector to constrain the snap to.
- *  \param it Items that should not be snapped to.
- *  \return Snapped point.
- */
-
-void Inkscape::Snapper::constrainedSnap(SnappedConstraints &sc, 
-                                                          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
-{
-    if (_snap_enabled == false || getSnapFrom(t) == false) {
-        return;
-    }
-
-    _doConstrainedSnap(sc, t, p, first_point, points_to_snap, c, it);
-}
-
 /*
   Local Variables:
   mode:c++