23 #ifndef __qSlicerSubjectHierarchyScriptedPlugin_h 24 #define __qSlicerSubjectHierarchyScriptedPlugin_h 29 #include "qSlicerSubjectHierarchyModuleWidgetsExport.h" 36 class qSlicerSubjectHierarchyScriptedPluginPrivate;
72 Q_INVOKABLE QString pythonSource()
const;
76 Q_INVOKABLE
bool setPythonSource(
const QString newPythonSource);
83 void setName(QString name)
override;
101 const QString
helpText()
const override;
105 QIcon
icon(vtkIdType itemID)
override;
118 QString
tooltip(vtkIdType itemID)
const override;
179 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 void showViewContextMenuActionsForItem(vtkIdType itemID, QVariantMap eventData)
virtual Q_INVOKABLE QIcon visibilityIcon(int visible)
Get visibility icon for a visibility state.
virtual Q_INVOKABLE QList< QAction * > viewContextMenuActions() const
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