15 #ifndef __vtkMRMLSliceCompositeNode_h 16 #define __vtkMRMLSliceCompositeNode_h 32 void PrintSelf(ostream& os, vtkIndent indent)
override;
42 void WriteXML(ostream& of,
int indent)
override;
54 const char* GetBackgroundVolumeID();
55 void SetBackgroundVolumeID(
const char*
id);
60 const char* GetForegroundVolumeID();
61 void SetForegroundVolumeID(
const char*
id);
66 const char* GetLabelVolumeID();
67 void SetLabelVolumeID(
const char*
id);
73 vtkGetMacro (Compositing,
int);
74 vtkSetMacro (Compositing,
int);
80 vtkGetMacro (ForegroundOpacity,
double);
81 vtkSetMacro (ForegroundOpacity,
double);
87 vtkGetMacro (LabelOpacity,
double);
88 vtkSetMacro (LabelOpacity,
double);
92 vtkGetMacro (LinkedControl,
int );
93 vtkSetMacro (LinkedControl,
int );
94 vtkBooleanMacro(LinkedControl,
int);
99 vtkGetMacro (HotLinkedControl,
int );
100 vtkSetMacro (HotLinkedControl,
int );
101 vtkBooleanMacro(HotLinkedControl,
int);
105 vtkGetMacro (FiducialVisibility,
int );
106 vtkSetMacro (FiducialVisibility,
int );
107 vtkGetMacro (FiducialLabelVisibility,
int );
108 vtkSetMacro (FiducialLabelVisibility,
int );
114 int GetSliceIntersectionVisibility();
115 void SetSliceIntersectionVisibility(
int visibility);
118 vtkGetMacro ( AnnotationSpace,
int );
123 vtkSetMacro ( AnnotationSpace,
int );
126 vtkGetMacro ( AnnotationMode,
int );
131 vtkSetMacro ( AnnotationMode,
int );
137 vtkSetMacro (DoPropagateVolumeSelection,
bool );
138 vtkGetMacro (DoPropagateVolumeSelection,
bool );
188 void SetInteracting(
int);
189 vtkGetMacro(Interacting,
int);
190 vtkBooleanMacro(Interacting,
int);
203 ForegroundVolumeFlag = 1,
204 BackgroundVolumeFlag = 2,
206 LabelOpacityFlag = 8,
207 ForegroundOpacityFlag = 16
216 void SetInteractionFlags(
unsigned int);
217 vtkGetMacro(InteractionFlags,
unsigned int);
224 void SetInteractionFlagsModifier(
unsigned int);
225 vtkGetMacro(InteractionFlagsModifier,
unsigned int);
230 void ResetInteractionFlagsModifier();
233 const char* GetAnnotationSpaceAsString(
int id);
234 int GetAnnotationSpaceFromString(
const char* name);
237 const char* GetAnnotationModeAsString(
int id);
238 int GetAnnotationModeFromString(
const char* name);
249 std::string GetCompositeNodeIDFromSliceModelNode(
vtkMRMLModelNode* sliceModelNode);
255 double ForegroundOpacity{ 0.0 };
257 int Compositing{ Alpha };
260 double LabelOpacity{ 1.0 };
261 int LinkedControl{ 0 };
262 int HotLinkedControl{ 0 };
264 int FiducialVisibility{ 1 };
265 int FiducialLabelVisibility{ 1 };
270 bool DoPropagateVolumeSelection{
true };
272 int Interacting{ 0 };
273 unsigned int InteractionFlags{ 0 };
274 unsigned int InteractionFlagsModifier{ (
unsigned int)-1 };
void SetReferenceLabelVolumeID(const char *id)
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
MRML node to represent a 3D surface model.
MRML node to store display properties of slice nodes.
MRML node for storing a slice through RAS space.
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 char * GetSingletonTag()
virtual void WriteXML(ostream &of, int indent)
void SetLayoutName(const char *layoutName)
void PrintSelf(ostream &os, vtkIndent indent) override
#define vtkMRMLCopyContentMacro(thisClassName)
vtkWeakPointer< vtkMRMLSliceDisplayNode > LastFoundSliceDisplayNode
AnnotationSpace
Annotation space.
Abstract Superclass for all specific types of MRML nodes.
virtual void SetSingletonTag(const char *)
Tag that make this node a singleton in the scene.
void SetReferenceForegroundVolumeID(const char *id)
void SetReferenceBackgroundVolumeID(const char *id)
AnnotationMode
Annotation mode.