49 return part == other.part &&
ring == other.ring &&
vertex == other.vertex;
53 return part != other.part ||
ring != other.ring ||
vertex != other.vertex;
100 SIP_PYOBJECT __repr__();
102 QString str = QStringLiteral(
"<QgsVertexId: %1,%2,%3 %4>" ).arg( sipCpp->part ).arg( sipCpp->ring ).arg( sipCpp->vertex ).arg(
qgsEnumValueToKey( sipCpp->type ) );
103 sipRes = PyUnicode_FromString( str.toUtf8().data() );
VertexType
Types of vertex.
@ Segment
The actual start or end point of a segment.
Abstract base class for all geometries.
QString qgsEnumValueToKey(const T &value, bool *returnOk=nullptr)
Returns the value for the given key of an enum.
bool isValid() const
Returns true if the vertex id is valid.
bool vertexEqual(QgsVertexId o) const
Returns true if this vertex ID corresponds to the same vertex as another vertex ID (i....
bool operator==(QgsVertexId other) const
bool operator!=(QgsVertexId other) const
Qgis::VertexType type
Vertex type.
bool ringEqual(QgsVertexId o) const
Returns true if this vertex ID belongs to the same ring as another vertex ID (i.e.
QgsVertexId(int _part=-1, int _ring=-1, int _vertex=-1, Qgis::VertexType _type=Qgis::VertexType::Segment)
Constructor for QgsVertexId.
bool partEqual(QgsVertexId o) const
Returns true if this vertex ID belongs to the same part as another vertex ID.