QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
19 #include "qgis_core.h"
50 return part == other.part && ring == other.ring && vertex == other.vertex;
54 return part != other.part || ring != other.ring || vertex != other.vertex;
62 return part >= 0 && o.part == part;
71 return partEqual( o ) && ( ring >= 0 && o.ring == ring );
80 return ringEqual( o ) && ( vertex >= 0 && o.ring == ring );
101 SIP_PYOBJECT __repr__();
103 QString
str = QStringLiteral(
"<QgsVertexId: %1,%2,%3 %4>" ).arg( sipCpp->part ).arg( sipCpp->ring ).arg( sipCpp->vertex ).arg(
qgsEnumValueToKey( sipCpp->type ) );
104 sipRes = PyUnicode_FromString(
str.toUtf8().data() );
110 #endif //QGSVERTEXID_H
QString qgsEnumValueToKey(const T &value, bool *returnOk=nullptr)
Returns the value for the given key of an enum.
QgsVertexId(int _part=-1, int _ring=-1, int _vertex=-1, Qgis::VertexType _type=Qgis::VertexType::Segment) SIP_HOLDGIL
Constructor for QgsVertexId.
bool partEqual(QgsVertexId o) const SIP_HOLDGIL
Returns true if this vertex ID belongs to the same part as another vertex ID.
Abstract base class for all geometries.
bool vertexEqual(QgsVertexId o) const SIP_HOLDGIL
Returns true if this vertex ID corresponds to the same vertex as another vertex ID (i....
VertexType
Types of vertex.
bool isValid() const SIP_HOLDGIL
Returns true if the vertex id is valid.
Utility class for identifying a unique vertex within a geometry.
bool ringEqual(QgsVertexId o) const SIP_HOLDGIL
Returns true if this vertex ID belongs to the same ring as another vertex ID (i.e.
bool operator!=(QgsVertexId other) const SIP_HOLDGIL
bool operator==(QgsVertexId other) const SIP_HOLDGIL