MITK-IGT
IGT Extension of MITK
|
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>
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. | |
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. | |
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. | |
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. | |
Signals | |
void | TrackingDeviceSelectionChanged () |
Public Member Functions | |
QmitkTrackingDeviceConfigurationWidget (QWidget *parent=nullptr, Qt::WindowFlags f={}) | |
~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. | |
Static Public Attributes | |
static const std::string | VIEW_ID = "org.mitk.views.trackingdeviceconfigurationwidget" |
Protected Types | |
typedef QMap< QString, mitk::TrackingDeviceType > | PortDeviceMap |
Protected Slots | |
void | TrackingDeviceChanged () |
Protected Member Functions | |
virtual void | CreateConnections () |
Creation of the connections. | |
virtual void | CreateQtPartControl (QWidget *parent) |
void | ResetOutput () |
void | AddOutput (std::string s) |
void | StoreUISettings () |
void | LoadUISettings () |
QmitkTrackingDeviceConfigurationWidget::LoadUISettings. | |
void | RefreshTrackingDeviceCollection () |
Protected Attributes | |
Ui::QmitkTrackingDeviceConfigurationWidgetControls * | m_Controls |
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.
|
protected |
Definition at line 99 of file QmitkTrackingDeviceConfigurationWidget.h.
QmitkTrackingDeviceConfigurationWidget::QmitkTrackingDeviceConfigurationWidget | ( | QWidget * | parent = nullptr, |
Qt::WindowFlags | f = {} ) |
Definition at line 22 of file QmitkTrackingDeviceConfigurationWidget.cpp.
|
override |
Definition at line 43 of file QmitkTrackingDeviceConfigurationWidget.cpp.
|
protected |
Definition at line 175 of file QmitkTrackingDeviceConfigurationWidget.cpp.
|
protectedvirtual |
Creation of the connections.
Definition at line 59 of file QmitkTrackingDeviceConfigurationWidget.cpp.
|
protectedvirtual |
Definition at line 49 of file QmitkTrackingDeviceConfigurationWidget.cpp.
mitk::TrackingDevice::Pointer QmitkTrackingDeviceConfigurationWidget::GetTrackingDevice | ( | ) |
Definition at line 188 of file QmitkTrackingDeviceConfigurationWidget.cpp.
|
protected |
QmitkTrackingDeviceConfigurationWidget::LoadUISettings.
Precondition: Make sure that QStackedWidget is already initialized, e.g. by calling RefreshTrackingDeviceCollection() before.
Definition at line 239 of file QmitkTrackingDeviceConfigurationWidget.cpp.
|
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.
Definition at line 337 of file QmitkTrackingDeviceConfigurationWidget.cpp.
|
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.
Definition at line 341 of file QmitkTrackingDeviceConfigurationWidget.cpp.
|
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.
Definition at line 346 of file QmitkTrackingDeviceConfigurationWidget.cpp.
|
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.
Definition at line 350 of file QmitkTrackingDeviceConfigurationWidget.cpp.
void QmitkTrackingDeviceConfigurationWidget::OnToolStorageChanged | ( | ) |
This function is called, when anything in the ToolStorage changed, e.g. AddTool or EditTool. ServiceListener is connected in the QmitkMITKIGTTrackingToolboxView.
Definition at line 355 of file QmitkTrackingDeviceConfigurationWidget.cpp.
|
protected |
Definition at line 91 of file QmitkTrackingDeviceConfigurationWidget.cpp.
|
protected |
Definition at line 162 of file QmitkTrackingDeviceConfigurationWidget.cpp.
|
protected |
Definition at line 200 of file QmitkTrackingDeviceConfigurationWidget.cpp.
|
protectedslot |
Definition at line 67 of file QmitkTrackingDeviceConfigurationWidget.cpp.
|
signal |
|
protected |
Definition at line 96 of file QmitkTrackingDeviceConfigurationWidget.h.
|
static |
Definition at line 45 of file QmitkTrackingDeviceConfigurationWidget.h.