MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkToFVisualisationSettingsWidget Class Reference

#include <QmitkToFVisualisationSettingsWidget.h>

Inheritance diagram for QmitkToFVisualisationSettingsWidget:

Public Member Functions

 QmitkToFVisualisationSettingsWidget (QWidget *p=nullptr, Qt::WindowFlags f1={})
 
 ~QmitkToFVisualisationSettingsWidget () override
 
virtual void CreateQtPartControl (QWidget *parent)
 
virtual void CreateConnections ()
 
void Initialize (mitk::DataNode *distanceImageNode=nullptr, mitk::DataNode *amplitudeImageNode=nullptr, mitk::DataNode *intensityImageNode=nullptr, mitk::DataNode *surfaceNode=nullptr)
 initialize the widget with the images to be shown
 
vtkColorTransferFunction * GetWidget1ColorTransferFunction ()
 Access the color transfer function of widget 1 (distance image)
 
vtkColorTransferFunction * GetWidget2ColorTransferFunction ()
 Access the color transfer function of widget 2 (distance image)
 
vtkColorTransferFunction * GetWidget3ColorTransferFunction ()
 Access the color transfer function of widget 3 (distance image)
 
vtkColorTransferFunction * GetSelectedColorTransferFunction ()
 Access the color transfer of the currently selected widget.
 
int GetSelectedImageIndex ()
 Return the index of the selected image: 0 = Distance, 1 = Amplitude, 2 = Intensity.
 

Static Public Attributes

static const std::string VIEW_ID = "org.mitk.views.qmitktofvisualisationsettingswidget"
 

Protected Slots

void OnShowAdvancedOptionsCheckboxChecked (bool checked)
 
void OnSetXValueColor ()
 
void OnResetSlider ()
 Slot invoking a reset of the RangeSlider to the minimal and maximal values of the according image.
 
void OnSpanChanged (int lower, int upper)
 Slot called when the range span has changed.
 
void OnTransferFunctionReset ()
 Resets the transfer function according to the currently selected widget / image.
 
void OnWidgetSelected (int index)
 Updates the GUI according to the widget / image selection.
 
void OnRangeSliderMaxChanged ()
 Slot called when the line edit of the maximal value of the range slider has changed. Leads to an update of the range slider.
 
void OnRangeSliderMinChanged ()
 Slot called when the line edit of the minimal value of the range slider has changed. Leads to an update of the range slider.
 
void OnTransferFunctionTypeSelected (int index)
 Sets the TransferFunctionType members according to the selection of the widget and the transfer type.
 

Protected Member Functions

void UpdateCanvas ()
 Invokes an update of the ColorTransferFunctionCanvas. Called when the ColorTransferFunction has changed.
 
void UpdateRanges ()
 Resets the ColorTransferFunctionCanvas according to the lower and upper value of the RangeSlider.
 

Protected Attributes

Ui::QmitkToFVisualisationSettingsWidgetControls * m_Controls
 
int m_RangeSliderMin
 Minimal value of the transfer function range. Initialized to the minimal value of the corresponding image.
 
int m_RangeSliderMax
 Maximal value of the transfer function range. Initialized to the maximal value of the corresponding image.
 
mitk::DataNode::Pointer m_MitkDistanceImageNode
 DataNode holding the range image of the ToF camera as set by Initialize()
 
mitk::DataNode::Pointer m_MitkAmplitudeImageNode
 DataNode holding the amplitude image of the ToF camera as set by Initialize()
 
mitk::DataNode::Pointer m_MitkIntensityImageNode
 DataNode holding the intensity image of the ToF camera as set by Initialize()
 
mitk::DataNode::Pointer m_MitkSurfaceNode
 DataNode holding the surface.
 
vtkColorTransferFunction * m_Widget1ColorTransferFunction
 vtkColorTransferFunction of widget 1 (distance) that can be used to define a TransferFunctionProperty
 
vtkColorTransferFunction * m_Widget2ColorTransferFunction
 vtkColorTransferFunction of widget 2 (amplitude) that can be used to define a TransferFunctionProperty
 
vtkColorTransferFunction * m_Widget3ColorTransferFunction
 vtkColorTransferFunction of widget 3 (intensity) that can be used to define a TransferFunctionProperty
 
int m_Widget1TransferFunctionType
 member holding the type of the transfer function applied to the image shown in widget 1 (distance image): 0 = gray scale, 1 = color
 
int m_Widget2TransferFunctionType
 member holding the type of the transfer function applied to the image shown in widget 2 (amplitude image): 0 = gray scale, 1 = color
 
int m_Widget3TransferFunctionType
 member holding the type of the transfer function applied to the image shown in widget 3 (intensity image): 0 = gray scale, 1 = color
 

Detailed Description

Documentation: Widget controlling the visualization of Time-of-Flight image data. A color transfer function can be configured for a given distance, amplitude and intensity image. The pre-configured vtkColorTransferFunctions can be accessed as an output of the widget.

Definition at line 32 of file QmitkToFVisualisationSettingsWidget.h.

Constructor & Destructor Documentation

◆ QmitkToFVisualisationSettingsWidget()

QmitkToFVisualisationSettingsWidget::QmitkToFVisualisationSettingsWidget ( QWidget * p = nullptr,
Qt::WindowFlags f1 = {} )

Definition at line 26 of file QmitkToFVisualisationSettingsWidget.cpp.

◆ ~QmitkToFVisualisationSettingsWidget()

QmitkToFVisualisationSettingsWidget::~QmitkToFVisualisationSettingsWidget ( )
override

Definition at line 43 of file QmitkToFVisualisationSettingsWidget.cpp.

Member Function Documentation

◆ CreateConnections()

void QmitkToFVisualisationSettingsWidget::CreateConnections ( )
virtual

Definition at line 58 of file QmitkToFVisualisationSettingsWidget.cpp.

◆ CreateQtPartControl()

void QmitkToFVisualisationSettingsWidget::CreateQtPartControl ( QWidget * parent)
virtual

Definition at line 47 of file QmitkToFVisualisationSettingsWidget.cpp.

◆ GetSelectedColorTransferFunction()

vtkColorTransferFunction * QmitkToFVisualisationSettingsWidget::GetSelectedColorTransferFunction ( )

Access the color transfer of the currently selected widget.

Returns
vtkColorTransferFunction that can be used to define a TransferFunctionProperty

Definition at line 391 of file QmitkToFVisualisationSettingsWidget.cpp.

◆ GetSelectedImageIndex()

int QmitkToFVisualisationSettingsWidget::GetSelectedImageIndex ( )

Return the index of the selected image: 0 = Distance, 1 = Amplitude, 2 = Intensity.

Definition at line 412 of file QmitkToFVisualisationSettingsWidget.cpp.

◆ GetWidget1ColorTransferFunction()

vtkColorTransferFunction * QmitkToFVisualisationSettingsWidget::GetWidget1ColorTransferFunction ( )

Access the color transfer function of widget 1 (distance image)

Returns
vtkColorTransferFunction that can be used to define a TransferFunctionProperty

Definition at line 376 of file QmitkToFVisualisationSettingsWidget.cpp.

◆ GetWidget2ColorTransferFunction()

vtkColorTransferFunction * QmitkToFVisualisationSettingsWidget::GetWidget2ColorTransferFunction ( )

Access the color transfer function of widget 2 (distance image)

Returns
vtkColorTransferFunction that can be used to define a TransferFunctionProperty

Definition at line 381 of file QmitkToFVisualisationSettingsWidget.cpp.

◆ GetWidget3ColorTransferFunction()

vtkColorTransferFunction * QmitkToFVisualisationSettingsWidget::GetWidget3ColorTransferFunction ( )

Access the color transfer function of widget 3 (distance image)

Returns
vtkColorTransferFunction that can be used to define a TransferFunctionProperty

Definition at line 386 of file QmitkToFVisualisationSettingsWidget.cpp.

◆ Initialize()

void QmitkToFVisualisationSettingsWidget::Initialize ( mitk::DataNode * distanceImageNode = nullptr,
mitk::DataNode * amplitudeImageNode = nullptr,
mitk::DataNode * intensityImageNode = nullptr,
mitk::DataNode * surfaceNode = nullptr )

initialize the widget with the images to be shown

Parameters
distanceImageNodeimage holding the range image of a ToF camera
amplitudeImageNodeimage holding the amplitude image of a ToF camera
intensityImageNodeimage holding the intensity image of a ToF camera
surfaceNode

Definition at line 137 of file QmitkToFVisualisationSettingsWidget.cpp.

◆ OnRangeSliderMaxChanged

void QmitkToFVisualisationSettingsWidget::OnRangeSliderMaxChanged ( )
protectedslot

Slot called when the line edit of the maximal value of the range slider has changed. Leads to an update of the range slider.

Definition at line 88 of file QmitkToFVisualisationSettingsWidget.cpp.

◆ OnRangeSliderMinChanged

void QmitkToFVisualisationSettingsWidget::OnRangeSliderMinChanged ( )
protectedslot

Slot called when the line edit of the minimal value of the range slider has changed. Leads to an update of the range slider.

Definition at line 95 of file QmitkToFVisualisationSettingsWidget.cpp.

◆ OnResetSlider

void QmitkToFVisualisationSettingsWidget::OnResetSlider ( )
protectedslot

Slot invoking a reset of the RangeSlider to the minimal and maximal values of the according image.

Definition at line 108 of file QmitkToFVisualisationSettingsWidget.cpp.

◆ OnSetXValueColor

void QmitkToFVisualisationSettingsWidget::OnSetXValueColor ( )
protectedslot

Definition at line 82 of file QmitkToFVisualisationSettingsWidget.cpp.

◆ OnShowAdvancedOptionsCheckboxChecked

void QmitkToFVisualisationSettingsWidget::OnShowAdvancedOptionsCheckboxChecked ( bool checked)
protectedslot

Definition at line 212 of file QmitkToFVisualisationSettingsWidget.cpp.

◆ OnSpanChanged

void QmitkToFVisualisationSettingsWidget::OnSpanChanged ( int lower,
int upper )
protectedslot

Slot called when the range span has changed.

Definition at line 102 of file QmitkToFVisualisationSettingsWidget.cpp.

◆ OnTransferFunctionReset

void QmitkToFVisualisationSettingsWidget::OnTransferFunctionReset ( )
protectedslot

Resets the transfer function according to the currently selected widget / image.

Definition at line 358 of file QmitkToFVisualisationSettingsWidget.cpp.

◆ OnTransferFunctionTypeSelected

void QmitkToFVisualisationSettingsWidget::OnTransferFunctionTypeSelected ( int index)
protectedslot

Sets the TransferFunctionType members according to the selection of the widget and the transfer type.

Definition at line 190 of file QmitkToFVisualisationSettingsWidget.cpp.

◆ OnWidgetSelected

void QmitkToFVisualisationSettingsWidget::OnWidgetSelected ( int index)
protectedslot

Updates the GUI according to the widget / image selection.

Definition at line 220 of file QmitkToFVisualisationSettingsWidget.cpp.

◆ UpdateCanvas()

void QmitkToFVisualisationSettingsWidget::UpdateCanvas ( )
protected

Invokes an update of the ColorTransferFunctionCanvas. Called when the ColorTransferFunction has changed.

Definition at line 183 of file QmitkToFVisualisationSettingsWidget.cpp.

◆ UpdateRanges()

void QmitkToFVisualisationSettingsWidget::UpdateRanges ( )
protected

Resets the ColorTransferFunctionCanvas according to the lower and upper value of the RangeSlider.

Definition at line 117 of file QmitkToFVisualisationSettingsWidget.cpp.

Member Data Documentation

◆ m_Controls

Ui::QmitkToFVisualisationSettingsWidgetControls* QmitkToFVisualisationSettingsWidget::m_Controls
protected

Definition at line 128 of file QmitkToFVisualisationSettingsWidget.h.

◆ m_MitkAmplitudeImageNode

mitk::DataNode::Pointer QmitkToFVisualisationSettingsWidget::m_MitkAmplitudeImageNode
protected

DataNode holding the amplitude image of the ToF camera as set by Initialize()

Definition at line 134 of file QmitkToFVisualisationSettingsWidget.h.

◆ m_MitkDistanceImageNode

mitk::DataNode::Pointer QmitkToFVisualisationSettingsWidget::m_MitkDistanceImageNode
protected

DataNode holding the range image of the ToF camera as set by Initialize()

Definition at line 133 of file QmitkToFVisualisationSettingsWidget.h.

◆ m_MitkIntensityImageNode

mitk::DataNode::Pointer QmitkToFVisualisationSettingsWidget::m_MitkIntensityImageNode
protected

DataNode holding the intensity image of the ToF camera as set by Initialize()

Definition at line 135 of file QmitkToFVisualisationSettingsWidget.h.

◆ m_MitkSurfaceNode

mitk::DataNode::Pointer QmitkToFVisualisationSettingsWidget::m_MitkSurfaceNode
protected

DataNode holding the surface.

Definition at line 136 of file QmitkToFVisualisationSettingsWidget.h.

◆ m_RangeSliderMax

int QmitkToFVisualisationSettingsWidget::m_RangeSliderMax
protected

Maximal value of the transfer function range. Initialized to the maximal value of the corresponding image.

Definition at line 131 of file QmitkToFVisualisationSettingsWidget.h.

◆ m_RangeSliderMin

int QmitkToFVisualisationSettingsWidget::m_RangeSliderMin
protected

Minimal value of the transfer function range. Initialized to the minimal value of the corresponding image.

Definition at line 130 of file QmitkToFVisualisationSettingsWidget.h.

◆ m_Widget1ColorTransferFunction

vtkColorTransferFunction* QmitkToFVisualisationSettingsWidget::m_Widget1ColorTransferFunction
protected

vtkColorTransferFunction of widget 1 (distance) that can be used to define a TransferFunctionProperty

Definition at line 138 of file QmitkToFVisualisationSettingsWidget.h.

◆ m_Widget1TransferFunctionType

int QmitkToFVisualisationSettingsWidget::m_Widget1TransferFunctionType
protected

member holding the type of the transfer function applied to the image shown in widget 1 (distance image): 0 = gray scale, 1 = color

Definition at line 142 of file QmitkToFVisualisationSettingsWidget.h.

◆ m_Widget2ColorTransferFunction

vtkColorTransferFunction* QmitkToFVisualisationSettingsWidget::m_Widget2ColorTransferFunction
protected

vtkColorTransferFunction of widget 2 (amplitude) that can be used to define a TransferFunctionProperty

Definition at line 139 of file QmitkToFVisualisationSettingsWidget.h.

◆ m_Widget2TransferFunctionType

int QmitkToFVisualisationSettingsWidget::m_Widget2TransferFunctionType
protected

member holding the type of the transfer function applied to the image shown in widget 2 (amplitude image): 0 = gray scale, 1 = color

Definition at line 143 of file QmitkToFVisualisationSettingsWidget.h.

◆ m_Widget3ColorTransferFunction

vtkColorTransferFunction* QmitkToFVisualisationSettingsWidget::m_Widget3ColorTransferFunction
protected

vtkColorTransferFunction of widget 3 (intensity) that can be used to define a TransferFunctionProperty

Definition at line 140 of file QmitkToFVisualisationSettingsWidget.h.

◆ m_Widget3TransferFunctionType

int QmitkToFVisualisationSettingsWidget::m_Widget3TransferFunctionType
protected

member holding the type of the transfer function applied to the image shown in widget 3 (intensity image): 0 = gray scale, 1 = color

Definition at line 144 of file QmitkToFVisualisationSettingsWidget.h.

◆ VIEW_ID

const std::string QmitkToFVisualisationSettingsWidget::VIEW_ID = "org.mitk.views.qmitktofvisualisationsettingswidget"
static

Definition at line 40 of file QmitkToFVisualisationSettingsWidget.h.


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