Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkNavigationToolCreationWidget Class Reference

An object of this class offers an UI to create or modify NavigationTools. More...

#include <QmitkNavigationToolCreationWidget.h>

Inheritance diagram for QmitkNavigationToolCreationWidget:
Collaboration diagram for QmitkNavigationToolCreationWidget:

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 &regLandmarks)
 
void InitializeUIToolLandmarkLists ()
 
void RefreshTrackingDeviceCollection ()
 

Protected Attributes

Ui::QmitkNavigationToolCreationWidgetControls * m_Controls
 
QmitkNavigationToolCreationAdvancedWidgetm_AdvancedWidget
 
mitk::DataStoragem_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
 

Detailed Description

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.

Constructor & Destructor Documentation

QmitkNavigationToolCreationWidget::QmitkNavigationToolCreationWidget ( QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)
QmitkNavigationToolCreationWidget::~QmitkNavigationToolCreationWidget ( )

Definition at line 55 of file QmitkNavigationToolCreationWidget.cpp.

References m_AdvancedWidget, and m_Controls.

Member Function Documentation

void QmitkNavigationToolCreationWidget::Canceled ( )
signal

This signal is emitted if the user canceled the creation of the tool.

Referenced by OnCancel().

void QmitkNavigationToolCreationWidget::CreateConnections ( )
protectedvirtual
void QmitkNavigationToolCreationWidget::CreateQtPartControl ( QWidget *  parent)
protectedvirtual

Definition at line 62 of file QmitkNavigationToolCreationWidget.cpp.

References m_Controls.

Referenced by QmitkNavigationToolCreationWidget().

void QmitkNavigationToolCreationWidget::FillUIToolLandmarkLists ( mitk::PointSet::Pointer  calLandmarks,
mitk::PointSet::Pointer  regLandmarks 
)
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 ( )
Returns
Returns the created tool. Returns NULL if no tool was created yet.

Definition at line 119 of file QmitkNavigationToolCreationWidget.cpp.

References m_CreatedTool.

void QmitkNavigationToolCreationWidget::GetUIToolLandmarksLists ( mitk::PointSet::Pointer calLandmarks,
mitk::PointSet::Pointer regLandmarks 
)
protected

Returns the tool landmark lists from the UI.

Parameters
[out]calLandmarksReturns a pointer to the calibration landmarks point set.
[out]regLandmarksReturns 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.

Parameters
dataStorageThe data storage is needed to offer the possibility to choose surfaces from the data storage for tool visualization.
supposedIdentifierThis 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().

void QmitkNavigationToolCreationWidget::InitializeUIToolLandmarkLists ( )
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().

void QmitkNavigationToolCreationWidget::MessageBox ( std::string  s)
protected

Shows a message box with the given message s.

Definition at line 246 of file QmitkNavigationToolCreationWidget.cpp.

void QmitkNavigationToolCreationWidget::NavigationToolFinished ( )
signal

This signal is emitted if the user finished the creation of the tool.

Referenced by OnFinished().

void QmitkNavigationToolCreationWidget::OnCancel ( )
protectedslot

Definition at line 186 of file QmitkNavigationToolCreationWidget.cpp.

References Canceled(), and m_CreatedTool.

Referenced by CreateConnections().

void QmitkNavigationToolCreationWidget::OnLoadCalibrationFile ( )
protectedslot

Definition at line 206 of file QmitkNavigationToolCreationWidget.cpp.

References m_Controls.

Referenced by CreateConnections().

void QmitkNavigationToolCreationWidget::OnLoadSurface ( )
protectedslot
void QmitkNavigationToolCreationWidget::OnProcessDialogCloseRequest ( )
protectedslot

Definition at line 272 of file QmitkNavigationToolCreationWidget.cpp.

References m_AdvancedWidget, and m_Controls.

Referenced by CreateConnections().

void QmitkNavigationToolCreationWidget::OnRetrieveDataForManualTooltipManipulation ( )
protectedslot
void QmitkNavigationToolCreationWidget::OnSurfaceUseOtherToggled ( bool  checked)
protectedslot

Definition at line 291 of file QmitkNavigationToolCreationWidget.cpp.

References m_Controls.

Referenced by CreateConnections().

void QmitkNavigationToolCreationWidget::RefreshTrackingDeviceCollection ( )
protected
void QmitkNavigationToolCreationWidget::SetDefaultData ( mitk::NavigationTool::Pointer  DefaultTool)
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.

Member Data Documentation

mitk::DataNode::Pointer QmitkNavigationToolCreationWidget::m_calLandmarkNode
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().

mitk::NavigationTool::Pointer QmitkNavigationToolCreationWidget::m_CreatedTool
protected

this pointer holds the tool which is created

Definition at line 109 of file QmitkNavigationToolCreationWidget.h.

Referenced by GetCreatedTool(), OnCancel(), and OnFinished().

mitk::DataStorage* QmitkNavigationToolCreationWidget::m_DataStorage
protected

holds the DataStorage

Definition at line 106 of file QmitkNavigationToolCreationWidget.h.

Referenced by Initialize(), OnLoadSurface(), and OnShowAdvancedOptions().

mitk::DataNode::Pointer QmitkNavigationToolCreationWidget::m_regLandmarkNode
protected
const std::string QmitkNavigationToolCreationWidget::VIEW_ID
static

Definition at line 54 of file QmitkNavigationToolCreationWidget.h.


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