Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
QmitkToolRoiDataSelectionBox.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 #ifndef QMITK_TOOLROIDATASELECTIONBOX_H
13 #define QMITK_TOOLROIDATASELECTIONBOX_H
14 
16 #include "mitkToolManager.h"
18 #include <QComboBox>
19 
32 {
33  Q_OBJECT
34 
35 public:
36  QmitkToolRoiDataSelectionBox(QWidget *parent = nullptr, mitk::DataStorage *storage = nullptr);
37  ~QmitkToolRoiDataSelectionBox() override;
38 
39  mitk::DataStorage *GetDataStorage();
40  void SetDataStorage(mitk::DataStorage &storage);
41 
42  mitk::ToolManager *GetToolManager();
43  void SetToolManager(mitk::ToolManager &manager);
44 
45  void OnToolManagerRoiDataModified();
46 
47  void DataStorageChanged(const mitk::DataNode *node);
48 
49  mitk::ToolManager::DataVectorType GetSelection();
50 
51  void UpdateComboBoxData();
52 
53  void setEnabled(bool);
54 
55 signals:
56 
57  void RoiDataSelected(const mitk::DataNode *node);
58 
59 protected slots:
60 
61  void OnRoiDataSelectionChanged(const QString &name);
62  void OnRoiDataSelectionChanged();
63 
64 protected:
67 
68  mitk::ToolManager::Pointer m_ToolManager;
69  bool m_SelfCall;
70 
73 };
74 #endif
Data management class that handles &#39;was created by&#39; relations.
std::vector< DataNode * > DataVectorType
Widget for defining a ROI inside the Interactive Segmentation Framwork.
mitk::ToolManager::Pointer m_ToolManager
Class for nodes of the DataTree.
Definition: mitkDataNode.h:57
#define MITKSEGMENTATIONUI_EXPORT
QmitkBoundingObjectWidget * m_boundingObjectWidget
Manages and coordinates instances of mitk::Tool.