Volume Class Reference

#include <Volume.h>

List of all members.

Public Member Functions

 Volume ()
 Volume (const std::string &strFilename)
 ~Volume (void)
void load (const std::string &strFilename)
void release ()
const VoxelgetVoxel (const int iX, const int iY, const int iZ) const
const VoxelgetVoxel (const int iIndex) const
const VoxelgetVolume () const
const int getSizeX () const
const int getSizeY () const
const int getSizeZ () const
const int getSize () const
const int * getDensityDistribution () const


Detailed Description

Simple linear volume class which supports loading from DAT files

Definition at line 13 of file Volume.h.


Constructor & Destructor Documentation

Volume::Volume (  ) 

Definition at line 4 of file Volume.cpp.

References release().

Here is the call graph for this function:

Volume::Volume ( const std::string &  strFilename  ) 

Definition at line 9 of file Volume.cpp.

References load(), and release().

Here is the call graph for this function:

Volume::~Volume ( void   ) 

Definition at line 15 of file Volume.cpp.

References release().

Here is the call graph for this function:


Member Function Documentation

void Volume::load ( const std::string &  strFilename  ) 

Definition at line 21 of file Volume.cpp.

References DENSITY_COUNT.

Referenced by Volume().

void Volume::release (  ) 

Definition at line 107 of file Volume.cpp.

Referenced by Volume(), and ~Volume().

const Voxel& Volume::getVoxel ( const int  iX,
const int  iY,
const int  iZ 
) const [inline]

Get physical address of voxel with given coordinates

Definition at line 29 of file Volume.h.

const Voxel& Volume::getVoxel ( const int  iIndex  )  const [inline]

Get physical address of voxel with given index

Definition at line 39 of file Volume.h.

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

Get a pointer to the voxel-array

Definition at line 49 of file Volume.h.

Referenced by OpenGLWidget::create3DTexture().

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

Get size in x

Definition at line 58 of file Volume.h.

Referenced by OpenGLWidget::create3DTexture().

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

Get size in y

Definition at line 67 of file Volume.h.

Referenced by OpenGLWidget::create3DTexture().

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

Get size in z

Definition at line 76 of file Volume.h.

Referenced by OpenGLWidget::create3DTexture().

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

Get size in of volume (i.e., number of voxels)

Definition at line 85 of file Volume.h.

const int* Volume::getDensityDistribution (  )  const [inline]

Return histogram array

Definition at line 93 of file Volume.h.


The documentation for this class was generated from the following files:
Generated on Mon Dec 10 18:18:28 2007 for VisLU by  doxygen 1.5.4