GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Signals | Public Member Functions | Private Member Functions | Private Attributes | List of all members
GoTransferFunctionWidget Class Reference

#include <Code/GUI/lib/TransferFunctionEditor/GoTransferFunctionWidget.h>

Inheritance diagram for GoTransferFunctionWidget:
Inheritance graph
[legend]
Collaboration diagram for GoTransferFunctionWidget:
Collaboration graph
[legend]

Signals

void enableLUTCurve (bool)
 enable/disable LUT curve More...
 
void enableOpacityTF (bool)
 enable/disable opacity TF More...
 
void opacityChanged ()
 Point added in the Opacity TF then update the visualization. More...
 

Public Member Functions

void AddPointsToLUT (const QPolygonF &iPoints)
 Add points to the LUT. Called at initialization or reset. More...
 
void AddPointsToOpacityTF (const QPolygonF &iPoints)
 Add points to the opacity transfer function. Called at initialization or reset. More...
 
 GoTransferFunctionWidget (QColor iColor, double iMax, QWidget *parent)
 
void paintEvent (QPaintEvent *e)
 Paint event: 1- generate new shade is size of the widget changed 2- draw the shade 3- draw the histogram. More...
 
QPolygonF points () const
 
void ResetOpacity ()
 Reset the opacity TF from min to max, from 0 to 1. More...
 
void setColor (QColor iColor)
 Set the color of the channel. 1- Modify the color 2- Update the shade 3- Update the visualization. More...
 
void SetHistogram (QVector< qreal > iHistogram)
 Set the histogram. More...
 
void setMax (double iMax)
 Set maximum pixel intensity for current channel at current T point. More...
 
QSize sizeHint () const
 
void UpdateLookupTable (vtkLookupTable *iLUT, qreal iGamma, qreal iMin, qreal iMax)
 Modify LUT with given parameters. More...
 

Private Member Functions

void generateShade ()
 Generate the shade when the color changed. More...
 

Private Attributes

QColor m_color
 Color of the current channel. More...
 
QVector< qreal > m_Histogram
 the histogram More...
 
HoverPointsm_LUTPoints
 LUT points. More...
 
double m_Max
 Maximum pixel value in the current channel at given time point. More...
 
HoverPointsm_OpacityTFPoints
 Opacity transfer function points. More...
 
QImage m_shade
 Shade generated, based on the color. More...
 

Detailed Description

Definition at line 87 of file GoTransferFunctionWidget.h.

Constructor & Destructor Documentation

GoTransferFunctionWidget::GoTransferFunctionWidget ( QColor  iColor,
double  iMax,
QWidget *  parent 
)

Definition at line 85 of file GoTransferFunctionWidget.cxx.

Member Function Documentation

void GoTransferFunctionWidget::AddPointsToLUT ( const QPolygonF &  iPoints)

Add points to the LUT. Called at initialization or reset.

Parameters
[in]iPointspoints to create the opacity transfer function

Definition at line 187 of file GoTransferFunctionWidget.cxx.

void GoTransferFunctionWidget::AddPointsToOpacityTF ( const QPolygonF &  iPoints)

Add points to the opacity transfer function. Called at initialization or reset.

Parameters
[in]iPointspoints to create the opacity transfer function

Definition at line 175 of file GoTransferFunctionWidget.cxx.

void GoTransferFunctionWidget::enableLUTCurve ( bool  )
signal

enable/disable LUT curve

void GoTransferFunctionWidget::enableOpacityTF ( bool  )
signal

enable/disable opacity TF

void GoTransferFunctionWidget::generateShade ( )
private

Generate the shade when the color changed.

Definition at line 159 of file GoTransferFunctionWidget.cxx.

void GoTransferFunctionWidget::opacityChanged ( )
signal

Point added in the Opacity TF then update the visualization.

void GoTransferFunctionWidget::paintEvent ( QPaintEvent *  e)

Paint event: 1- generate new shade is size of the widget changed 2- draw the shade 3- draw the histogram.

Definition at line 126 of file GoTransferFunctionWidget.cxx.

QPolygonF GoTransferFunctionWidget::points ( ) const

Definition at line 119 of file GoTransferFunctionWidget.cxx.

void GoTransferFunctionWidget::ResetOpacity ( )

Reset the opacity TF from min to max, from 0 to 1.

Definition at line 253 of file GoTransferFunctionWidget.cxx.

void GoTransferFunctionWidget::setColor ( QColor  iColor)

Set the color of the channel. 1- Modify the color 2- Update the shade 3- Update the visualization.

Definition at line 269 of file GoTransferFunctionWidget.cxx.

void GoTransferFunctionWidget::SetHistogram ( QVector< qreal >  iHistogram)

Set the histogram.

Definition at line 244 of file GoTransferFunctionWidget.cxx.

void GoTransferFunctionWidget::setMax ( double  iMax)

Set maximum pixel intensity for current channel at current T point.

Definition at line 283 of file GoTransferFunctionWidget.cxx.

QSize GoTransferFunctionWidget::sizeHint ( ) const
inline

Definition at line 104 of file GoTransferFunctionWidget.h.

void GoTransferFunctionWidget::UpdateLookupTable ( vtkLookupTable *  iLUT,
qreal  iGamma,
qreal  iMin,
qreal  iMax 
)

Modify LUT with given parameters.

Parameters
[in]iLUTpointere to the LUT
[in]iGammagamma value
[in]iMinmin window value
[in]iMinmax window value

Definition at line 196 of file GoTransferFunctionWidget.cxx.

Member Data Documentation

QColor GoTransferFunctionWidget::m_color
private

Color of the current channel.

Definition at line 181 of file GoTransferFunctionWidget.h.

QVector<qreal> GoTransferFunctionWidget::m_Histogram
private

the histogram

Definition at line 201 of file GoTransferFunctionWidget.h.

HoverPoints* GoTransferFunctionWidget::m_LUTPoints
private

LUT points.

Definition at line 196 of file GoTransferFunctionWidget.h.

double GoTransferFunctionWidget::m_Max
private

Maximum pixel value in the current channel at given time point.

Definition at line 206 of file GoTransferFunctionWidget.h.

HoverPoints* GoTransferFunctionWidget::m_OpacityTFPoints
private

Opacity transfer function points.

Definition at line 191 of file GoTransferFunctionWidget.h.

QImage GoTransferFunctionWidget::m_shade
private

Shade generated, based on the color.

Definition at line 186 of file GoTransferFunctionWidget.h.


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