Volume Class Reference

Class Volume. More...

#include <Volume.h>

List of all members.

Classes

class  Voxel
 Class Voxel. More...

Public Member Functions

 Volume ()
 Konstruktor (with initial-setting of the Values).
 Volume (std::string strFilename)
 Konstruktor (Volume loaded from a file).
 ~Volume (void)
 Destruktor.
const VoxelGet (const int xPos, const int yPos, const int zPos) const
 returns a Voxel on the specified Coordinated
const VoxelGet (const int index) const
 returns a Voxel on the specified Index
const VoxelGet () const
 returns the first Voxel
const int GetWidth () const
 returns the Volume-Width
const int GetHeight () const
 returns the Volume-Height
const int GetDepth () const
 returns the Volume-Depth
const int GetSize () const
 returns the number of Voxels
void clear ()
 clears all Voxel-Info
void load (const std::string strFilename)
 loads a Volume from the specified file

Private Attributes

std::vector< VoxelvoxelVec
 saves all Voxels in a Vector
int width
 saves the Width of the Volume
int height
 saves the Height of the Volume
int depth
 saves the Depth of the Volume


Detailed Description

Class Volume.

Class used to handle a Volume-Data-File and to get Information on the Volume


Constructor & Destructor Documentation

Volume::Volume (  )  [inline]

Konstruktor (with initial-setting of the Values).

Volume::Volume ( std::string  strFilename  )  [inline]

Konstruktor (Volume loaded from a file).

Volume::~Volume ( void   )  [inline]

Destruktor.


Member Function Documentation

void Volume::clear (  )  [inline]

clears all Voxel-Info

const Voxel* Volume::Get (  )  const [inline]

returns the first Voxel

const Voxel& Volume::Get ( const int  index  )  const [inline]

returns a Voxel on the specified Index

const Voxel& Volume::Get ( const int  xPos,
const int  yPos,
const int  zPos 
) const [inline]

returns a Voxel on the specified Coordinated

const int Volume::GetDepth (  )  const [inline]

returns the Volume-Depth

const int Volume::GetHeight (  )  const [inline]

returns the Volume-Height

const int Volume::GetSize (  )  const [inline]

returns the number of Voxels

const int Volume::GetWidth (  )  const [inline]

returns the Volume-Width

void Volume::load ( const std::string  strFilename  )  [inline]

loads a Volume from the specified file


Member Data Documentation

int Volume::depth [private]

saves the Depth of the Volume

int Volume::height [private]

saves the Height of the Volume

std::vector<Voxel> Volume::voxelVec [private]

saves all Voxels in a Vector

int Volume::width [private]

saves the Width of the Volume


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

Generated on Wed Dec 10 00:10:26 2008 for VolViz by  doxygen 1.5.7.1