Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Decorator class for mitk::DataNode. More...
#include <QmitkNodeDescriptor.h>
Public Slots | |
void | ActionDestroyed (QObject *obj=nullptr) |
Called when an action was destroyed. More... | |
Public Member Functions | |
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 QIcon | GetIcon (const mitk::DataNode *node) 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 |
Protected Attributes | |
QString | m_ClassName |
QIcon | m_Icon |
mitk::NodePredicateBase::Pointer | m_Predicate |
QList< QAction * > | m_Actions |
QList< QAction * > | m_BatchActions |
QAction * | m_Separator |
Decorator class for mitk::DataNode.
Definition at line 33 of file QmitkNodeDescriptor.h.
QmitkNodeDescriptor::QmitkNodeDescriptor | ( | const QString & | _ClassName, |
const QString & | _PathToIcon, | ||
mitk::NodePredicateBase * | _Predicate, | ||
QObject * | parent | ||
) |
Creates a new QmitkNodeDescriptor
Definition at line 20 of file QmitkNodeDescriptor.cpp.
QmitkNodeDescriptor::QmitkNodeDescriptor | ( | const QString & | _ClassName, |
const QIcon & | _Icon, | ||
mitk::NodePredicateBase * | _Predicate, | ||
QObject * | parent | ||
) |
Definition at line 28 of file QmitkNodeDescriptor.cpp.
References m_Separator.
|
override |
Deletes all actions
Definition at line 95 of file QmitkNodeDescriptor.cpp.
|
slot |
Called when an action was destroyed.
Definition at line 110 of file QmitkNodeDescriptor.cpp.
References RemoveAction().
Referenced by AddAction(), and RemoveAction().
|
virtual |
Create and return an action with this descriptor as owner
Definition at line 63 of file QmitkNodeDescriptor.cpp.
References ActionDestroyed(), m_Actions, and m_BatchActions.
Referenced by QmitkDataNodeContextMenu::OnExtensionPointActionTriggered(), and QmitkDataNodeContextMenu::SetSelectedNodes().
|
virtual |
Check if this class describes the given node
Definition at line 56 of file QmitkNodeDescriptor.cpp.
References m_Predicate.
|
virtual |
Get all actions associated with this class of nodes
Definition at line 51 of file QmitkNodeDescriptor.cpp.
References m_Actions.
Referenced by QmitkNodeDescriptorManager::GetActions().
|
virtual |
Get all actions for this descriptor class that can be executed on multiple nodes (no priot knowledge abpout the node is required)
Definition at line 105 of file QmitkNodeDescriptor.cpp.
References m_BatchActions.
Referenced by QmitkNodeDescriptorManager::GetActions().
|
virtual |
Returns an Icon for this class of DataNodes
Reimplemented in QmitkColoredNodeDescriptor.
Definition at line 46 of file QmitkNodeDescriptor.cpp.
References m_Icon.
Referenced by QmitkDataStorageDefaultListModel::data(), QmitkRenderWindowDataStorageListModel::data(), QmitkRenderWindowDataStorageTreeModel::data(), QmitkDataStorageSimpleTreeModel::data(), QmitkDataStorageTreeModel::data(), and QmitkDataStorageTableModel::data().
|
virtual |
Returns a name for this class of DataNodes (e.g. "Image", "Image Mask", etc.)
Definition at line 41 of file QmitkNodeDescriptor.cpp.
References m_ClassName.
Referenced by QmitkDataStorageTableModel::data().
|
virtual |
Returns an Icon for this class of DataNodes
Definition at line 100 of file QmitkNodeDescriptor.cpp.
References m_Separator.
Referenced by QmitkNodeDescriptorManager::GetActions().
|
virtual |
Remove and delete (!) an action
Definition at line 75 of file QmitkNodeDescriptor.cpp.
References ActionDestroyed(), m_Actions, and m_BatchActions.
Referenced by ActionDestroyed().
|
protected |
Definition at line 96 of file QmitkNodeDescriptor.h.
Referenced by AddAction(), GetActions(), and RemoveAction().
|
protected |
Definition at line 97 of file QmitkNodeDescriptor.h.
Referenced by AddAction(), GetBatchActions(), and RemoveAction().
|
protected |
Definition at line 93 of file QmitkNodeDescriptor.h.
Referenced by GetNameOfClass().
|
protected |
Definition at line 94 of file QmitkNodeDescriptor.h.
Referenced by GetIcon().
|
protected |
Definition at line 95 of file QmitkNodeDescriptor.h.
Referenced by CheckNode().
|
protected |
Definition at line 98 of file QmitkNodeDescriptor.h.
Referenced by GetSeparator(), and QmitkNodeDescriptor().