Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkNodeDescriptorManager.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 QmitkNodeDescriptorManager_h
18 #define QmitkNodeDescriptorManager_h
19 
20 #include <MitkQtWidgetsExports.h>
21 
22 #include "QmitkNodeDescriptor.h"
23 
31 {
32  Q_OBJECT
33 public:
37  static QmitkNodeDescriptorManager *GetInstance();
38 
48  virtual void Initialize();
49 
53  void AddDescriptor(QmitkNodeDescriptor *_Descriptor);
54 
58  void RemoveDescriptor(QmitkNodeDescriptor *_Descriptor);
59 
68  QmitkNodeDescriptor *GetDescriptor(const mitk::DataNode *_Node) const;
69 
75  QmitkNodeDescriptor *GetDescriptor(const QString &_ClassName) const;
76 
80  QmitkNodeDescriptor *GetUnknownDataNodeDescriptor() const;
81 
89  QList<QAction *> GetActions(const mitk::DataNode *_Node) const;
93  QList<QAction *> GetActions(const QList<mitk::DataNode::Pointer> &_Nodes) const;
97  virtual ~QmitkNodeDescriptorManager();
98 
99 protected:
105 
106 protected:
114  QList<QmitkNodeDescriptor *> m_NodeDescriptors;
115 };
116 
117 #endif // QmitkNodeDescriptorManager_h
QmitkNodeQmitkNodeDescriptor is Decorator class for the mitk::DataNode which enhances certain mitk::D...
#define MITKQTWIDGETS_EXPORT
QmitkNodeDescriptorManager manages a set of QmitkNodeDescriptors.
QList< QmitkNodeDescriptor * > m_NodeDescriptors
QmitkNodeDescriptor * m_UnknownDataNodeDescriptor
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66