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
QmitkIGTLDeviceSourceSelectionWidget.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 QmitkIGTLDeviceSourceSelectionWidget_h
14 #define QmitkIGTLDeviceSourceSelectionWidget_h
15 
16 //QT headers
17 #include <QWidget>
18 
19 //mitk headers
20 #include "MitkOpenIGTLinkUIExports.h"
21 #include "mitkIGTLDeviceSource.h"
22 //#include <mitkNavigationToolStorage.h>
23 //#include <mitkNavigationDataSource.h>
24 #include <usServiceReference.h>
25 //ui header
26 #include "ui_QmitkIGTLDeviceSourceSelectionWidgetControls.h"
27 
28 
39 class MITKOPENIGTLINKUI_EXPORT QmitkIGTLDeviceSourceSelectionWidget : public QWidget
40 {
41  Q_OBJECT
42 
43  public:
44  static const std::string VIEW_ID;
45 
46  QmitkIGTLDeviceSourceSelectionWidget(QWidget* parent = nullptr, Qt::WindowFlags f = nullptr);
48 
51  mitk::IGTLDeviceSource::Pointer GetSelectedIGTLDeviceSource();
52 
53  signals:
59  void IGTLDeviceSourceSelected(mitk::IGTLDeviceSource::Pointer source);
60 
61  protected slots:
62 
63  void IGTLDeviceSourceSelected(us::ServiceReferenceU s);
64 
65 
66  protected:
67 
69  virtual void CreateConnections();
70 
71  virtual void CreateQtPartControl(QWidget *parent);
72 
73  Ui::QmitkIGTLDeviceSourceSelectionWidgetControls* m_Controls;
74 
75  mitk::IGTLDeviceSource::Pointer m_CurrentIGTLDeviceSource;
76 
77 
78 
79 };
80 #endif
QmitkIGTLDeviceSourceSelectionWidget::m_CurrentIGTLDeviceSource
mitk::IGTLDeviceSource::Pointer m_CurrentIGTLDeviceSource
Definition: QmitkIGTLDeviceSourceSelectionWidget.h:75
QmitkIGTLDeviceSourceSelectionWidget
This widget allows the user to select a OpenIGTLink device source.
Definition: QmitkIGTLDeviceSourceSelectionWidget.h:39
us::ServiceReference
Definition: usModule.h:40
usServiceReference.h
QmitkIGTLDeviceSourceSelectionWidget::VIEW_ID
static const std::string VIEW_ID
Definition: QmitkIGTLDeviceSourceSelectionWidget.h:44
mitkIGTLDeviceSource.h
QmitkIGTLDeviceSourceSelectionWidget::m_Controls
Ui::QmitkIGTLDeviceSourceSelectionWidgetControls * m_Controls
Definition: QmitkIGTLDeviceSourceSelectionWidget.h:73