QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
Utility class for identifying a unique vertex within a geometry. More...
#include <qgsabstractgeometry.h>
Public Types | |
enum | VertexType { SegmentVertex = 1 , CurveVertex } |
Type of vertex. More... | |
Public Member Functions | |
QgsVertexId (int _part=-1, int _ring=-1, int _vertex=-1, VertexType _type=SegmentVertex) SIP_HOLDGIL | |
Constructor for QgsVertexId. More... | |
bool | isValid () const SIP_HOLDGIL |
Returns true if the vertex id is valid. More... | |
bool | isValid (const QgsAbstractGeometry *geom) const SIP_HOLDGIL |
Returns true if this vertex ID is valid for the specified geom. More... | |
bool | operator!= (QgsVertexId other) const SIP_HOLDGIL |
bool | operator== (QgsVertexId other) const SIP_HOLDGIL |
bool | partEqual (QgsVertexId o) const SIP_HOLDGIL |
Returns true if this vertex ID belongs to the same part as another vertex ID. More... | |
bool | ringEqual (QgsVertexId o) const SIP_HOLDGIL |
Returns true if this vertex ID belongs to the same ring as another vertex ID (i.e. More... | |
bool | vertexEqual (QgsVertexId o) const SIP_HOLDGIL |
Returns true if this vertex ID corresponds to the same vertex as another vertex ID (i.e. More... | |
Public Attributes | |
int | part = -1 |
Part number. More... | |
int | ring = -1 |
Ring number. More... | |
VertexType | type = SegmentVertex |
Vertex type. More... | |
int | vertex = -1 |
Vertex number. More... | |
Utility class for identifying a unique vertex within a geometry.
Definition at line 1144 of file qgsabstractgeometry.h.
Type of vertex.
Enumerator | |
---|---|
SegmentVertex | The actual start or end point of a segment. |
CurveVertex | An intermediate point on a segment defining the curvature of the segment. |
Definition at line 1150 of file qgsabstractgeometry.h.
|
inlineexplicit |
Constructor for QgsVertexId.
Definition at line 1159 of file qgsabstractgeometry.h.
|
inline |
Returns true
if the vertex id is valid.
Definition at line 1169 of file qgsabstractgeometry.h.
|
inline |
Returns true
if this vertex ID is valid for the specified geom.
Definition at line 1209 of file qgsabstractgeometry.h.
|
inline |
Definition at line 1175 of file qgsabstractgeometry.h.
|
inline |
Definition at line 1171 of file qgsabstractgeometry.h.
|
inline |
Returns true
if this vertex ID belongs to the same part as another vertex ID.
Definition at line 1183 of file qgsabstractgeometry.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 1192 of file qgsabstractgeometry.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 1201 of file qgsabstractgeometry.h.
int QgsVertexId::part = -1 |
Part number.
Definition at line 1217 of file qgsabstractgeometry.h.
int QgsVertexId::ring = -1 |
Ring number.
Definition at line 1220 of file qgsabstractgeometry.h.
VertexType QgsVertexId::type = SegmentVertex |
Vertex type.
Definition at line 1226 of file qgsabstractgeometry.h.
int QgsVertexId::vertex = -1 |
Vertex number.
Definition at line 1223 of file qgsabstractgeometry.h.