MeshIterator
#include <MeshIterator.h>
Public Member Functions | |
MeshIterator (HTMesh *mesh, BufNum bufNum=0) | |
bool | hasNext () const |
Trixel | next () const |
void | reset () const |
int | size () const |
Detailed Description
MeshIterator is a very lightweight class used to iterate over the result set of an HTMesh intersection.
If you want to iterate over the same result set multiple times in the same block of code, you don't need to create a new MeshIterator, just call the reset() method and then re-use the iterator.
Definition at line 20 of file MeshIterator.h.
Constructor & Destructor Documentation
◆ MeshIterator()
MeshIterator::MeshIterator | ( | HTMesh * | mesh, |
BufNum | bufNum = 0 ) |
Definition at line 9 of file MeshIterator.cpp.
Member Function Documentation
◆ hasNext()
|
inline |
true if there are more trixel to iterate over.
Definition at line 27 of file MeshIterator.h.
◆ next()
|
inline |
returns the next trixel
Definition at line 31 of file MeshIterator.h.
◆ reset()
|
inline |
sets the count back to zero so you can use this iterator to iterate again over the same result set.
Definition at line 40 of file MeshIterator.h.
◆ size()
|
inline |
returns the number of trixels stored
Definition at line 35 of file MeshIterator.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.