QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Attributes | List of all members
QgsSnappingResult Struct Reference

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

#include <qgssnapper.h>

Public Attributes

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

Detailed Description

Represents the result of a snapping operation.

Definition at line 36 of file qgssnapper.h.

Member Data Documentation

◆ afterVertex

QgsPoint QgsSnappingResult::afterVertex

The layer coordinates of the vertex after snappedVertex.

Definition at line 49 of file qgssnapper.h.

◆ afterVertexNr

int QgsSnappingResult::afterVertexNr

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

Definition at line 52 of file qgssnapper.h.

◆ beforeVertex

QgsPoint QgsSnappingResult::beforeVertex

The layer coordinates of the vertex before snappedVertex.

Definition at line 44 of file qgssnapper.h.

◆ beforeVertexNr

int QgsSnappingResult::beforeVertexNr

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

Definition at line 47 of file qgssnapper.h.

◆ layer

const QgsVectorLayer* QgsSnappingResult::layer

Layer where the snap occurred.

Definition at line 56 of file qgssnapper.h.

◆ snappedAtGeometry

QgsFeatureId QgsSnappingResult::snappedAtGeometry

Index of the snapped geometry.

Definition at line 54 of file qgssnapper.h.

◆ snappedVertex

QgsPoint QgsSnappingResult::snappedVertex

The coordinates of the snapping result.

Definition at line 39 of file qgssnapper.h.

◆ snappedVertexNr

int QgsSnappingResult::snappedVertexNr

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

snap to segment)

Definition at line 42 of file qgssnapper.h.


The documentation for this struct was generated from the following file: