QgsVertexIterator class

Java-style iterator for traversal of vertices of a geometry.

Constructors, destructors, conversion operators

QgsVertexIterator() defaulted
Constructor for QgsVertexIterator.
QgsVertexIterator(const QgsAbstractGeometry* geometry)
Constructs iterator for the given geometry.

Public functions

auto hasNext() const -> bool
Find out whether there are more vertices.
auto next() -> QgsPoint
Returns next vertex of the geometry (undefined behavior if hasNext() returns false before calling next())