21 #ifndef __vtkMRMLAbstractViewNode_h 22 #define __vtkMRMLAbstractViewNode_h 25 #include <vtkSmartPointer.h> 41 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
53 virtual void WriteXML(ostream& of,
int indent) VTK_OVERRIDE;
70 inline void SetLayoutName(
const char *layoutName);
71 inline const char *GetLayoutName();
84 vtkSetMacro(ViewGroup,
int);
85 vtkGetMacro(ViewGroup,
int);
90 vtkSetStringMacro(LayoutLabel);
91 vtkGetStringMacro(LayoutLabel);
95 vtkGetMacro (Active,
int );
96 vtkSetMacro (Active,
int );
105 vtkGetMacro(Visibility,
int);
106 vtkSetMacro(Visibility,
int);
113 virtual int IsMappedInLayout();
114 virtual void SetMappedInLayout(
int value);
124 bool IsViewVisibleInLayout();
130 vtkGetVector3Macro (BackgroundColor,
double);
131 vtkSetVector3Macro (BackgroundColor,
double);
137 vtkGetVector3Macro (BackgroundColor2,
double);
138 vtkSetVector3Macro (BackgroundColor2,
double);
142 vtkGetMacro(OrientationMarkerEnabled,
bool);
146 vtkSetMacro(OrientationMarkerType,
int);
147 vtkGetMacro(OrientationMarkerType,
int);
155 void SetOrientationMarkerHumanModelNodeID(
const char* modelNodeId);
156 const char* GetOrientationMarkerHumanModelNodeID();
161 static const char* GetOrientationMarkerTypeAsString(
int id);
162 static int GetOrientationMarkerTypeFromString(
const char* name);
166 vtkSetMacro(OrientationMarkerSize,
int);
167 vtkGetMacro(OrientationMarkerSize,
int);
171 static const char* GetOrientationMarkerSizeAsString(
int id);
172 static int GetOrientationMarkerSizeFromString(
const char* name);
177 OrientationMarkerTypeNone=0,
181 OrientationMarkerType_Last
186 OrientationMarkerSizeSmall=0,
189 OrientationMarkerSize_Last
194 vtkGetMacro(RulerEnabled,
bool);
198 vtkSetMacro(RulerType,
int);
199 vtkGetMacro(RulerType,
int);
203 static const char* GetRulerTypeAsString(
int id);
204 static int GetRulerTypeFromString(
const char* name);
222 const char* GetAxisLabel(
int labelIndex);
223 void SetAxisLabel(
int labelIndex,
const char* label);
256 virtual void RemoveActiveFlagInScene();
260 double BackgroundColor[3];
261 double BackgroundColor2[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
static const char * OrientationMarkerHumanModelMRMLAttributeName
int OrientationMarkerType
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.