QGIS API Documentation  master-3f58142
QgsSnappingResult Struct Reference

Represents the result of a snapping operation. More...

#include <qgssnapper.h>

+ Collaboration diagram for QgsSnappingResult:

List of all members.

Public Attributes

QgsPoint afterVertex
 The layer coordinates of the vertex after snappedVertex.
int afterVertexNr
 The index of the vertex after snappedVertex or -1 if no such vertex.
QgsPoint beforeVertex
 The layer coordinates of the vertex before snappedVertex.
int beforeVertexNr
 The index of the vertex before snappedVertex or -1 if no such vertex.
const QgsVectorLayerlayer
 Layer where the snap occured.
QgsFeatureId snappedAtGeometry
 Index of the snapped geometry.
QgsPoint snappedVertex
 The coordinates of the snapping result.
int snappedVertexNr
 The vertex index of snappedVertex or -1 if no such vertex number (e.g.

Detailed Description

Represents the result of a snapping operation.

Definition at line 35 of file qgssnapper.h.


Member Data Documentation

The layer coordinates of the vertex after snappedVertex.

Definition at line 48 of file qgssnapper.h.

Referenced by QgsSnapper::snapPoint(), and QgsVectorLayer::snapToGeometry().

The index of the vertex after snappedVertex or -1 if no such vertex.

Definition at line 51 of file qgssnapper.h.

Referenced by QgsVectorLayer::snapToGeometry().

The layer coordinates of the vertex before snappedVertex.

Definition at line 43 of file qgssnapper.h.

Referenced by QgsSnapper::snapPoint(), and QgsVectorLayer::snapToGeometry().

The index of the vertex before snappedVertex or -1 if no such vertex.

Definition at line 46 of file qgssnapper.h.

Referenced by QgsVectorLayer::snapToGeometry().

Layer where the snap occured.

Definition at line 55 of file qgssnapper.h.

Referenced by QgsVectorLayer::snapToGeometry().

Index of the snapped geometry.

Definition at line 53 of file qgssnapper.h.

Referenced by QgsVectorLayer::snapToGeometry().

The coordinates of the snapping result.

Definition at line 38 of file qgssnapper.h.

Referenced by QgsSnapper::cleanResultList(), QgsSnapper::snapPoint(), and QgsVectorLayer::snapToGeometry().

The vertex index of snappedVertex or -1 if no such vertex number (e.g.

snap to segment)

Definition at line 41 of file qgssnapper.h.

Referenced by QgsSnapper::cleanResultList(), and QgsVectorLayer::snapToGeometry().


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines