Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
QmitkColoredNodeDescriptor.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 QmitkColoredNodeDescriptor_h
14 #define QmitkColoredNodeDescriptor_h
15 
16 #include <QmitkNodeDescriptor.h>
17 #include <MitkQtWidgetsExports.h>
18 
26 {
27  Q_OBJECT
28 
29 public:
30  explicit QmitkColoredNodeDescriptor(const QString &className, const QString &pathToIcon, mitk::NodePredicateBase *predicate, QObject *parent = nullptr);
31  ~QmitkColoredNodeDescriptor() override;
32 
33  QIcon GetIcon(const mitk::DataNode *node) const override;
34 
35 private:
36  struct Impl;
37  Impl *m_Impl;
38 };
39 
40 #endif
MITKQTWIDGETS_EXPORT
#define MITKQTWIDGETS_EXPORT
Definition: MitkQtWidgetsExports.h:15
mitk::NodePredicateBase
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
Definition: mitkNodePredicateBase.h:35
QmitkNodeDescriptor.h
QmitkNodeDescriptor
Decorator class for mitk::DataNode.
Definition: QmitkNodeDescriptor.h:33
MitkQtWidgetsExports.h
QmitkNodeDescriptor::GetIcon
virtual QIcon GetIcon(const mitk::DataNode *node) const
mitk::DataNode
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63
QmitkColoredNodeDescriptor
Synchronizes the magic color #00ff00 of the given SVG icon to the mitk::DataNode color.
Definition: QmitkColoredNodeDescriptor.h:25