1 #ifndef __vtkMRMLLayoutNode_h 2 #define __vtkMRMLLayoutNode_h 7 class vtkXMLDataElement;
20 void PrintSelf(ostream& os, vtkIndent indent)
override;
30 void WriteXML(ostream& of,
int indent)
override;
39 vtkGetMacro(ViewArrangement,
int);
40 virtual void SetViewArrangement(
int);
42 vtkGetMacro(GUIPanelVisibility,
int);
43 vtkSetMacro(GUIPanelVisibility,
int);
45 vtkGetMacro(BottomPanelVisibility,
int);
46 vtkSetMacro(BottomPanelVisibility,
int);
49 vtkGetMacro(GUIPanelLR,
int);
50 vtkSetMacro(GUIPanelLR,
int);
53 vtkGetMacro(CollapseSliceControllers,
int);
54 vtkSetMacro(CollapseSliceControllers,
int);
57 vtkGetMacro(NumberOfCompareViewRows,
int);
58 vtkSetClampMacro(NumberOfCompareViewRows,
int, 1, 50);
59 vtkGetMacro(NumberOfCompareViewColumns,
int);
60 vtkSetClampMacro(NumberOfCompareViewColumns,
int, 1, 50);
63 vtkGetMacro(NumberOfCompareViewLightboxRows,
int);
64 vtkSetClampMacro(NumberOfCompareViewLightboxRows,
int, 1, 50);
65 vtkGetMacro(NumberOfCompareViewLightboxColumns,
int);
66 vtkSetClampMacro(NumberOfCompareViewLightboxColumns,
int, 1, 50);
70 vtkGetMacro(MainPanelSize,
int);
71 vtkSetMacro(MainPanelSize,
int);
72 vtkGetMacro(SecondaryPanelSize,
int);
73 vtkSetMacro(SecondaryPanelSize,
int);
76 vtkGetStringMacro(SelectedModule);
77 vtkSetStringMacro(SelectedModule);
88 SlicerLayoutInitialView = 0,
89 SlicerLayoutDefaultView = 1,
90 SlicerLayoutConventionalView = 2,
91 SlicerLayoutFourUpView = 3,
92 SlicerLayoutOneUp3DView = 4,
93 SlicerLayoutOneUpRedSliceView = 6,
94 SlicerLayoutOneUpYellowSliceView = 7,
95 SlicerLayoutOneUpGreenSliceView = 8,
96 SlicerLayoutTabbed3DView = 9,
97 SlicerLayoutTabbedSliceView = 10,
98 SlicerLayoutCompareView = 12,
99 SlicerLayoutNone = 14,
100 SlicerLayoutDual3DView = 15,
101 SlicerLayoutConventionalWidescreenView = 16,
102 SlicerLayoutCompareWidescreenView = 17,
103 SlicerLayoutTriple3DEndoscopyView = 19,
104 SlicerLayoutThreeOverThreeView = 21,
105 SlicerLayoutFourOverFourView = 22,
106 SlicerLayoutCompareGridView = 23,
107 SlicerLayoutTwoOverTwoView = 27,
108 SlicerLayoutSideBySideView = 29,
109 SlicerLayoutFourByThreeSliceView = 30,
110 SlicerLayoutFourByTwoSliceView = 31,
111 SlicerLayoutFiveByTwoSliceView = 32,
112 SlicerLayoutThreeByThreeSliceView = 33,
113 SlicerLayoutFourUpTableView = 34,
114 SlicerLayout3DTableView = 35,
115 SlicerLayoutConventionalPlotView = 36,
116 SlicerLayoutFourUpPlotView = 37,
117 SlicerLayoutFourUpPlotTableView = 38,
118 SlicerLayoutOneUpPlotView = 39,
119 SlicerLayoutThreeOverThreePlotView = 40,
120 SlicerLayoutDicomBrowserView = 41,
123 SlicerLayoutMaximizedView = 98,
124 SlicerLayoutCustomView = 99,
125 SlicerLayoutUserView = 100
131 bool AddLayoutDescription(
int layout,
const char* layoutDescription);
136 bool SetLayoutDescription(
int layout,
const char* layoutDescription);
139 bool IsLayoutDescription(
int layout);
143 std::string GetLayoutDescription(
int layout);
150 vtkGetStringMacro(CurrentLayoutDescription);
153 vtkGetObjectMacro(LayoutRootElement, vtkXMLDataElement);
156 static vtkXMLDataElement* ParseLayout(
const char* description);
159 void UpdateCurrentLayoutDescription();
160 void SetAndParseCurrentLayoutDescription(
const char* description);
161 vtkSetStringMacro(CurrentLayoutDescription);
int NumberOfCompareViewLightboxRows
int BottomPanelVisibility
virtual void Reset(vtkMRMLNode *defaultNode)
Reset node attributes to the initial state as defined in the constructor or the passed default node...
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
vtkXMLDataElement * LayoutRootElement
virtual vtkMRMLNode * CreateNodeInstance()=0
Create instance of the default node. Like New only virtual.
Node that describes the view layout of the application.
std::map< int, std::string > Layouts
Abstract MRML node to represent a view. The class holds the properties common to any view type (3D...
int NumberOfCompareViewLightboxColumns
void operator=(const vtkMRMLAbstractLayoutNode &)
char * CurrentLayoutDescription
void ReadXMLAttributes(const char **atts) override
Set node attributes.
Node that describes the view layout of the application.
void Copy(vtkMRMLNode *node) override
Copy the node's attributes to this object.
Abstract Superclass for all specific types of MRML nodes.
void PrintSelf(ostream &os, vtkIndent indent) override
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
int CollapseSliceControllers
int NumberOfCompareViewRows
int NumberOfCompareViewColumns