Volume Medical Manipulation Toolkit 2.0
Public Member Functions | Protected Member Functions
Transfer1D Class Reference

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>

Collaboration diagram for Transfer1D:
Collaboration graph
[legend]

List of all members.

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)

Detailed Description

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

Note:
After constructor, you must be call to method InitializeTF() that read the field of Number of Bits stored in the Volume Data, then generate properly and scaled windows where the user modify and generate the transfer function interactively. In any stages of rendering, you can restore initial values of Transfer Function, invoking a ResetTransfer() method.
Author:
Jose Elias Yauri Vidalon

Constructor & Destructor Documentation

Transfer1D::Transfer1D ( wxWindow *  parent,
int *  args,
DCMDataType data,
Interactions interactions,
GLuint  idTex1D_CP,
GLuint  idTex1D_Sel 
)

Constructor

Here is the call graph for this function:

Transfer1D::~Transfer1D ( )

Destructor


Member Function Documentation

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

Here is the caller graph for this 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

Here is the caller graph for this function:

void Transfer1D::SetTextCtrl ( wxTextCtrl *  text1,
wxTextCtrl *  text2 
)

Enable Text Control for update position's information from mouse 2D

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
 All Classes Files Functions