Medical Imaging Interaction Toolkit  2018.04.99-74b4982f
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
static const std::string VIEW_ID
virtual void OnDisconnected(bool)
This function is called, when in the TrackingToolboxView "Disconnect" was clicked and the device is s...
virtual void OnToolStorageChanged()
This function is called, when anything in the ToolStorage changed, e.g. AddTool or EditTool...
mitk::PolhemusTrackingDevice::Pointer m_TrackingDevice
Ui::QmitkPolhemusTrackerWidget * m_Controls
virtual void Initialize()=0
Subclass must implement this method to return a pointer to a copy of the object. Please don't forget ...
virtual void OnStartTracking(bool)
This function is called, when in the TrackingToolboxView "Start Tracking" was clicked and the device ...
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 ...
Implementation of a configuration widget for Polhemus Tracking Devices.
virtual void OnConnected(bool)
This function is called, when in the TrackingToolboxView "Connect" was clicked and the device is succ...
#define MITKIGTUI_EXPORT
Abstract class to configure a tracking device. Inherited widgets should be registered in the Microser...
virtual mitk::TrackingDevice::Pointer GetTrackingDevice()=0