Medical Imaging Interaction Toolkit  2018.4.99-c0f884b2
Medical Imaging Interaction Toolkit
QmitkPolhemusTrackerWidget Class Reference

Implementation of a configuration widget for Polhemus Tracking Devices. More...

#include <QmitkPolhemusTrackerWidget.h>

Inheritance diagram for QmitkPolhemusTrackerWidget:
Collaboration diagram for QmitkPolhemusTrackerWidget:

Public Member Functions

 QmitkPolhemusTrackerWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 
 ~QmitkPolhemusTrackerWidget ()
 
virtual void Initialize ()
 Subclass must implement this method to return a pointer to a copy of the object. Please don't forget to call InitializeSuperclassWidget(), CreateQtPartControl and optionally CreateConnections during this function. More...
 
virtual mitk::TrackingDevice::Pointer GetTrackingDevice ()
 
virtual 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...
 
virtual 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...
 
virtual 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...
 
virtual void OnToolStorageChanged ()
 This function is called, when anything in the ToolStorage changed, e.g. AddTool or EditTool. ServiceListener is connected in the QmitkMITKIGTTrackingToolboxView. More...
 
- Public Member Functions inherited from QmitkAbstractTrackingDeviceWidget
 QmitkAbstractTrackingDeviceWidget (QWidget *parent=nullptr, Qt::WindowFlags f=nullptr)
 
 ~QmitkAbstractTrackingDeviceWidget () override
 
QmitkAbstractTrackingDeviceWidgetCloneForQt (QWidget *parent=nullptr) const
 Return pointer to copy of the object. Internally use of QmitkUSAbstractCustomWidget::Clone() with additionaly setting an internal flag that the object was really cloned. More...
 
bool IsInitialized () const
 
virtual void ResetOutput ()
 Optional method to add output to a small screen in the trackingToolbox (see QmitkNDIPolarisWidget) More...
 
virtual void AddOutput (std::string)
 Optional method to add output to a small screen in the trackingToolbox (see QmitkNDIPolarisWidget) More...
 
virtual void StoreUISettings ()
 Optional method to store and load settings of your widget (see QmitkNDIPolarisWidget) More...
 
virtual void LoadUISettings ()
 Optional method to store and load settings of your widget (see QmitkNDIPolarisWidget) More...
 
virtual bool IsDeviceInstalled ()
 Optional method to investigate if drivers etc for your device are installed. The default value is "true" as most devices don't need this information. Others however migth crash, and for these you might implement this function (see QmitkMicronTrackerWidget) More...
 
virtual void OnStopTracking (bool)
 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...
 

Static Public Attributes

static const std::string VIEW_ID
 
- Static Public Attributes inherited from QmitkAbstractTrackingDeviceWidget
static const std::string VIEW_ID
 

Protected Slots

void on_m_hemisphereTracking_clicked ()
 
void on_m_ToggleHemisphere_clicked ()
 
void on_m_SetHemisphere_clicked ()
 
void on_m_GetHemisphere_clicked ()
 
void on_m_AdjustHemisphere_clicked ()
 
void on_m_AdvancedSettings_clicked ()
 
void on_m_ToggleToolTipCalibration_clicked ()
 
- Protected Slots inherited from QmitkAbstractTrackingDeviceWidget
void TestConnectionFinished (bool connected, QString output)
 
void TestConnection ()
 

Protected Member Functions

virtual QmitkPolhemusTrackerWidgetClone (QWidget *parent) const
 Subclass must implement this method to return a pointer to a copy of the object. Please don't forget to call Initialize() during this function and copy all of your settings. More...
 
- Protected Member Functions inherited from QmitkAbstractTrackingDeviceWidget
PERSISTENCE_GET_SERVICE_METHOD_MACRO void InitializeSuperclassWidget ()
 

Protected Attributes

Ui::QmitkPolhemusTrackerWidget * m_Controls
 
mitk::PolhemusTrackingDevice::Pointer m_TrackingDevice
 
- Protected Attributes inherited from QmitkAbstractTrackingDeviceWidget
QmitkTrackingDeviceConfigurationWidgetConnectionWorkerm_TestConnectionWorker
 
QThread * m_TestConnectionWorkerThread
 

Additional Inherited Members

- Signals inherited from QmitkAbstractTrackingDeviceWidget
void ConnectionTested (bool connected, QString output)
 
- Public Attributes inherited from QmitkAbstractTrackingDeviceWidget
std::string m_ErrorMessage
 current problem description More...
 

Detailed Description

Implementation of a configuration widget for Polhemus Tracking Devices.

Documentation:

Definition at line 27 of file QmitkPolhemusTrackerWidget.h.

Constructor & Destructor Documentation

◆ QmitkPolhemusTrackerWidget()

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

Definition at line 30 of file QmitkPolhemusTrackerWidget.cpp.

Referenced by Clone().

◆ ~QmitkPolhemusTrackerWidget()

QmitkPolhemusTrackerWidget::~QmitkPolhemusTrackerWidget ( )

Definition at line 44 of file QmitkPolhemusTrackerWidget.cpp.

References m_Controls.

Member Function Documentation

◆ Clone()

QmitkPolhemusTrackerWidget * QmitkPolhemusTrackerWidget::Clone ( QWidget *  parent) const
protectedvirtual

Subclass must implement this method to return a pointer to a copy of the object. Please don't forget to call Initialize() during this function and copy all of your settings.

Implements QmitkAbstractTrackingDeviceWidget.

Definition at line 90 of file QmitkPolhemusTrackerWidget.cpp.

References Initialize(), and QmitkPolhemusTrackerWidget().

◆ GetTrackingDevice()

mitk::TrackingDevice::Pointer QmitkPolhemusTrackerWidget::GetTrackingDevice ( )
virtual

◆ Initialize()

void QmitkPolhemusTrackerWidget::Initialize ( )
virtual

Subclass must implement this method to return a pointer to a copy of the object. Please don't forget to call InitializeSuperclassWidget(), CreateQtPartControl and optionally CreateConnections during this function.

Implements QmitkAbstractTrackingDeviceWidget.

Definition at line 35 of file QmitkPolhemusTrackerWidget.cpp.

References QmitkAbstractTrackingDeviceWidget::InitializeSuperclassWidget(), and on_m_AdvancedSettings_clicked().

Referenced by Clone().

◆ on_m_AdjustHemisphere_clicked

void QmitkPolhemusTrackerWidget::on_m_AdjustHemisphere_clicked ( )
protectedslot

Definition at line 153 of file QmitkPolhemusTrackerWidget.cpp.

References m_Controls, m_TrackingDevice, and MITK_INFO.

Referenced by OnToolStorageChanged().

◆ on_m_AdvancedSettings_clicked

void QmitkPolhemusTrackerWidget::on_m_AdvancedSettings_clicked ( )
protectedslot

◆ on_m_GetHemisphere_clicked

void QmitkPolhemusTrackerWidget::on_m_GetHemisphere_clicked ( )
protectedslot

Definition at line 124 of file QmitkPolhemusTrackerWidget.cpp.

References m_Controls, m_TrackingDevice, and MITK_INFO.

Referenced by OnToolStorageChanged().

◆ on_m_hemisphereTracking_clicked

void QmitkPolhemusTrackerWidget::on_m_hemisphereTracking_clicked ( )
protectedslot

Definition at line 97 of file QmitkPolhemusTrackerWidget.cpp.

References m_Controls, and m_TrackingDevice.

Referenced by OnToolStorageChanged().

◆ on_m_SetHemisphere_clicked

void QmitkPolhemusTrackerWidget::on_m_SetHemisphere_clicked ( )
protectedslot

◆ on_m_ToggleHemisphere_clicked

void QmitkPolhemusTrackerWidget::on_m_ToggleHemisphere_clicked ( )
protectedslot

Definition at line 102 of file QmitkPolhemusTrackerWidget.cpp.

References m_Controls, m_TrackingDevice, and MITK_INFO.

Referenced by OnToolStorageChanged().

◆ on_m_ToggleToolTipCalibration_clicked

void QmitkPolhemusTrackerWidget::on_m_ToggleToolTipCalibration_clicked ( )
protectedslot

◆ OnConnected()

void QmitkPolhemusTrackerWidget::OnConnected ( bool  _success)
virtual

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.

Reimplemented from QmitkAbstractTrackingDeviceWidget.

Definition at line 212 of file QmitkPolhemusTrackerWidget.cpp.

References m_Controls, and m_TrackingDevice.

◆ OnDisconnected()

void QmitkPolhemusTrackerWidget::OnDisconnected ( bool  _success)
virtual

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.

Reimplemented from QmitkAbstractTrackingDeviceWidget.

Definition at line 245 of file QmitkPolhemusTrackerWidget.cpp.

References m_Controls.

◆ OnStartTracking()

void QmitkPolhemusTrackerWidget::OnStartTracking ( bool  _success)
virtual

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.

Reimplemented from QmitkAbstractTrackingDeviceWidget.

Definition at line 235 of file QmitkPolhemusTrackerWidget.cpp.

References mitk::BaseRenderer::GetCameraController(), mitk::BaseRenderer::GetInstance(), mitk::BaseRenderer::GetRenderWindowByName(), mitk::BaseRenderer::GetVtkRenderer(), and mitk::CameraController::SetViewToPosterior().

◆ OnToolStorageChanged()

void QmitkPolhemusTrackerWidget::OnToolStorageChanged ( )
virtual

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

Reimplemented from QmitkAbstractTrackingDeviceWidget.

Definition at line 59 of file QmitkPolhemusTrackerWidget.cpp.

References m_Controls, m_TrackingDevice, MITK_DEBUG, on_m_AdjustHemisphere_clicked(), on_m_AdvancedSettings_clicked(), on_m_GetHemisphere_clicked(), on_m_hemisphereTracking_clicked(), on_m_SetHemisphere_clicked(), on_m_ToggleHemisphere_clicked(), and on_m_ToggleToolTipCalibration_clicked().

Member Data Documentation

◆ m_Controls

◆ m_TrackingDevice

◆ VIEW_ID

const std::string QmitkPolhemusTrackerWidget::VIEW_ID
static

Definition at line 32 of file QmitkPolhemusTrackerWidget.h.


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