Medical Imaging Interaction Toolkit  2018.4.99-c0f884b2
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
virtual void StoreUISettings()
Optional method to store and load settings of your widget (see QmitkNDIPolarisWidget) ...
virtual void ResetOutput()
Optional method to add output to a small screen in the trackingToolbox (see QmitkNDIPolarisWidget) ...
static const std::string VIEW_ID
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 Initialize()=0
Subclass must implement this method to return a pointer to a copy of the object. Please don't forget ...
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 ...
Ui::QmitkMicronTrackerWidget * m_Controls
Implementation of a configuration widget for Micron Tracking Devices.
#define MITKIGTUI_EXPORT
Abstract class to configure a tracking device. Inherited widgets should be registered in the Microser...
virtual bool IsDeviceInstalled()
Optional method to investigate if drivers etc for your device are installed. The default value is "tr...
virtual mitk::TrackingDevice::Pointer GetTrackingDevice()=0