Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
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>
Signals | |
void | TrackingDeviceSelectionChanged () |
Public Member Functions | |
QmitkTrackingDeviceConfigurationWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
~QmitkTrackingDeviceConfigurationWidget () | |
mitk::TrackingDevice::Pointer | GetTrackingDevice () |
Static Public Attributes | |
static const std::string | VIEW_ID |
Protected Types | |
typedef QMap< QString, mitk::TrackingDeviceType > | PortDeviceMap |
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) |
mitk::TrackingDevice::Pointer | ConstructTrackingDevice () |
void | StoreUISettings () |
void | LoadUISettings () |
QmitkTrackingDeviceConfigurationWidget::LoadUISettings. More... | |
void | RefreshTrackingDeviceCollection () |
Protected Attributes | |
Ui::QmitkTrackingDeviceConfigurationWidgetControls * | m_Controls |
mitk::TrackingDevice::Pointer | m_TrackingDevice |
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 43 of file QmitkTrackingDeviceConfigurationWidget.h.
|
protected |
Definition at line 75 of file QmitkTrackingDeviceConfigurationWidget.h.
QmitkTrackingDeviceConfigurationWidget::QmitkTrackingDeviceConfigurationWidget | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | f = 0 |
||
) |
Definition at line 25 of file QmitkTrackingDeviceConfigurationWidget.cpp.
References AddOutput(), CreateConnections(), CreateQtPartControl(), LoadUISettings(), RefreshTrackingDeviceCollection(), and ResetOutput().
QmitkTrackingDeviceConfigurationWidget::~QmitkTrackingDeviceConfigurationWidget | ( | ) |
Definition at line 47 of file QmitkTrackingDeviceConfigurationWidget.cpp.
References m_Controls, m_TrackingDevice, and StoreUISettings().
|
protected |
Definition at line 180 of file QmitkTrackingDeviceConfigurationWidget.cpp.
References QmitkAbstractTrackingDeviceWidget::AddOutput().
Referenced by QmitkTrackingDeviceConfigurationWidget(), and TrackingDeviceChanged().
|
protected |
Definition at line 193 of file QmitkTrackingDeviceConfigurationWidget.cpp.
References QmitkAbstractTrackingDeviceWidget::ConstructTrackingDevice().
Referenced by GetTrackingDevice().
|
protectedvirtual |
Creation of the connections.
Definition at line 64 of file QmitkTrackingDeviceConfigurationWidget.cpp.
References m_Controls, and TrackingDeviceChanged().
Referenced by QmitkTrackingDeviceConfigurationWidget().
|
protectedvirtual |
Definition at line 54 of file QmitkTrackingDeviceConfigurationWidget.cpp.
References m_Controls.
Referenced by QmitkTrackingDeviceConfigurationWidget().
mitk::TrackingDevice::Pointer QmitkTrackingDeviceConfigurationWidget::GetTrackingDevice | ( | ) |
Definition at line 205 of file QmitkTrackingDeviceConfigurationWidget.cpp.
References ConstructTrackingDevice(), and m_TrackingDevice.
|
protected |
QmitkTrackingDeviceConfigurationWidget::LoadUISettings.
Precondition: Make sure that QStackedWidget is already initialized, e.g. by calling RefreshTrackingDeviceCollection() before.
Definition at line 251 of file QmitkTrackingDeviceConfigurationWidget.cpp.
References GetPersistenceService(), mitk::NDIPolarisTypeInformation::GetTrackingDeviceName(), QmitkAbstractTrackingDeviceWidget::IsDeviceInstalled(), QmitkAbstractTrackingDeviceWidget::LoadUISettings(), m_Controls, MITK_ERROR, and MITK_INFO.
Referenced by QmitkTrackingDeviceConfigurationWidget().
|
protected |
Definition at line 96 of file QmitkTrackingDeviceConfigurationWidget.cpp.
References us::GetModuleContext(), mitk::TrackingDeviceTypeCollection::GetTrackingDeviceTypeNames(), m_Controls, MITK_ERROR, MITK_INFO, and MITK_WARN.
Referenced by QmitkTrackingDeviceConfigurationWidget().
|
protected |
Definition at line 167 of file QmitkTrackingDeviceConfigurationWidget.cpp.
References QmitkAbstractTrackingDeviceWidget::ResetOutput().
Referenced by QmitkTrackingDeviceConfigurationWidget(), and TrackingDeviceChanged().
|
protected |
Definition at line 212 of file QmitkTrackingDeviceConfigurationWidget.cpp.
References GetPersistenceService(), m_Controls, and QmitkAbstractTrackingDeviceWidget::StoreUISettings().
Referenced by ~QmitkTrackingDeviceConfigurationWidget().
|
protectedslot |
Definition at line 72 of file QmitkTrackingDeviceConfigurationWidget.cpp.
References AddOutput(), QmitkAbstractTrackingDeviceWidget::IsDeviceInstalled(), m_Controls, ResetOutput(), and TrackingDeviceSelectionChanged().
Referenced by CreateConnections().
|
signal |
Referenced by TrackingDeviceChanged().
|
protected |
Definition at line 70 of file QmitkTrackingDeviceConfigurationWidget.h.
Referenced by CreateConnections(), CreateQtPartControl(), LoadUISettings(), RefreshTrackingDeviceCollection(), StoreUISettings(), TrackingDeviceChanged(), and ~QmitkTrackingDeviceConfigurationWidget().
|
protected |
Definition at line 72 of file QmitkTrackingDeviceConfigurationWidget.h.
Referenced by GetTrackingDevice(), and ~QmitkTrackingDeviceConfigurationWidget().
|
static |
Definition at line 48 of file QmitkTrackingDeviceConfigurationWidget.h.