23 #ifndef __vtkMRMLSegmentEditorNode_h 24 #define __vtkMRMLSegmentEditorNode_h 31 #include "vtkSlicerSegmentationsModuleMRMLExport.h" 54 EffectParameterModified = 62200
60 OverwriteAllSegments=0,
72 void PrintSelf(ostream& os, vtkIndent indent)
override;
81 void WriteXML(ostream& of,
int indent)
override;
90 static int ConvertOverwriteModeFromString(
const char* modeStr);
92 static const char* ConvertOverwriteModeToString(
int mode);
111 vtkGetStringMacro(SelectedSegmentID);
114 vtkSetStringMacro(SelectedSegmentID);
118 vtkGetStringMacro(ActiveEffectName);
120 vtkSetStringMacro(ActiveEffectName);
124 vtkSetMacro(MaskMode,
int);
130 vtkGetMacro(MaskMode,
int);
134 vtkGetStringMacro(MaskSegmentID);
138 vtkSetStringMacro(MaskSegmentID);
142 vtkBooleanMacro(MasterVolumeIntensityMask,
bool);
144 vtkGetMacro(MasterVolumeIntensityMask,
bool);
145 vtkSetMacro(MasterVolumeIntensityMask,
bool);
149 vtkSetVector2Macro(MasterVolumeIntensityMaskRange,
double);
154 vtkGetVector2Macro(MasterVolumeIntensityMaskRange,
double);
158 vtkSetMacro(OverwriteMode,
int);
161 vtkGetMacro(OverwriteMode,
int);
171 char* SelectedSegmentID{
nullptr};
174 char* ActiveEffectName{
nullptr};
177 char* MaskSegmentID{
nullptr};
179 int OverwriteMode{OverwriteAllSegments};
181 bool MasterVolumeIntensityMask{
false};
182 double MasterVolumeIntensityMaskRange[2];
185 #endif // __vtkMRMLSegmentEditorNode_h Areas added to selected segment will not be removed from any segments. (overlap with all other segmen...
Areas added to selected segment will be removed from all visible segments. (no overlap with visible...
virtual void ReadXMLAttributes(const char **atts)
void operator=(const vtkMRMLNode &)
virtual vtkMRMLNode * CreateNodeInstance()=0
Create instance of the default node. Like New only virtual.
virtual void Copy(vtkMRMLNode *node)
Copy node contents from another node of the same type. Does not copy node ID and Scene. Performs deep copy - an independent copy is created from all data, including bulk data.
A set of MRML Nodes that supports serialization and undo/redo.
Parameter set node for the segment editor widget.
virtual void WriteXML(ostream &of, int indent)
void PrintSelf(ostream &os, vtkIndent indent) override
Modification is allowed everywhere.
MRML node for representing a volume (image stack).
const char * GetNodeTagName() override
Get unique node XML tag name (like Volume, Model)
Abstract Superclass for all specific types of MRML nodes.
MRML node containing segmentationsSegmentation node stores a set of segments (also known as contours ...