Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkTransferFunctionWidget Class Reference

#include <QmitkTransferFunctionWidget.h>

Inheritance diagram for QmitkTransferFunctionWidget:
Collaboration diagram for QmitkTransferFunctionWidget:

Public Slots

void SetXValueScalar (const QString text)
 
void SetYValueScalar (const QString text)
 
void SetXValueGradient (const QString text)
 
void SetYValueGradient (const QString text)
 
void SetXValueColor (const QString text)
 
void OnUpdateCanvas ()
 
void UpdateRanges ()
 
void OnResetSlider ()
 
void OnSpanChanged (int lower, int upper)
 

Public Member Functions

 QmitkTransferFunctionWidget (QWidget *parent=nullptr, Qt::WindowFlags f=nullptr)
 
 ~QmitkTransferFunctionWidget ()
 
void SetDataNode (mitk::DataNode *node, const mitk::BaseRenderer *renderer=nullptr)
 
void SetScalarLabel (const QString &scalarLabel)
 
void ShowScalarOpacityFunction (bool show)
 
void ShowColorFunction (bool show)
 
void ShowGradientOpacityFunction (bool show)
 
void SetScalarOpacityFunctionEnabled (bool enable)
 
void SetColorFunctionEnabled (bool enable)
 
void SetGradientOpacityFunctionEnabled (bool enable)
 

Protected Attributes

mitk::TransferFunctionProperty::Pointer tfpToChange
 
int m_RangeSliderMin
 
int m_RangeSliderMax
 
mitk::SimpleHistogramCache histogramCache
 

Detailed Description

Definition at line 40 of file QmitkTransferFunctionWidget.h.

Constructor & Destructor Documentation

QmitkTransferFunctionWidget::QmitkTransferFunctionWidget ( QWidget *  parent = nullptr,
Qt::WindowFlags  f = nullptr 
)
QmitkTransferFunctionWidget::~QmitkTransferFunctionWidget ( )

Definition at line 50 of file QmitkTransferFunctionWidget.cpp.

Member Function Documentation

void QmitkTransferFunctionWidget::OnResetSlider ( )
slot
void QmitkTransferFunctionWidget::OnSpanChanged ( int  lower,
int  upper 
)
slot

Definition at line 230 of file QmitkTransferFunctionWidget.cpp.

References UpdateRanges().

Referenced by QmitkTransferFunctionWidget().

void QmitkTransferFunctionWidget::OnUpdateCanvas ( )
slot

Definition at line 149 of file QmitkTransferFunctionWidget.cpp.

References tfpToChange, and UpdateRanges().

Referenced by SetDataNode().

void QmitkTransferFunctionWidget::SetColorFunctionEnabled ( bool  enable)

Definition at line 85 of file QmitkTransferFunctionWidget.cpp.

void QmitkTransferFunctionWidget::SetGradientOpacityFunctionEnabled ( bool  enable)

Definition at line 90 of file QmitkTransferFunctionWidget.cpp.

void QmitkTransferFunctionWidget::SetScalarLabel ( const QString &  scalarLabel)

Definition at line 54 of file QmitkTransferFunctionWidget.cpp.

void QmitkTransferFunctionWidget::SetScalarOpacityFunctionEnabled ( bool  enable)

Definition at line 80 of file QmitkTransferFunctionWidget.cpp.

void QmitkTransferFunctionWidget::SetXValueColor ( const QString  text)
slot
void QmitkTransferFunctionWidget::SetXValueGradient ( const QString  text)
slot
void QmitkTransferFunctionWidget::SetXValueScalar ( const QString  text)
slot
void QmitkTransferFunctionWidget::SetYValueGradient ( const QString  text)
slot
void QmitkTransferFunctionWidget::SetYValueScalar ( const QString  text)
slot
void QmitkTransferFunctionWidget::ShowColorFunction ( bool  show)

Definition at line 70 of file QmitkTransferFunctionWidget.cpp.

void QmitkTransferFunctionWidget::ShowGradientOpacityFunction ( bool  show)

Definition at line 75 of file QmitkTransferFunctionWidget.cpp.

void QmitkTransferFunctionWidget::ShowScalarOpacityFunction ( bool  show)

Definition at line 65 of file QmitkTransferFunctionWidget.cpp.

void QmitkTransferFunctionWidget::UpdateRanges ( )
slot

Definition at line 215 of file QmitkTransferFunctionWidget.cpp.

Referenced by OnResetSlider(), OnSpanChanged(), and OnUpdateCanvas().

Member Data Documentation

mitk::SimpleHistogramCache QmitkTransferFunctionWidget::histogramCache
protected

Definition at line 80 of file QmitkTransferFunctionWidget.h.

Referenced by SetDataNode().

int QmitkTransferFunctionWidget::m_RangeSliderMax
protected

Definition at line 78 of file QmitkTransferFunctionWidget.h.

Referenced by OnResetSlider(), and SetDataNode().

int QmitkTransferFunctionWidget::m_RangeSliderMin
protected

Definition at line 77 of file QmitkTransferFunctionWidget.h.

Referenced by OnResetSlider(), and SetDataNode().

mitk::TransferFunctionProperty::Pointer QmitkTransferFunctionWidget::tfpToChange
protected

Definition at line 75 of file QmitkTransferFunctionWidget.h.

Referenced by OnUpdateCanvas(), and SetDataNode().


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