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;
282 std::string
GetDirectionLabel(
double direction[3],
bool positive=
true,
double toleranceDeg=1.0);
void ReadXMLAttributes(const char **atts) override
MRMLNode methods.
std::string GetDirectionLabel(double direction[3], bool positive=true, double toleranceDeg=1.0)
bool SetAndObserveParentLayoutNodeID(const char *layoutNodeId)
int ViewGroup
Views with the same ViewGroup value are in the same group.
static double * GetCompareColor() VTK_SIZEHINT(3)
OrientationMarkerTypeType
Enum to specify orientation marker types.
@ OrientationMarkerTypeHuman
@ OrientationMarkerTypeAxes
@ OrientationMarkerTypeCube
@ OrientationMarkerType_Last
@ OrientationMarkerTypeNone
static const char * GetRulerColorAsString(int id)
Convert between ruler color ID and name.
virtual void SetMappedInLayout(int value)
double BackgroundColor[3]
Background colors.
double LayoutColor[3]
Color for view header in layout as RGB.
static int GetRulerTypeFromString(const char *name)
vtkSmartPointer< vtkStringArray > AxisLabels
Labels of coordinate system axes.
bool IsViewVisibleInLayout()
Indicates whether or not the view is visible in the current layout.
void SetLayoutName(const char *layoutName)
bool SetAndObserveParentLayoutNode(vtkMRMLNode *node)
OrientationMarkerSizeType
@ OrientationMarkerSizeMedium
@ OrientationMarkerSize_Last
@ OrientationMarkerSizeLarge
@ OrientationMarkerSizeSmall
static double * GetThreeDViewBlueColor() VTK_SIZEHINT(3)
static const char * GetOrientationMarkerSizeAsString(int id)
Convert between orientation marker type ID and name.
RulerColorType
Enum to specify ruler colors.
bool OrientationMarkerEnabled
RulerTypeType
Enum to specify ruler types.
int OrientationMarkerType
static double * GetGrayColor() VTK_SIZEHINT(3)
vtkMRMLCopyContentMacro(vtkMRMLAbstractViewNode)
const char * GetLayoutName()
static const int AxisLabelsCount
Total number of coordinate system axis labels.
double BackgroundColor2[3]
int OrientationMarkerSize
bool SetInteractionNodeID(const char *interactionNodeId)
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
static double * GetRedColor() VTK_SIZEHINT(3)
vtkMRMLAbstractViewNode()
static double * GetYellowColor() VTK_SIZEHINT(3)
vtkMRMLAbstractViewNode(const vtkMRMLAbstractViewNode &)
const char * GetOrientationMarkerHumanModelNodeID()
static const char * OrientationMarkerHumanModelReferenceRole
const char * GetAxisLabel(int labelIndex)
void SetOrientationMarkerHumanModelNodeID(const char *modelNodeId)
vtkMRMLInteractionNode * GetInteractionNode()
Get interaction node.
virtual int IsMappedInLayout()
static int GetRulerColorFromString(const char *name)
static const char * ParentLayoutNodeReferenceRole
static const char * InteractionNodeReferenceRole
static const char * GetOrientationMarkerTypeAsString(int id)
Convert between orientation marker type ID and name.
~vtkMRMLAbstractViewNode() override
char * LayoutLabel
Label to show for the view (shortcut for the name)
vtkMRMLLayoutNode * GetMaximizedState(bool &maximized, bool &canBeMaximized)
vtkMRMLNode * GetParentLayoutNode()
static const char * GetRulerTypeAsString(int id)
Convert between ruler type ID and name.
void SetAxisLabel(int labelIndex, const char *label)
vtkMRMLModelNode * GetOrientationMarkerHumanModelNode()
static int GetOrientationMarkerSizeFromString(const char *name)
static double * GetGreenColor() VTK_SIZEHINT(3)
void PrintSelf(ostream &os, vtkIndent indent) override
bool SetInteractionNode(vtkMRMLNode *node)
static int GetOrientationMarkerTypeFromString(const char *name)
void Reset(vtkMRMLNode *defaultNode) override
Reimplemented to preserve layout label when reset.
void operator=(const vtkMRMLAbstractViewNode &)
Node that describes the view layout of the application.
MRML node to represent a 3D surface model.
virtual char * GetSingletonTag()
virtual void SetSingletonTag(const char *)
Tag that make this node a singleton in the scene.