21 #ifndef __vtkMRMLAbstractViewNode_h 22 #define __vtkMRMLAbstractViewNode_h 25 #include <vtkSmartPointer.h> 42 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
52 virtual void WriteXML(ostream& of,
int indent) VTK_OVERRIDE;
67 inline void SetLayoutName(
const char *layoutName);
68 inline const char *GetLayoutName();
80 vtkSetMacro(ViewGroup,
int);
81 vtkGetMacro(ViewGroup,
int);
85 vtkSetStringMacro(LayoutLabel);
86 vtkGetStringMacro(LayoutLabel);
89 vtkGetMacro(Active,
int );
90 vtkSetMacro(Active,
int );
99 vtkGetMacro(Visibility,
int);
100 vtkSetMacro(Visibility,
int);
124 bool SetInteractionNodeID(
const char *interactionNodeId);
133 virtual int IsMappedInLayout();
134 virtual void SetMappedInLayout(
int value);
142 bool SetAndObserveParentLayoutNodeID(
const char *layoutNodeId);
145 bool SetAndObserveParentLayoutNode(
vtkMRMLNode* node);
155 bool IsViewVisibleInLayout();
160 vtkGetVector3Macro(BackgroundColor,
double);
161 vtkSetVector3Macro(BackgroundColor,
double);
166 vtkGetVector3Macro(BackgroundColor2,
double);
167 vtkSetVector3Macro(BackgroundColor2,
double);
172 vtkSetVector3Macro(LayoutColor,
double);
173 vtkGetVector3Macro(LayoutColor,
double);
175 static double* GetRedColor();
176 static double* GetYellowColor();
177 static double* GetGreenColor();
178 static double* GetCompareColor();
179 static double* GetGrayColor();
180 static double* GetThreeDViewBlueColor();
184 vtkGetMacro(OrientationMarkerEnabled,
bool);
187 vtkSetMacro(OrientationMarkerType,
int);
188 vtkGetMacro(OrientationMarkerType,
int);
195 void SetOrientationMarkerHumanModelNodeID(
const char* modelNodeId);
196 const char* GetOrientationMarkerHumanModelNodeID();
200 static const char* GetOrientationMarkerTypeAsString(
int id);
201 static int GetOrientationMarkerTypeFromString(
const char* name);
204 vtkSetMacro(OrientationMarkerSize,
int);
205 vtkGetMacro(OrientationMarkerSize,
int);
208 static const char* GetOrientationMarkerSizeAsString(
int id);
209 static int GetOrientationMarkerSizeFromString(
const char* name);
214 OrientationMarkerTypeNone=0,
218 OrientationMarkerType_Last
223 OrientationMarkerSizeSmall=0,
226 OrientationMarkerSize_Last
231 vtkGetMacro(RulerEnabled,
bool);
234 vtkSetMacro(RulerType,
int);
235 vtkGetMacro(RulerType,
int);
238 static const char* GetRulerTypeAsString(
int id);
239 static int GetRulerTypeFromString(
const char* name);
256 const char* GetAxisLabel(
int labelIndex);
257 void SetAxisLabel(
int labelIndex,
const char* label);
289 double BackgroundColor[3];
290 double BackgroundColor2[3];
294 double LayoutColor[3];
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)
char * LayoutLabel
Label to show for the view (shortcut for the name)
void operator=(const vtkMRMLNode &)
virtual char * GetSingletonTag()
void SetLayoutName(const char *layoutName)
virtual void Copy(vtkMRMLNode *node)
Copy parameters (not including ID and Scene) from another node of the same type.
Abstract MRML node to represent a view. The class holds the properties common to any view type (3D...
bool OrientationMarkerEnabled
int OrientationMarkerType
static const char * InteractionNodeReferenceRole
vtkSmartPointer< vtkStringArray > AxisLabels
Labels of coordinate system axes
virtual void WriteXML(ostream &of, int indent)
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
OrientationMarkerSizeType
int ViewGroup
Views with the same ViewGroup value are in the same group.
static const int AxisLabelsCount
Total number of coordinate system axis labels.
Abstract Superclass for all specific types of MRML nodes.
int OrientationMarkerSize
virtual void SetSingletonTag(const char *)
Tag that make this node a singleton in the scene.
RulerTypeType
Enum to specify orientation marker types.
static const char * ParentLayoutNodeReferenceRole