Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
QmitkIGTConnectionWidget.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 QmitkIGTConnectionWidget_h
14 #define QmitkIGTConnectionWidget_h
15 
16 #include <QWidget>
17 #include "MitkIGTUIExports.h"
18 #include "ui_QmitkIGTConnectionWidgetControls.h"
19 
20 #include "mitkDataStorage.h"
22 #include "mitkTrackingDevice.h"
24 
25 
26 //itk headers
27 
42 class MITKIGTUI_EXPORT QmitkIGTConnectionWidget : public QWidget
43 {
44  Q_OBJECT
45 
46  public:
47  static const std::string VIEW_ID;
48 
49  QmitkIGTConnectionWidget(QWidget* parent = nullptr, Qt::WindowFlags f = nullptr);
50  ~QmitkIGTConnectionWidget() override;
51 
52  /* @return Returns the preconfigured and connected TrackingDeviceSource ready to use in an IGT pipeline.
53  */
54  mitk::TrackingDeviceSource::Pointer GetTrackingDeviceSource();
58  mitk::NavigationToolStorage::Pointer GetNavigationToolStorage();
62  void SetDataStorage(mitk::DataStorage::Pointer dataStorage);
63 
64 
65  signals:
69  void TrackingDeviceConnected();
73  void TrackingDeviceDisconnected();
74 
75  protected slots:
79  void OnConnect();
80 
81  protected:
82 
84  virtual void CreateConnections();
85 
86  virtual void CreateQtPartControl(QWidget *parent);
87 
93  bool LoadToolfile(QString qFilename);
94 
98  void RemoveToolNodes();
99 
100  Ui::QmitkIGTConnectionWidgetControls* m_Controls;
101 
103  mitk::TrackingDevice::Pointer m_TrackingDevice;
104  mitk::TrackingDeviceSource::Pointer m_TrackingDeviceSource;
105  mitk::NavigationToolStorage::Pointer m_NavigationToolStorage;
106 
107  std::string m_ErrorMessage;
108 };
109 #endif
mitkDataStorage.h
QmitkIGTConnectionWidget::m_TrackingDevice
mitk::TrackingDevice::Pointer m_TrackingDevice
tracking device currently connected
Definition: QmitkIGTConnectionWidget.h:103
QmitkIGTConnectionWidget::m_Controls
Ui::QmitkIGTConnectionWidgetControls * m_Controls
Definition: QmitkIGTConnectionWidget.h:100
itk::SmartPointer< Self >
QmitkIGTConnectionWidget
Simple and fast access to a pre-configured TrackingDeviceSource.
Definition: QmitkIGTConnectionWidget.h:42
QmitkIGTConnectionWidget::m_NavigationToolStorage
mitk::NavigationToolStorage::Pointer m_NavigationToolStorage
holds all navigation tools currently loaded
Definition: QmitkIGTConnectionWidget.h:105
QmitkIGTConnectionWidget::m_ErrorMessage
std::string m_ErrorMessage
current problem description
Definition: QmitkIGTConnectionWidget.h:107
mitkNavigationToolStorage.h
QmitkIGTConnectionWidget::m_TrackingDeviceSource
mitk::TrackingDeviceSource::Pointer m_TrackingDeviceSource
holds the preconfigured source of the IGT pipeline which is provided by this widget for further proce...
Definition: QmitkIGTConnectionWidget.h:104
mitkTrackingDevice.h
mitkTrackingDeviceSource.h
QmitkIGTConnectionWidget::VIEW_ID
static const std::string VIEW_ID
Definition: QmitkIGTConnectionWidget.h:47
QmitkIGTConnectionWidget::m_DataStorage
mitk::DataStorage::Pointer m_DataStorage
data storage to put navigation tools
Definition: QmitkIGTConnectionWidget.h:102