Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 #ifndef QMITK_TOOLROIDATASELECTIONBOX_H
17 #define QMITK_TOOLROIDATASELECTIONBOX_H
18 
20 #include "mitkToolManager.h"
22 #include <QComboBox>
23 
36 {
37  Q_OBJECT
38 
39 public:
40  QmitkToolRoiDataSelectionBox(QWidget *parent = 0, mitk::DataStorage *storage = 0);
42 
44  void SetDataStorage(mitk::DataStorage &storage);
45 
46  mitk::ToolManager *GetToolManager();
47  void SetToolManager(mitk::ToolManager &manager);
48 
49  void OnToolManagerRoiDataModified();
50 
51  void DataStorageChanged(const mitk::DataNode *node);
52 
53  mitk::ToolManager::DataVectorType GetSelection();
54 
55  void UpdateComboBoxData();
56 
57  void setEnabled(bool);
58 
59 signals:
60 
61  void RoiDataSelected(const mitk::DataNode *node);
62 
63 protected slots:
64 
65  void OnRoiDataSelectionChanged(const QString &name);
66  void OnRoiDataSelectionChanged();
67 
68 protected:
71 
73  bool m_SelfCall;
74 
77 };
78 #endif
Data management class that handles 'was created by' relations.
itk::SmartPointer< Self > Pointer
std::vector< DataNode * > DataVectorType
static mitk::DataStorage::Pointer GetDataStorage()
Widget for defining a ROI inside the Interactive Segmentation Framwork.
mitk::ToolManager::Pointer m_ToolManager
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66
#define MITKSEGMENTATIONUI_EXPORT
QmitkBoundingObjectWidget * m_boundingObjectWidget
Manages and coordinates instances of mitk::Tool.