TransferFuncDisplayWidget Class Reference

Displays the resulting colors of the Transfer Function Widget. It's a preview to the Transfer Function Texture. More...

#include <TransferFuncDisplayWidget.h>

List of all members.

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.


Detailed Description

Displays the resulting colors of the Transfer Function Widget. It's a preview to the Transfer Function Texture.

Constructor & Destructor Documentation

TransferFuncDisplayWidget::TransferFuncDisplayWidget ( int  TransferFuncHeight,
QWidget *  parent 
)

Constructor of TransferFuncDisplayWidget.

Parameters:
TransferFuncHeight The height of the TransferFuncWidget in order to calculate the relative Height of the points.
parent Pointer to parent Widget.


Member Function Documentation

void TransferFuncDisplayWidget::displayTransferFunc ( const QPolygonF &  points,
QVector< QColor > *  colors 
) [slot]

Sets the Transfer Function Points+Colors and displays the color+alpha.

Parameters:
points The points of the Transfer Function Widget.
colors Colors given by the Transfer Function Widget.

void TransferFuncDisplayWidget::paintEvent ( QPaintEvent *  e  ) 

Renders the Widget.

Parameters:
e Event Arguments.

void TransferFuncDisplayWidget::setColors ( QVector< QColor > *  colors  ) 

Sets the Colors of the Transfer Function and displays them.

Parameters:
colors Colors given by the Transfer Function Widget.

void TransferFuncDisplayWidget::setPoints ( QPolygonF  points  ) 

Sets the Transfer Function points to display the Alpha Channel.

Parameters:
points The points of the Transfer Function Widget.


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

Generated on Wed Jan 21 15:35:43 2009 for Flow Visualization by  doxygen 1.5.7.1