Main Page | Packages | Class Hierarchy | Class List | Directories | Class Members

IDVR.Neu Class Reference

#include <Neu.h>

List of all members.


Detailed Description

GUI class for creating the Main GUI window..

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.

See also:
VolumeData - represents the volume data structure.

ImagePlane - the image plane with all needed attributes.

Light - the light model and its attributes.

Author:
Bernhard Pflugfelder
Version:
1.0
Date:
02-21-2005


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.
ImagePlanem_ImagePlane
 Saves the current image plane of the main canvas.
Lightm_Light
 Saves the assigned light model.
Transferfunction * m_TransFuncInput
 Saves the current choosen transfer function of the transfer funtion preview.
DataLoaderm_VolumeData
 Saves the current loaded volume data set.
OpenGLCanvasm_Canvas
 Saves the current used canvas window.
OpenGLPreviewCanvasm_PreviewCanvas
 Saves the current used preview canvas window.


Constructor & Destructor Documentation

IDVR.Neu.Neu void   ) 
 

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.


Member Function Documentation

void IDVR.Neu.Dispose Boolean  disposing  )  [protected]
 

Destroys all GUI components before this current instance will be actually discarded.

Parameters:
disposing is a flag variable which is true if the instance have to be discarded.

void Neu::initialize_Elements void   )  [private]
 

Initializes all GUI components with the default values.

This function will be only called by the constructor Neu:Neu.

void IDVR.Neu.InitializeComponent void   )  [private]
 

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.

Note:
This function must not be changed in a code editor because otherwise the GUI builder could be working incorrectly.

void Neu::loadDatasetFile String *  n_FileName  )  [private]
 

Handles the loading process of the volume data set.

This function starts the loading process by creating an instance of the class DataLoader.

Parameters:
n_FileName the user-defined file name and path of the *.dat file.

void Neu::loadMaskDataFile String *  n_MaskFileName  )  [private]
 

Handles the loading process of the mask data.

This function starts the loading process by creating an instance of the class DataLoader.

Parameters:
n_MaskFileName the user-defined file name and path of the *.mask file.

void Neu::reinitialize_GUIComponents void   )  [private]
 

Resets all essential GUI components to the default values.

void Neu::setCanvasImageElements void   )  [private]
 

Updates the image plane attributes and the status bar if the user change those attributes over the GUI.

void Neu::setGUIElementsToNoDataLoadedStatus void   )  [private]
 

Sets the GUI components to the NODATALOADED status if the volume data loading has been interrupted.

void Neu::setGUIElementsToNonTwoLevelRenderingStatus void   )  [private]
 

Sets the GUI components to the NONTWOLEVELRENDERIN status if two-level rendering has not been selected.

void Neu::setGUIElementsToReadyStatus void   )  [private]
 

Sets the GUI components to the READY status if the volume data has been loaded successfully.

void Neu::setGUIElementsToRenderedStatus void   )  [private]
 

Sets the GUI components to the READY status if the rendering process has been finished.

void Neu::setGUIElementsToTwoLevelRenderingStatus void   )  [private]
 

Sets the GUI components to the TWOLEVELRENDERIN status if two-level rendering has been selected.

void Neu::setLightDirectionDisplay void   )  [private]
 

Updates the status bar with the new choosen attributes of the light direction.

void Neu::setViewDirectionDisplay void   )  [private]
 

Updates the status bar with the new choosen attributes of the view direction.

void Neu::startRenderingProcess void   )  [private]
 

Starts the actual rendering process for the image.

The resulting image will be drawn onto the canvas.


Member Data Documentation

Light* IDVR.Neu.m_Light [private]
 

Saves the assigned light model.

The instance includes all needed light model settings

unsigned char IDVR.Neu.m_RenderType [private]
 

Saves the current render type.

This flag variable will not be used actually.


The documentation for this class was generated from the following files:
Generated on Sat Apr 9 11:50:59 2005 for RayCaster wiht Importance Driven Volume Rendering (IDVR) by  doxygen 1.4.1