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() );
VertexType
Types of vertex.
Abstract base class for all geometries.
QString qgsEnumValueToKey(const T &value)
Returns the value for the given key of an enum.
Utility class for identifying a unique vertex within a geometry.
bool operator!=(QgsVertexId other) const SIP_HOLDGIL
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 partEqual(QgsVertexId o) const SIP_HOLDGIL
Returns true if this vertex ID belongs to the same part as another vertex ID.
QgsVertexId(int _part=-1, int _ring=-1, int _vertex=-1, Qgis::VertexType _type=Qgis::VertexType::Segment) SIP_HOLDGIL
Constructor for QgsVertexId.
bool isValid() const SIP_HOLDGIL
Returns true if the vertex id is valid.
bool vertexEqual(QgsVertexId o) const SIP_HOLDGIL
Returns true if this vertex ID corresponds to the same vertex as another vertex ID (i....
bool operator==(QgsVertexId other) const SIP_HOLDGIL