23 #ifndef __qSlicerSubjectHierarchyAbstractPlugin_h 24 #define __qSlicerSubjectHierarchyAbstractPlugin_h 29 #include <QStringList> 35 #include "qSlicerSubjectHierarchyModuleWidgetsExport.h" 69 Q_PROPERTY(QString name READ name WRITE setName)
85 Q_INVOKABLE
virtual double canOwnSubjectHierarchyItem(vtkIdType itemID)
const;
89 Q_INVOKABLE
virtual const QString roleForPlugin()
const;
92 virtual const QString helpText()
const;
96 virtual QIcon icon(vtkIdType itemID);
99 Q_INVOKABLE
virtual QIcon visibilityIcon(
int visible);
102 Q_INVOKABLE
virtual void editProperties(vtkIdType itemID);
106 virtual QString displayedItemName(vtkIdType itemID)
const;
109 Q_INVOKABLE
virtual QString tooltip(vtkIdType itemID)
const;
112 Q_INVOKABLE
virtual void setDisplayVisibility(vtkIdType itemID,
int visible);
116 Q_INVOKABLE
virtual int getDisplayVisibility(vtkIdType itemID)
const;
136 Q_INVOKABLE
virtual QList<QAction*> visibilityContextMenuActions()
const;
153 virtual double canAddNodeToSubjectHierarchy(
161 virtual bool addNodeToSubjectHierarchy(
vtkMRMLNode* node, vtkIdType parentItemID);
171 virtual double canReparentItemInsideSubjectHierarchy(vtkIdType itemID, vtkIdType parentItemID)
const;
175 virtual bool reparentItemInsideSubjectHierarchy(vtkIdType itemID, vtkIdType parentItemID);
180 Q_INVOKABLE
bool isThisPluginOwnerOfItem(vtkIdType itemID)
const;
188 virtual QString name()
const;
192 virtual void setName(QString name);
196 void requestExpandItem(vtkIdType itemID);
200 void requestInvalidateFilter()
const;
207 void hideAllContextMenuActions()
const;
static const vtkIdType INVALID_ITEM_ID
Abstract plugin for handling Subject Hierarchy items.
QString m_Name
Name of the plugin.
virtual Q_INVOKABLE void showContextMenuActionsForItem(vtkIdType itemID)
Abstract Superclass for all specific types of MRML nodes.
virtual Q_INVOKABLE void showVisibilityContextMenuActionsForItem(vtkIdType itemID)