Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkColoredNodeDescriptor Class Referencefinal

Synchronizes the magic color #00ff00 of the given SVG icon to the mitk::DataNode color. More...

#include <QmitkColoredNodeDescriptor.h>

Inheritance diagram for QmitkColoredNodeDescriptor:
Collaboration diagram for QmitkColoredNodeDescriptor:

Public Member Functions

 QmitkColoredNodeDescriptor (const QString &className, const QString &pathToIcon, mitk::NodePredicateBase *predicate, QObject *parent=nullptr)
 
 ~QmitkColoredNodeDescriptor () override
 
QIcon GetIcon (const mitk::DataNode *node) const override
 
- Public Member Functions inherited from QmitkNodeDescriptor
 QmitkNodeDescriptor (const QString &_ClassName, const QString &_PathToIcon, mitk::NodePredicateBase *_Predicate, QObject *parent)
 
 QmitkNodeDescriptor (const QString &_ClassName, const QIcon &_Icon, mitk::NodePredicateBase *_Predicate, QObject *parent)
 
 ~QmitkNodeDescriptor () override
 
virtual QString GetNameOfClass () const
 
virtual QAction * GetSeparator () const
 
virtual bool CheckNode (const mitk::DataNode *node) const
 
virtual void AddAction (QAction *action, bool isBatchAction=true)
 
virtual void RemoveAction (QAction *_Action)
 
virtual QList< QAction * > GetActions () const
 
virtual QList< QAction * > GetBatchActions () const
 

Additional Inherited Members

- Public Slots inherited from QmitkNodeDescriptor
void ActionDestroyed (QObject *obj=nullptr)
 Called when an action was destroyed. More...
 
- Protected Attributes inherited from QmitkNodeDescriptor
QString m_ClassName
 
QIcon m_Icon
 
mitk::NodePredicateBase::Pointer m_Predicate
 
QList< QAction * > m_Actions
 
QList< QAction * > m_BatchActions
 
QAction * m_Separator
 

Detailed Description

Synchronizes the magic color #00ff00 of the given SVG icon to the mitk::DataNode color.

See also
QmitkNodeDescriptorManager

Definition at line 25 of file QmitkColoredNodeDescriptor.h.

Constructor & Destructor Documentation

◆ QmitkColoredNodeDescriptor()

QmitkColoredNodeDescriptor::QmitkColoredNodeDescriptor ( const QString &  className,
const QString &  pathToIcon,
mitk::NodePredicateBase predicate,
QObject *  parent = nullptr 
)
explicit

◆ ~QmitkColoredNodeDescriptor()

QmitkColoredNodeDescriptor::~QmitkColoredNodeDescriptor ( )
override

Member Function Documentation

◆ GetIcon()

QIcon QmitkColoredNodeDescriptor::GetIcon ( const mitk::DataNode node) const
overridevirtual

Returns an Icon for this class of DataNodes

Reimplemented from QmitkNodeDescriptor.


The documentation for this class was generated from the following file: