SpatialGrid::VoxelIterator Class Reference

SpatialGrid::VoxelIterator Class Reference

#include <mesh.h>

Class Description

Definition at line 1346 of file mesh.h.

Public Member Functions

 VoxelIterator (const ExtendableStore< unsigned int > &data)
 
void next ()
 
bool isDone () const
 
unsigned int value () const
 

Constructor & Destructor Documentation

VoxelIterator ( const ExtendableStore< unsigned int > &  data)
inline

Definition at line 1349 of file mesh.h.

1349  : fData(data), fIndex(0)
1350  {
1351  if( fData.ItemCount() > 0 && fData[fIndex] == INVALID_ID )
1352  next();
1353  }
#define INVALID_ID
Definition: mesh.h:47
unsigned int ItemCount() const
Returns the number of items in the array.
Definition: array.h:718

Member Function Documentation

void next ( )
inline

Definition at line 1355 of file mesh.h.

1355 { while( ++fIndex < fData.ItemCount() && fData[fIndex] == INVALID_ID ); }
#define INVALID_ID
Definition: mesh.h:47
unsigned int ItemCount() const
Returns the number of items in the array.
Definition: array.h:718
bool isDone ( ) const
inline

Definition at line 1356 of file mesh.h.

1356 { return fIndex >= fData.ItemCount(); }
unsigned int ItemCount() const
Returns the number of items in the array.
Definition: array.h:718
unsigned int value ( ) const
inline

Definition at line 1357 of file mesh.h.

1357 { return fData[fIndex]; }

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