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

IDVR.TransferFuncWin Class Reference

#include <TransferFuncWin.h>

List of all members.


Detailed Description

GUI class for the transfer function editor.

namespace: IDVR

Baseclass: System::Windows::Forms::Form

This is the GUI class for the transfer function editor. It provides methods modify the opacity and color values of a certain density value of a given object and so design a user specified transfer function.

Author:
Christopher Thurnher
Version:
1.0
Date:
02-21-2005


Public Member Functions

 TransferFuncWin (DataLoader *n_VolumeData, int objectID, char n_RenderingMode, Transferfunction *n_TransFunc)
 Constructor.
void set_selectedObjectID (unsigned short n_SelectedObjectID)
 Sets the objectID of the transfer function.
void setPreViewPanel (Panel *n_Pan_PreView)
 Sets the preview panel.
void setTitleAddition (String *n_TitleAddition)
 Expands the title.
void setControlSubItem (TD::SandBar::MenuButtonItem *n_SubItem_EditTransferFuntion)
 Sets the subitem for the GUI.
void setControlTbSubItem (TD::SandBar::MenuButtonItem *n_TbSubItem_EditTransferFuntion)
 Sets the toolbar subitem for the GUI.

Static Public Member Functions

static int SortColorIndices (Hashtable *n_ColorSamples) __gc[]
 Sorts the color indices.
static int SortOpacityIndices (Hashtable *n_OpacitySamples) __gc[]
 Sorts the opacity indices.
static Color DoInterpolation (Transferfunction *n_TransFunc, int n_PanelWidth) __gc[]
 Interpolates all values of the transfer function.
static Color InterpolateColorScope (int x1, int x2, Color c1, Color c2, Color n_ColorFrequency __gc[], float n_InterpolationFactor) __gc[]
 Interpolates between two color values.

Static Public Attributes

static const char SAMPLE_FACTOR = 8
 Sample factor 8.
static const char POINT_SIZE_BIG = 8
 Pointsize of the lines (8).
static const char POINT_SIZE_HALF = 4
 Pointsize of the lines (4).
static const char TF_PHONG_DVR = 0
 classification: transfer function, shading: phong, copmpositing: dvr
static const char TF_CONTOUR_DVR = 1
 classification: transfer function, shading: contour, copmpositing: dvr
static const char TF_TONE_DVR = 2
 classification: transfer function, shading: tone, copmpositing: dvr
static const char TF_MIP_LMIP = 3
 classification: transfer function, shading: mip, copmpositing: LMip
static const char MOUSEBUTTON_DOWNRANGE = 5
 Range of the mouseclick (5).
static const char MOUSEBUTTON_MOVERANGE = 10
 Range of the mouseclick (10).
static String * MAINTITLE = S"Edit Transferfunction "
 Titel of the GUI class.

Private Member Functions

void InitializeComponent (void)
 Initializes the GUI components.
System::Void perform_ActionPanelMouseMove (System::Object *sender, System::Windows::Forms::MouseEventArgs *e)
 Eventhandler for mouse move events.
System::Void perform_ActionPanelMouseDown (System::Object *sender, System::Windows::Forms::MouseEventArgs *e)
 Eventhandler for mouse down events.
System::Void perform_ActionPanelPaint (System::Object *sender, System::Windows::Forms::PaintEventArgs *e)
 Eventhandler for panel paint events.
void pan_Density_repaint (void)
 Repaints the density values.
void do_Interpolation (void)
 Interpolates all values.
void interpolate_ColorScope (int x1, int x2, Color c1, Color c2)
 Interpolated between two color values.
void pan_Histogram_repaint (void)
 Repaints the histogram.
void pan_RGB_repaint (void)
 Repaints the RGB histogram.
void sort_ColorIndices (void)
 Sorts all color indices.
void sort_OpacityIndices (void)
 Sorts all opacity indices.
System::Void perform_ActionTrackbarScroll (System::Object *sender, System::EventArgs *e)
 Eventhandler for trackbar scroll events.
System::Void perform_ActionButtonClick (System::Object *sender, System::EventArgs *e)
 Eventhandler for button click events.
System::Void TransferFuncWin_Closed (System::Object *sender, System::EventArgs *e)
 Eventhandler for window closed events.

Private Attributes

DataLoaderm_VolumeData
 The volume dataset.
int TransFunc_Length
 the length of the transfer function
int sortedIndicesColor __gc []
 The color indices of the transfer function.
int sortedIndicesOpacity __gc []
 The opacity indices of the transfer function.
Hashtable * colorSamples
 The color samples of the transfer function.
Hashtable * opacitySamples
 The opacity samples of the transfer function.
char m_RenderingMode
 The randering mode.
double m_InterpolationFactor
 The interpolation factor.
Transferfunctionm_TransFuncInput
 The transfer function input.
Color default_RGBValue
 The defauld RGB values.
Color c_TransferFunc __gc []
 The color array of the transfer function.
int selectedObjectID
 The selected objectID.
Panel * m_PreviewPanel
 The preview panel.
TD::SandBar::MenuButtonItem * m_SubItem_EditTransferFuntion
 the subitem for the GUI
TD::SandBar::MenuButtonItem * m_TbSubItem_EditTransferFuntion
 the toolbar subitem for the GUI


Constructor & Destructor Documentation

IDVR.TransferFuncWin.TransferFuncWin DataLoader n_VolumeData,
int  objectID,
char  n_RenderingMode,
Transferfunction n_TransFunc
 

Constructor.

Parameters:
n_VolumeData the volume dataset.
objectID the objectID of the given object.
n_RenderingMode the rendering mode.
n_TransFunc the transfer function.


Member Function Documentation

void TransferFuncWin::do_Interpolation void   )  [private]
 

Interpolates all values.

Color TransferFuncWin::DoInterpolation Transferfunction *  n_TransFunc,
int  n_PanelWidth
[static]
 

Interpolates all values of the transfer function.

Parameters:
n_TransFunc the transfer function.
n_PanelWidth the width of the panel.
Returns:
The interpolated color array.

void TransferFuncWin::interpolate_ColorScope int  x1,
int  x2,
Color  c1,
Color  c2
[private]
 

Interpolated between two color values.

Parameters:
x1 first x-value.
x2 second x-value.
c1 first color value.
c2 second color value.

Color TransferFuncWin::InterpolateColorScope int  x1,
int  x2,
Color  c1,
Color  c2,
Color n_ColorFrequency  __gc[],
float  n_InterpolationFactor
[static]
 

Interpolates between two color values.

Parameters:
x1 first x-value.
x2 second x-value.
c1 first color value.
c2 second color value.
n_ColorFrequency the color frequency.
n_InterpolationFactor the interpolation factor.
Returns:
The interpolated color array.

void TransferFuncWin::pan_Density_repaint void   )  [private]
 

Repaints the density values.

void TransferFuncWin::pan_Histogram_repaint void   )  [private]
 

Repaints the histogram.

void TransferFuncWin::pan_RGB_repaint void   )  [private]
 

Repaints the RGB histogram.

System::Void IDVR.TransferFuncWin.perform_ActionButtonClick System::Object *  sender,
System::EventArgs *  e
[private]
 

Eventhandler for button click events.

Parameters:
sender the sender.
e the event.

System::Void IDVR.TransferFuncWin.perform_ActionPanelMouseDown System::Object *  sender,
System::Windows::Forms::MouseEventArgs *  e
[private]
 

Eventhandler for mouse down events.

Parameters:
sender the sender.
e the event.

System::Void IDVR.TransferFuncWin.perform_ActionPanelMouseMove System::Object *  sender,
System::Windows::Forms::MouseEventArgs *  e
[private]
 

Eventhandler for mouse move events.

Parameters:
sender the sender.
e the event.

System::Void IDVR.TransferFuncWin.perform_ActionPanelPaint System::Object *  sender,
System::Windows::Forms::PaintEventArgs *  e
[private]
 

Eventhandler for panel paint events.

Parameters:
sender the sender.
e the event.

System::Void IDVR.TransferFuncWin.perform_ActionTrackbarScroll System::Object *  sender,
System::EventArgs *  e
[private]
 

Eventhandler for trackbar scroll events.

Parameters:
sender the sender.
e the event.

void TransferFuncWin::set_selectedObjectID unsigned short  n_SelectedObjectID  ) 
 

Sets the objectID of the transfer function.

Parameters:
n_SelectedObjectID the objectID of the transfer function.

GUI void TransferFuncWin::setControlSubItem TD::SandBar::MenuButtonItem *  n_SubItem_EditTransferFuntion  ) 
 

Sets the subitem for the GUI.

Parameters:
n_SubItem_EditTransferFuntion the subitem for the GUI.

void TransferFuncWin::setControlTbSubItem TD::SandBar::MenuButtonItem *  n_TbSubItem_EditTransferFuntion  ) 
 

Sets the toolbar subitem for the GUI.

Parameters:
n_TbSubItem_EditTransferFuntion the toolbar subitem for the GUI.

void TransferFuncWin::setPreViewPanel Panel *  n_Pan_PreView  ) 
 

Sets the preview panel.

Parameters:
n_Pan_PreView the preview panel.

void TransferFuncWin::setTitleAddition String *  n_TitleAddition  ) 
 

Expands the title.

Parameters:
n_TitleAddition the title addition.

void TransferFuncWin::sort_ColorIndices void   )  [private]
 

Sorts all color indices.

void TransferFuncWin::sort_OpacityIndices void   )  [private]
 

Sorts all opacity indices.

int TransferFuncWin::SortColorIndices Hashtable *  n_ColorSamples  )  [static]
 

Sorts the color indices.

Parameters:
n_ColorSamples the color samples.
Returns:
The sorted array.

int TransferFuncWin::SortOpacityIndices Hashtable *  n_OpacitySamples  )  [static]
 

Sorts the opacity indices.

Parameters:
n_OpacitySamples the opacity samples.
Returns:
The sorted array.

System::Void IDVR.TransferFuncWin.TransferFuncWin_Closed System::Object *  sender,
System::EventArgs *  e
[private]
 

Eventhandler for window closed events.

Parameters:
sender the sender.
e the event.


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