Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Implementation of a configuration widget for NDI Aurora Devices. More...
#include <QmitkNDIAuroraWidget.h>
Public Member Functions | |
QmitkNDIAuroraWidget (QWidget *parent=nullptr, Qt::WindowFlags f=nullptr) | |
~QmitkNDIAuroraWidget () override | |
void | Initialize () override |
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... | |
![]() | |
QmitkNDIAbstractDeviceWidget (QWidget *parent=nullptr, Qt::WindowFlags f=nullptr) | |
~QmitkNDIAbstractDeviceWidget () override | |
![]() | |
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 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 |
![]() | |
static const std::string | VIEW_ID |
Protected Member Functions | |
void | ResetOutput () override |
Optional method to add output to a small screen in the trackingToolbox (see QmitkNDIPolarisWidget) More... | |
void | AddOutput (std::string s) override |
Optional method to add output to a small screen in the trackingToolbox (see QmitkNDIPolarisWidget) More... | |
mitk::TrackingDevice::Pointer | GetTrackingDevice () override |
void | StoreUISettings () override |
Optional method to store and load settings of your widget (see QmitkNDIPolarisWidget) More... | |
void | LoadUISettings () override |
Optional method to store and load settings of your widget (see QmitkNDIPolarisWidget) More... | |
void | SetPortValueToGUI (int portValue) override |
void | SetPortTypeToGUI (int portType) override |
QmitkNDIAuroraWidget * | Clone (QWidget *parent) const override |
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... | |
![]() | |
void | InitializeNDIWidget () |
![]() | |
PERSISTENCE_GET_SERVICE_METHOD_MACRO void | InitializeSuperclassWidget () |
Protected Attributes | |
Ui::QmitkNDIAuroraWidget * | m_Controls |
![]() | |
QmitkTrackingDeviceConfigurationWidgetScanPortsWorker * | m_ScanPortsWorker |
QThread * | m_ScanPortsWorkerThread |
![]() | |
QmitkTrackingDeviceConfigurationWidgetConnectionWorker * | m_TestConnectionWorker |
QThread * | m_TestConnectionWorkerThread |
Additional Inherited Members | |
![]() | |
void | PortsScanned (int Port, QString result, int PortType) |
![]() | |
void | ConnectionTested (bool connected, QString output) |
![]() | |
std::string | m_ErrorMessage |
current problem description More... | |
![]() | |
void | AutoScanPorts () |
void | AutoScanPortsFinished (int Port, QString result, int PortType) |
![]() | |
void | TestConnectionFinished (bool connected, QString output) |
void | TestConnection () |
Implementation of a configuration widget for NDI Aurora Devices.
Documentation:
Definition at line 25 of file QmitkNDIAuroraWidget.h.
QmitkNDIAuroraWidget::QmitkNDIAuroraWidget | ( | QWidget * | parent = nullptr , |
Qt::WindowFlags | f = nullptr |
||
) |
Definition at line 23 of file QmitkNDIAuroraWidget.cpp.
Referenced by Clone().
|
override |
Definition at line 36 of file QmitkNDIAuroraWidget.cpp.
References QmitkNDIAbstractDeviceWidget::AutoScanPorts(), m_Controls, and QmitkAbstractTrackingDeviceWidget::TestConnection().
|
overrideprotectedvirtual |
Optional method to add output to a small screen in the trackingToolbox (see QmitkNDIPolarisWidget)
Implements QmitkNDIAbstractDeviceWidget.
Definition at line 73 of file QmitkNDIAuroraWidget.cpp.
References m_Controls.
|
overrideprotectedvirtual |
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 162 of file QmitkNDIAuroraWidget.cpp.
References Initialize(), m_Controls, QmitkNDIAuroraWidget(), SetPortTypeToGUI(), and SetPortValueToGUI().
|
overrideprotectedvirtual |
Implements QmitkAbstractTrackingDeviceWidget.
Definition at line 79 of file QmitkNDIAuroraWidget.cpp.
References mitk::SerialCommunication::BaudRate115200, mitk::NDIAuroraTypeInformation::GetTrackingDeviceName(), m_Controls, and mitk::NDITrackingDevice::New().
|
overridevirtual |
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 QmitkNDIAbstractDeviceWidget.
Definition at line 29 of file QmitkNDIAuroraWidget.cpp.
References QmitkNDIAbstractDeviceWidget::InitializeNDIWidget().
Referenced by Clone().
|
overrideprotectedvirtual |
Optional method to store and load settings of your widget (see QmitkNDIPolarisWidget)
Reimplemented from QmitkAbstractTrackingDeviceWidget.
Definition at line 124 of file QmitkNDIAuroraWidget.cpp.
References GetPersistenceService(), m_Controls, MITK_ERROR, SetPortTypeToGUI(), and SetPortValueToGUI().
|
overrideprotectedvirtual |
Optional method to add output to a small screen in the trackingToolbox (see QmitkNDIPolarisWidget)
Reimplemented from QmitkAbstractTrackingDeviceWidget.
Definition at line 68 of file QmitkNDIAuroraWidget.cpp.
References m_Controls.
|
overrideprotectedvirtual |
Implements QmitkNDIAbstractDeviceWidget.
Definition at line 158 of file QmitkNDIAuroraWidget.cpp.
References m_Controls.
Referenced by Clone(), and LoadUISettings().
|
overrideprotectedvirtual |
Implements QmitkNDIAbstractDeviceWidget.
Definition at line 155 of file QmitkNDIAuroraWidget.cpp.
References m_Controls.
Referenced by Clone(), and LoadUISettings().
|
overrideprotectedvirtual |
Optional method to store and load settings of your widget (see QmitkNDIPolarisWidget)
Reimplemented from QmitkAbstractTrackingDeviceWidget.
Definition at line 105 of file QmitkNDIAuroraWidget.cpp.
References GetPersistenceService(), and m_Controls.
|
protected |
Definition at line 55 of file QmitkNDIAuroraWidget.h.
Referenced by AddOutput(), Clone(), GetTrackingDevice(), LoadUISettings(), ResetOutput(), SetPortTypeToGUI(), SetPortValueToGUI(), StoreUISettings(), and ~QmitkNDIAuroraWidget().
|
static |
Definition at line 30 of file QmitkNDIAuroraWidget.h.