QGIS API Documentation 3.99.0-Master (21b3aa880ba)
Loading...
Searching...
No Matches
QgsVertexIterator Class Reference

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

#include <qgsabstractgeometry.h>

Public Member Functions

 QgsVertexIterator ()=default
 QgsVertexIterator (const QgsAbstractGeometry *geometry)
 Constructs iterator for the given geometry.
bool hasNext () const
 Find out whether there are more vertices.
QgsPoint next ()
 Returns next vertex of the geometry (undefined behavior if hasNext() returns false before calling next()).

Detailed Description

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

Definition at line 1214 of file qgsabstractgeometry.h.

Constructor & Destructor Documentation

◆ QgsVertexIterator() [1/2]

QgsVertexIterator::QgsVertexIterator ( )
default

◆ QgsVertexIterator() [2/2]

QgsVertexIterator::QgsVertexIterator ( const QgsAbstractGeometry * geometry)
inline

Constructs iterator for the given geometry.

Definition at line 1221 of file qgsabstractgeometry.h.

Member Function Documentation

◆ hasNext()

bool QgsVertexIterator::hasNext ( ) const
inline

Find out whether there are more vertices.

Definition at line 1229 of file qgsabstractgeometry.h.

◆ next()

QgsPoint QgsVertexIterator::next ( )

Returns next vertex of the geometry (undefined behavior if hasNext() returns false before calling next()).

Definition at line 549 of file qgsabstractgeometry.cpp.


The documentation for this class was generated from the following files: