MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkIGTLMessageSourceSelectionWidget.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found 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"
22
23//us
24#include <usServiceReference.h>
25
26//ui header
27#include "ui_QmitkIGTLMessageSourceSelectionWidgetControls.h"
28
29
40class 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 = {});
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
This widget allows the user to select a OpenIGTLink message source.
Ui::QmitkIGTLMessageSourceSelectionWidgetControls * m_Controls
void IGTLMessageSourceSelected(mitk::IGTLMessageSource::Pointer source)
This signal is emitted when a new OpenIGTLink message source is selected.