Medical Imaging Interaction Toolkit  2024.06.00
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 (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 QmitkNodeDescriptorManager_h
14 #define QmitkNodeDescriptorManager_h
15 
16 #include <MitkQtWidgetsExports.h>
17 
18 #include "QmitkNodeDescriptor.h"
19 
27 {
28  Q_OBJECT
29 
30 public:
34  static QmitkNodeDescriptorManager* GetInstance();
35 
45  virtual void Initialize();
46 
50  void AddDescriptor(QmitkNodeDescriptor* descriptor);
51 
55  void RemoveDescriptor(QmitkNodeDescriptor* descriptor);
56 
65  QmitkNodeDescriptor* GetDescriptor(const mitk::DataNode* node) const;
66 
72  QmitkNodeDescriptor* GetDescriptor(const QString& className) const;
73 
77  QmitkNodeDescriptor* GetUnknownDataNodeDescriptor() const;
78 
86  QList<QAction*> GetActions(const mitk::DataNode* node) const;
90  QList<QAction*> GetActions(const QList<mitk::DataNode::Pointer>& nodes) const;
94  ~QmitkNodeDescriptorManager() override;
95 
96 protected:
102 
103 protected:
111  QList<QmitkNodeDescriptor*> m_NodeDescriptors;
112 };
113 
114 #endif
MITKQTWIDGETS_EXPORT
#define MITKQTWIDGETS_EXPORT
Definition: MitkQtWidgetsExports.h:15
QmitkNodeDescriptorManager
QmitkNodeDescriptorManager manages a set of QmitkNodeDescriptors.
Definition: QmitkNodeDescriptorManager.h:26
QmitkNodeDescriptorManager::m_NodeDescriptors
QList< QmitkNodeDescriptor * > m_NodeDescriptors
Definition: QmitkNodeDescriptorManager.h:111
QmitkNodeDescriptor.h
QmitkNodeDescriptor
Decorator class for mitk::DataNode.
Definition: QmitkNodeDescriptor.h:33
MitkQtWidgetsExports.h
QmitkNodeDescriptorManager::m_UnknownDataNodeDescriptor
QmitkNodeDescriptor * m_UnknownDataNodeDescriptor
Definition: QmitkNodeDescriptorManager.h:107
mitk::DataNode
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63