MITK-IGT
IGT Extension of MITK
|
Implementation of a configuration widget for Polhemus Tracking Devices. More...
#include <QmitkPolhemusTrackerWidget.h>
Public Member Functions | |
QmitkPolhemusTrackerWidget (QWidget *parent=nullptr, Qt::WindowFlags f={}) | |
~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. | |
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. | |
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. | |
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. | |
virtual void | OnToolStorageChanged () |
This function is called, when anything in the ToolStorage changed, e.g. AddTool or EditTool. ServiceListener is connected in the QmitkMITKIGTTrackingToolboxView. | |
![]() | |
QmitkAbstractTrackingDeviceWidget (QWidget *parent=nullptr, Qt::WindowFlags f={}) | |
~QmitkAbstractTrackingDeviceWidget () override | |
QmitkAbstractTrackingDeviceWidget * | CloneForQt (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. | |
bool | IsInitialized () const |
virtual void | ResetOutput () |
Optional method to add output to a small screen in the trackingToolbox (see QmitkNDIPolarisWidget) | |
virtual void | AddOutput (std::string) |
Optional method to add output to a small screen in the trackingToolbox (see QmitkNDIPolarisWidget) | |
virtual void | StoreUISettings () |
Optional method to store and load settings of your widget (see QmitkNDIPolarisWidget) | |
virtual void | LoadUISettings () |
Optional method to store and load settings of your widget (see QmitkNDIPolarisWidget) | |
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) | |
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. | |
Static Public Attributes | |
static const std::string | VIEW_ID = "org.mitk.views.PolhemusTrackerWidget" |
![]() | |
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 () |
![]() | |
void | TestConnectionFinished (bool connected, QString output) |
void | TestConnection () |
Protected Member Functions | |
virtual QmitkPolhemusTrackerWidget * | Clone (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. | |
![]() | |
PERSISTENCE_GET_SERVICE_METHOD_MACRO void | InitializeSuperclassWidget () |
Protected Attributes | |
Ui::QmitkPolhemusTrackerWidget * | m_Controls |
mitk::PolhemusTrackingDevice::Pointer | m_TrackingDevice |
![]() | |
QmitkTrackingDeviceConfigurationWidgetConnectionWorker * | m_TestConnectionWorker |
QThread * | m_TestConnectionWorkerThread |
Additional Inherited Members | |
![]() | |
void | ConnectionTested (bool connected, QString output) |
![]() | |
std::string | m_ErrorMessage |
current problem description | |
Implementation of a configuration widget for Polhemus Tracking Devices.
Documentation:
Definition at line 27 of file QmitkPolhemusTrackerWidget.h.
QmitkPolhemusTrackerWidget::QmitkPolhemusTrackerWidget | ( | QWidget * | parent = nullptr, |
Qt::WindowFlags | f = {} ) |
Definition at line 30 of file QmitkPolhemusTrackerWidget.cpp.
QmitkPolhemusTrackerWidget::~QmitkPolhemusTrackerWidget | ( | ) |
Definition at line 44 of file QmitkPolhemusTrackerWidget.cpp.
|
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.
|
virtual |
Implements QmitkAbstractTrackingDeviceWidget.
Definition at line 79 of file QmitkPolhemusTrackerWidget.cpp.
|
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.
|
protectedslot |
Definition at line 153 of file QmitkPolhemusTrackerWidget.cpp.
|
protectedslot |
Definition at line 273 of file QmitkPolhemusTrackerWidget.cpp.
|
protectedslot |
Definition at line 124 of file QmitkPolhemusTrackerWidget.cpp.
|
protectedslot |
Definition at line 97 of file QmitkPolhemusTrackerWidget.cpp.
|
protectedslot |
Definition at line 110 of file QmitkPolhemusTrackerWidget.cpp.
|
protectedslot |
Definition at line 102 of file QmitkPolhemusTrackerWidget.cpp.
|
protectedslot |
Definition at line 191 of file QmitkPolhemusTrackerWidget.cpp.
|
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 214 of file QmitkPolhemusTrackerWidget.cpp.
|
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 251 of file QmitkPolhemusTrackerWidget.cpp.
|
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 237 of file QmitkPolhemusTrackerWidget.cpp.
|
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.
|
protected |
Definition at line 64 of file QmitkPolhemusTrackerWidget.h.
|
protected |
Definition at line 66 of file QmitkPolhemusTrackerWidget.h.
|
static |
Definition at line 32 of file QmitkPolhemusTrackerWidget.h.