21 #ifndef __vtkMRMLAbstractViewNode_h 22 #define __vtkMRMLAbstractViewNode_h 25 #include <vtkSmartPointer.h> 43 void PrintSelf(ostream& os, vtkIndent indent)
override;
53 void WriteXML(ostream& of,
int indent)
override;
69 inline void SetLayoutName(
const char *layoutName);
70 inline const char *GetLayoutName();
82 vtkSetMacro(ViewGroup,
int);
83 vtkGetMacro(ViewGroup,
int);
87 vtkSetStringMacro(LayoutLabel);
88 vtkGetStringMacro(LayoutLabel);
91 vtkGetMacro(Active,
int );
92 vtkSetMacro(Active,
int );
101 vtkGetMacro(Visibility,
int);
102 vtkSetMacro(Visibility,
int);
126 bool SetInteractionNodeID(
const char *interactionNodeId);
135 virtual int IsMappedInLayout();
136 virtual void SetMappedInLayout(
int value);
144 bool SetAndObserveParentLayoutNodeID(
const char *layoutNodeId);
147 bool SetAndObserveParentLayoutNode(
vtkMRMLNode* node);
157 bool IsViewVisibleInLayout();
162 vtkGetVector3Macro(BackgroundColor,
double);
163 vtkSetVector3Macro(BackgroundColor,
double);
168 vtkGetVector3Macro(BackgroundColor2,
double);
169 vtkSetVector3Macro(BackgroundColor2,
double);
174 vtkSetVector3Macro(LayoutColor,
double);
175 vtkGetVector3Macro(LayoutColor,
double);
177 static double* GetRedColor();
178 static double* GetYellowColor();
179 static double* GetGreenColor();
180 static double* GetCompareColor();
181 static double* GetGrayColor();
182 static double* GetThreeDViewBlueColor();
186 vtkGetMacro(OrientationMarkerEnabled,
bool);
189 vtkSetMacro(OrientationMarkerType,
int);
190 vtkGetMacro(OrientationMarkerType,
int);
197 void SetOrientationMarkerHumanModelNodeID(
const char* modelNodeId);
198 const char* GetOrientationMarkerHumanModelNodeID();
202 static const char* GetOrientationMarkerTypeAsString(
int id);
203 static int GetOrientationMarkerTypeFromString(
const char* name);
206 vtkSetMacro(OrientationMarkerSize,
int);
207 vtkGetMacro(OrientationMarkerSize,
int);
210 static const char* GetOrientationMarkerSizeAsString(
int id);
211 static int GetOrientationMarkerSizeFromString(
const char* name);
216 OrientationMarkerTypeNone=0,
220 OrientationMarkerType_Last
225 OrientationMarkerSizeSmall=0,
228 OrientationMarkerSize_Last
233 vtkGetMacro(RulerEnabled,
bool);
236 vtkSetMacro(RulerType,
int);
237 vtkGetMacro(RulerType,
int);
240 static const char* GetRulerTypeAsString(
int id);
241 static int GetRulerTypeFromString(
const char* name);
253 vtkSetMacro(RulerColor,
int);
254 vtkGetMacro(RulerColor,
int);
257 static const char* GetRulerColorAsString(
int id);
258 static int GetRulerColorFromString(
const char* name);
275 const char* GetAxisLabel(
int labelIndex);
276 void SetAxisLabel(
int labelIndex,
const char* label);
300 char* LayoutLabel{
nullptr};
314 double BackgroundColor[3];
315 double BackgroundColor2[3];
319 double LayoutColor[3];
324 bool OrientationMarkerEnabled{
false};
325 int OrientationMarkerType{OrientationMarkerTypeNone};
326 int OrientationMarkerSize{OrientationMarkerSizeMedium};
333 bool RulerEnabled{
false};
334 int RulerType{RulerTypeNone};
335 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 &)
Node that describes the view layout of the application.
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