Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
QmitkNodeQmitkNodeDescriptor is Decorator class for the mitk::DataNode which enhances certain mitk::DataNode by additional infos needed by the GUI (Icon, ...) 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) | |
virtual | ~QmitkNodeDescriptor () |
virtual QString | GetNameOfClass () const |
virtual QIcon | GetIcon () 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 |
QString | m_PathToIcon |
mitk::NodePredicateBase::Pointer | m_Predicate |
QList< QAction * > | m_Actions |
QList< QAction * > | m_BatchActions |
QAction * | m_Separator |
QmitkNodeQmitkNodeDescriptor is Decorator class for the mitk::DataNode which enhances certain mitk::DataNode by additional infos needed by the GUI (Icon, ...)
Moreover, QmitkNodeQmitkNodeDescriptor stores a Menu for actions that can be taken for a certain DataNode, e.g. for DataNodes containing images this menu can be filled with Image Filter Actions, etc.
Definition at line 43 of file QmitkNodeDescriptor.h.
QmitkNodeDescriptor::QmitkNodeDescriptor | ( | const QString & | _ClassName, |
const QString & | _PathToIcon, | ||
mitk::NodePredicateBase * | _Predicate, | ||
QObject * | parent | ||
) |
Creates a new QmitkNodeQmitkNodeDescriptor
Definition at line 24 of file QmitkNodeDescriptor.cpp.
References m_Separator.
|
virtual |
Deletes all actions
Definition at line 91 of file QmitkNodeDescriptor.cpp.
|
slot |
Called when an action was destroyed.
Definition at line 106 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 59 of file QmitkNodeDescriptor.cpp.
References ActionDestroyed(), m_Actions, and m_BatchActions.
Referenced by QmitkDataManagerView::CreateQtPartControl().
|
virtual |
Check if this class describes the given node
Definition at line 52 of file QmitkNodeDescriptor.cpp.
References m_Predicate.
|
virtual |
Get all actions associated with this class of nodes
Definition at line 47 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 101 of file QmitkNodeDescriptor.cpp.
References m_BatchActions.
Referenced by QmitkNodeDescriptorManager::GetActions().
|
virtual |
Returns an Icon for this class of DataNodes
Definition at line 42 of file QmitkNodeDescriptor.cpp.
References m_PathToIcon.
Referenced by QmitkDataStorageTreeModel::data(), and QmitkDataStorageTableModel::data().
|
virtual |
Returns a name for this class of DataNodes (e.g. "Image", "Image Mask", etc.)
Definition at line 37 of file QmitkNodeDescriptor.cpp.
References m_ClassName.
Referenced by QmitkDataStorageTableModel::data().
|
virtual |
Returns an Icon for this class of DataNodes
Definition at line 96 of file QmitkNodeDescriptor.cpp.
References m_Separator.
Referenced by QmitkNodeDescriptorManager::GetActions().
|
virtual |
Remove and delete (!) an action
Definition at line 71 of file QmitkNodeDescriptor.cpp.
References ActionDestroyed(), m_Actions, and m_BatchActions.
Referenced by ActionDestroyed().
|
protected |
Definition at line 100 of file QmitkNodeDescriptor.h.
Referenced by AddAction(), GetActions(), and RemoveAction().
|
protected |
Definition at line 101 of file QmitkNodeDescriptor.h.
Referenced by AddAction(), GetBatchActions(), and RemoveAction().
|
protected |
Definition at line 97 of file QmitkNodeDescriptor.h.
Referenced by GetNameOfClass().
|
protected |
Definition at line 98 of file QmitkNodeDescriptor.h.
Referenced by GetIcon().
|
protected |
Definition at line 99 of file QmitkNodeDescriptor.h.
Referenced by CheckNode().
|
protected |
Definition at line 102 of file QmitkNodeDescriptor.h.
Referenced by GetSeparator(), and QmitkNodeDescriptor().