QgsSnappingResult Struct Reference
[Core]

#include <qgssnapper.h>

Collaboration diagram for QgsSnappingResult:

Collaboration graph
[legend]
List of all members.

Detailed Description

Represents the result of a snapping operation.

Definition at line 32 of file qgssnapper.h.

Public Attributes

QgsPoint snappedVertex
 The coordinates of the snapping result.
int snappedVertexNr
 The vertex index of snappedVertex or -1 if no such vertex number (e.g.
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.
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.
int snappedAtGeometry
 Index of the snapped geometry.
const QgsVectorLayerlayer
 Layer where the snap occured.


Member Data Documentation

QgsPoint QgsSnappingResult::snappedVertex

The coordinates of the snapping result.

Definition at line 35 of file qgssnapper.h.

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

int QgsSnappingResult::snappedVertexNr

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

snap to segment)

Definition at line 38 of file qgssnapper.h.

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

QgsPoint QgsSnappingResult::beforeVertex

The layer coordinates of the vertex before snappedVertex.

Definition at line 40 of file qgssnapper.h.

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

int QgsSnappingResult::beforeVertexNr

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

Definition at line 43 of file qgssnapper.h.

Referenced by QgsVectorLayer::snapToGeometry().

QgsPoint QgsSnappingResult::afterVertex

The layer coordinates of the vertex after snappedVertex.

Definition at line 45 of file qgssnapper.h.

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

int QgsSnappingResult::afterVertexNr

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

Definition at line 48 of file qgssnapper.h.

Referenced by QgsVectorLayer::snapToGeometry().

int QgsSnappingResult::snappedAtGeometry

Index of the snapped geometry.

Definition at line 50 of file qgssnapper.h.

Referenced by QgsVectorLayer::snapToGeometry().

const QgsVectorLayer* QgsSnappingResult::layer

Layer where the snap occured.

Definition at line 52 of file qgssnapper.h.

Referenced by QgsVectorLayer::snapToGeometry().


The documentation for this struct was generated from the following file:
Generated on Fri Jan 9 01:51:26 2009 for Quantum GIS API Documentation by  doxygen 1.5.1