72 SnapToVertexAndSegment
83 SnapWithResultsWithinTolerances
double mTolerance
The snapping tolerances for the layers, always in source coordinate systems of the layer...
UnitType
Type of unit of tolerance value from settings.
A non GUI class for rendering a map layer set onto a QPainter.
QgsTolerance::UnitType mUnitType
What unit is used for tolerance.
QgsSnapper::SnappingType mSnapTo
What snapping type to use (snap to segment or to vertex)
The QgsMapSettings class contains configuration for rendering of the map.
SnappingType
Snap to vertex, to segment or both.
Represents the result of a snapping operation.
A class that allows advanced snapping operations on a set of vector layers.
int afterVertexNr
The index of the vertex after snappedVertex or -1 if no such vertex.
Several snapping results which have the same position are returned.
QgsFeatureId snappedAtGeometry
Index of the snapped geometry.
A class to represent a point.
QgsPoint beforeVertex
The layer coordinates of the vertex before snappedVertex.
QgsPoint afterVertex
The layer coordinates of the vertex after snappedVertex.
int snappedVertexNr
The vertex index of snappedVertex or -1 if no such vertex number (e.g.
Only one snapping result is returned.
QgsPoint snappedVertex
The coordinates of the snapping result.
QgsVectorLayer * mLayer
The layer to which snapping is applied.
Represents a vector layer which manages a vector based data sets.
const QgsVectorLayer * layer
Layer where the snap occurred.
int beforeVertexNr
The index of the vertex before snappedVertex or -1 if no such vertex.