#include <TransferFuncWin.h>
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.
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 | |
DataLoader * | m_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. | |
Transferfunction * | m_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.
|
|
Interpolates all values.
|
|
Interpolates all values of the transfer function.
|
|
Interpolated between two color values.
|
|
Interpolates between two color values.
|
|
Repaints the density values.
|
|
Repaints the histogram.
|
|
Repaints the RGB histogram.
|
|
Eventhandler for button click events.
|
|
Eventhandler for mouse down events.
|
|
Eventhandler for mouse move events.
|
|
Eventhandler for panel paint events.
|
|
Eventhandler for trackbar scroll events.
|
|
Sets the objectID of the transfer function.
|
|
Sets the subitem for the GUI.
|
|
Sets the toolbar subitem for the GUI.
|
|
Sets the preview panel.
|
|
Expands the title.
|
|
Sorts all color indices.
|
|
Sorts all opacity indices.
|
|
Sorts the color indices.
|
|
Sorts the opacity indices.
|
|
Eventhandler for window closed events.
|