#include <TransferFunction.h>
Public Member Functions | |
TransferFunction (PictureBox^_ColorBox, int _texTFSize, PictureBox^_ClickBox, PictureBox^_AlphaBox) | |
~TransferFunction () | |
virtual void | Render () |
void | OnMouse (System::Windows::Forms::MouseEventArgs^button, int mode, System::Object^sender) |
Texture1D | GetTextureTransferFunction () |
void | UpdateTexture (ArrayList^TFColor, ArrayList^TFAlpha) |
void | SetEnable (bool _enable) |
Protected Attributes | |
PictureBox | TFBox |
link to GUI | |
PictureBox | UIBox |
PictureBox | UIABox |
Graphics | TFGraphics |
link to GUI | |
Graphics | UIGraphics |
Graphics | UIAGraphics |
Form | tt |
TrackBar | trAlpha |
Label | lblAlpha |
int | TFHeight |
height of the element where we render to | |
int | TFWidth |
width of the element where we render to | |
int | UIHeight |
height of the element where we render to | |
int | UIWidth |
width of the element where we render to | |
ArrayList | aTFColor |
Point/Color array to generate Texture. | |
ArrayList | aTFPoints |
ArrayList | aTFAlpha |
int | currIndex |
int | currAlpha |
Texture1D | texTFFunction |
bool | hasAlpha |
bool | enable |
Static Protected Attributes | |
static const int | texTFSize = 500 |
Private Member Functions | |
void | initialize (PictureBox^_ColorBox, int _texTFSize, PictureBox^_ClickBox) |
int | GetPoint (int posX, bool alpha) |
void | InsertPoint (int posX, bool alpha) |
void | MovePoint (int index, int posX, bool alpha) |
void | RemovePoint (int index, bool alpha) |
void | ChangePointColor (int index, System::Drawing::Color col) |
void | ChangePointAlpha (int index, int valpha) |
void | CombineArrays () |
void | genTexture () |
ArrayList | GetArrayList (bool alpha) |
void | FormAlphaScroll (System::Object^sender, System::EventArgs^e) |
Form | FormAlphaGetSlider (int index) |
void | FormAlphaOnMouse (System::Object^sender, System::Windows::Forms::MouseEventArgs^e) |
Classes | |
struct | TFColorPoint |
TransferFunction::TransferFunction | ( | PictureBox^ | _ColorBox, | |
int | _texTFSize, | |||
PictureBox^ | _ClickBox, | |||
PictureBox^ | _AlphaBox | |||
) |
TransferFunction::~TransferFunction | ( | ) |
void TransferFunction::ChangePointAlpha | ( | int | index, | |
int | valpha | |||
) | [private] |
void LUVis::TransferFunction::ChangePointColor | ( | int | index, | |
System::Drawing::Color | col | |||
) | [private] |
void TransferFunction::CombineArrays | ( | ) | [private] |
Form TransferFunction::FormAlphaGetSlider | ( | int | index | ) | [private] |
void TransferFunction::FormAlphaOnMouse | ( | System::Object^ | sender, | |
System::Windows::Forms::MouseEventArgs^ | e | |||
) | [private] |
void TransferFunction::FormAlphaScroll | ( | System::Object^ | sender, | |
System::EventArgs^ | e | |||
) | [private] |
void TransferFunction::genTexture | ( | ) | [private] |
ArrayList TransferFunction::GetArrayList | ( | bool | alpha | ) | [private] |
int TransferFunction::GetPoint | ( | int | posX, | |
bool | alpha | |||
) | [private] |
inserts a Point into the ArrayList
posX | X position of the point |
Texture1D TransferFunction::GetTextureTransferFunction | ( | ) |
void TransferFunction::initialize | ( | PictureBox^ | _ColorBox, | |
int | _texTFSize, | |||
PictureBox^ | _ClickBox | |||
) | [private] |
initializes the Transferfunction
_ColorBox | box where we draw the colors | |
_texTFSize | X size of the TFfunction | |
_ClickBox | X Box where we draw the color buttons |
void TransferFunction::InsertPoint | ( | int | posX, | |
bool | alpha | |||
) | [private] |
inserts a Point into the ArrayList
posX | X position of the point |
void TransferFunction::MovePoint | ( | int | index, | |
int | posX, | |||
bool | alpha | |||
) | [private] |
moves a Point to another position
index | index of the Point in the TFPoint array | |
posX | X position to move to |
void TransferFunction::OnMouse | ( | System::Windows::Forms::MouseEventArgs^ | button, | |
int | mode, | |||
System::Object^ | sender | |||
) |
void TransferFunction::RemovePoint | ( | int | index, | |
bool | alpha | |||
) | [private] |
void TransferFunction::Render | ( | ) | [virtual] |
void TransferFunction::SetEnable | ( | bool | _enable | ) |
void TransferFunction::UpdateTexture | ( | ArrayList^ | TFColor, | |
ArrayList^ | TFAlpha | |||
) |
ArrayList LUVis::TransferFunction::aTFAlpha [protected] |
ArrayList LUVis::TransferFunction::aTFColor [protected] |
Point/Color array to generate Texture.
ArrayList LUVis::TransferFunction::aTFPoints [protected] |
int LUVis::TransferFunction::currAlpha [protected] |
int LUVis::TransferFunction::currIndex [protected] |
bool LUVis::TransferFunction::enable [protected] |
bool LUVis::TransferFunction::hasAlpha [protected] |
Label LUVis::TransferFunction::lblAlpha [protected] |
Texture1D LUVis::TransferFunction::texTFFunction [protected] |
const int LUVis::TransferFunction::texTFSize = 500 [static, protected] |
PictureBox LUVis::TransferFunction::TFBox [protected] |
link to GUI
Graphics LUVis::TransferFunction::TFGraphics [protected] |
link to GUI
int LUVis::TransferFunction::TFHeight [protected] |
height of the element where we render to
int LUVis::TransferFunction::TFWidth [protected] |
width of the element where we render to
TrackBar LUVis::TransferFunction::trAlpha [protected] |
Form LUVis::TransferFunction::tt [protected] |
PictureBox LUVis::TransferFunction::UIABox [protected] |
Graphics LUVis::TransferFunction::UIAGraphics [protected] |
PictureBox LUVis::TransferFunction::UIBox [protected] |
Graphics LUVis::TransferFunction::UIGraphics [protected] |
int LUVis::TransferFunction::UIHeight [protected] |
height of the element where we render to
int LUVis::TransferFunction::UIWidth [protected] |
width of the element where we render to