Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

Inkscape::GuideSnapper::LineList Inkscape::GuideSnapper::_getSnapLines ( Geom::Point const &  p) const [private, virtual]
Parameters:
pPoint that we are trying to snap.
Returns:
List of lines that we should try snapping to.

Implements Inkscape::LineSnapper.

Definition at line 39 of file guide-snapper.cpp.

{
    LineList s;

    if ( NULL == _snapmanager->getNamedView() || ThisSnapperMightSnap() == false) {
        return s;
    }

    SPGuide const *guide_to_ignore = _snapmanager->getGuideToIgnore();

    for (GSList const *l = _snapmanager->getNamedView()->guides; l != NULL; l = l->next) {
        SPGuide const *g = SP_GUIDE(l->data);
        if (g != guide_to_ignore) {
            s.push_back(std::make_pair(g->normal_to_line, g->point_on_line));
        }
    }

    return s;
}

Generated by  Doxygen 1.6.0   Back to index