#include <VolumeData.h>
This class is part of the DataStructure namespace which is actually a subnamespace of the main namespace Volume. Furthermore the standard class Object is inherted to the VolumeData class for better controlling of a particular quantity of VolumeData instances.
With an instance of this class it is possible to represent the whole volume data set with all its components and attributes. Furthermore, a set of different member function builds up an interfave with which the access and the controll of the current load volume data will be easily managed.
The following main components are essential for the correct representation of the colume data and, thus, is part of this class:
Public Member Functions | |
VolumeData (void) | |
This is the standard constructor. | |
VolumeData (unsigned short n_VolumeDimension __gc[], unsigned short n_DensityScope) | |
Constructor initialization with the valid volume data dimension. | |
~VolumeData (void) | |
This is the standard deconstructor. | |
__property unsigned short | get_ObjectCount (void) |
Returns the current number of objects. | |
__property unsigned short | get_VolumeDimension (void) __gc[] |
Returns the current volume dimension. | |
__property unsigned int | get_VoxelCountOverall (void) |
Returns the overall count of voxel for the current dataset. | |
__property VoxelData * | get_VoxelDataset (void) |
Returns the current voxel data set. | |
__property bool | get_GradientsPreCalculated (void) |
Returns the flag value whether all gradient values are already calculated and saved or not. | |
__property void | set_GradientsPreCalculated (bool n_GradientsPreCalculated) |
Sets the flag value whether all gradient values are already calculated and saved or not. | |
bool | haveObjects (void) |
Returns whether volume data objects are stored in the current data structure. | |
void | addGeneralObject (String *n_ObjectDescription, unsigned short n_Importance, IRenderer *n_Renderer) |
Creates the general volume data object (always with objectID = 0). | |
unsigned short | addObject (String *n_ObjectDescription, unsigned short n_Importance, IRenderer *n_Renderer) |
Adds a new volume data object object to the current data structure. | |
void | removeObject (unsigned short n_ObjectID) |
Removes the specified volume data object of the current volume data set. | |
void | addVoxel (unsigned short n_VoxelCoordinates __gc[], unsigned short n_Density, unsigned short n_ObjectID) |
Sets the specified voxel element with the choosen density value and object ID. | |
void | addVoxel (unsigned short n_VoxelCoordinates __gc[], unsigned short n_Density) |
Sets the specified voxel element with the choosen density value. | |
DataObject * | getObjectMember (unsigned short n_ObjectID) |
Returns the data object width the specified objectID. | |
Array * | getObjectIDs (void) |
Returns all used object IDs of the current data set. | |
DataObject * | getObjectMember (unsigned short n_VoxelCoordinates __gc[]) |
Returns the data object to which the specified voxel belongs. | |
DataObject * | getGeneralDataObject (void) |
Returns the general data object (objectID = 0). | |
int | getMaxVoxelCount (void) |
Returns the overall numer of voxels of the current volume data set. | |
unsigned short | getVoxelSliceX (unsigned short n_SliceX) __gc[ |
Returns the slice of the volume data set with the constant specified x-value. | |
unsigned short unsigned short | getVoxelSliceY (unsigned short n_SliceY) __gc[ |
Returns the slice of the volume data set with the constant specified y-value. | |
unsigned short unsigned short unsigned short | getVoxelSliceZ (unsigned short n_SliceZ) __gc[ |
Returns the slice of the volume data set with the constant specified z-value. | |
unsigned short unsigned short unsigned short void | setIIDVRCompositingModel (IIDVRCompositingModel *n_IIDVRCompositingModel) |
Sets a new IIDVRCompositingModel. | |
IIDVRCompositingModel * | getIIDVRCompositingModel (void) |
Returns the IIDVRCompositingModel of the current volume data set. | |
void | createGeneralIDVRObjects (void) |
Creates the general IIDVRCompositingModel (MImP with ColAndOp). | |
void | resetDataset (void) |
Resets the current volume data set to default status. | |
unsigned short | getVoxelImportance (unsigned short n_DataItem) |
Returns the importance value of the choosen object ID. | |
unsigned short | getVoxelImportance (unsigned short n_VoxelCoordinates __gc[]) |
Returns the importance value of the choosen voxel coordinates. | |
unsigned short | getVoxelImportance (unsigned short n_Column, unsigned short n_Row, unsigned short n_Depth) |
Returns the importance value of the choosen voxel coordinates. | |
Private Types | |
enum | Indices |
Constant index values for the three components of the three dimensional volume data set. | |
Private Attributes | |
unsigned short | m_DensityScope |
Saves the maximum valid density scope (e.g. | |
unsigned short | m_NextFreeObjectKey |
Stores the next number which is not been assigned to a specific data object. | |
bool | m_GradientsPreCalculated |
Gives information about whether the gradient values are already calcualeted or not. | |
VoxelData * | m_VoxelData |
Saves the actual voxel data. | |
Hashtable * | m_ObjectList |
Saves the actual volume data objects whereas the hash key is an unique number and the hash value is an instance of the DataObject class. | |
IIDVRCompositingModel * | m_IIDVRCompositingModel |
Saves the calculated data for IDVR compositing. |
|
This is the standard constructor. All member variables of this new instance will be set to zero/null. |
|
Constructor initialization with the valid volume data dimension. All member variables will be set to zero.
|
|
This is the standard deconstructor. All member variables will be deleted. |
|
Creates the general volume data object (always with objectID = 0). This general data object represents the entire voume data. Thus, this data object must be always generated for correct representation of the data set.
|
|
Adds a new volume data object object to the current data structure.
|
|
Sets the specified voxel element with the choosen density value. The associated volume data object is the current general data object (ID = 0).
|
|
Sets the specified voxel element with the choosen density value and object ID.
|
|
Creates the general IIDVRCompositingModel (MImP with ColAndOp).
|
|
Returns the flag value whether all gradient values are already calculated and saved or not.
|
|
Returns the current number of objects.
|
|
Returns the current volume dimension.
|
|
Returns the overall count of voxel for the current dataset.
|
|
Returns the current voxel data set.
|
|
Returns the general data object (objectID = 0).
|
|
Returns the IIDVRCompositingModel of the current volume data set.
|
|
Returns the overall numer of voxels of the current volume data set.
|
|
Returns all used object IDs of the current data set.
|
|
Returns the data object to which the specified voxel belongs.
|
|
Returns the data object width the specified objectID.
|
|
Returns the importance value of the choosen voxel coordinates.
|
|
Returns the importance value of the choosen voxel coordinates.
|
|
Returns the importance value of the choosen object ID.
|
|
Returns the slice of the volume data set with the constant specified x-value.
|
|
Returns the slice of the volume data set with the constant specified y-value.
|
|
Returns the slice of the volume data set with the constant specified z-value.
|
|
Returns whether volume data objects are stored in the current data structure.
|
|
Removes the specified volume data object of the current volume data set.
|
|
Resets the current volume data set to default status. That means all objectIDs will be set to GENERALOBJECT and all stored volume data objects will be removed. |
|
Sets the flag value whether all gradient values are already calculated and saved or not.
|
|
Sets a new IIDVRCompositingModel.
|
|
Saves the maximum valid density scope (e.g. 4096) |