Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
QmitkNPOptitrackWidget.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 QmitkNPOptitrackWidget_h
14 #define QmitkNPOptitrackWidget_h
15 
16 #include "ui_QmitkNPOptitrackWidget.h"
18 
19 
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  QmitkNPOptitrackWidget(QWidget* parent = nullptr, Qt::WindowFlags f = nullptr);
33  ~QmitkNPOptitrackWidget() override;
34 
35  void Initialize() override;
36 
37 signals:
38 
39  protected slots :
40 
41  /* @brief Opens a file dialog. The users sets the calibration file which location is then stored in the member m_OptitrackCalibrationFile.*/
42  void SetOptitrackCalibrationFileClicked();
43 
44 private:
45 
47  void CreateConnections();
48 
49  void CreateQtPartControl(QWidget *parent);
50 protected:
51  QmitkNPOptitrackWidget* Clone(QWidget* parent) const override;
52 
54 
55  Ui::QmitkNPOptitrackWidget* m_Controls;
56 
57 public:
58  void ResetOutput() override;
59  void AddOutput(std::string s) override;
60  mitk::TrackingDevice::Pointer GetTrackingDevice() override;
61 
62  bool IsDeviceInstalled() override;
63 };
64 #endif
QmitkAbstractTrackingDeviceWidget::AddOutput
virtual void AddOutput(std::string)
Optional method to add output to a small screen in the trackingToolbox (see QmitkNDIPolarisWidget)
Definition: QmitkAbstractTrackingDeviceWidget.h:114
QmitkAbstractTrackingDeviceWidget.h
QmitkAbstractTrackingDeviceWidget::IsDeviceInstalled
virtual bool IsDeviceInstalled()
Optional method to investigate if drivers etc for your device are installed. The default value is "tr...
Definition: QmitkAbstractTrackingDeviceWidget.h:132
QmitkAbstractTrackingDeviceWidget::Initialize
virtual void Initialize()=0
Subclass must implement this method to return a pointer to a copy of the object. Please don't forget ...
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
QmitkNPOptitrackWidget::m_OptitrackCalibrationFile
std::string m_OptitrackCalibrationFile
Definition: QmitkNPOptitrackWidget.h:53
QmitkNPOptitrackWidget::m_Controls
Ui::QmitkNPOptitrackWidget * m_Controls
Definition: QmitkNPOptitrackWidget.h:55
QmitkNPOptitrackWidget::VIEW_ID
static const std::string VIEW_ID
Definition: QmitkNPOptitrackWidget.h:30
QmitkNPOptitrackWidget
Implementation of a configuration widget for NP Optitrack Tracking Devices.
Definition: QmitkNPOptitrackWidget.h:25
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 ...
QmitkAbstractTrackingDeviceWidget
Abstract class to configure a tracking device. Inherited widgets should be registered in the Microser...
Definition: QmitkAbstractTrackingDeviceWidget.h:52