23 #ifndef __qSlicerSubjectHierarchyAbstractPlugin_h 24 #define __qSlicerSubjectHierarchyAbstractPlugin_h 29 #include <QStringList> 36 #include "qSlicerSubjectHierarchyModuleWidgetsExport.h" 71 Q_PROPERTY(QString name READ name WRITE setName)
89 Q_INVOKABLE
virtual double canOwnSubjectHierarchyItem(vtkIdType itemID)
const;
93 Q_INVOKABLE
virtual const QString roleForPlugin()
const;
96 virtual const QString helpText()
const;
100 virtual QIcon icon(vtkIdType itemID);
103 Q_INVOKABLE
virtual QIcon visibilityIcon(
int visible);
106 Q_INVOKABLE
virtual bool canEditProperties(vtkIdType itemID);
109 Q_INVOKABLE
virtual void editProperties(vtkIdType itemID);
113 virtual QString displayedItemName(vtkIdType itemID)
const;
116 Q_INVOKABLE
virtual QString tooltip(vtkIdType itemID)
const;
119 Q_INVOKABLE
virtual void setDisplayVisibility(vtkIdType itemID,
int visible);
123 Q_INVOKABLE
virtual int getDisplayVisibility(vtkIdType itemID)
const;
132 Q_INVOKABLE
virtual void setDisplayColor(vtkIdType itemID, QColor color,
QMap<int, QVariant> terminologyMetaData);
140 Q_INVOKABLE
virtual QColor getDisplayColor(vtkIdType itemID,
QMap<int, QVariant> &terminologyMetaData)
const;
160 Q_INVOKABLE
virtual QList<QAction*> visibilityContextMenuActions()
const;
187 virtual double canAddNodeToSubjectHierarchy(
195 virtual bool addNodeToSubjectHierarchy(
vtkMRMLNode* node, vtkIdType parentItemID);
205 virtual double canReparentItemInsideSubjectHierarchy(vtkIdType itemID, vtkIdType parentItemID)
const;
209 virtual bool reparentItemInsideSubjectHierarchy(vtkIdType itemID, vtkIdType parentItemID);
220 Q_INVOKABLE
bool isThisPluginOwnerOfItem(vtkIdType itemID)
const;
228 virtual QString name()
const;
232 virtual void setName(QString name);
237 SectionInteraction = -300,
238 SectionComponent = -200,
254 Q_INVOKABLE
static void setActionPosition(QAction* action,
int section,
int weight = 0,
double weightAdjustment = 0.0);
258 void requestExpandItem(vtkIdType itemID);
262 void requestInvalidateFilter()
const;
269 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)