#include <Hist_Transfer.h>
Signals | |
| void | choose (int label, QColor color) |
| void | valueChange () |
Public Member Functions | |
| Hist_Transfer (QWidget *parent=0) | |
| void | setKnotColor (int label, QColor color) |
| void | setHistogram () |
| void | setScanData (unsigned short *scanData, unsigned int size) |
| void | updateHist (unsigned int x, unsigned int y) |
| float * | getTexture () |
| unsigned int | getClassCt () |
| void | printFunction (QDataStream &fileHandle) |
| void | loadFunction (QDataStream &fileHandle) |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *evt) |
| void | resizeEvent (QResizeEvent *evt) |
| void | mousePressEvent (QMouseEvent *evt) |
| void | mouseMoveEvent (QMouseEvent *evt) |
| void | mouseReleaseEvent (QMouseEvent *evt) |
| void | keyPressEvent (QKeyEvent *evt) |
| void | paint () |
| Hist_Transfer::Hist_Transfer | ( | QWidget * | parent = 0 |
) |
Constructs a new Transfer Function Histogram Object
| unsigned int Hist_Transfer::getClassCt | ( | ) |
Returns the number of classes the histogram consists of
| float * Hist_Transfer::getTexture | ( | ) |
Returns the assembled data required for the construction of a 1D Texture containing the transfer functions values
| void Hist_Transfer::loadFunction | ( | QDataStream & | fileHandle | ) |
This function reads the transfer function at the given point of the filestream passed, identified by 'fileHandle'
| void Hist_Transfer::printFunction | ( | QDataStream & | fileHandle | ) |
This function streams the transfer function at the given point to the filestream passed, identified by 'fileHandle'
| void Hist_Transfer::setHistogram | ( | ) |
Calculates the histogram for the data actually stored
| void Hist_Transfer::setKnotColor | ( | int | label, | |
| QColor | color | |||
| ) |
Sets the color for the actual chosen knot identified by 'label' to the color 'color'
| void Hist_Transfer::setScanData | ( | unsigned short * | scanData, | |
| unsigned int | size | |||
| ) |
Sets up the volumetric data this widget should operate on, where 'scanData' points to an array of 1 dimensional data with the given size 'size'
| void Hist_Transfer::updateHist | ( | unsigned int | x, | |
| unsigned int | y | |||
| ) |
Inserts a new knot into the transfer function or moves an existing knot, depending on the distance between the mouse position '(x,y)' and the nearest knot
1.5.7.1