|
QGIS API Documentation
2.12.0-Lyon
|
A class that allows advanced snapping operations on a set of vector layers. More...
#include <qgssnapper.h>
Classes | |
| struct | SnapLayer |
Public Types | |
| enum | SnappingMode { SnapWithOneResult, SnapWithResultsForSamePosition, SnapWithResultsWithinTolerances } |
| enum | SnappingType { SnapToVertex, SnapToSegment, SnapToVertexAndSegment } |
| Snap to vertex, to segment or both. More... | |
Public Member Functions | |
| Q_DECL_DEPRECATED | QgsSnapper (QgsMapRenderer *mapRender) |
| @ deprecated since 2.4 - use constructor with QgsMapSettings More... | |
| QgsSnapper (const QgsMapSettings &mapSettings) | |
| ~QgsSnapper () | |
| void | setSnapLayers (const QList< QgsSnapper::SnapLayer > &snapLayers) |
| void | setSnapMode (QgsSnapper::SnappingMode snapMode) |
| int | snapMapPoint (const QgsPoint &mapCoordPoint, QList< QgsSnappingResult > &snappingResult, const QList< QgsPoint > &excludePoints=QList< QgsPoint >()) |
| Does the snapping operation. More... | |
| Q_DECL_DEPRECATED int | snapPoint (const QPoint &startPoint, QList< QgsSnappingResult > &snappingResult, const QList< QgsPoint > &excludePoints=QList< QgsPoint >()) |
| Does the snapping operation. More... | |
A class that allows advanced snapping operations on a set of vector layers.
Definition at line 62 of file qgssnapper.h.
Definition at line 74 of file qgssnapper.h.
Snap to vertex, to segment or both.
| Enumerator | |
|---|---|
| SnapToVertex | |
| SnapToSegment | |
| SnapToVertexAndSegment | |
Definition at line 66 of file qgssnapper.h.
| QgsSnapper::QgsSnapper | ( | QgsMapRenderer * | mapRender | ) |
@ deprecated since 2.4 - use constructor with QgsMapSettings
Definition at line 28 of file qgssnapper.cpp.
|
explicit |
Definition at line 35 of file qgssnapper.cpp.
| QgsSnapper::~QgsSnapper | ( | ) |
Definition at line 41 of file qgssnapper.cpp.
| void QgsSnapper::setSnapLayers | ( | const QList< QgsSnapper::SnapLayer > & | snapLayers | ) |
Definition at line 151 of file qgssnapper.cpp.
| void QgsSnapper::setSnapMode | ( | QgsSnapper::SnappingMode | snapMode | ) |
Definition at line 157 of file qgssnapper.cpp.
| int QgsSnapper::snapMapPoint | ( | const QgsPoint & | mapCoordPoint, |
| QList< QgsSnappingResult > & | snappingResult, | ||
| const QList< QgsPoint > & | excludePoints = QList<QgsPoint>() |
||
| ) |
Does the snapping operation.
| mapCoordPoint | the start point for snapping (in map coordinates) |
| snappingResult | the list where the results are inserted (everything in map coordinate system) |
| excludePoints | a list with (map coordinate) points that should be excluded in the snapping result. Useful e.g. for vertex moves where a vertex should not be snapped to its original position |
Definition at line 52 of file qgssnapper.cpp.
| int QgsSnapper::snapPoint | ( | const QPoint & | startPoint, |
| QList< QgsSnappingResult > & | snappingResult, | ||
| const QList< QgsPoint > & | excludePoints = QList<QgsPoint>() |
||
| ) |
Does the snapping operation.
| startPoint | the start point for snapping (in pixel coordinates) |
| snappingResult | the list where the results are inserted (everything in map coordinate system) |
| excludePoints | a list with (map coordinate) points that should be excluded in the snapping result. Useful e.g. for vertex moves where a vertex should not be snapped to its original position |
Definition at line 46 of file qgssnapper.cpp.
1.8.9.1