Volume Class Reference

#include <Volume.h>

List of all members.

Public Member Functions

 Volume (const std::string &strFilename)
int * getSize ()
int getMinDensity () const
int getMaxDensity () const
GLuint getTexture () const
QPixmap * getHistogramPtr () const

Private Member Functions

void load (const std::string &strFilename)
void createTexture ()
void createHistogram ()


Detailed Description

Represents a new Volume object.

Constructor & Destructor Documentation

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

Creates a new Volume object and starts loading a file.

Parameters:
strFilename is the filename of the .dat volume data.


Member Function Documentation

int * Volume::getSize (  ) 

Get funtion for the Volumedimensions.

Returns:
The size of the volume.

int Volume::getMinDensity (  )  const [inline]

Returns:
The minimum density.

int Volume::getMaxDensity (  )  const [inline]

Returns:
The maximum density.

GLuint Volume::getTexture (  )  const [inline]

Returns:
The id of the texture.

QPixmap* Volume::getHistogramPtr (  )  const [inline]

Returns:
The pointer to the histogram pixmap.

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

Loads the volume data from a binary file and precalculates the gradient at each voxel.

Parameters:
strFilename is the filename of the .dat volume data.

void Volume::createTexture (  )  [private]

Generates the Volumetexture and sends it to the graphics card.

void Volume::createHistogram (  )  [private]

Generates the histogram for the gradienteditor.


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

Generated on Tue Dec 9 22:48:07 2008 by  doxygen 1.5.6