|
QGIS API Documentation 4.0.0-Norrköping (1ddcee3d0e4)
|
Utility class for identifying a unique vertex within a geometry. More...
#include <qgsvertexid.h>
Public Member Functions | |
| QgsVertexId (int _part=-1, int _ring=-1, int _vertex=-1, Qgis::VertexType _type=Qgis::VertexType::Segment) | |
| Constructor for QgsVertexId. | |
| bool | isValid () const |
Returns true if the vertex id is valid. | |
| bool | isValid (const QgsAbstractGeometry *geom) const |
Returns true if this vertex ID is valid for the specified geom. | |
| bool | operator!= (QgsVertexId other) const |
| bool | operator== (QgsVertexId other) const |
| bool | partEqual (QgsVertexId o) const |
Returns true if this vertex ID belongs to the same part as another vertex ID. | |
| bool | ringEqual (QgsVertexId o) const |
Returns true if this vertex ID belongs to the same ring as another vertex ID (i.e. | |
| bool | vertexEqual (QgsVertexId o) const |
Returns true if this vertex ID corresponds to the same vertex as another vertex ID (i.e. | |
Public Attributes | |
| int | part = -1 |
| Part number. | |
| int | ring = -1 |
| Ring number. | |
| Qgis::VertexType | type = Qgis::VertexType::Segment |
| Vertex type. | |
| int | vertex = -1 |
| Vertex number. | |
Utility class for identifying a unique vertex within a geometry.
Definition at line 33 of file qgsvertexid.h.
|
inlineexplicit |
Constructor for QgsVertexId.
Definition at line 39 of file qgsvertexid.h.
|
inline |
Returns true if the vertex id is valid.
Definition at line 50 of file qgsvertexid.h.
| bool QgsVertexId::isValid | ( | const QgsAbstractGeometry * | geom | ) | const |
Returns true if this vertex ID is valid for the specified geom.
Definition at line 20 of file qgsvertexid.cpp.
|
inline |
Definition at line 56 of file qgsvertexid.h.
|
inline |
Definition at line 52 of file qgsvertexid.h.
|
inline |
Returns true if this vertex ID belongs to the same part as another vertex ID.
Definition at line 64 of file qgsvertexid.h.
|
inline |
Returns true if this vertex ID belongs to the same ring as another vertex ID (i.e.
the part and ring number are equal).
Definition at line 73 of file qgsvertexid.h.
|
inline |
Returns true if this vertex ID corresponds to the same vertex as another vertex ID (i.e.
the part, ring number and vertex number are equal).
Definition at line 82 of file qgsvertexid.h.
| int QgsVertexId::part = -1 |
Part number.
Definition at line 93 of file qgsvertexid.h.
| int QgsVertexId::ring = -1 |
Ring number.
Definition at line 96 of file qgsvertexid.h.
| Qgis::VertexType QgsVertexId::type = Qgis::VertexType::Segment |
Vertex type.
Definition at line 102 of file qgsvertexid.h.
| int QgsVertexId::vertex = -1 |
Vertex number.
Definition at line 99 of file qgsvertexid.h.