MeshIterator

Search for usage in LXR

MeshIterator Class Reference

#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()

bool MeshIterator::hasNext ( ) const
inline

true if there are more trixel to iterate over.

Definition at line 27 of file MeshIterator.h.

◆ next()

Trixel MeshIterator::next ( ) const
inline

returns the next trixel

Definition at line 31 of file MeshIterator.h.

◆ reset()

void MeshIterator::reset ( ) const
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()

int MeshIterator::size ( ) const
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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.