Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

vlVolIter< DataType, vlLayout::Generic > Class Template Reference

This class defines an iterator for "linear" data volumes. More...

#include <vlvoliter_generic.h>

Inheritance diagram for vlVolIter< DataType, vlLayout::Generic >:

vlVolIterConst< DataType, vlLayout::Generic > vlVolIterBase< DataType > vlVolIterBaseConst< DataType > vlVolIterSuperBase List of all members.

Public Member Functions

 vlVolIter (vlVolume *vol)
 Constructor when volume pointer is provided.

 vlVolIter (vlVolData *data)
 Constructor when volume data pointer is provided.

virtual ~vlVolIter ()
 default destructor

bool set (const DataType &value)
 Set the value of voxel at current position.

bool setRelative (const vlOffset &offset, const DataType &value)
 set value at a voxel offset from the current one

bool setRelativeNBC (const vlOffset &offset, const DataType &value)
 Same as getRelative but with NBC = No Boundary Check, thus faster.

bool setRelativeX (const int32 offset, const DataType &value)
 Get the voxel along X axis.

bool setRelativeY (const int32 offset, const DataType &value)
 Get the voxel along Y axis.

bool setRelativeZ (const int32 offset, const DataType &value)
 Get the voxel along Z axis.

bool setNeighbor (const DataType &value)
 Set the current neighbor of the current voxel.


Detailed Description

template<typename DataType>
class vlVolIter< DataType, vlLayout::Generic >

It is derived from vlVolIterator.

Todo:
Make & use local copies of m_step, m_dimLimit etc

Replace m_rData with m_pData and check performance

Add robust error checks - easy if moved to m_pData

Author:
Sarang Lakare <sarang@users.sf.net>

Definition at line 45 of file vlvoliter_generic.h.


Constructor & Destructor Documentation

template<typename DataType>
virtual vlVolIter< DataType, vlLayout::Generic >::~vlVolIter  )  [inline, virtual]
 


Member Function Documentation

template<typename DataType>
bool vlVolIter< DataType, vlLayout::Generic >::set const DataType &  value  )  [virtual]
 

Implements vlVolIterBase< DataType >.

template<typename DataType>
bool vlVolIter< DataType, vlLayout::Generic >::setNeighbor const DataType &  value  )  [virtual]
 

Implements vlVolIterBase< DataType >.

template<typename DataType>
bool vlVolIter< DataType, vlLayout::Generic >::setRelative const vlOffset offset,
const DataType &  value
[virtual]
 

Implements vlVolIterBase< DataType >.

template<typename DataType>
bool vlVolIter< DataType, vlLayout::Generic >::setRelativeNBC const vlOffset offset,
const DataType &  value
[virtual]
 

Implements vlVolIterBase< DataType >.

template<typename DataType>
bool vlVolIter< DataType, vlLayout::Generic >::setRelativeX const int32  offset,
const DataType &  value
[virtual]
 

Implements vlVolIterBase< DataType >.

template<typename DataType>
bool vlVolIter< DataType, vlLayout::Generic >::setRelativeY const int32  offset,
const DataType &  value
[virtual]
 

Implements vlVolIterBase< DataType >.

template<typename DataType>
bool vlVolIter< DataType, vlLayout::Generic >::setRelativeZ const int32  offset,
const DataType &  value
[virtual]
 

Implements vlVolIterBase< DataType >.

template<typename DataType>
vlVolIter< DataType, vlLayout::Generic >::vlVolIter vlVolData data  )  [inline]
 

template<typename DataType>
vlVolIter< DataType, vlLayout::Generic >::vlVolIter vlVolume vol  )  [inline]
 


The documentation for this class was generated from the following file:
Generated on Fri Mar 18 11:33:21 2005 for OpenVL by doxygen 1.3.3