QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Attributes | List of all members
QgsSnappingResult Struct Reference

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

#include <qgssnapper.h>

Public Attributes

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...
 
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...
 
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...
 
QgsFeatureId snappedAtGeometry
 Index of the snapped geometry. More...
 
const QgsVectorLayerlayer
 Layer where the snap occured. More...
 

Detailed Description

Represents the result of a snapping operation.

Member Data Documentation

QgsPoint QgsSnappingResult::afterVertex

The layer coordinates of the vertex after snappedVertex.

int QgsSnappingResult::afterVertexNr

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

QgsPoint QgsSnappingResult::beforeVertex

The layer coordinates of the vertex before snappedVertex.

int QgsSnappingResult::beforeVertexNr

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

const QgsVectorLayer* QgsSnappingResult::layer

Layer where the snap occured.

QgsFeatureId QgsSnappingResult::snappedAtGeometry

Index of the snapped geometry.

QgsPoint QgsSnappingResult::snappedVertex

The coordinates of the snapping result.

int QgsSnappingResult::snappedVertexNr

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

snap to segment)


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