21 #ifndef __vtkMRMLAbstractViewNode_h 22 #define __vtkMRMLAbstractViewNode_h 25 #include <vtkSmartPointer.h> 42 void PrintSelf(ostream& os, vtkIndent indent)
override;
52 void WriteXML(ostream& of,
int indent)
override;
68 inline void SetLayoutName(
const char *layoutName);
69 inline const char *GetLayoutName();
81 vtkSetMacro(ViewGroup,
int);
82 vtkGetMacro(ViewGroup,
int);
86 vtkSetStringMacro(LayoutLabel);
87 vtkGetStringMacro(LayoutLabel);
90 vtkGetMacro(Active,
int );
91 vtkSetMacro(Active,
int );
100 vtkGetMacro(Visibility,
int);
101 vtkSetMacro(Visibility,
int);
125 bool SetInteractionNodeID(
const char *interactionNodeId);
134 virtual int IsMappedInLayout();
135 virtual void SetMappedInLayout(
int value);
143 bool SetAndObserveParentLayoutNodeID(
const char *layoutNodeId);
146 bool SetAndObserveParentLayoutNode(
vtkMRMLNode* node);
156 bool IsViewVisibleInLayout();
161 vtkGetVector3Macro(BackgroundColor,
double);
162 vtkSetVector3Macro(BackgroundColor,
double);
167 vtkGetVector3Macro(BackgroundColor2,
double);
168 vtkSetVector3Macro(BackgroundColor2,
double);
173 vtkSetVector3Macro(LayoutColor,
double);
174 vtkGetVector3Macro(LayoutColor,
double);
176 static double* GetRedColor();
177 static double* GetYellowColor();
178 static double* GetGreenColor();
179 static double* GetCompareColor();
180 static double* GetGrayColor();
181 static double* GetThreeDViewBlueColor();
185 vtkGetMacro(OrientationMarkerEnabled,
bool);
188 vtkSetMacro(OrientationMarkerType,
int);
189 vtkGetMacro(OrientationMarkerType,
int);
196 void SetOrientationMarkerHumanModelNodeID(
const char* modelNodeId);
197 const char* GetOrientationMarkerHumanModelNodeID();
201 static const char* GetOrientationMarkerTypeAsString(
int id);
202 static int GetOrientationMarkerTypeFromString(
const char* name);
205 vtkSetMacro(OrientationMarkerSize,
int);
206 vtkGetMacro(OrientationMarkerSize,
int);
209 static const char* GetOrientationMarkerSizeAsString(
int id);
210 static int GetOrientationMarkerSizeFromString(
const char* name);
215 OrientationMarkerTypeNone=0,
219 OrientationMarkerType_Last
224 OrientationMarkerSizeSmall=0,
227 OrientationMarkerSize_Last
232 vtkGetMacro(RulerEnabled,
bool);
235 vtkSetMacro(RulerType,
int);
236 vtkGetMacro(RulerType,
int);
239 static const char* GetRulerTypeAsString(
int id);
240 static int GetRulerTypeFromString(
const char* name);
252 vtkSetMacro(RulerColor,
int);
253 vtkGetMacro(RulerColor,
int);
256 static const char* GetRulerColorAsString(
int id);
257 static int GetRulerColorFromString(
const char* name);
274 const char* GetAxisLabel(
int labelIndex);
275 void SetAxisLabel(
int labelIndex,
const char* label);
293 char* LayoutLabel{
nullptr};
307 double BackgroundColor[3];
308 double BackgroundColor2[3];
312 double LayoutColor[3];
317 bool OrientationMarkerEnabled{
false};
318 int OrientationMarkerType{OrientationMarkerTypeNone};
319 int OrientationMarkerSize{OrientationMarkerSizeMedium};
326 bool RulerEnabled{
false};
327 int RulerType{RulerTypeNone};
328 int RulerColor{RulerColorWhite};
OrientationMarkerTypeType
Enum to specify orientation marker types.
static const char * OrientationMarkerHumanModelReferenceRole
const char * GetLayoutName()
virtual void Reset(vtkMRMLNode *defaultNode)
Reset node attributes to the initial state as defined in the constructor or the passed default node...
MRML node to represent a 3D surface model.
virtual void ReadXMLAttributes(const char **atts)
void operator=(const vtkMRMLNode &)
virtual char * GetSingletonTag()
void SetLayoutName(const char *layoutName)
Abstract MRML node to represent a view. The class holds the properties common to any view type (3D...
RulerColorType
Enum to specify ruler colors.
static const char * InteractionNodeReferenceRole
vtkSmartPointer< vtkStringArray > AxisLabels
Labels of coordinate system axes
virtual void WriteXML(ostream &of, int indent)
OrientationMarkerSizeType
void PrintSelf(ostream &os, vtkIndent indent) override
#define vtkMRMLCopyContentMacro(thisClassName)
static const int AxisLabelsCount
Total number of coordinate system axis labels.
Abstract Superclass for all specific types of MRML nodes.
virtual void SetSingletonTag(const char *)
Tag that make this node a singleton in the scene.
RulerTypeType
Enum to specify ruler types.
static const char * ParentLayoutNodeReferenceRole