MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkPolhemusTrackerWidget.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found 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
31public:
32 static const std::string VIEW_ID;
33
34 QmitkPolhemusTrackerWidget(QWidget* parent = nullptr, Qt::WindowFlags f = {});
36
37 virtual void Initialize();
38
39signals:
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
50private:
51
53 void CreateConnections();
54
55 void CreateQtPartControl(QWidget *parent);
56
57 void SetAdvancedSettingsEnabled(bool _enable);
58
59 int GetSelectedToolIndex();
60
61protected:
62 virtual QmitkPolhemusTrackerWidget* Clone(QWidget* parent) const;
63
64 Ui::QmitkPolhemusTrackerWidget* m_Controls;
65
66 mitk::PolhemusTrackingDevice::Pointer m_TrackingDevice;
67
68public:
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
Abstract class to configure a tracking device. Inherited widgets should be registered in the Microser...
virtual mitk::TrackingDevice::Pointer GetTrackingDevice()=0
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 ...
virtual void OnDisconnected(bool)
This function is called, when in the TrackingToolboxView "Disconnect" was clicked and the device is s...
virtual void OnConnected(bool)
This function is called, when in the TrackingToolboxView "Connect" was clicked and the device is succ...
virtual void OnToolStorageChanged()
This function is called, when anything in the ToolStorage changed, e.g. AddTool or EditTool....
virtual void Initialize()=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.
Ui::QmitkPolhemusTrackerWidget * m_Controls
mitk::PolhemusTrackingDevice::Pointer m_TrackingDevice