23 #ifndef __qSlicerSubjectHierarchyFolderPlugin_h 24 #define __qSlicerSubjectHierarchyFolderPlugin_h 29 #include "qSlicerSubjectHierarchyModuleWidgetsExport.h" 32 #include <ctkVTKObject.h> 34 class qSlicerSubjectHierarchyFolderPluginPrivate;
93 QIcon
icon(vtkIdType itemID)
override;
143 Q_INVOKABLE vtkIdType createFolderUnderItem(vtkIdType parentItemID);
154 void createFolderUnderScene();
157 void createFolderUnderCurrentNode();
160 void onApplyColorToBranchToggled(
bool);
169 bool isApplyColorToBranchEnabledForItem(vtkIdType itemID)
const;
171 void setApplyColorToBranchEnabledForItem(vtkIdType itemID,
bool enabled);
174 QScopedPointer<qSlicerSubjectHierarchyFolderPluginPrivate>
d_ptr;
virtual Q_INVOKABLE void setDisplayVisibility(vtkIdType itemID, int visible)
Set display visibility of an owned subject hierarchy item.
QScopedPointer< qSlicerSubjectHierarchyFolderPluginPrivate > d_ptr
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
qSlicerSubjectHierarchyAbstractPlugin Superclass
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.
Q_INVOKABLE QString colorItemAttributeName() const
Name of color attribute in folder subject hierarchy items.
virtual Q_INVOKABLE QColor getDisplayColor(vtkIdType itemID, QMap< int, QVariant > &terminologyMetaData) const
virtual Q_INVOKABLE int getDisplayVisibility(vtkIdType itemID) const
virtual bool addNodeToSubjectHierarchy(vtkMRMLNode *node, vtkIdType parentItemID)
virtual Q_INVOKABLE void setDisplayColor(vtkIdType itemID, QColor color, QMap< int, QVariant > terminologyMetaData)
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.
Subject hierarchy folder plugin.
virtual Q_INVOKABLE QList< QAction * > visibilityContextMenuActions() const
Abstract class that contains graphical display properties for displayable nodes.
Abstract Superclass for all specific types of MRML nodes.
virtual Q_INVOKABLE void showVisibilityContextMenuActionsForItem(vtkIdType itemID)
virtual Q_INVOKABLE double canOwnSubjectHierarchyItem(vtkIdType itemID) const
virtual Q_INVOKABLE QList< QAction * > itemContextMenuActions() const