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);
117 vtkGetStringMacro(SelectedSegmentID);
120 vtkSetStringMacro(SelectedSegmentID);
124 vtkGetStringMacro(ActiveEffectName);
126 vtkSetStringMacro(ActiveEffectName);
130 vtkSetMacro(MaskMode,
int);
136 vtkGetMacro(MaskMode,
int);
140 vtkGetStringMacro(MaskSegmentID);
144 vtkSetStringMacro(MaskSegmentID);
148 vtkBooleanMacro(SourceVolumeIntensityMask,
bool);
150 vtkGetMacro(SourceVolumeIntensityMask,
bool);
151 vtkSetMacro(SourceVolumeIntensityMask,
bool);
155 virtual void MasterVolumeIntensityMaskOn() { this->SourceVolumeIntensityMaskOn(); }
163 vtkSetVector2Macro(SourceVolumeIntensityMaskRange,
double);
168 vtkGetVector2Macro(SourceVolumeIntensityMaskRange,
double);
172 virtual void SetMasterVolumeIntensityMaskRange(
double _arg1,
double _arg2)
175 vtkWarningMacro(
"vtkMRMLSegmentEditorNode::SetMasterVolumeIntensityMaskRange() method is deprecated, use SetSourceVolumeIntensityMaskRange method instead");
176 this->SetSourceVolumeIntensityMaskRange(_arg1, _arg2);
180 vtkWarningMacro(
"vtkMRMLSegmentEditorNode::SetMasterVolumeIntensityMaskRange() method is deprecated, use SetSourceVolumeIntensityMaskRange method instead");
181 this->SetSourceVolumeIntensityMaskRange(_arg);
186 vtkWarningMacro(
"vtkMRMLSegmentEditorNode::GetMasterVolumeIntensityMaskRange() method is deprecated, use GetSourceVolumeIntensityMaskRange method instead");
187 return this->GetSourceVolumeIntensityMaskRange();
193 vtkWarningMacro(
"vtkMRMLSegmentEditorNode::GetMasterVolumeIntensityMaskRange() method is deprecated, use GetSourceVolumeIntensityMaskRange method instead");
194 this->GetSourceVolumeIntensityMaskRange(_arg2, _arg2);
200 vtkWarningMacro(
"vtkMRMLSegmentEditorNode::GetMasterVolumeIntensityMaskRange() method is deprecated, use GetSourceVolumeIntensityMaskRange method instead");
201 this->GetSourceVolumeIntensityMaskRange(_arg);
206 vtkSetMacro(OverwriteMode,
int);
209 vtkGetMacro(OverwriteMode,
int);
219 char* SelectedSegmentID{
nullptr};
222 char* ActiveEffectName{
nullptr};
225 char* MaskSegmentID{
nullptr};
227 int OverwriteMode{OverwriteAllSegments};
229 bool SourceVolumeIntensityMask{
false};
230 double SourceVolumeIntensityMaskRange[2];
233 #endif // __vtkMRMLSegmentEditorNode_h virtual void MasterVolumeIntensityMaskOff()
virtual VTK_WRAPEXCLUDE void GetMasterVolumeIntensityMaskRange(double _arg[2])
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 VTK_WRAPEXCLUDE void GetMasterVolumeIntensityMaskRange(double &_arg1, double &_arg2)
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 bool GetMasterVolumeIntensityMask()
virtual void WriteXML(ostream &of, int indent)
virtual double * GetMasterVolumeIntensityMaskRange() VTK_SIZEHINT(2)
virtual void SetMasterVolumeIntensityMask(bool enable)
void PrintSelf(ostream &os, vtkIndent indent) override
void SetMasterVolumeIntensityMaskRange(const double _arg[2])
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 ...