#include <TransferFuncDisplayWidget.h>
Public Slots | |
void | displayTransferFunc (const QPolygonF &points, QVector< QColor > *colors) |
Sets the Transfer Function Points+Colors and displays the color+alpha. | |
Public Member Functions | |
TransferFuncDisplayWidget (int TransferFuncHeight, QWidget *parent) | |
Constructor of TransferFuncDisplayWidget. | |
void | paintEvent (QPaintEvent *e) |
Renders the Widget. | |
void | setPoints (QPolygonF points) |
Sets the Transfer Function points to display the Alpha Channel. | |
void | setColors (QVector< QColor > *colors) |
Sets the Colors of the Transfer Function and displays them. |
TransferFuncDisplayWidget::TransferFuncDisplayWidget | ( | int | TransferFuncHeight, | |
QWidget * | parent | |||
) |
Constructor of TransferFuncDisplayWidget.
TransferFuncHeight | The height of the TransferFuncWidget in order to calculate the relative Height of the points. | |
parent | Pointer to parent Widget. |
void TransferFuncDisplayWidget::displayTransferFunc | ( | const QPolygonF & | points, | |
QVector< QColor > * | colors | |||
) | [slot] |
Sets the Transfer Function Points+Colors and displays the color+alpha.
points | The points of the Transfer Function Widget. | |
colors | Colors given by the Transfer Function Widget. |
void TransferFuncDisplayWidget::paintEvent | ( | QPaintEvent * | e | ) |
Renders the Widget.
e | Event Arguments. |
void TransferFuncDisplayWidget::setColors | ( | QVector< QColor > * | colors | ) |
Sets the Colors of the Transfer Function and displays them.
colors | Colors given by the Transfer Function Widget. |
void TransferFuncDisplayWidget::setPoints | ( | QPolygonF | points | ) |
Sets the Transfer Function points to display the Alpha Channel.
points | The points of the Transfer Function Widget. |