#include <DataLoader.h>
This class is part of the main namespace Volume in which it is the only memeber class besides the subnamespace DataStructure.
With this class the loading of the entire volume data set from an arbitrary choosen *.dat file (ordinary ASCII-Textfile with the file extension .dat) will be easily achived. Only the valid file name and file path must be specified outside of this class structure in an instance of the main GUI class Neu.
Furthermore, this class contains the essantial member object of the class VolumeData which is the controll class of the stored volume data structure after the loading process. Every class which accesses this volume data structure has to do this by using this member object.
Note that with the deleting of the instance of this class also the current loaded volume data structure will be lost.
VolumeData - the main datastructure class.
Public Member Functions | |
DataLoader (void) | |
This is the standard constructor. | |
~DataLoader (void) | |
This is the standard deconstructor. | |
void | readDataFile (void) |
Reads the entire volume data structure from file and initialze the actual data structure. | |
unsigned short | readMaskFile (String *n_ObjectDescription) |
Reads the mask data from file and sets the corresponding voxel object ID numbers. | |
void | calculateGradients (void) |
Calculates all gradient vector values of the volume data structure. | |
void | clearDataSet (void) |
Delets the entire data structure for saving memory. | |
void | resetObjectIDs (void) |
Resets the object IDs of all voxels of the volume data structure to the general object. | |
__property void | set_FileName (String *n_FileName) |
Sets a new file name and file path for upcoming loading processes. | |
__property String * | get_FileName (void) |
Returns the current file name and file path. | |
__property void | set_GradientEstimationMode (unsigned char n_GradientEstimationMode) |
Sets a new gradient calculation mode for upcoming loading processes. | |
VolumeData * | getDataset (void) |
Returns the current volume data structure. | |
Public Attributes | |
VolumeData * | m_Dataset |
Saves the current volume data structure. | |
Private Types | |
enum | voxelIndices |
Constant index values for the three components of the three dimensional volume data set. | |
Private Attributes | |
unsigned char | m_GradientEstimationMode |
Saves the current gradient calculation mode. | |
String * | m_FileName |
Saves the current file name and file path. |
|
This is the standard constructor. All member variables of this new instance will be set to zero/null. |
|
This is the standard deconstructor. All member variables will be deleted. |
|
Calculates all gradient vector values of the volume data structure.
This function will be only used if the current data set is not too big because the saving of the gradients consumes lot of memory. Thus, if the current data set is actually too big (see DataLoader::MaxUsableMemory for the maximum usable memory size) the gradients will be calculated during the rendering process.
|
|
Delets the entire data structure for saving memory.
|
|
Returns the current file name and file path.
|
|
Returns the current volume data structure.
|
|
Reads the entire volume data structure from file and initialze the actual data structure. This function encapsulates the main task of this class which is the loading of the volume data structure from the already specified file name (see DataLoader.set_FileName). The loaded data will be automatically saved in an instance of the class VolumeData which is the member object DataLoader.m_Dataset. |
|
Reads the mask data from file and sets the corresponding voxel object ID numbers. This function loads the mask data from the already specified file name (see DataLoader.set_FileName) and updates the current member object DataLoader.m_Dataset. This means a new volume data object has to be created and the corresponding voxel object ID keys have to be set.
|
|
Resets the object IDs of all voxels of the volume data structure to the general object.
|
|
Sets a new file name and file path for upcoming loading processes.
|
|
Sets a new gradient calculation mode for upcoming loading processes.
|