MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkIGTLDeviceSourceSelectionWidget.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 QmitkIGTLDeviceSourceSelectionWidget_h
14#define QmitkIGTLDeviceSourceSelectionWidget_h
15
16//QT headers
17#include <QWidget>
18
19//mitk headers
20#include "MitkOpenIGTLinkUIExports.h"
22//#include <mitkNavigationToolStorage.h>
23//#include <mitkNavigationDataSource.h>
24#include <usServiceReference.h>
25//ui header
26#include "ui_QmitkIGTLDeviceSourceSelectionWidgetControls.h"
27
28
39class 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 = {});
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
This widget allows the user to select a OpenIGTLink device source.
void IGTLDeviceSourceSelected(mitk::IGTLDeviceSource::Pointer source)
This signal is emitted when a new OpenIGTLink device source is selected.
Ui::QmitkIGTLDeviceSourceSelectionWidgetControls * m_Controls