Volume Medical Manipulation Toolkit 2.0
|
vmtkTransfer1D is a Class that compute interactively the 1D transfer function. Exist two possibilities, first, work only with intensities (gray scale, R=G=B, A), second, it work in full color varying the RGBA components More...
#include <vmtkTransfer1D.h>
Public Member Functions | |
Transfer1D (wxWindow *parent, int *args, DCMDataType *data, Interactions *interactions, GLuint idTex1D_CP, GLuint idTex1D_Sel) | |
~Transfer1D () | |
void | InitializeTF () |
void | SetTextCtrl (wxTextCtrl *textx, wxTextCtrl *texty) |
void | SetStaticTextCtrl (wxStaticText *label) |
void | SetShowAllChannels (bool state) |
Setter Show All Channel of TF. | |
void | SetColorComponent (ColorComponentTF color) |
Setter color component of 1D TF. | |
void | SetRenderMode (RenderModeTF typeRender) |
Setter Render Mode of 1D TF. | |
void | ResetCurrentChannel () |
Reset the default value to current channel. | |
void | ResetAllChannel () |
Reset all channels to default values. | |
GLuint | getTextureIdTF1D () |
Protected Member Functions | |
void | Paint (wxPaintEvent &event) |
void | Render (wxDC &dc) |
void | Resize (wxSizeEvent &event) |
void | Idle (wxIdleEvent &event) |
void | MouseDown (wxMouseEvent &event) |
void | MouseUp (wxMouseEvent &event) |
void | MouseMove (wxMouseEvent &event) |
void | MouseDClickLeft (wxMouseEvent &event) |
void | MouseDClickRight (wxMouseEvent &event) |
void | LeavingGLCanvas (wxMouseEvent &event) |
void | EnteringGLCanvas (wxMouseEvent &event) |
vmtkTransfer1D is a Class that compute interactively the 1D transfer function. Exist two possibilities, first, work only with intensities (gray scale, R=G=B, A), second, it work in full color varying the RGBA components
Transfer1D::Transfer1D | ( | wxWindow * | parent, |
int * | args, | ||
DCMDataType * | data, | ||
Interactions * | interactions, | ||
GLuint | idTex1D_CP, | ||
GLuint | idTex1D_Sel | ||
) |
Constructor
Transfer1D::~Transfer1D | ( | ) |
Destructor
void Transfer1D::EnteringGLCanvas | ( | wxMouseEvent & | event | ) | [protected] |
Event when the cursor is entering in the GLCanvas
void Transfer1D::InitializeTF | ( | ) |
Show the default ramp 1D Transfer Function
void Transfer1D::LeavingGLCanvas | ( | wxMouseEvent & | event | ) | [protected] |
Event when the cursor is leaving from the GLCanvas
void Transfer1D::MouseDClickLeft | ( | wxMouseEvent & | event | ) | [protected] |
Event Left Double Click for Insert a new Node
void Transfer1D::MouseDClickRight | ( | wxMouseEvent & | event | ) | [protected] |
Event Right Double Click for Remove a Node
void Transfer1D::MouseDown | ( | wxMouseEvent & | event | ) | [protected] |
Events with the mouse button is down
void Transfer1D::Paint | ( | wxPaintEvent & | event | ) | [protected] |
Call for updating Transfer Function
void Transfer1D::SetStaticTextCtrl | ( | wxStaticText * | label | ) |
Enable Static Text Control for display information of Data Value selected
void Transfer1D::SetTextCtrl | ( | wxTextCtrl * | text1, |
wxTextCtrl * | text2 | ||
) |
Enable Text Control for update position's information from mouse 2D