TransferFuncWidget Class Reference

Widget for setting the Transfer Function. Mostly based on the ShadeWidget of the Qt Gradients Demo. Source: http://doc.trolltech.com/4.4/demos-gradients.html. More...

#include <TransferFuncWidget.h>

List of all members.

Public Member Functions

 TransferFuncWidget (QWidget *parent)
 Constructor of TransferFuncWidget Object.
void setGradientStops (const QGradientStops &stops)
 Deprecated function.
void paintEvent (QPaintEvent *e)
 Stolen from ShadeWidget -> http://doc.trolltech.com/4.4/demos-gradients.html.
QPolygonF points () const
 Returns the Points Polygon of all HoverPoints of the Transfer Function.
QVector< QColor > * colors ()
 Returns a Vector with the Colors of the Transfer Function Points.
uint colorAt (int x)
 Stolen from ShadeWidget -> http://doc.trolltech.com/4.4/demos-gradients.html.
void setHistogram (unsigned int *hist)
 Sets the Histogram which should be rendered in the Transfer Function Widget.
float * getTransferTexture ()
 Returns a pointer to the Array of the Transfer Function Texture.


Detailed Description

Widget for setting the Transfer Function. Mostly based on the ShadeWidget of the Qt Gradients Demo. Source: http://doc.trolltech.com/4.4/demos-gradients.html.

Constructor & Destructor Documentation

TransferFuncWidget::TransferFuncWidget ( QWidget *  parent  ) 

Constructor of TransferFuncWidget Object.

Parameters:
parent Pointer to parent Widget.


Member Function Documentation

uint TransferFuncWidget::colorAt ( int  x  ) 

Stolen from ShadeWidget -> http://doc.trolltech.com/4.4/demos-gradients.html.

Returns:
Color

QVector< QColor > * TransferFuncWidget::colors (  ) 

Returns a Vector with the Colors of the Transfer Function Points.

Returns:
The Color Vector.

float * TransferFuncWidget::getTransferTexture (  ) 

Returns a pointer to the Array of the Transfer Function Texture.

Returns:
Pointer to 512x4 Array of Transfer Function Texture.

void TransferFuncWidget::paintEvent ( QPaintEvent *  e  ) 

Stolen from ShadeWidget -> http://doc.trolltech.com/4.4/demos-gradients.html.

Parameters:
e Event parameter e.

QPolygonF TransferFuncWidget::points (  )  const

Returns the Points Polygon of all HoverPoints of the Transfer Function.

Returns:
The points Polygon.

void TransferFuncWidget::setGradientStops ( const QGradientStops &  stops  ) 

Deprecated function.

Parameters:
stops Gradient stops.

void TransferFuncWidget::setHistogram ( unsigned int *  hist  ) 

Sets the Histogram which should be rendered in the Transfer Function Widget.

Parameters:
hist Pointer to Array of Histogram Bar heights.


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