#include <Transferfunction.h>
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 |
|
changes the color values of the color where the mouse had clicked |
|
sets all members to well defines states |
|
returns Color for given density |
|
resets all members to their default states |
|
value that indicates if mouse click has hit the first color of the color bar |
|
value that indicates if mouse click has hit the second color of the color bar |
|
value that indicates if mouse click has hit the third color of the color bar |
|
current position of the mouse if it is clicked |
|
color change between first and second color |
|
color change between second and third color |
|
value that indicates if mouse click has hit the first line of the function |
|
value that indicates if mouse click has hit the second line of the function |
|
value that indicates if mouse click has hit the third line of the function |
|
value that indicates if mouse click has hit the first editable point of the function |
|
value that indicates if mouse click has hit the second editable point of the function |
|
value that indicates if mouse click has hit the third editable point of the function |
|
value that indicates if mouse click has hit the fourth editable point of the function |
|
color for the density values belonging to the first line of the function |
|
color for the density values belonging to the second line of the function |
|
menu that pops up on right click to change colors |
|
stores the values of the points of the function for calculation |
|
stores the values of the points of the function for drawing |
|
color for the density values belonging to the third line of the function |