21 #ifndef __qSlicerSubjectHierarchySegmentationsPlugin_h 22 #define __qSlicerSubjectHierarchySegmentationsPlugin_h 27 #include "qSlicerSegmentationsSubjectHierarchyPluginsExport.h" 29 class qSlicerSubjectHierarchySegmentationsPluginPrivate;
83 QString
tooltip(vtkIdType itemID)
const override;
86 const QString
helpText()
const override;
90 QIcon
icon(vtkIdType itemID)
override;
120 void onSegmentAdded(vtkObject* caller,
void* callData);
124 void onSegmentRemoved(vtkObject* caller,
void* callData);
128 void onSegmentModified(vtkObject* caller,
void* callData);
131 void onDisplayNodeModified(vtkObject* caller);
135 void onSubjectHierarchyItemModified(vtkObject* caller,
void* callData);
139 void onSubjectHierarchyItemAboutToBeRemoved(vtkObject* caller,
void* callData);
143 void exportToBinaryLabelmap();
146 void exportToClosedSurface();
149 void convertLabelmapToSegmentation();
152 void convertModelToSegmentation();
155 void convertModelsToSegmentation();
158 void toggle2DFillVisibility(
bool);
161 void toggle2DOutlineVisibility(
bool);
164 QScopedPointer<qSlicerSubjectHierarchySegmentationsPluginPrivate>
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)
qSlicerSubjectHierarchyAbstractPlugin Superclass
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.
Abstract plugin for handling Subject Hierarchy items.
virtual double canReparentItemInsideSubjectHierarchy(vtkIdType itemID, vtkIdType parentItemID) const
virtual Q_INVOKABLE int getDisplayVisibility(vtkIdType itemID) const
virtual bool addNodeToSubjectHierarchy(vtkMRMLNode *node, vtkIdType parentItemID)
virtual Q_INVOKABLE void showContextMenuActionsForItem(vtkIdType itemID)
virtual Q_INVOKABLE QIcon visibilityIcon(int visible)
Get visibility icon for a visibility state.
QScopedPointer< qSlicerSubjectHierarchySegmentationsPluginPrivate > d_ptr
virtual Q_INVOKABLE QList< QAction * > visibilityContextMenuActions() const
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 Q_INVOKABLE void showVisibilityContextMenuActionsForItem(vtkIdType itemID)
virtual Q_INVOKABLE double canOwnSubjectHierarchyItem(vtkIdType itemID) const
virtual bool reparentItemInsideSubjectHierarchy(vtkIdType itemID, vtkIdType parentItemID)
virtual Q_INVOKABLE QList< QAction * > itemContextMenuActions() const
MRML node containing segmentationsSegmentation node stores a set of segments (also known as contours ...