23 #ifndef __qSlicerSubjectHierarchyAbstractPlugin_h 24 #define __qSlicerSubjectHierarchyAbstractPlugin_h 29 #include <QStringList> 36 #include "qSlicerSubjectHierarchyModuleWidgetsExport.h" 72 Q_PROPERTY(QString name READ name WRITE setName)
88 Q_INVOKABLE
virtual double canOwnSubjectHierarchyItem(vtkIdType itemID)
const;
92 Q_INVOKABLE
virtual const QString roleForPlugin()
const;
95 virtual const QString helpText()
const;
99 virtual QIcon icon(vtkIdType itemID);
102 Q_INVOKABLE
virtual QIcon visibilityIcon(
int visible);
105 Q_INVOKABLE
virtual void editProperties(vtkIdType itemID);
109 virtual QString displayedItemName(vtkIdType itemID)
const;
112 Q_INVOKABLE
virtual QString tooltip(vtkIdType itemID)
const;
115 Q_INVOKABLE
virtual void setDisplayVisibility(vtkIdType itemID,
int visible);
119 Q_INVOKABLE
virtual int getDisplayVisibility(vtkIdType itemID)
const;
128 Q_INVOKABLE
virtual void setDisplayColor(vtkIdType itemID, QColor color,
QMap<int, QVariant> terminologyMetaData);
136 Q_INVOKABLE
virtual QColor getDisplayColor(vtkIdType itemID,
QMap<int, QVariant> &terminologyMetaData)
const;
156 Q_INVOKABLE
virtual QList<QAction*> visibilityContextMenuActions()
const;
183 virtual double canAddNodeToSubjectHierarchy(
191 virtual bool addNodeToSubjectHierarchy(
vtkMRMLNode* node, vtkIdType parentItemID);
201 virtual double canReparentItemInsideSubjectHierarchy(vtkIdType itemID, vtkIdType parentItemID)
const;
205 virtual bool reparentItemInsideSubjectHierarchy(vtkIdType itemID, vtkIdType parentItemID);
216 Q_INVOKABLE
bool isThisPluginOwnerOfItem(vtkIdType itemID)
const;
224 virtual QString name()
const;
228 virtual void setName(QString name);
232 void requestExpandItem(vtkIdType itemID);
236 void requestInvalidateFilter()
const;
243 void hideAllContextMenuActions()
const;
static const vtkIdType INVALID_ITEM_ID
Abstract plugin for handling Subject Hierarchy items.
QString m_Name
Name of the plugin.
Abstract MRML node to represent a view. The class holds the properties common to any view type (3D...
Qt-based logic class to exercise Qt-related logic functions. The Subject hierarchy plugin mechanism a...
virtual Q_INVOKABLE void showContextMenuActionsForItem(vtkIdType itemID)
virtual Q_INVOKABLE void showViewContextMenuActionsForItem(vtkIdType itemID, QVariantMap eventData)
Abstract Superclass for all specific types of MRML nodes.
virtual Q_INVOKABLE void showVisibilityContextMenuActionsForItem(vtkIdType itemID)