#include <Volume.h>
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 Voxel & | Get (const int xPos, const int yPos, const int zPos) const |
returns a Voxel on the specified Coordinated | |
const Voxel & | Get (const int index) const |
returns a Voxel on the specified Index | |
const Voxel * | Get () 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< Voxel > | voxelVec |
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 |
Class used to handle a Volume-Data-File and to get Information on the Volume
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.
void Volume::clear | ( | ) | [inline] |
clears all Voxel-Info
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
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