Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
QmitkPolhemusTrackerWidget.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 QmitkPolhemusTrackerWidget_h
14 #define QmitkPolhemusTrackerWidget_h
15 
16 #include "ui_QmitkPolhemusTrackerWidget.h"
17 
20 
21 
28 {
29  Q_OBJECT // this is needed for all Qt objects that should have a MOC object (everything that derives from QObject)
30 
31 public:
32  static const std::string VIEW_ID;
33 
34  QmitkPolhemusTrackerWidget(QWidget* parent = 0, Qt::WindowFlags f = 0);
36 
37  virtual void Initialize();
38 
39 signals:
40 
41  protected slots :
42  void on_m_hemisphereTracking_clicked();
43  void on_m_ToggleHemisphere_clicked();
44  void on_m_SetHemisphere_clicked();
45  void on_m_GetHemisphere_clicked();
46  void on_m_AdjustHemisphere_clicked();
47  void on_m_AdvancedSettings_clicked();
48  void on_m_ToggleToolTipCalibration_clicked();
49 
50 private:
51 
53  void CreateConnections();
54 
55  void CreateQtPartControl(QWidget *parent);
56 
57  void SetAdvancedSettingsEnabled(bool _enable);
58 
59  int GetSelectedToolIndex();
60 
61 protected:
62  virtual QmitkPolhemusTrackerWidget* Clone(QWidget* parent) const;
63 
64  Ui::QmitkPolhemusTrackerWidget* m_Controls;
65 
66  mitk::PolhemusTrackingDevice::Pointer m_TrackingDevice;
67 
68 public:
69  virtual mitk::TrackingDevice::Pointer GetTrackingDevice();
74  virtual void OnConnected( bool _success);
79  virtual void OnDisconnected(bool _success);
84  virtual void OnStartTracking(bool _success);
89  virtual void OnToolStorageChanged();
90 
91 };
92 #endif
QmitkAbstractTrackingDeviceWidget::OnDisconnected
virtual void OnDisconnected(bool)
This function is called, when in the TrackingToolboxView "Disconnect" was clicked and the device is s...
Definition: QmitkAbstractTrackingDeviceWidget.h:143
QmitkAbstractTrackingDeviceWidget.h
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::OnToolStorageChanged
virtual void OnToolStorageChanged()
This function is called, when anything in the ToolStorage changed, e.g. AddTool or EditTool....
Definition: QmitkAbstractTrackingDeviceWidget.h:159
QmitkAbstractTrackingDeviceWidget::GetTrackingDevice
virtual mitk::TrackingDevice::Pointer GetTrackingDevice()=0
QmitkPolhemusTrackerWidget::m_Controls
Ui::QmitkPolhemusTrackerWidget * m_Controls
Definition: QmitkPolhemusTrackerWidget.h:64
QmitkPolhemusTrackerWidget::m_TrackingDevice
mitk::PolhemusTrackingDevice::Pointer m_TrackingDevice
Definition: QmitkPolhemusTrackerWidget.h:66
QmitkAbstractTrackingDeviceWidget::OnConnected
virtual void OnConnected(bool)
This function is called, when in the TrackingToolboxView "Connect" was clicked and the device is succ...
Definition: QmitkAbstractTrackingDeviceWidget.h:138
QmitkPolhemusTrackerWidget::VIEW_ID
static const std::string VIEW_ID
Definition: QmitkPolhemusTrackerWidget.h:32
QmitkPolhemusTrackerWidget
Implementation of a configuration widget for Polhemus Tracking Devices.
Definition: QmitkPolhemusTrackerWidget.h:27
QmitkAbstractTrackingDeviceWidget::OnStartTracking
virtual void OnStartTracking(bool)
This function is called, when in the TrackingToolboxView "Start Tracking" was clicked and the device ...
Definition: QmitkAbstractTrackingDeviceWidget.h:149
mitkPolhemusTrackingDevice.h
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