Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
An object of this class offers an UI to create or modify NavigationTools. More...
#include <QmitkNavigationToolCreationWidget.h>
Signals | |
void | NavigationToolFinished () |
This signal is emitted if the user finished the creation of the tool. More... | |
void | Canceled () |
This signal is emitted if the user canceled the creation of the tool. More... | |
Public Member Functions | |
void | Initialize (mitk::DataStorage *dataStorage, const std::string &supposedIdentifier, const std::string &supposedName="NewTool") |
Initializes the widget. More... | |
void | SetTrackingDeviceType (mitk::TrackingDeviceType type, bool changeable=true) |
Sets the default tracking device type. You may also define if it is changeable or not. More... | |
void | SetDefaultData (mitk::NavigationTool::Pointer DefaultTool) |
Sets the default data of all input fields. The default data is used from the default tool which is given as parameter. More... | |
QmitkNavigationToolCreationWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
~QmitkNavigationToolCreationWidget () | |
mitk::NavigationTool::Pointer | GetCreatedTool () |
Static Public Attributes | |
static const std::string | VIEW_ID |
Protected Slots | |
void | OnCancel () |
void | OnFinished () |
void | OnLoadSurface () |
void | OnLoadCalibrationFile () |
void | OnShowAdvancedOptions (bool state) |
void | OnProcessDialogCloseRequest () |
void | OnRetrieveDataForManualTooltipManipulation () |
void | OnSurfaceUseOtherToggled (bool checked) |
Protected Member Functions | |
virtual void | CreateConnections () |
Creation of the connections. More... | |
virtual void | CreateQtPartControl (QWidget *parent) |
void | MessageBox (std::string s) |
void | FillUIToolLandmarkLists (mitk::PointSet::Pointer calLandmarks, mitk::PointSet::Pointer regLandmarks) |
void | GetUIToolLandmarksLists (mitk::PointSet::Pointer &calLandmarks, mitk::PointSet::Pointer ®Landmarks) |
void | InitializeUIToolLandmarkLists () |
void | RefreshTrackingDeviceCollection () |
Protected Attributes | |
Ui::QmitkNavigationToolCreationWidgetControls * | m_Controls |
QmitkNavigationToolCreationAdvancedWidget * | m_AdvancedWidget |
mitk::DataStorage * | m_DataStorage |
holds the DataStorage More... | |
mitk::NavigationTool::Pointer | m_CreatedTool |
this pointer holds the tool which is created More... | |
mitk::DataNode::Pointer | m_calLandmarkNode |
mitk::DataNode::Pointer | m_regLandmarkNode |
An object of this class offers an UI to create or modify NavigationTools.
Documentation: Be sure to call the initialize method before you start the widget otherwise some errors might occure.
Definition at line 49 of file QmitkNavigationToolCreationWidget.h.
QmitkNavigationToolCreationWidget::QmitkNavigationToolCreationWidget | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | f = 0 |
||
) |
Definition at line 41 of file QmitkNavigationToolCreationWidget.cpp.
References CreateConnections(), CreateQtPartControl(), m_AdvancedWidget, m_Controls, and RefreshTrackingDeviceCollection().
QmitkNavigationToolCreationWidget::~QmitkNavigationToolCreationWidget | ( | ) |
Definition at line 55 of file QmitkNavigationToolCreationWidget.cpp.
References m_AdvancedWidget, and m_Controls.
|
signal |
This signal is emitted if the user canceled the creation of the tool.
Referenced by OnCancel().
|
protectedvirtual |
Creation of the connections.
Definition at line 72 of file QmitkNavigationToolCreationWidget.cpp.
References m_AdvancedWidget, m_Controls, OnCancel(), OnFinished(), OnLoadCalibrationFile(), OnLoadSurface(), OnProcessDialogCloseRequest(), OnRetrieveDataForManualTooltipManipulation(), OnShowAdvancedOptions(), and OnSurfaceUseOtherToggled().
Referenced by QmitkNavigationToolCreationWidget().
|
protectedvirtual |
Definition at line 62 of file QmitkNavigationToolCreationWidget.cpp.
References m_Controls.
Referenced by QmitkNavigationToolCreationWidget().
|
protected |
Set the tool landmark lists in the UI.
Definition at line 296 of file QmitkNavigationToolCreationWidget.cpp.
References m_calLandmarkNode, m_Controls, and m_regLandmarkNode.
Referenced by InitializeUIToolLandmarkLists(), and SetDefaultData().
mitk::NavigationTool::Pointer QmitkNavigationToolCreationWidget::GetCreatedTool | ( | ) |
Definition at line 119 of file QmitkNavigationToolCreationWidget.cpp.
References m_CreatedTool.
|
protected |
Returns the tool landmark lists from the UI.
[out] | calLandmarks | Returns a pointer to the calibration landmarks point set. |
[out] | regLandmarks | Returns a pointer to the registration landmarks point set. |
Definition at line 304 of file QmitkNavigationToolCreationWidget.cpp.
References m_calLandmarkNode, and m_regLandmarkNode.
Referenced by OnFinished().
void QmitkNavigationToolCreationWidget::Initialize | ( | mitk::DataStorage * | dataStorage, |
const std::string & | supposedIdentifier, | ||
const std::string & | supposedName = "NewTool" |
||
) |
Initializes the widget.
dataStorage | The data storage is needed to offer the possibility to choose surfaces from the data storage for tool visualization. |
supposedIdentifier | This Identifier is supposed for the user. It is needed because every identifier in a navigation tool storage must be unique and we don't know the others. |
Definition at line 88 of file QmitkNavigationToolCreationWidget.cpp.
References InitializeUIToolLandmarkLists(), m_AdvancedWidget, m_Controls, m_DataStorage, mitk::NodePredicateDataType::New(), and QmitkNavigationToolCreationAdvancedWidget::SetDataStorage().
|
protected |
Initializes the tool landmark lists in the UI.
Definition at line 310 of file QmitkNavigationToolCreationWidget.cpp.
References FillUIToolLandmarkLists(), m_calLandmarkNode, m_regLandmarkNode, mitk::DataNode::New(), and mitk::PointSet::New().
Referenced by Initialize().
|
protected |
Shows a message box with the given message s.
Definition at line 246 of file QmitkNavigationToolCreationWidget.cpp.
|
signal |
This signal is emitted if the user finished the creation of the tool.
Referenced by OnFinished().
|
protectedslot |
Definition at line 186 of file QmitkNavigationToolCreationWidget.cpp.
References Canceled(), and m_CreatedTool.
Referenced by CreateConnections().
|
protectedslot |
Definition at line 128 of file QmitkNavigationToolCreationWidget.cpp.
References mitk::NavigationTool::Fiducial, QmitkNavigationToolCreationAdvancedWidget::GetManipulatedToolTip(), GetUIToolLandmarksLists(), mitk::NavigationTool::Instrument, m_AdvancedWidget, m_Controls, m_CreatedTool, NavigationToolFinished(), mitk::Surface::New(), mitk::NavigationData::New(), mitk::New(), mitk::NavigationTool::New(), mitk::DataNode::New(), mitk::NavigationTool::Skinmarker, and mitk::NavigationTool::Unknown.
Referenced by CreateConnections().
|
protectedslot |
Definition at line 206 of file QmitkNavigationToolCreationWidget.cpp.
References m_Controls.
Referenced by CreateConnections().
|
protectedslot |
Definition at line 193 of file QmitkNavigationToolCreationWidget.cpp.
References filename, mitk::IOUtil::Load(), m_DataStorage, and MITK_ERROR.
Referenced by CreateConnections().
|
protectedslot |
Definition at line 272 of file QmitkNavigationToolCreationWidget.cpp.
References m_AdvancedWidget, and m_Controls.
Referenced by CreateConnections().
|
protectedslot |
Definition at line 278 of file QmitkNavigationToolCreationWidget.cpp.
References m_AdvancedWidget, m_Controls, and QmitkNavigationToolCreationAdvancedWidget::SetToolTipSurface().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 253 of file QmitkNavigationToolCreationWidget.cpp.
References mitk::DataStorage::ComputeBoundingGeometry3D(), mitk::DataStorage::GetAll(), mitk::RenderingManager::GetInstance(), QmitkNavigationToolCreationAdvancedWidget::GetManipulatedToolTip(), mitk::RenderingManager::InitializeViews(), m_AdvancedWidget, m_DataStorage, QmitkNavigationToolCreationAdvancedWidget::ReInitialize(), and QmitkNavigationToolCreationAdvancedWidget::SetDefaultTooltip().
Referenced by CreateConnections().
|
protectedslot |
Definition at line 291 of file QmitkNavigationToolCreationWidget.cpp.
References m_Controls.
Referenced by CreateConnections().
|
protected |
Definition at line 317 of file QmitkNavigationToolCreationWidget.cpp.
References us::GetModuleContext(), mitk::TrackingDeviceTypeCollection::GetTrackingDeviceTypeNames(), m_Controls, and MITK_WARN.
Referenced by QmitkNavigationToolCreationWidget().
void QmitkNavigationToolCreationWidget::SetDefaultData | ( | mitk::NavigationTool::Pointer | DefaultTool | ) |
Sets the default data of all input fields. The default data is used from the default tool which is given as parameter.
Definition at line 211 of file QmitkNavigationToolCreationWidget.cpp.
References mitk::NavigationTool::Fiducial, FillUIToolLandmarkLists(), mitk::NavigationTool::Instrument, m_AdvancedWidget, m_Controls, QmitkNavigationToolCreationAdvancedWidget::SetDefaultTooltip(), mitk::NavigationTool::Skinmarker, and mitk::NavigationTool::Unknown.
void QmitkNavigationToolCreationWidget::SetTrackingDeviceType | ( | mitk::TrackingDeviceType | type, |
bool | changeable = true |
||
) |
Sets the default tracking device type. You may also define if it is changeable or not.
Definition at line 108 of file QmitkNavigationToolCreationWidget.cpp.
References m_Controls.
|
protected |
Definition at line 103 of file QmitkNavigationToolCreationWidget.h.
Referenced by CreateConnections(), Initialize(), OnFinished(), OnProcessDialogCloseRequest(), OnRetrieveDataForManualTooltipManipulation(), OnShowAdvancedOptions(), QmitkNavigationToolCreationWidget(), SetDefaultData(), and ~QmitkNavigationToolCreationWidget().
|
protected |
Hold the data nodes which are needed for the landmark widgets.
Definition at line 116 of file QmitkNavigationToolCreationWidget.h.
Referenced by FillUIToolLandmarkLists(), GetUIToolLandmarksLists(), and InitializeUIToolLandmarkLists().
|
protected |
Definition at line 101 of file QmitkNavigationToolCreationWidget.h.
Referenced by CreateConnections(), CreateQtPartControl(), FillUIToolLandmarkLists(), Initialize(), OnFinished(), OnLoadCalibrationFile(), OnProcessDialogCloseRequest(), OnRetrieveDataForManualTooltipManipulation(), OnSurfaceUseOtherToggled(), QmitkNavigationToolCreationWidget(), RefreshTrackingDeviceCollection(), SetDefaultData(), SetTrackingDeviceType(), and ~QmitkNavigationToolCreationWidget().
|
protected |
this pointer holds the tool which is created
Definition at line 109 of file QmitkNavigationToolCreationWidget.h.
Referenced by GetCreatedTool(), OnCancel(), and OnFinished().
|
protected |
holds the DataStorage
Definition at line 106 of file QmitkNavigationToolCreationWidget.h.
Referenced by Initialize(), OnLoadSurface(), and OnShowAdvancedOptions().
|
protected |
Definition at line 116 of file QmitkNavigationToolCreationWidget.h.
Referenced by FillUIToolLandmarkLists(), GetUIToolLandmarksLists(), and InitializeUIToolLandmarkLists().
|
static |
Definition at line 54 of file QmitkNavigationToolCreationWidget.h.