|
VideoVis
0.9
Generates a volume visualisation of a video
|
The TransferBox widget class. More...
#include <transferbox.h>
Public Types | |
| enum | ShadeType { RedShade, GreenShade, BlueShade } |
Signals | |
| void | valueChanged (float *value) |
Public Member Functions | |
| TransferBox (QWidget *parent=0) | |
| QSize | sizeHint () const |
| void | setPoints (QPolygonF points) |
| void | addColor (QPolygonF points, QColor color) |
| void | deleteColor (QPolygonF points) |
| void | changeColor (int index, QColor color) |
The TransferBox widget class.
This class renders the transfer function. Every Point from m_points has a corresponding color that gets rendered when a paintEvent occurs. Points are managed, displayed and returned by the HoverPoints class. The widget is drawn with a QLinearGradient. Users can select the colors from a QColorDialog.
Definition at line 17 of file transferbox.h.
| Enumerator | |
|---|---|
| RedShade | |
| GreenShade | |
| BlueShade | |
Definition at line 21 of file transferbox.h.
|
explicit |
Definition at line 8 of file transferbox.cpp.
| void TransferBox::addColor | ( | QPolygonF | points, |
| QColor | color | ||
| ) |
add a color to m_colors
Definition at line 52 of file transferbox.cpp.
| void TransferBox::changeColor | ( | int | index, |
| QColor | color | ||
| ) |
change a color from m_colors by removing and inserting one.
Definition at line 84 of file transferbox.cpp.
| void TransferBox::deleteColor | ( | QPolygonF | points) |
delete a color from m_colors
Definition at line 68 of file transferbox.cpp.
|
inline |
Definition at line 29 of file transferbox.h.
|
inline |
Definition at line 28 of file transferbox.h.
|
signal |