Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Abstract class of a configuration widget for NDI Devices. For implementations see NDIAuroraWidget or NDIPolarisWidget. More...
#include <QmitkNDIAbstractDeviceWidget.h>
Signals | |
void | PortsScanned (int Port, QString result, int PortType) |
![]() | |
void | ConnectionTested (bool connected, QString output) |
Public Member Functions | |
QmitkNDIAbstractDeviceWidget (QWidget *parent=nullptr, Qt::WindowFlags f=nullptr) | |
~QmitkNDIAbstractDeviceWidget () override | |
void | Initialize () override=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... | |
void | AddOutput (std::string s) override=0 |
Optional method to add output to a small screen in the trackingToolbox (see QmitkNDIPolarisWidget) More... | |
![]() | |
QmitkAbstractTrackingDeviceWidget (QWidget *parent=nullptr, Qt::WindowFlags f=nullptr) | |
~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. More... | |
bool | IsInitialized () const |
virtual void | ResetOutput () |
Optional method to add output to a small screen in the trackingToolbox (see QmitkNDIPolarisWidget) More... | |
virtual mitk::TrackingDevice::Pointer | GetTrackingDevice ()=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... | |
virtual void | OnConnected (bool) |
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) |
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) |
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 | 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... | |
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... | |
Static Public Attributes | |
static const std::string | VIEW_ID |
![]() | |
static const std::string | VIEW_ID |
Protected Slots | |
void | AutoScanPorts () |
void | AutoScanPortsFinished (int Port, QString result, int PortType) |
![]() | |
void | TestConnectionFinished (bool connected, QString output) |
void | TestConnection () |
Protected Member Functions | |
void | InitializeNDIWidget () |
virtual void | SetPortValueToGUI (int portValue)=0 |
virtual void | SetPortTypeToGUI (int portType)=0 |
![]() | |
PERSISTENCE_GET_SERVICE_METHOD_MACRO void | InitializeSuperclassWidget () |
virtual QmitkAbstractTrackingDeviceWidget * | Clone (QWidget *parent=nullptr) 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 | |
QmitkTrackingDeviceConfigurationWidgetScanPortsWorker * | m_ScanPortsWorker |
QThread * | m_ScanPortsWorkerThread |
![]() | |
QmitkTrackingDeviceConfigurationWidgetConnectionWorker * | m_TestConnectionWorker |
QThread * | m_TestConnectionWorkerThread |
Additional Inherited Members | |
![]() | |
std::string | m_ErrorMessage |
current problem description More... | |
Abstract class of a configuration widget for NDI Devices. For implementations see NDIAuroraWidget or NDIPolarisWidget.
Documentation:
Definition at line 26 of file QmitkNDIAbstractDeviceWidget.h.
QmitkNDIAbstractDeviceWidget::QmitkNDIAbstractDeviceWidget | ( | QWidget * | parent = nullptr , |
Qt::WindowFlags | f = nullptr |
||
) |
Definition at line 19 of file QmitkNDIAbstractDeviceWidget.cpp.
|
override |
Definition at line 32 of file QmitkNDIAbstractDeviceWidget.cpp.
References AutoScanPortsFinished(), m_ScanPortsWorker, m_ScanPortsWorkerThread, and PortsScanned().
|
overridepure virtual |
Optional method to add output to a small screen in the trackingToolbox (see QmitkNDIPolarisWidget)
Reimplemented from QmitkAbstractTrackingDeviceWidget.
Implemented in QmitkNDIPolarisWidget, and QmitkNDIAuroraWidget.
Referenced by AutoScanPorts(), and AutoScanPortsFinished().
|
protectedslot |
Definition at line 45 of file QmitkNDIAbstractDeviceWidget.cpp.
References AddOutput(), and m_ScanPortsWorkerThread.
Referenced by QmitkNDIAuroraWidget::~QmitkNDIAuroraWidget(), and QmitkNDIPolarisWidget::~QmitkNDIPolarisWidget().
|
protectedslot |
This slot is called when the port scanning is finished.
Definition at line 52 of file QmitkNDIAbstractDeviceWidget.cpp.
References AddOutput(), m_ScanPortsWorkerThread, MITK_WARN, SetPortTypeToGUI(), and SetPortValueToGUI().
Referenced by ~QmitkNDIAbstractDeviceWidget().
|
overridepure 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.
Implemented in QmitkNDIAuroraWidget, and QmitkNDIPolarisWidget.
|
protected |
Definition at line 26 of file QmitkNDIAbstractDeviceWidget.cpp.
References QmitkAbstractTrackingDeviceWidget::InitializeSuperclassWidget().
Referenced by QmitkNDIAuroraWidget::Initialize(), and QmitkNDIPolarisWidget::Initialize().
|
signal |
Referenced by ~QmitkNDIAbstractDeviceWidget().
|
protectedpure virtual |
Implemented in QmitkNDIPolarisWidget, and QmitkNDIAuroraWidget.
Referenced by AutoScanPortsFinished().
|
protectedpure virtual |
Implemented in QmitkNDIPolarisWidget, and QmitkNDIAuroraWidget.
Referenced by AutoScanPortsFinished().
|
protected |
Definition at line 59 of file QmitkNDIAbstractDeviceWidget.h.
Referenced by ~QmitkNDIAbstractDeviceWidget().
|
protected |
Definition at line 60 of file QmitkNDIAbstractDeviceWidget.h.
Referenced by AutoScanPorts(), AutoScanPortsFinished(), and ~QmitkNDIAbstractDeviceWidget().
|
static |
Definition at line 31 of file QmitkNDIAbstractDeviceWidget.h.