Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
QmitkNDIPolarisWidget.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QmitkNDIPolarisWidget_h
14 #define QmitkNDIPolarisWidget_h
15 
16 #include "ui_QmitkNDIPolarisWidget.h"
18 
19 
25 class MITKIGTUI_EXPORT QmitkNDIPolarisWidget : public QmitkNDIAbstractDeviceWidget
26 {
27  Q_OBJECT // this is needed for all Qt objects that should have a MOC object (everything that derives from QObject)
28 
29 public:
30  static const std::string VIEW_ID;
31 
32  QmitkNDIPolarisWidget(QWidget* parent = nullptr, Qt::WindowFlags f = nullptr);
33  ~QmitkNDIPolarisWidget() override;
34 
35  void Initialize() override;
36 
37 signals:
38 
39  protected slots :
40 
41 private:
43  void CreateConnections();
44 
45  void CreateQtPartControl(QWidget *parent);
46 protected:
47 
50  mitk::IlluminationActivationRate GetPolarisFrameRate();
51 
52  Ui::QmitkNDIPolarisWidget* m_Controls;
53 
54  void SetPortValueToGUI(int portValue) override;
55  void SetPortTypeToGUI(int portType) override;
56 
57  QmitkNDIPolarisWidget* Clone(QWidget* parent) const override;
58 
59 public:
60  void ResetOutput() override;
61  void AddOutput(std::string s) override;
62  mitk::TrackingDevice::Pointer GetTrackingDevice() override;
63 
64  void StoreUISettings() override;
65  void LoadUISettings() override;
66 };
67 #endif
QmitkNDIPolarisWidget::VIEW_ID
static const std::string VIEW_ID
Definition: QmitkNDIPolarisWidget.h:30
QmitkNDIPolarisWidget
Implementation of a configuration widget for NDI Polaris Devices.
Definition: QmitkNDIPolarisWidget.h:25
QmitkNDIPolarisWidget::m_Controls
Ui::QmitkNDIPolarisWidget * m_Controls
Definition: QmitkNDIPolarisWidget.h:52
QmitkNDIAbstractDeviceWidget.h
QmitkNDIAbstractDeviceWidget::AddOutput
void AddOutput(std::string s) override=0
Optional method to add output to a small screen in the trackingToolbox (see QmitkNDIPolarisWidget)
QmitkAbstractTrackingDeviceWidget::ResetOutput
virtual void ResetOutput()
Optional method to add output to a small screen in the trackingToolbox (see QmitkNDIPolarisWidget)
Definition: QmitkAbstractTrackingDeviceWidget.h:110
QmitkAbstractTrackingDeviceWidget::GetTrackingDevice
virtual mitk::TrackingDevice::Pointer GetTrackingDevice()=0
mitk::IlluminationActivationRate
IlluminationActivationRate
activation rate of IR illuminator for NDI Polaris tracking device
Definition: mitkTrackingTypes.h:55
QmitkNDIAbstractDeviceWidget::Initialize
void Initialize() override=0
Subclass must implement this method to return a pointer to a copy of the object. Please don't forget ...
QmitkNDIAbstractDeviceWidget
Abstract class of a configuration widget for NDI Devices. For implementations see NDIAuroraWidget or ...
Definition: QmitkNDIAbstractDeviceWidget.h:26
QmitkNDIAbstractDeviceWidget::SetPortValueToGUI
virtual void SetPortValueToGUI(int portValue)=0
QmitkAbstractTrackingDeviceWidget::StoreUISettings
virtual void StoreUISettings()
Optional method to store and load settings of your widget (see QmitkNDIPolarisWidget)
Definition: QmitkAbstractTrackingDeviceWidget.h:120
QmitkAbstractTrackingDeviceWidget::Clone
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 ...
QmitkNDIAbstractDeviceWidget::SetPortTypeToGUI
virtual void SetPortTypeToGUI(int portType)=0
QmitkAbstractTrackingDeviceWidget::LoadUISettings
virtual void LoadUISettings()
Optional method to store and load settings of your widget (see QmitkNDIPolarisWidget)
Definition: QmitkAbstractTrackingDeviceWidget.h:125