23 #ifndef __qSlicerSubjectHierarchyScriptedPlugin_h 24 #define __qSlicerSubjectHierarchyScriptedPlugin_h 29 #include "qSlicerSubjectHierarchyModuleWidgetsExport.h" 36 class qSlicerSubjectHierarchyScriptedPluginPrivate;
71 Q_INVOKABLE QString pythonSource()
const;
75 Q_INVOKABLE
bool setPythonSource(
const QString newPythonSource);
82 virtual void setName(QString name);
100 virtual const QString
helpText()
const;
104 virtual QIcon
icon(vtkIdType itemID);
117 virtual QString
tooltip(vtkIdType itemID)
const;
170 QScopedPointer<qSlicerSubjectHierarchyScriptedPluginPrivate>
d_ptr;
virtual Q_INVOKABLE void setDisplayVisibility(vtkIdType itemID, int visible)
Set display visibility of an owned subject hierarchy item.
virtual QIcon icon(vtkIdType itemID)
virtual Q_INVOKABLE const QString roleForPlugin() const
static const vtkIdType INVALID_ITEM_ID
virtual double canAddNodeToSubjectHierarchy(vtkMRMLNode *node, vtkIdType parentItemID=vtkMRMLSubjectHierarchyNode::INVALID_ITEM_ID) const
virtual Q_INVOKABLE QString tooltip(vtkIdType itemID) const
Generate tooltip for a owned subject hierarchy item.
qSlicerSubjectHierarchyAbstractPlugin Superclass
QScopedPointer< qSlicerSubjectHierarchyScriptedPluginPrivate > d_ptr
Abstract plugin for handling Subject Hierarchy items.
virtual Q_INVOKABLE void editProperties(vtkIdType itemID)
Open module belonging to item and set inputs in opened module.
virtual double canReparentItemInsideSubjectHierarchy(vtkIdType itemID, vtkIdType parentItemID) const
Scripted abstract plugin for handling subject hierarchy items or providing actions for items...
virtual Q_INVOKABLE int getDisplayVisibility(vtkIdType itemID) const
virtual Q_INVOKABLE void showContextMenuActionsForItem(vtkIdType itemID)
virtual Q_INVOKABLE QList< QAction * > sceneContextMenuActions() const
virtual Q_INVOKABLE QIcon visibilityIcon(int visible)
Get visibility icon for a visibility state.
virtual void setName(QString name)
virtual const QString helpText() const
Get help text for plugin to be added in subject hierarchy module widget help box. ...
Abstract Superclass for all specific types of MRML nodes.
virtual QString displayedItemName(vtkIdType itemID) const
virtual Q_INVOKABLE double canOwnSubjectHierarchyItem(vtkIdType itemID) const
virtual bool reparentItemInsideSubjectHierarchy(vtkIdType itemID, vtkIdType parentItemID)
virtual Q_INVOKABLE QList< QAction * > itemContextMenuActions() const