Logo Search packages:      
Sourcecode: inkscape version File versions

Inkscape::Snapper Class Reference

#include <snapper.h>

Inheritance diagram for Inkscape::Snapper:

Inkscape::GuideSnapper

List of all members.


Detailed Description

Parent for classes that can snap points to something.

Definition at line 37 of file snapper.h.


Public Types

typedef int PointType
 Point types to snap.

Public Member Functions

void 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
void 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
void 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
void 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
bool getEnabled () const
bool getSnapFrom (PointType t) const
bool getSnapperAlwaysSnap () const
NR::Coord getSnapperTolerance () const
void setEnabled (bool s)
void setSnapFrom (PointType t, bool s)
void setSnapperTolerance (NR::Coord t)
 Snapper (SPNamedView const *nv,::NR::Coord const d)
virtual bool ThisSnapperMightSnap () const

Static Public Attributes

static const PointType SNAPPOINT_BBOX = 0x1
static const PointType SNAPPOINT_GUIDE = 0x4
static const PointType SNAPPOINT_NODE = 0x2

Protected Attributes

SPNamedView const * _named_view
bool _snap_enabled
 true if this snapper is enabled, otherwise false
int _snap_from
 bitmap of point types that we will snap from

Private Member Functions

virtual void _doConstrainedSnap (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 =0
virtual void _doFreeSnap (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 =0

Private Attributes

NR::Coord _snapper_tolerance
 snap tolerance in desktop coordinates

Classes

class  ConstraintLine

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index