QGIS API Documentation  2.12.0-Lyon
Public Types | Public Member Functions | Public Attributes | List of all members
QgsVertexId Class Reference

Utility class for identifying a unique vertex within a geometry. More...

#include <qgsabstractgeometryv2.h>

Public Types

enum  VertexType { SegmentVertex = 1, CurveVertex }
 

Public Member Functions

 QgsVertexId (int _part=-1, int _ring=-1, int _vertex=-1, VertexType _type=SegmentVertex)
 
bool isValid () const
 Returns true if the vertex id is valid. More...
 
bool isValid (const QgsAbstractGeometryV2 *geom) const
 
bool operator!= (const QgsVertexId &other) const
 
bool operator== (const QgsVertexId &other) const
 
bool partEqual (const QgsVertexId &o) const
 
bool ringEqual (const QgsVertexId &o) const
 
bool vertexEqual (const QgsVertexId &o) const
 

Public Attributes

int part
 
int ring
 
VertexType type
 
int vertex
 

Detailed Description

Utility class for identifying a unique vertex within a geometry.

Note
added in QGIS 2.10

Definition at line 346 of file qgsabstractgeometryv2.h.

Member Enumeration Documentation

Enumerator
SegmentVertex 
CurveVertex 

Definition at line 348 of file qgsabstractgeometryv2.h.

Constructor & Destructor Documentation

QgsVertexId::QgsVertexId ( int  _part = -1,
int  _ring = -1,
int  _vertex = -1,
VertexType  _type = SegmentVertex 
)
inline

Definition at line 354 of file qgsabstractgeometryv2.h.

Member Function Documentation

bool QgsVertexId::isValid ( ) const
inline

Returns true if the vertex id is valid.

Definition at line 359 of file qgsabstractgeometryv2.h.

bool QgsVertexId::isValid ( const QgsAbstractGeometryV2 geom) const
inline

Definition at line 381 of file qgsabstractgeometryv2.h.

bool QgsVertexId::operator!= ( const QgsVertexId other) const
inline

Definition at line 365 of file qgsabstractgeometryv2.h.

bool QgsVertexId::operator== ( const QgsVertexId other) const
inline

Definition at line 361 of file qgsabstractgeometryv2.h.

bool QgsVertexId::partEqual ( const QgsVertexId o) const
inline

Definition at line 369 of file qgsabstractgeometryv2.h.

bool QgsVertexId::ringEqual ( const QgsVertexId o) const
inline

Definition at line 373 of file qgsabstractgeometryv2.h.

bool QgsVertexId::vertexEqual ( const QgsVertexId o) const
inline

Definition at line 377 of file qgsabstractgeometryv2.h.

Member Data Documentation

int QgsVertexId::part

Definition at line 388 of file qgsabstractgeometryv2.h.

int QgsVertexId::ring

Definition at line 389 of file qgsabstractgeometryv2.h.

VertexType QgsVertexId::type

Definition at line 391 of file qgsabstractgeometryv2.h.

int QgsVertexId::vertex

Definition at line 390 of file qgsabstractgeometryv2.h.


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