Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Abstract class to configure a tracking device. Inherited widgets should be registered in the Microservice (TrackingDeviceCollectionWidget), If done so, they will be included in the QmitkTrackingDeviceConfigurationWidget of the Tracking Toolbox. More...
#include <QmitkAbstractTrackingDeviceWidget.h>
Signals | |
void | ConnectionTested (bool connected, QString output) |
Public Member Functions | |
QmitkAbstractTrackingDeviceWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
virtual | ~QmitkAbstractTrackingDeviceWidget () |
QmitkAbstractTrackingDeviceWidget * | CloneForQt (QWidget *parent=0) 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... | |
virtual void | Initialize ()=0 |
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... | |
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 mitk::TrackingDevice::Pointer | ConstructTrackingDevice ()=0 |
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... | |
Public Attributes | |
std::string | m_ErrorMessage |
current problem description More... | |
Static Public Attributes | |
static const std::string | VIEW_ID |
Protected Slots | |
void | TestConnectionFinished (bool connected, QString output) |
void | TestConnection () |
Protected Member Functions | |
PERSISTENCE_GET_SERVICE_METHOD_MACRO void | InitializeSuperclassWidget () |
virtual QmitkAbstractTrackingDeviceWidget * | Clone (QWidget *parent=0) const =0 |
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 Attributes | |
QmitkTrackingDeviceConfigurationWidgetConnectionWorker * | m_TestConnectionWorker |
QThread * | m_TestConnectionWorkerThread |
Abstract class to configure a tracking device. Inherited widgets should be registered in the Microservice (TrackingDeviceCollectionWidget), If done so, they will be included in the QmitkTrackingDeviceConfigurationWidget of the Tracking Toolbox.
Documentation:
You can Load and Store previous settings of your GUI elements (e.g. see QmitkNDIPolarisWidget). Also, you can add an output textbox to your widget to display information about your device status. It's optional, see e.g. QmitkNDIAuroraWidget. Some Devices need the information if drivers are installed on your computer. If this is necessary for your device to avoid crashes, please override IsDeviceInstalled. The default return value is true otherwise.
Definition at line 52 of file QmitkAbstractTrackingDeviceWidget.h.
QmitkAbstractTrackingDeviceWidget::QmitkAbstractTrackingDeviceWidget | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | f = 0 |
||
) |
Definition at line 21 of file QmitkAbstractTrackingDeviceWidget.cpp.
|
virtual |
Definition at line 39 of file QmitkAbstractTrackingDeviceWidget.cpp.
References m_TestConnectionWorker, and m_TestConnectionWorkerThread.
|
inlinevirtual |
Optional method to add output to a small screen in the trackingToolbox (see QmitkNDIPolarisWidget)
Reimplemented in QmitkNDIPolarisWidget, QmitkMicronTrackerWidget, QmitkNPOptitrackWidget, QmitkNDIAuroraWidget, and QmitkNDIAbstractDeviceWidget.
Definition at line 114 of file QmitkAbstractTrackingDeviceWidget.h.
Referenced by QmitkTrackingDeviceConfigurationWidget::AddOutput(), and TestConnectionFinished().
|
protectedpure virtual |
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.
Implemented in QmitkNDIPolarisWidget, QmitkNDIAuroraWidget, QmitkMicronTrackerWidget, QmitkNPOptitrackWidget, QmitkVirtualTrackerWidget, and QmitkOpenIGTLinkWidget.
Referenced by CloneForQt().
QmitkAbstractTrackingDeviceWidget * QmitkAbstractTrackingDeviceWidget::CloneForQt | ( | QWidget * | parent = 0 | ) | 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.
Definition at line 69 of file QmitkAbstractTrackingDeviceWidget.cpp.
References Clone(), IsInitialized(), and MITK_ERROR.
|
signal |
|
pure virtual |
|
pure 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.
Implemented in QmitkMicronTrackerWidget, QmitkNDIAbstractDeviceWidget, QmitkNDIAuroraWidget, QmitkNDIPolarisWidget, QmitkNPOptitrackWidget, QmitkOpenIGTLinkWidget, and QmitkVirtualTrackerWidget.
Referenced by mitk::TrackingDeviceWidgetCollection::GetTrackingDeviceWidgetClone().
|
protected |
Definition at line 30 of file QmitkAbstractTrackingDeviceWidget.cpp.
References m_ErrorMessage, m_TestConnectionWorker, and m_TestConnectionWorkerThread.
Referenced by QmitkNPOptitrackWidget::Initialize(), QmitkVirtualTrackerWidget::Initialize(), QmitkOpenIGTLinkWidget::Initialize(), QmitkMicronTrackerWidget::Initialize(), and QmitkNDIAbstractDeviceWidget::InitializeNDIWidget().
|
inlinevirtual |
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)
Reimplemented in QmitkMicronTrackerWidget, and QmitkNPOptitrackWidget.
Definition at line 132 of file QmitkAbstractTrackingDeviceWidget.h.
Referenced by QmitkTrackingDeviceConfigurationWidget::LoadUISettings(), and QmitkTrackingDeviceConfigurationWidget::TrackingDeviceChanged().
|
inline |
Definition at line 76 of file QmitkAbstractTrackingDeviceWidget.h.
Referenced by CloneForQt().
|
inlinevirtual |
Optional method to store and load settings of your widget (see QmitkNDIPolarisWidget)
Reimplemented in QmitkNDIPolarisWidget, QmitkMicronTrackerWidget, and QmitkNDIAuroraWidget.
Definition at line 125 of file QmitkAbstractTrackingDeviceWidget.h.
Referenced by QmitkTrackingDeviceConfigurationWidget::LoadUISettings().
|
inlinevirtual |
Optional method to add output to a small screen in the trackingToolbox (see QmitkNDIPolarisWidget)
Reimplemented in QmitkNDIPolarisWidget, QmitkMicronTrackerWidget, QmitkNPOptitrackWidget, and QmitkNDIAuroraWidget.
Definition at line 110 of file QmitkAbstractTrackingDeviceWidget.h.
Referenced by QmitkTrackingDeviceConfigurationWidget::ResetOutput().
|
inlinevirtual |
Optional method to store and load settings of your widget (see QmitkNDIPolarisWidget)
Reimplemented in QmitkNDIPolarisWidget, QmitkMicronTrackerWidget, and QmitkNDIAuroraWidget.
Definition at line 120 of file QmitkAbstractTrackingDeviceWidget.h.
Referenced by QmitkTrackingDeviceConfigurationWidget::StoreUISettings().
|
protectedslot |
Definition at line 52 of file QmitkAbstractTrackingDeviceWidget.cpp.
References ConstructTrackingDevice(), m_TestConnectionWorker, m_TestConnectionWorkerThread, and QmitkTrackingDeviceConfigurationWidgetConnectionWorker::SetTrackingDevice().
|
protectedslot |
Definition at line 44 of file QmitkAbstractTrackingDeviceWidget.cpp.
References AddOutput(), m_TestConnectionWorkerThread, and MITK_INFO.
std::string QmitkAbstractTrackingDeviceWidget::m_ErrorMessage |
current problem description
Definition at line 134 of file QmitkAbstractTrackingDeviceWidget.h.
Referenced by InitializeSuperclassWidget().
|
protected |
Definition at line 97 of file QmitkAbstractTrackingDeviceWidget.h.
Referenced by InitializeSuperclassWidget(), TestConnection(), and ~QmitkAbstractTrackingDeviceWidget().
|
protected |
Definition at line 98 of file QmitkAbstractTrackingDeviceWidget.h.
Referenced by InitializeSuperclassWidget(), TestConnection(), TestConnectionFinished(), and ~QmitkAbstractTrackingDeviceWidget().
|
static |
Definition at line 57 of file QmitkAbstractTrackingDeviceWidget.h.