Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkToolReferenceDataSelectionBox.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 
17 #ifndef QmitkToolReferenceDataSelectionBox_h_Included
18 #define QmitkToolReferenceDataSelectionBox_h_Included
19 
20 #include "mitkDataStorage.h"
21 #include "mitkToolManager.h"
23 
24 #include <QVBoxLayout>
25 #include <QWidget>
26 
28 
48 {
49  Q_OBJECT
50 
51 public:
63  {
65  ListDataIfAnyToolMatches
66  };
67 
68  QmitkToolReferenceDataSelectionBox(QWidget *parent = 0);
70 
72  void SetDataStorage(mitk::DataStorage &storage);
73 
75  void Initialize(mitk::DataStorage *);
76 
77  void UpdateDataDisplay();
78 
79  mitk::ToolManager *GetToolManager();
80  void SetToolManager(mitk::ToolManager &); // no NULL pointer allowed here, a manager is required
81 
82  void OnToolManagerReferenceDataModified();
83 
92  void SetToolGroupsForFiltering(const std::string &groups);
93 
101  void SetDisplayMode(DisplayMode mode);
102 
103 signals:
104 
105  void ReferenceNodeSelected(const mitk::DataNode *);
106 
107 protected slots:
108 
109  void OnReferenceDataSelected(const mitk::DataNode *node);
110 
111  void EnsureOnlyReferenceImageIsVisibile();
112 
113 protected:
114  mitk::DataStorage::SetOfObjects::ConstPointer GetAllPossibleReferenceImages();
115 
116  mitk::NodePredicateBase::ConstPointer GetAllPossibleReferenceImagesPredicate();
117 
119 
121 
123 
126 
127  QVBoxLayout *m_Layout;
128 };
129 
130 #endif
Data management class that handles 'was created by' relations.
itk::SmartPointer< Self > Pointer
Displays all or a subset (defined by a predicate) of nodes of the Data Storage.
static mitk::DataStorage::Pointer GetDataStorage()
itk::SmartPointer< const Self > ConstPointer
Display the data selection of a ToolManager.
DisplayMode
What kind of items should be displayed.
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66
#define MITKSEGMENTATIONUI_EXPORT
Manages and coordinates instances of mitk::Tool.