QGIS API Documentation
3.18.1-Zürich (202f1bf7e5)
|
Java-style iterator for traversal of vertices of a geometry. More...
#include <qgsabstractgeometry.h>
Public Member Functions | |
QgsVertexIterator ()=default | |
Constructor for QgsVertexIterator. More... | |
QgsVertexIterator (const QgsAbstractGeometry *geometry) | |
Constructs iterator for the given geometry. More... | |
bool | hasNext () const |
Find out whether there are more vertices. More... | |
QgsPoint | next () |
Returns next vertex of the geometry (undefined behavior if hasNext() returns false before calling next()) More... | |
Java-style iterator for traversal of vertices of a geometry.
Definition at line 1187 of file qgsabstractgeometry.h.
|
default |
Constructor for QgsVertexIterator.
|
inline |
Constructs iterator for the given geometry.
Definition at line 1194 of file qgsabstractgeometry.h.
|
inline |
Find out whether there are more vertices.
Definition at line 1202 of file qgsabstractgeometry.h.
QgsPoint QgsVertexIterator::next | ( | ) |
Returns next vertex of the geometry (undefined behavior if hasNext() returns false
before calling next())
Definition at line 420 of file qgsabstractgeometry.cpp.