Transferfunction Class Reference

#include <Transferfunction.h>

List of all members.

Public Member Functions

 Transferfunction (QWidget *parent=0)
Color process (int density)
void init ()
void reset ()

Protected Member Functions

void paintEvent (QPaintEvent *event)
void mousePressEvent (QMouseEvent *event)
void mouseMoveEvent (QMouseEvent *event)

Private Slots

int changeColor ()

Private Attributes

QPoint * points [6]
QPoint * points_forDrawing [6]
QPoint * current_pos
QMenu * pMenu
QAction * pAction
bool hitLine1
bool hitLine2
bool hitLine3
bool hitPoint1
bool hitPoint2
bool hitPoint3
bool hitPoint4
bool changeColor1
bool changeColor2
bool changeColor3
Color leftColor
Color diffLMColor
Color middleColor
Color diffMRColor
Color rightColor


Detailed Description

This Widget contains a Painter that draws the Transfer Function. This Function defines the way colors and opacity values are assigned to the given density values. Using the mouse the Function Values can be edited interactively.


Member Function Documentation

int Transferfunction::changeColor  )  [private, slot]
 

changes the color values of the color where the mouse had clicked

void Transferfunction::init  ) 
 

sets all members to well defines states

Color Transferfunction::process int  density  ) 
 

returns Color for given density

void Transferfunction::reset  ) 
 

resets all members to their default states


Member Data Documentation

bool Transferfunction::changeColor1 [private]
 

value that indicates if mouse click has hit the first color of the color bar

bool Transferfunction::changeColor2 [private]
 

value that indicates if mouse click has hit the second color of the color bar

bool Transferfunction::changeColor3 [private]
 

value that indicates if mouse click has hit the third color of the color bar

QPoint* Transferfunction::current_pos [private]
 

current position of the mouse if it is clicked

Color Transferfunction::diffLMColor [private]
 

color change between first and second color

Color Transferfunction::diffMRColor [private]
 

color change between second and third color

bool Transferfunction::hitLine1 [private]
 

value that indicates if mouse click has hit the first line of the function

bool Transferfunction::hitLine2 [private]
 

value that indicates if mouse click has hit the second line of the function

bool Transferfunction::hitLine3 [private]
 

value that indicates if mouse click has hit the third line of the function

bool Transferfunction::hitPoint1 [private]
 

value that indicates if mouse click has hit the first editable point of the function

bool Transferfunction::hitPoint2 [private]
 

value that indicates if mouse click has hit the second editable point of the function

bool Transferfunction::hitPoint3 [private]
 

value that indicates if mouse click has hit the third editable point of the function

bool Transferfunction::hitPoint4 [private]
 

value that indicates if mouse click has hit the fourth editable point of the function

Color Transferfunction::leftColor [private]
 

color for the density values belonging to the first line of the function

Color Transferfunction::middleColor [private]
 

color for the density values belonging to the second line of the function

QMenu* Transferfunction::pMenu [private]
 

menu that pops up on right click to change colors

QPoint* Transferfunction::points[6] [private]
 

stores the values of the points of the function for calculation

QPoint* Transferfunction::points_forDrawing[6] [private]
 

stores the values of the points of the function for drawing

Color Transferfunction::rightColor [private]
 

color for the density values belonging to the third line of the function


The documentation for this class was generated from the following files:
Generated on Wed Dec 7 14:42:12 2005 for VisUE by  doxygen 1.4.5