#include <Volume.h>
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 () |
| Volume::Volume | ( | const std::string & | strFilename | ) |
Creates a new Volume object and starts loading a file.
| strFilename | is the filename of the .dat volume data. |
| int * Volume::getSize | ( | ) |
Get funtion for the Volumedimensions.
| int Volume::getMinDensity | ( | ) | const [inline] |
| int Volume::getMaxDensity | ( | ) | const [inline] |
| GLuint Volume::getTexture | ( | ) | const [inline] |
| QPixmap* Volume::getHistogramPtr | ( | ) | const [inline] |
| void Volume::load | ( | const std::string & | strFilename | ) | [private] |
Loads the volume data from a binary file and precalculates the gradient at each voxel.
| 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.
1.5.6