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;
125 void onSegmentAdded(vtkObject* caller,
void* callData);
129 void onSegmentRemoved(vtkObject* caller,
void* callData);
133 void onSegmentModified(vtkObject* caller,
void* callData);
136 void onDisplayNodeModified(vtkObject* caller);
140 void onSubjectHierarchyItemModified(vtkObject* caller,
void* callData);
144 void onSubjectHierarchyItemAboutToBeRemoved(vtkObject* caller,
void* callData);
148 void exportToBinaryLabelmap();
151 void exportToClosedSurface();
154 void convertLabelmapToSegmentation();
157 void convertModelToSegmentation();
160 void convertModelsToSegmentation();
163 void toggle2DFillVisibility(
bool);
166 void toggle2DOutlineVisibility(
bool);
168 void createBinaryLabelmapRepresentation();
169 void createClosedSurfaceRepresentation();
170 void removeBinaryLabelmapRepresentation();
171 void removeClosedSurfaceRepresentation();
174 QScopedPointer<qSlicerSubjectHierarchySegmentationsPluginPrivate>
d_ptr;
180 void updateRepresentation(
const QString& representationName,
bool create);
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.
virtual bool showItemInView(vtkIdType itemID, vtkMRMLAbstractViewNode *viewNode, vtkIdList *allItemsToShow)
Abstract plugin for handling Subject Hierarchy items.
Abstract MRML node to represent a view. The class holds the properties common to any view type (3D...
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 ...