Kinetic Visualization
 All Classes Functions Variables Pages
Public Slots | Signals | Public Member Functions | Public Attributes
TransferFunctionWidget Class Reference

List of all members.

Public Slots

void pointsUpdated (int)
void initTransferPoints (QString name, int mode)

Signals

void changeColor (QColor color)
void transferFunctionChanged (float *data, int size, int type)
void ColorgradientChanged (float *data, int size, int type)
void histogramLoaded (double *histogram, int size)

Public Member Functions

 TransferFunctionWidget (QWidget *parent=0)
 ~TransferFunctionWidget ()
void paintEvent (QPaintEvent *e)
const QVector< TPoint > & points () const
TransferPointstransferPoints () const
void saveTransferPoints (QString fileName)
void rebuildTransferFunctionTexture ()
void setTranferFunktionApplied (bool apply)
float * getTransferTextureData () const
void setHistogram (double *histogram, int size)
void SetMode (int mode)
void DrawRectangle (float *tex, int i)

Public Attributes

TransferPointsm_transferPoints

Constructor & Destructor Documentation

TransferFunctionWidget::TransferFunctionWidget ( QWidget *  parent = 0)

The constructor for the TransferFunctionWidget.

TransferFunctionWidget::~TransferFunctionWidget ( )

The constructor for the TransferFunctionWidget.


Member Function Documentation

void TransferFunctionWidget::changeColor ( QColor  color)
signal

This Signal is emitted when the selected color has changed

void TransferFunctionWidget::ColorgradientChanged ( float *  data,
int  size,
int  type 
)
signal

This Signal is emitted when the Transferfunction - Colorgradient has changed

float * TransferFunctionWidget::getTransferTextureData ( ) const

Returnes the Data of the TransferTexture

void TransferFunctionWidget::histogramLoaded ( double *  histogram,
int  size 
)
signal

This Signal is emitted when their is a new Histogram to be painted

void TransferFunctionWidget::initTransferPoints ( QString  name,
int  mode 
)
slot

Function to initialize the Points of the Transferfunction into the TransferFunctionWidget, default or from a file

Parameters:
nameis filename of a .txt file
void TransferFunctionWidget::paintEvent ( QPaintEvent *  e)

paintEvent is called whenever something has changed so that the widget has to update the paintEvent is also called if update() is used.

const QVector< TPoint > & TransferFunctionWidget::points ( ) const

Returns a List of the Points of the Transferfunction in a QVector

void TransferFunctionWidget::pointsUpdated ( int  mode)
slot

Sortes the Points and calles the paintEvent

void TransferFunctionWidget::rebuildTransferFunctionTexture ( )

This function is calles whenever the Transferfunction has changed and a new 1D Texture has to be calculated

Die 2D TF Functions

void TransferFunctionWidget::saveTransferPoints ( QString  fileName)

Function to save the Transferfunction in a File fileName.txt

void TransferFunctionWidget::setHistogram ( double *  histogram,
int  size 
)

Emits a Signal histogramLoaded

void TransferFunctionWidget::SetMode ( int  mode)

Set Modus

void TransferFunctionWidget::setTranferFunktionApplied ( bool  apply)

Sets tranferFunktionApplied to apply

Parameters:
applyis true if the "Apply Transferfunktion" has been selected
void TransferFunctionWidget::transferFunctionChanged ( float *  data,
int  size,
int  type 
)
signal

This Signal is emitted when the Transferfunction - Texture hast changed

TransferPoints* TransferFunctionWidget::transferPoints ( ) const
inline

Returns a Pointer to the transferPoints Object


Member Data Documentation

TransferPoints* TransferFunctionWidget::m_transferPoints

pointer to the Object transferPoints


The documentation for this class was generated from the following files: