Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <QmitkToFVisualisationSettingsWidget.h>
Public Member Functions | |
QmitkToFVisualisationSettingsWidget (QWidget *p=nullptr, Qt::WindowFlags f1=nullptr) | |
virtual | ~QmitkToFVisualisationSettingsWidget () |
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 More... | |
vtkColorTransferFunction * | GetWidget1ColorTransferFunction () |
Access the color transfer function of widget 1 (distance image) More... | |
vtkColorTransferFunction * | GetWidget2ColorTransferFunction () |
Access the color transfer function of widget 2 (distance image) More... | |
vtkColorTransferFunction * | GetWidget3ColorTransferFunction () |
Access the color transfer function of widget 3 (distance image) More... | |
vtkColorTransferFunction * | GetSelectedColorTransferFunction () |
Access the color transfer of the currently selected widget. More... | |
int | GetSelectedImageIndex () |
Return the index of the selected image: 0 = Distance, 1 = Amplitude, 2 = Intensity. More... | |
Static Public Attributes | |
static const std::string | VIEW_ID |
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. More... | |
void | OnSpanChanged (int lower, int upper) |
Slot called when the range span has changed. More... | |
void | OnTransferFunctionReset () |
Resets the transfer function according to the currently selected widget / image. More... | |
void | OnWidgetSelected (int index) |
Updates the GUI according to the widget / image selection. More... | |
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. More... | |
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. More... | |
void | OnTransferFunctionTypeSelected (int index) |
Sets the TransferFunctionType members according to the selection of the widget and the transfer type. More... | |
Protected Member Functions | |
void | UpdateCanvas () |
Invokes an update of the ColorTransferFunctionCanvas. Called when the ColorTransferFunction has changed. More... | |
void | UpdateRanges () |
Resets the ColorTransferFunctionCanvas according to the lower and upper value of the RangeSlider. More... | |
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. More... | |
int | m_RangeSliderMax |
Maximal value of the transfer function range. Initialized to the maximal value of the corresponding image. More... | |
mitk::DataNode::Pointer | m_MitkDistanceImageNode |
DataNode holding the range image of the ToF camera as set by Initialize() More... | |
mitk::DataNode::Pointer | m_MitkAmplitudeImageNode |
DataNode holding the amplitude image of the ToF camera as set by Initialize() More... | |
mitk::DataNode::Pointer | m_MitkIntensityImageNode |
DataNode holding the intensity image of the ToF camera as set by Initialize() More... | |
mitk::DataNode::Pointer | m_MitkSurfaceNode |
DataNode holding the surface. More... | |
vtkColorTransferFunction * | m_Widget1ColorTransferFunction |
vtkColorTransferFunction of widget 1 (distance) that can be used to define a TransferFunctionProperty More... | |
vtkColorTransferFunction * | m_Widget2ColorTransferFunction |
vtkColorTransferFunction of widget 2 (amplitude) that can be used to define a TransferFunctionProperty More... | |
vtkColorTransferFunction * | m_Widget3ColorTransferFunction |
vtkColorTransferFunction of widget 3 (intensity) that can be used to define a TransferFunctionProperty More... | |
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 More... | |
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 More... | |
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 More... | |
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 38 of file QmitkToFVisualisationSettingsWidget.h.
QmitkToFVisualisationSettingsWidget::QmitkToFVisualisationSettingsWidget | ( | QWidget * | p = nullptr , |
Qt::WindowFlags | f1 = nullptr |
||
) |
Definition at line 30 of file QmitkToFVisualisationSettingsWidget.cpp.
References CreateQtPartControl().
|
virtual |
Definition at line 47 of file QmitkToFVisualisationSettingsWidget.cpp.
|
virtual |
Definition at line 62 of file QmitkToFVisualisationSettingsWidget.cpp.
References m_Controls, OnRangeSliderMaxChanged(), OnRangeSliderMinChanged(), OnResetSlider(), OnSetXValueColor(), OnShowAdvancedOptionsCheckboxChecked(), OnSpanChanged(), OnTransferFunctionReset(), OnTransferFunctionTypeSelected(), and OnWidgetSelected().
Referenced by CreateQtPartControl().
|
virtual |
Definition at line 51 of file QmitkToFVisualisationSettingsWidget.cpp.
References CreateConnections(), and m_Controls.
Referenced by QmitkToFVisualisationSettingsWidget().
vtkColorTransferFunction * QmitkToFVisualisationSettingsWidget::GetSelectedColorTransferFunction | ( | ) |
Access the color transfer of the currently selected widget.
Definition at line 395 of file QmitkToFVisualisationSettingsWidget.cpp.
References m_Controls, m_Widget1ColorTransferFunction, m_Widget2ColorTransferFunction, and m_Widget3ColorTransferFunction.
Referenced by UpdateCanvas().
int QmitkToFVisualisationSettingsWidget::GetSelectedImageIndex | ( | ) |
Return the index of the selected image: 0 = Distance, 1 = Amplitude, 2 = Intensity.
Definition at line 416 of file QmitkToFVisualisationSettingsWidget.cpp.
References m_Controls.
vtkColorTransferFunction * QmitkToFVisualisationSettingsWidget::GetWidget1ColorTransferFunction | ( | ) |
Access the color transfer function of widget 1 (distance image)
Definition at line 380 of file QmitkToFVisualisationSettingsWidget.cpp.
References m_Widget1ColorTransferFunction.
vtkColorTransferFunction * QmitkToFVisualisationSettingsWidget::GetWidget2ColorTransferFunction | ( | ) |
Access the color transfer function of widget 2 (distance image)
Definition at line 385 of file QmitkToFVisualisationSettingsWidget.cpp.
References m_Widget2ColorTransferFunction.
vtkColorTransferFunction * QmitkToFVisualisationSettingsWidget::GetWidget3ColorTransferFunction | ( | ) |
Access the color transfer function of widget 3 (distance image)
Definition at line 390 of file QmitkToFVisualisationSettingsWidget.cpp.
References m_Widget3ColorTransferFunction.
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
distanceImageNode | image holding the range image of a ToF camera |
amplitudeImageNode | image holding the amplitude image of a ToF camera |
intensityImageNode | image holding the intensity image of a ToF camera |
Definition at line 141 of file QmitkToFVisualisationSettingsWidget.cpp.
References m_Controls, m_MitkAmplitudeImageNode, m_MitkDistanceImageNode, m_MitkIntensityImageNode, m_MitkSurfaceNode, m_Widget1ColorTransferFunction, m_Widget1TransferFunctionType, m_Widget2ColorTransferFunction, m_Widget2TransferFunctionType, m_Widget3ColorTransferFunction, m_Widget3TransferFunctionType, and mitk::New().
|
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 92 of file QmitkToFVisualisationSettingsWidget.cpp.
References m_Controls, and UpdateRanges().
Referenced by CreateConnections().
|
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 99 of file QmitkToFVisualisationSettingsWidget.cpp.
References m_Controls, and UpdateRanges().
Referenced by CreateConnections().
|
protectedslot |
Slot invoking a reset of the RangeSlider to the minimal and maximal values of the according image.
Definition at line 112 of file QmitkToFVisualisationSettingsWidget.cpp.
References m_Controls, m_RangeSliderMax, m_RangeSliderMin, and UpdateRanges().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 86 of file QmitkToFVisualisationSettingsWidget.cpp.
References mitk::RenderingManager::GetInstance(), m_Controls, and mitk::RenderingManager::RequestUpdateAll().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 216 of file QmitkToFVisualisationSettingsWidget.cpp.
References m_Controls.
Referenced by CreateConnections().
|
protectedslot |
Slot called when the range span has changed.
Definition at line 106 of file QmitkToFVisualisationSettingsWidget.cpp.
References m_Controls, and UpdateRanges().
Referenced by CreateConnections().
|
protectedslot |
Resets the transfer function according to the currently selected widget / image.
Definition at line 362 of file QmitkToFVisualisationSettingsWidget.cpp.
References m_Controls, m_RangeSliderMin, and UpdateRanges().
Referenced by CreateConnections().
|
protectedslot |
Sets the TransferFunctionType members according to the selection of the widget and the transfer type.
Definition at line 194 of file QmitkToFVisualisationSettingsWidget.cpp.
References m_Controls, m_Widget1TransferFunctionType, m_Widget2TransferFunctionType, and m_Widget3TransferFunctionType.
Referenced by CreateConnections().
|
protectedslot |
Updates the GUI according to the widget / image selection.
Definition at line 224 of file QmitkToFVisualisationSettingsWidget.cpp.
References m_Controls, m_RangeSliderMax, m_RangeSliderMin, m_Widget1ColorTransferFunction, m_Widget1TransferFunctionType, m_Widget2ColorTransferFunction, m_Widget2TransferFunctionType, m_Widget3ColorTransferFunction, m_Widget3TransferFunctionType, and UpdateRanges().
Referenced by CreateConnections().
|
protected |
Invokes an update of the ColorTransferFunctionCanvas. Called when the ColorTransferFunction has changed.
Definition at line 187 of file QmitkToFVisualisationSettingsWidget.cpp.
References GetSelectedColorTransferFunction(), m_Controls, and UpdateRanges().
|
protected |
Resets the ColorTransferFunctionCanvas according to the lower and upper value of the RangeSlider.
Definition at line 121 of file QmitkToFVisualisationSettingsWidget.cpp.
References m_Controls.
Referenced by OnRangeSliderMaxChanged(), OnRangeSliderMinChanged(), OnResetSlider(), OnSpanChanged(), OnTransferFunctionReset(), OnWidgetSelected(), and UpdateCanvas().
|
protected |
Definition at line 133 of file QmitkToFVisualisationSettingsWidget.h.
Referenced by CreateConnections(), CreateQtPartControl(), GetSelectedColorTransferFunction(), GetSelectedImageIndex(), Initialize(), OnRangeSliderMaxChanged(), OnRangeSliderMinChanged(), OnResetSlider(), OnSetXValueColor(), OnShowAdvancedOptionsCheckboxChecked(), OnSpanChanged(), OnTransferFunctionReset(), OnTransferFunctionTypeSelected(), OnWidgetSelected(), UpdateCanvas(), and UpdateRanges().
|
protected |
DataNode holding the amplitude image of the ToF camera as set by Initialize()
Definition at line 139 of file QmitkToFVisualisationSettingsWidget.h.
Referenced by Initialize().
|
protected |
DataNode holding the range image of the ToF camera as set by Initialize()
Definition at line 138 of file QmitkToFVisualisationSettingsWidget.h.
Referenced by Initialize().
|
protected |
DataNode holding the intensity image of the ToF camera as set by Initialize()
Definition at line 140 of file QmitkToFVisualisationSettingsWidget.h.
Referenced by Initialize().
|
protected |
DataNode holding the surface.
Definition at line 141 of file QmitkToFVisualisationSettingsWidget.h.
Referenced by Initialize().
|
protected |
Maximal value of the transfer function range. Initialized to the maximal value of the corresponding image.
Definition at line 136 of file QmitkToFVisualisationSettingsWidget.h.
Referenced by OnResetSlider(), and OnWidgetSelected().
|
protected |
Minimal value of the transfer function range. Initialized to the minimal value of the corresponding image.
Definition at line 135 of file QmitkToFVisualisationSettingsWidget.h.
Referenced by OnResetSlider(), OnTransferFunctionReset(), and OnWidgetSelected().
|
protected |
vtkColorTransferFunction of widget 1 (distance) that can be used to define a TransferFunctionProperty
Definition at line 143 of file QmitkToFVisualisationSettingsWidget.h.
Referenced by GetSelectedColorTransferFunction(), GetWidget1ColorTransferFunction(), Initialize(), and OnWidgetSelected().
|
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 147 of file QmitkToFVisualisationSettingsWidget.h.
Referenced by Initialize(), OnTransferFunctionTypeSelected(), and OnWidgetSelected().
|
protected |
vtkColorTransferFunction of widget 2 (amplitude) that can be used to define a TransferFunctionProperty
Definition at line 144 of file QmitkToFVisualisationSettingsWidget.h.
Referenced by GetSelectedColorTransferFunction(), GetWidget2ColorTransferFunction(), Initialize(), and OnWidgetSelected().
|
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 148 of file QmitkToFVisualisationSettingsWidget.h.
Referenced by Initialize(), OnTransferFunctionTypeSelected(), and OnWidgetSelected().
|
protected |
vtkColorTransferFunction of widget 3 (intensity) that can be used to define a TransferFunctionProperty
Definition at line 145 of file QmitkToFVisualisationSettingsWidget.h.
Referenced by GetSelectedColorTransferFunction(), GetWidget3ColorTransferFunction(), Initialize(), and OnWidgetSelected().
|
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 149 of file QmitkToFVisualisationSettingsWidget.h.
Referenced by Initialize(), OnTransferFunctionTypeSelected(), and OnWidgetSelected().
|
static |
Definition at line 46 of file QmitkToFVisualisationSettingsWidget.h.