#include <Neu.h>
This class is part of the main application namespace IDVR and contains the definition of the Main GUI window and is the actual main entrance class of the IDVR application.
All main settings and actions of the IDVR application wiil be managed by this class and it creates the main GUI window with which the user will handle the application. The loading of the volume data file and possible mask files, the selction of rendering models and almost any other main funtion of this application will be controlled by this class. Also the rendering settings, tansformation settings of the image plane are provided.
Furthermore, all essential data memeber of the entire application are included here which are the volume data structure, the image plane and the light model.
The API documentation for this class shows only the most important member variables and function. Event handling functions and GUI components (e.g. labels, textboxes,...) will not be included but all essential parts of the class are surely documented.
ImagePlane - the image plane with all needed attributes.
Light - the light model and its attributes.
Public Member Functions | |
Neu (void) | |
This is the standard constructor. | |
Protected Member Functions | |
void | Dispose (Boolean disposing) |
Destroys all GUI components before this current instance will be actually discarded. | |
Private Types | |
enum | Indices |
Constant index values for the three components of the three dimensional volume data set. | |
Private Member Functions | |
void | InitializeComponent (void) |
The main function to create the all needed GUI components. | |
void | startRenderingProcess (void) |
Starts the actual rendering process for the image. | |
void | loadDatasetFile (String *n_FileName) |
Handles the loading process of the volume data set. | |
void | loadMaskDataFile (String *n_MaskFileName) |
Handles the loading process of the mask data. | |
void | initialize_Elements (void) |
Initializes all GUI components with the default values. | |
void | reinitialize_GUIComponents (void) |
Resets all essential GUI components to the default values. | |
void | setGUIElementsToReadyStatus (void) |
Sets the GUI components to the READY status if the volume data has been loaded successfully. | |
void | setGUIElementsToRenderedStatus (void) |
Sets the GUI components to the READY status if the rendering process has been finished. | |
void | setGUIElementsToNoDataLoadedStatus (void) |
Sets the GUI components to the NODATALOADED status if the volume data loading has been interrupted. | |
void | setCanvasImageElements (void) |
Updates the image plane attributes and the status bar if the user change those attributes over the GUI. | |
void | setGUIElementsToTwoLevelRenderingStatus (void) |
Sets the GUI components to the TWOLEVELRENDERIN status if two-level rendering has been selected. | |
void | setGUIElementsToNonTwoLevelRenderingStatus (void) |
Sets the GUI components to the NONTWOLEVELRENDERIN status if two-level rendering has not been selected. | |
void | setLightDirectionDisplay (void) |
Updates the status bar with the new choosen attributes of the light direction. | |
void | setViewDirectionDisplay (void) |
Updates the status bar with the new choosen attributes of the view direction. | |
Private Attributes | |
unsigned char | m_GradientEstimationMode |
Saves the current gradient calculation mode. | |
unsigned char | m_RenderType |
Saves the current render type. | |
unsigned char | m_LightViewMode |
Saves the current light view mode. | |
unsigned char | m_DensityInterpolationMode |
Saves the current interpolation mode of the density values. | |
unsigned char | m_GradientInterpolationMode |
Saves the current interpolation mode of the gradient values. | |
unsigned char | m_VoxelIDInterpolationMode |
Saves the current interpolation mode of the object ID values. | |
ImagePlane * | m_ImagePlane |
Saves the current image plane of the main canvas. | |
Light * | m_Light |
Saves the assigned light model. | |
Transferfunction * | m_TransFuncInput |
Saves the current choosen transfer function of the transfer funtion preview. | |
DataLoader * | m_VolumeData |
Saves the current loaded volume data set. | |
OpenGLCanvas * | m_Canvas |
Saves the current used canvas window. | |
OpenGLPreviewCanvas * | m_PreviewCanvas |
Saves the current used preview canvas window. |
|
This is the standard constructor. It implements the standard initialization of the GUI window and actually start a thread to create and control a specific dialog window. |
|
Destroys all GUI components before this current instance will be actually discarded.
|
|
Initializes all GUI components with the default values. This function will be only called by the constructor Neu:Neu. |
|
The main function to create the all needed GUI components. Furthermore, the linking of those created GUI components (e.g. labels, textboxes,...) to the current container is implemented. After the correct linking all GUI items will be shown on the screen.
|
|
Handles the loading process of the volume data set. This function starts the loading process by creating an instance of the class DataLoader.
|
|
Handles the loading process of the mask data. This function starts the loading process by creating an instance of the class DataLoader.
|
|
Resets all essential GUI components to the default values.
|
|
Updates the image plane attributes and the status bar if the user change those attributes over the GUI.
|
|
Sets the GUI components to the NODATALOADED status if the volume data loading has been interrupted.
|
|
Sets the GUI components to the NONTWOLEVELRENDERIN status if two-level rendering has not been selected.
|
|
Sets the GUI components to the READY status if the volume data has been loaded successfully.
|
|
Sets the GUI components to the READY status if the rendering process has been finished.
|
|
Sets the GUI components to the TWOLEVELRENDERIN status if two-level rendering has been selected.
|
|
Updates the status bar with the new choosen attributes of the light direction.
|
|
Updates the status bar with the new choosen attributes of the view direction.
|
|
Starts the actual rendering process for the image. The resulting image will be drawn onto the canvas. |
|
Saves the assigned light model. The instance includes all needed light model settings |
|
Saves the current render type. This flag variable will not be used actually. |