MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkMicronTrackerWidget.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 QmitkMicronTrackerWidget_h
14#define QmitkMicronTrackerWidget_h
15
16#include "ui_QmitkMicronTrackerWidget.h"
17
19
20
27{
28 Q_OBJECT // this is needed for all Qt objects that should have a MOC object (everything that derives from QObject)
29
30public:
31 static const std::string VIEW_ID;
32
33 QmitkMicronTrackerWidget(QWidget* parent = nullptr, Qt::WindowFlags f = {});
35
36 void Initialize() override;
37
38signals:
39
40 protected slots :
41 /* @brief Opens a file dialog. The users sets the calibration file which location is then stored in the member m_MTCalibrationFile.*/
42 void SetMTCalibrationFileClicked();
43
44private:
45
47 void CreateConnections();
48
49 void CreateQtPartControl(QWidget *parent);
50
51protected:
52 QmitkMicronTrackerWidget* Clone(QWidget* parent) const override;
53
55
56 Ui::QmitkMicronTrackerWidget* m_Controls;
57
58public:
59 void ResetOutput() override;
60 void AddOutput(std::string s) override;
61 mitk::TrackingDevice::Pointer GetTrackingDevice() override;
62
63 void StoreUISettings() override;
64 void LoadUISettings() override;
65 bool IsDeviceInstalled() override;
66};
67#endif
Abstract class to configure a tracking device. Inherited widgets should be registered in the Microser...
virtual mitk::TrackingDevice::Pointer GetTrackingDevice()=0
virtual bool IsDeviceInstalled()
Optional method to investigate if drivers etc for your device are installed. The default value is "tr...
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 StoreUISettings()
Optional method to store and load settings of your widget (see QmitkNDIPolarisWidget)
virtual void LoadUISettings()
Optional method to store and load settings of your widget (see QmitkNDIPolarisWidget)
virtual void AddOutput(std::string)
Optional method to add output to a small screen in the trackingToolbox (see QmitkNDIPolarisWidget)
virtual void ResetOutput()
Optional method to add output to a small screen in the trackingToolbox (see QmitkNDIPolarisWidget)
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 Micron Tracking Devices.
static const std::string VIEW_ID
Ui::QmitkMicronTrackerWidget * m_Controls