Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
QmitkTrackingDeviceConfigurationWidget Class Reference

An object of this class offers an UI to configurate a tracking device. If the user finished the configuration process and a fully configurated tracking device is availiabe the object emits a signal "TrackingDeviceConfigurationFinished()". You can then get the tracking device by calling the method GetTrackingDevice(). More...

#include <QmitkTrackingDeviceConfigurationWidget.h>

Inheritance diagram for QmitkTrackingDeviceConfigurationWidget:
Collaboration diagram for QmitkTrackingDeviceConfigurationWidget:

Public Slots

void OnConnected (bool _success)
 This function is called, when in the TrackingToolboxView "Connect" was clicked and the device is successful connected. Can e.g. be used to activate options of a tracking device only when it is connected. More...
 
void OnDisconnected (bool _success)
 This function is called, when in the TrackingToolboxView "Disconnect" was clicked and the device is successful disconnected. Can e.g. be used to activate/disactivate options of a tracking device. More...
 
void OnStartTracking (bool _success)
 This function is called, when in the TrackingToolboxView "Start Tracking" was clicked and the device successfully started tracking. Can e.g. be used to activate options of a tracking device only when tracking is started. More...
 
void OnStopTracking (bool _success)
 This function is called, when in the TrackingToolboxView "Stop Tracking" was clicked and the device successful stopped tracking. Can e.g. be used to activate/disactivate options when device is not tracking. More...
 

Signals

void TrackingDeviceSelectionChanged ()
 

Public Member Functions

 QmitkTrackingDeviceConfigurationWidget (QWidget *parent=nullptr, Qt::WindowFlags f=nullptr)
 
 ~QmitkTrackingDeviceConfigurationWidget () override
 
mitk::TrackingDevice::Pointer GetTrackingDevice ()
 
void OnToolStorageChanged ()
 This function is called, when anything in the ToolStorage changed, e.g. AddTool or EditTool. ServiceListener is connected in the QmitkMITKIGTTrackingToolboxView. More...
 

Static Public Attributes

static const std::string VIEW_ID
 

Protected Types

typedef QMap< QString, mitk::TrackingDeviceTypePortDeviceMap
 

Protected Slots

void TrackingDeviceChanged ()
 

Protected Member Functions

virtual void CreateConnections ()
 Creation of the connections. More...
 
virtual void CreateQtPartControl (QWidget *parent)
 
void ResetOutput ()
 
void AddOutput (std::string s)
 
void StoreUISettings ()
 
void LoadUISettings ()
 
void RefreshTrackingDeviceCollection ()
 

Protected Attributes

Ui::QmitkTrackingDeviceConfigurationWidgetControls * m_Controls
 

Detailed Description

An object of this class offers an UI to configurate a tracking device. If the user finished the configuration process and a fully configurated tracking device is availiabe the object emits a signal "TrackingDeviceConfigurationFinished()". You can then get the tracking device by calling the method GetTrackingDevice().

Documentation: Once the tracking device is configurated there are two ways to reset the UI to allow the user for configuring a new device. The method Reset() can be called and there is also a button "reset" which can be pressed by the user. In both cases a signal "TrackingDeviceConfigurationReseted()" is emitted and you may wait for a new configurated tracking device.

Definition at line 40 of file QmitkTrackingDeviceConfigurationWidget.h.

Member Typedef Documentation

◆ PortDeviceMap

Constructor & Destructor Documentation

◆ QmitkTrackingDeviceConfigurationWidget()

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

◆ ~QmitkTrackingDeviceConfigurationWidget()

QmitkTrackingDeviceConfigurationWidget::~QmitkTrackingDeviceConfigurationWidget ( )
override

Member Function Documentation

◆ AddOutput()

void QmitkTrackingDeviceConfigurationWidget::AddOutput ( std::string  s)
protected

◆ CreateConnections()

virtual void QmitkTrackingDeviceConfigurationWidget::CreateConnections ( )
protectedvirtual

Creation of the connections.

◆ CreateQtPartControl()

virtual void QmitkTrackingDeviceConfigurationWidget::CreateQtPartControl ( QWidget *  parent)
protectedvirtual

◆ GetTrackingDevice()

mitk::TrackingDevice::Pointer QmitkTrackingDeviceConfigurationWidget::GetTrackingDevice ( )

◆ LoadUISettings()

void QmitkTrackingDeviceConfigurationWidget::LoadUISettings ( )
protected

◆ OnConnected

void QmitkTrackingDeviceConfigurationWidget::OnConnected ( bool  _success)
slot

This function is called, when in the TrackingToolboxView "Connect" was clicked and the device is successful connected. Can e.g. be used to activate options of a tracking device only when it is connected.

◆ OnDisconnected

void QmitkTrackingDeviceConfigurationWidget::OnDisconnected ( bool  _success)
slot

This function is called, when in the TrackingToolboxView "Disconnect" was clicked and the device is successful disconnected. Can e.g. be used to activate/disactivate options of a tracking device.

◆ OnStartTracking

void QmitkTrackingDeviceConfigurationWidget::OnStartTracking ( bool  _success)
slot

This function is called, when in the TrackingToolboxView "Start Tracking" was clicked and the device successfully started tracking. Can e.g. be used to activate options of a tracking device only when tracking is started.

◆ OnStopTracking

void QmitkTrackingDeviceConfigurationWidget::OnStopTracking ( bool  _success)
slot

This function is called, when in the TrackingToolboxView "Stop Tracking" was clicked and the device successful stopped tracking. Can e.g. be used to activate/disactivate options when device is not tracking.

◆ OnToolStorageChanged()

void QmitkTrackingDeviceConfigurationWidget::OnToolStorageChanged ( )

This function is called, when anything in the ToolStorage changed, e.g. AddTool or EditTool. ServiceListener is connected in the QmitkMITKIGTTrackingToolboxView.

◆ RefreshTrackingDeviceCollection()

void QmitkTrackingDeviceConfigurationWidget::RefreshTrackingDeviceCollection ( )
protected

◆ ResetOutput()

void QmitkTrackingDeviceConfigurationWidget::ResetOutput ( )
protected

◆ StoreUISettings()

void QmitkTrackingDeviceConfigurationWidget::StoreUISettings ( )
protected

◆ TrackingDeviceChanged

void QmitkTrackingDeviceConfigurationWidget::TrackingDeviceChanged ( )
protectedslot

◆ TrackingDeviceSelectionChanged

void QmitkTrackingDeviceConfigurationWidget::TrackingDeviceSelectionChanged ( )
signal

Member Data Documentation

◆ m_Controls

Ui::QmitkTrackingDeviceConfigurationWidgetControls* QmitkTrackingDeviceConfigurationWidget::m_Controls
protected

Definition at line 96 of file QmitkTrackingDeviceConfigurationWidget.h.

◆ VIEW_ID

const std::string QmitkTrackingDeviceConfigurationWidget::VIEW_ID
static

Definition at line 45 of file QmitkTrackingDeviceConfigurationWidget.h.


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