Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
QmitkIGTLMessageSourceSelectionWidget.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 QmitkIGTLMessageSourceSelectionWidget_h
14 #define QmitkIGTLMessageSourceSelectionWidget_h
15 
16 //QT headers
17 #include <QWidget>
18 
19 //mitk headers
20 #include "MitkOpenIGTLinkUIExports.h"
21 #include "mitkIGTLMessageSource.h"
22 
23 //us
24 #include <usServiceReference.h>
25 
26 //ui header
27 #include "ui_QmitkIGTLMessageSourceSelectionWidgetControls.h"
28 
29 
40 class MITKOPENIGTLINKUI_EXPORT QmitkIGTLMessageSourceSelectionWidget :
41  public QWidget
42 {
43  Q_OBJECT
44 
45  public:
46  static const std::string VIEW_ID;
47 
48  QmitkIGTLMessageSourceSelectionWidget(QWidget* parent = nullptr,
49  Qt::WindowFlags f = nullptr);
51 
54  mitk::IGTLMessageSource::Pointer GetSelectedIGTLMessageSource();
55 
68  mitk::IGTLMessageSource::Pointer AutoSelectFirstIGTLMessageSource();
69 
70  signals:
76  void IGTLMessageSourceSelected(mitk::IGTLMessageSource::Pointer source);
77 
78  protected slots:
79 
80  void IGTLMessageSourceSelected(us::ServiceReferenceU s);
81 
82 
83  protected:
84 
86  virtual void CreateConnections();
87 
88  virtual void CreateQtPartControl(QWidget *parent);
89 
90  Ui::QmitkIGTLMessageSourceSelectionWidgetControls* m_Controls;
91 
92  mitk::IGTLMessageSource::Pointer m_CurrentIGTLMessageSource;
93 
94 
95 
96 };
97 #endif
QmitkIGTLMessageSourceSelectionWidget::m_Controls
Ui::QmitkIGTLMessageSourceSelectionWidgetControls * m_Controls
Definition: QmitkIGTLMessageSourceSelectionWidget.h:90
mitkIGTLMessageSource.h
us::ServiceReference
Definition: usModule.h:40
QmitkIGTLMessageSourceSelectionWidget::m_CurrentIGTLMessageSource
mitk::IGTLMessageSource::Pointer m_CurrentIGTLMessageSource
Definition: QmitkIGTLMessageSourceSelectionWidget.h:92
usServiceReference.h
QmitkIGTLMessageSourceSelectionWidget
This widget allows the user to select a OpenIGTLink message source.
Definition: QmitkIGTLMessageSourceSelectionWidget.h:40
QmitkIGTLMessageSourceSelectionWidget::VIEW_ID
static const std::string VIEW_ID
Definition: QmitkIGTLMessageSourceSelectionWidget.h:46