Util::VoxelGrid< T > Class Template Reference

#include <VoxelGrid.h>

List of all members.

Public Member Functions

 VoxelGrid (unsigned int width, unsigned int height, unsigned int depth)
T & operator() (unsigned int x, unsigned int y, unsigned int z)
const T & operator() (unsigned int x, unsigned int y, unsigned int z) const
unsigned int getWidth () const
unsigned int getHeight () const
unsigned int getDepth () const


Detailed Description

template<typename T>
class Util::VoxelGrid< T >

Class template for storing a voxel grid of values.


Constructor & Destructor Documentation

template<typename T>
Util::VoxelGrid< T >::VoxelGrid unsigned int  width,
unsigned int  height,
unsigned int  depth
 

Creates a voxel grid of the specified dimensions.

Parameters:
width the voxel grid width.
height the voxel grid height.
depth the voxel grid depth.


Member Function Documentation

template<typename T>
unsigned int Util::VoxelGrid< T >::getDepth  )  const
 

Gets the depth of the voxel grid.

Returns:
The voxel grid depth.

template<typename T>
unsigned int Util::VoxelGrid< T >::getHeight  )  const
 

Gets the height of the voxel grid.

Returns:
The voxel grid height.

template<typename T>
unsigned int Util::VoxelGrid< T >::getWidth  )  const
 

Gets the width of the voxel grid.

Returns:
The voxel grid width.

template<typename T>
const T & Util::VoxelGrid< T >::operator() unsigned int  x,
unsigned int  y,
unsigned int  z
const
 

Gets the element at the specified location.

Parameters:
x the x coordinate.
y the y coordinate.
z the z coordinate.
Returns:
The element at the specified location.

template<typename T>
T & Util::VoxelGrid< T >::operator() unsigned int  x,
unsigned int  y,
unsigned int  z
 

Gets the element at the specified location.

Parameters:
x the x coordinate.
y the y coordinate.
z the z coordinate.
Returns:
The element at the specified location.


The documentation for this class was generated from the following file:
Generated on Fri Jun 16 08:42:54 2006 for GPU Thesis by  doxygen 1.4.6-NO