21 #ifndef __qSlicerSegmentationsModuleWidget_h 22 #define __qSlicerSegmentationsModuleWidget_h 27 #include "qSlicerSegmentationsModuleExport.h" 33 #include <ctkVTKObject.h> 35 class qSlicerSegmentationsModuleWidgetPrivate;
39 class vtkMRMLNodeReference;
42 class Ui_qSlicerSegmentationsModule;
56 void enter()
override;
64 void updateWidgetFromMRML();
70 void setup()
override;
87 vtkSegmentation* toSegmentation, QString segmentId,
bool removeFromSource=
false);
93 bool copySegmentsBetweenSegmentations(
bool copyFromCurrentSegmentation,
bool removeFromSource =
false);
95 bool exportFromCurrentSegmentation();
96 bool importToCurrentSegmentation();
103 void setOtherSegmentationOrRepresentationNode(
vtkMRMLNode* node);
106 void updateCopyMoveButtonStates();
109 void onSegmentSelectionChanged(
const QItemSelection &selected,
const QItemSelection &deselected);
112 void onSegmentationNodeReferenceChanged();
115 void onEditSegmentation();
116 void onRemoveSelectedSegments();
118 void updateLayerWidgets();
119 void collapseLabelmapLayers();
121 void updateImportExportWidgets();
122 void onImportExportApply();
123 void onImportExportClearSelection();
124 void updateExportColorWidgets();
125 void onExportColorTableChanged();
127 void onMoveFromCurrentSegmentation();
128 void onCopyFromCurrentSegmentation();
129 void onCopyToCurrentSegmentation();
130 void onMoveToCurrentSegmentation();
132 void onMRMLSceneEndImportEvent();
133 void onMRMLSceneEndRestoreEvent();
134 void onMRMLSceneEndBatchProcessEvent();
135 void onMRMLSceneEndCloseEvent();
138 QScopedPointer<qSlicerSegmentationsModuleWidgetPrivate>
d_ptr;
MRML node to represent a complete subject hierarchy tree.
This class encapsulates a segmentation that can contain multiple segments and multiple representation...
MRML node for representing segmentation display attributes.
Abstract Superclass for all specific types of MRML nodes.
MRML node containing segmentationsSegmentation node stores a set of segments (also known as contours ...