23 #ifndef __vtkMRMLSegmentEditorNode_h 24 #define __vtkMRMLSegmentEditorNode_h 30 #include "vtkSlicerSegmentationsModuleMRMLExport.h" 54 EffectParameterModified = 62200
62 PaintAllowedEverywhere=0,
80 OverwriteAllSegments=0,
92 void PrintSelf(ostream& os, vtkIndent indent)
override;
101 void WriteXML(ostream& of,
int indent)
override;
110 static int ConvertOverwriteModeFromString(
const char* modeStr);
112 static const char* ConvertOverwriteModeToString(
int mode);
113 static const char* ConvertMaskModeToString(
int mode);
114 static int ConvertMaskModeFromString(
const char* modeStr);
133 vtkGetStringMacro(SelectedSegmentID);
136 vtkSetStringMacro(SelectedSegmentID);
140 vtkGetStringMacro(ActiveEffectName);
142 vtkSetStringMacro(ActiveEffectName);
146 vtkSetMacro(MaskMode,
int);
151 vtkGetMacro(MaskMode,
int);
155 vtkGetStringMacro(MaskSegmentID);
159 vtkSetStringMacro(MaskSegmentID);
163 vtkBooleanMacro(MasterVolumeIntensityMask,
bool);
165 vtkGetMacro(MasterVolumeIntensityMask,
bool);
166 vtkSetMacro(MasterVolumeIntensityMask,
bool);
170 vtkSetVector2Macro(MasterVolumeIntensityMaskRange,
double);
175 vtkGetVector2Macro(MasterVolumeIntensityMaskRange,
double);
179 vtkSetMacro(OverwriteMode,
int);
182 vtkGetMacro(OverwriteMode,
int);
192 char* SelectedSegmentID{
nullptr};
195 char* ActiveEffectName{
nullptr};
197 int MaskMode{PaintAllowedEverywhere};
198 char* MaskSegmentID{
nullptr};
200 int OverwriteMode{OverwriteAllSegments};
202 bool MasterVolumeIntensityMask{
false};
203 double MasterVolumeIntensityMaskRange[2];
206 #endif // __vtkMRMLSegmentEditorNode_h Modification is allowed inside all segments.
virtual void ReadXMLAttributes(const char **atts)
void operator=(const vtkMRMLNode &)
virtual vtkMRMLNode * CreateNodeInstance()=0
Create instance of the default node. Like New only virtual.
Modification is allowed outside all segments.
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.
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 WriteXML(ostream &of, int indent)
Modification is allowed outside all visible segments.
Modification is allowed inside all visible segments.
Modification is allowed only over the area covered by segment specified in MaskSegmentID.
void PrintSelf(ostream &os, vtkIndent indent) override
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 ...