23 #ifndef __qSlicerSubjectHierarchyAbstractPlugin_h 24 #define __qSlicerSubjectHierarchyAbstractPlugin_h 29 #include <QStringList> 36 #include "qSlicerSubjectHierarchyModuleWidgetsExport.h" 71 Q_PROPERTY(QString name READ name WRITE setName)
87 Q_INVOKABLE
virtual double canOwnSubjectHierarchyItem(vtkIdType itemID)
const;
91 Q_INVOKABLE
virtual const QString roleForPlugin()
const;
94 virtual const QString helpText()
const;
98 virtual QIcon icon(vtkIdType itemID);
101 Q_INVOKABLE
virtual QIcon visibilityIcon(
int visible);
104 Q_INVOKABLE
virtual void editProperties(vtkIdType itemID);
108 virtual QString displayedItemName(vtkIdType itemID)
const;
111 Q_INVOKABLE
virtual QString tooltip(vtkIdType itemID)
const;
114 Q_INVOKABLE
virtual void setDisplayVisibility(vtkIdType itemID,
int visible);
118 Q_INVOKABLE
virtual int getDisplayVisibility(vtkIdType itemID)
const;
127 Q_INVOKABLE
virtual void setDisplayColor(vtkIdType itemID, QColor color,
QMap<int, QVariant> terminologyMetaData);
135 Q_INVOKABLE
virtual QColor getDisplayColor(vtkIdType itemID,
QMap<int, QVariant> &terminologyMetaData)
const;
155 Q_INVOKABLE
virtual QList<QAction*> visibilityContextMenuActions()
const;
172 virtual double canAddNodeToSubjectHierarchy(
180 virtual bool addNodeToSubjectHierarchy(
vtkMRMLNode* node, vtkIdType parentItemID);
190 virtual double canReparentItemInsideSubjectHierarchy(vtkIdType itemID, vtkIdType parentItemID)
const;
194 virtual bool reparentItemInsideSubjectHierarchy(vtkIdType itemID, vtkIdType parentItemID);
199 Q_INVOKABLE
bool isThisPluginOwnerOfItem(vtkIdType itemID)
const;
207 virtual QString name()
const;
211 virtual void setName(QString name);
215 void requestExpandItem(vtkIdType itemID);
219 void requestInvalidateFilter()
const;
226 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)