71 SnapToVertexAndSegment
82 SnapWithResultsWithinTolerances
109 int snapPoint(
const QPoint& startPoint, QList<QgsSnappingResult>& snappingResult,
const QList<QgsPoint>& excludePoints = QList<QgsPoint>() );
112 void setSnapLayers(
const QList<QgsSnapper::SnapLayer>& snapLayers );
118 void cleanResultList( QMultiMap<double, QgsSnappingResult>& list,
const QList<QgsPoint>& excludeList )
const;
const QgsMapSettings & mMapSettings
The map settings object contains information about the output coordinate system of the map and about ...
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 geometry.
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.
QgsSnapper::SnappingMode mSnapMode
Snap mode to apply.
QList< QgsSnapper::SnapLayer > mSnapLayers
List of layers to which snapping is applied.
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 occured.
int beforeVertexNr
The index of the vertex before snappedVertex or -1 if no such vertex.