|
QGIS API Documentation
2.6.0-Brighton
|
A class that allows advanced snapping operations on a set of vector layers. More...
#include <qgssnapper.h>
Classes | |
| struct | SnapLayer |
Public Types | |
| enum | SnappingType { SnapToVertex, SnapToSegment, SnapToVertexAndSegment } |
| Snap to vertex, to segment or both. More... | |
| enum | SnappingMode { SnapWithOneResult, SnapWithResultsForSamePosition, SnapWithResultsWithinTolerances } |
Public Member Functions | |
| Q_DECL_DEPRECATED | QgsSnapper (QgsMapRenderer *mapRender) |
| @ deprecated since 2.4 - use constructor with QgsMapSettings | |
| QgsSnapper (const QgsMapSettings &mapSettings) | |
| ~QgsSnapper () | |
| int | snapPoint (const QPoint &startPoint, QList< QgsSnappingResult > &snappingResult, const QList< QgsPoint > &excludePoints=QList< QgsPoint >()) |
| Does the snapping operation. | |
| void | setSnapLayers (const QList< QgsSnapper::SnapLayer > &snapLayers) |
| void | setSnapMode (QgsSnapper::SnappingMode snapMode) |
A class that allows advanced snapping operations on a set of vector layers.
| QgsSnapper::QgsSnapper | ( | QgsMapRenderer * | mapRender | ) |
@ deprecated since 2.4 - use constructor with QgsMapSettings
|
explicit |
| QgsSnapper::~QgsSnapper | ( | ) |
| void QgsSnapper::setSnapLayers | ( | const QList< QgsSnapper::SnapLayer > & | snapLayers | ) |
| void QgsSnapper::setSnapMode | ( | QgsSnapper::SnappingMode | snapMode | ) |
| 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 |
1.8.1.2