Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
QmitkMicronTrackerWidget.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 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 
30 public:
31  static const std::string VIEW_ID;
32 
33  QmitkMicronTrackerWidget(QWidget* parent = nullptr, Qt::WindowFlags f = nullptr);
34  ~QmitkMicronTrackerWidget() override;
35 
36  void Initialize() override;
37 
38 signals:
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 
44 private:
45 
47  void CreateConnections();
48 
49  void CreateQtPartControl(QWidget *parent);
50 
51 protected:
52  QmitkMicronTrackerWidget* Clone(QWidget* parent) const override;
53 
54  std::string m_MTCalibrationFile;
55 
56  Ui::QmitkMicronTrackerWidget* m_Controls;
57 
58 public:
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
QmitkMicronTrackerWidget::m_Controls
Ui::QmitkMicronTrackerWidget * m_Controls
Definition: QmitkMicronTrackerWidget.h:56
QmitkMicronTrackerWidget::m_MTCalibrationFile
std::string m_MTCalibrationFile
Definition: QmitkMicronTrackerWidget.h:54
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
QmitkMicronTrackerWidget::VIEW_ID
static const std::string VIEW_ID
Definition: QmitkMicronTrackerWidget.h:31
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
QmitkMicronTrackerWidget
Implementation of a configuration widget for Micron Tracking Devices.
Definition: QmitkMicronTrackerWidget.h:26
QmitkAbstractTrackingDeviceWidget::StoreUISettings
virtual void StoreUISettings()
Optional method to store and load settings of your widget (see QmitkNDIPolarisWidget)
Definition: QmitkAbstractTrackingDeviceWidget.h:120
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::LoadUISettings
virtual void LoadUISettings()
Optional method to store and load settings of your widget (see QmitkNDIPolarisWidget)
Definition: QmitkAbstractTrackingDeviceWidget.h:125
QmitkAbstractTrackingDeviceWidget
Abstract class to configure a tracking device. Inherited widgets should be registered in the Microser...
Definition: QmitkAbstractTrackingDeviceWidget.h:52