HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SIM_RawFieldCellIterator Class Reference

#include <SIM_RawField.h>

Public Member Functions

 SIM_RawFieldCellIterator ()
 
virtual ~SIM_RawFieldCellIterator ()
 
void setArray (const SIM_RawField *field)
 
void rewind ()
 
bool atEnd () const
 
void advance ()
 
int x () const
 
int y () const
 
int z () const
 
int idx (int axis) const
 
bool isStartOfTile () const
 

Protected Attributes

int myIdx [3]
 
int myRes [3]
 

Detailed Description

Allows you to iterate over the voxel cells of a RawField. This is different than iterating over the voxel samples! The idea of getting or setting the raw value doesn't apply here as we are not necessarily alligned with the sample grid.

Definition at line 1490 of file SIM_RawField.h.

Constructor & Destructor Documentation

SIM_RawFieldCellIterator::SIM_RawFieldCellIterator ( )
inline

Definition at line 1493 of file SIM_RawField.h.

virtual SIM_RawFieldCellIterator::~SIM_RawFieldCellIterator ( )
inlinevirtual

Definition at line 1498 of file SIM_RawField.h.

Member Function Documentation

void SIM_RawFieldCellIterator::advance ( )
inline

Definition at line 1520 of file SIM_RawField.h.

bool SIM_RawFieldCellIterator::atEnd ( ) const
inline

Definition at line 1515 of file SIM_RawField.h.

int SIM_RawFieldCellIterator::idx ( int  axis) const
inline

Definition at line 1543 of file SIM_RawField.h.

bool SIM_RawFieldCellIterator::isStartOfTile ( ) const
inline

Returns true if we are at the start of a new tile. Since we don't work on tile basis, we define a single x pass to be a tile.

Definition at line 1548 of file SIM_RawField.h.

void SIM_RawFieldCellIterator::rewind ( )
inline

Definition at line 1508 of file SIM_RawField.h.

void SIM_RawFieldCellIterator::setArray ( const SIM_RawField field)
inline

Definition at line 1502 of file SIM_RawField.h.

int SIM_RawFieldCellIterator::x ( ) const
inline

Definition at line 1540 of file SIM_RawField.h.

int SIM_RawFieldCellIterator::y ( ) const
inline

Definition at line 1541 of file SIM_RawField.h.

int SIM_RawFieldCellIterator::z ( ) const
inline

Definition at line 1542 of file SIM_RawField.h.

Member Data Documentation

int SIM_RawFieldCellIterator::myIdx[3]
protected

Definition at line 1554 of file SIM_RawField.h.

int SIM_RawFieldCellIterator::myRes[3]
protected

Definition at line 1555 of file SIM_RawField.h.


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