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
QmitkNavigationDataSourceSelectionWidget.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 QmitkNavigationDataSourceSelectionWidget_h
14 #define QmitkNavigationDataSourceSelectionWidget_h
15 
16 //QT headers
17 #include <QWidget>
18 
19 //mitk headers
20 #include "MitkIGTUIExports.h"
23 #include <usServiceReference.h>
24 //ui header
25 #include "ui_QmitkNavigationDataSourceSelectionWidgetControls.h"
26 
27 
32 class MITKIGTUI_EXPORT QmitkNavigationDataSourceSelectionWidget : public QWidget
33 {
34  Q_OBJECT
35 
36  public:
37  static const std::string VIEW_ID;
38 
39  QmitkNavigationDataSourceSelectionWidget(QWidget* parent = nullptr, Qt::WindowFlags f = nullptr);
41 
43  mitk::NavigationDataSource::Pointer GetSelectedNavigationDataSource();
44 
48  int GetSelectedToolID();
49 
53  mitk::NavigationTool::Pointer GetSelectedNavigationTool();
54 
58  mitk::NavigationToolStorage::Pointer GetNavigationToolStorageOfSource();
59 
60  signals:
64  void NavigationDataSourceSelected(mitk::NavigationDataSource::Pointer n);
65 
66 
70  void NavigationToolSelected(mitk::NavigationTool::Pointer n);
71 
72 
73 
74  protected slots:
75 
76  void NavigationDataSourceSelected(us::ServiceReferenceU s);
77 
78  void NavigationToolSelected(int selection);
79 
80 
81  protected:
82 
84  virtual void CreateConnections();
85 
86  virtual void CreateQtPartControl(QWidget *parent);
87 
88  Ui::QmitkNavigationDataSourceSelectionWidgetControls* m_Controls;
89 
90 
91 
92  mitk::NavigationToolStorage::Pointer m_CurrentStorage;
93  mitk::NavigationDataSource::Pointer m_CurrentSource;
94 
95 
96 };
97 #endif
QmitkNavigationDataSourceSelectionWidget::m_CurrentStorage
mitk::NavigationToolStorage::Pointer m_CurrentStorage
Definition: QmitkNavigationDataSourceSelectionWidget.h:92
QmitkNavigationDataSourceSelectionWidget::m_Controls
Ui::QmitkNavigationDataSourceSelectionWidgetControls * m_Controls
Definition: QmitkNavigationDataSourceSelectionWidget.h:88
mitkNavigationDataSource.h
QmitkNavigationDataSourceSelectionWidget::VIEW_ID
static const std::string VIEW_ID
Definition: QmitkNavigationDataSourceSelectionWidget.h:37
us::ServiceReference
Definition: usModule.h:40
QmitkNavigationDataSourceSelectionWidget
This widget allows the user to select a NavigationDataSource. Tools of this Source are also shown and...
Definition: QmitkNavigationDataSourceSelectionWidget.h:32
usServiceReference.h
mitkNavigationToolStorage.h
QmitkNavigationDataSourceSelectionWidget::m_CurrentSource
mitk::NavigationDataSource::Pointer m_CurrentSource
Definition: QmitkNavigationDataSourceSelectionWidget.h:93