QGIS API Documentation  3.4.15-Madeira (e83d02e274)
Public Member Functions | List of all members
QgsVertexIterator Class Reference

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...
 

Detailed Description

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

Since
QGIS 3.0

Definition at line 1013 of file qgsabstractgeometry.h.

Constructor & Destructor Documentation

QgsVertexIterator::QgsVertexIterator ( )
default

Constructor for QgsVertexIterator.

QgsVertexIterator::QgsVertexIterator ( const QgsAbstractGeometry geometry)
inline

Constructs iterator for the given geometry.

Definition at line 1020 of file qgsabstractgeometry.h.

Member Function Documentation

bool QgsVertexIterator::hasNext ( ) const
inline

Find out whether there are more vertices.

Definition at line 1028 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 410 of file qgsabstractgeometry.cpp.


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