18 #ifndef QGSMAPCANVASSNAPPER_H
19 #define QGSMAPCANVASSNAPPER_H
54 int snapToCurrentLayer(
const QPoint& p, QList<QgsSnappingResult>& results,
QgsSnapper::SnappingType snap_to,
double snappingTol = -1,
const QList<QgsPoint>& excludePoints = QList<QgsPoint>() );
63 int snapToBackgroundLayers(
const QPoint& p, QList<QgsSnappingResult>& results,
const QList<QgsPoint>& excludePoints = QList<QgsPoint>() );
QgsSnapper * mSnapper
The object which does the snapping operations.
Map canvas is a class for displaying all GIS data types on a canvas.
SnappingType
Snap to vertex, to segment or both.
A class that allows advanced snapping operations on a set of vector layers.
QgsMapCanvas * mMapCanvas
Pointer to the map canvas.
This class reads the snapping properties from the current project and configures a QgsSnapper to perf...