Medical Imaging Interaction Toolkit  2026.06.00
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 
31 {
32  Q_OBJECT
33 
34 public:
43  explicit QmitkColoredNodeDescriptor(const QString &className, const QString &pathToIcon, mitk::NodePredicateBase *predicate, QObject *parent = nullptr);
45 
55  QIcon GetIcon(const mitk::DataNode *node) const override;
56 
57 private:
58  struct Impl;
59  Impl *m_Impl;
60 };
61 
62 #endif
#define MITKQTWIDGETS_EXPORT
Node descriptor that recolors an SVG icon to match the DataNode color.
QmitkColoredNodeDescriptor(const QString &className, const QString &pathToIcon, mitk::NodePredicateBase *predicate, QObject *parent=nullptr)
Constructs a colored node descriptor.
QIcon GetIcon(const mitk::DataNode *node) const override
Returns the icon with the magic color replaced by the node's color.
~QmitkColoredNodeDescriptor() override
Decorator class for mitk::DataNode.
Central node class of the MITK data tree, associating a data object with properties and mappers.
Definition: mitkDataNode.h:72
Abstract base class for predicates used to filter DataNode objects in DataStorage queries.