1 #ifndef __vtkMRMLLayoutNode_h 2 #define __vtkMRMLLayoutNode_h 7 class vtkXMLDataElement;
19 void PrintSelf(ostream& os, vtkIndent indent)
override;
29 void WriteXML(ostream& of,
int indent)
override;
35 vtkGetMacro(ViewArrangement,
int);
36 virtual void SetViewArrangement(
int);
38 vtkGetMacro(GUIPanelVisibility,
int);
39 vtkSetMacro(GUIPanelVisibility,
int);
41 vtkGetMacro(BottomPanelVisibility,
int);
42 vtkSetMacro(BottomPanelVisibility,
int);
45 vtkGetMacro(GUIPanelLR,
int);
46 vtkSetMacro(GUIPanelLR,
int);
49 vtkGetMacro(CollapseSliceControllers,
int);
50 vtkSetMacro(CollapseSliceControllers,
int);
53 vtkGetMacro(NumberOfCompareViewRows,
int);
54 vtkSetClampMacro(NumberOfCompareViewRows,
int, 1, 50);
55 vtkGetMacro(NumberOfCompareViewColumns,
int);
56 vtkSetClampMacro(NumberOfCompareViewColumns,
int, 1, 50);
59 vtkGetMacro(NumberOfCompareViewLightboxRows,
int);
60 vtkSetClampMacro(NumberOfCompareViewLightboxRows,
int, 1, 50);
61 vtkGetMacro(NumberOfCompareViewLightboxColumns,
int);
62 vtkSetClampMacro(NumberOfCompareViewLightboxColumns,
int, 1, 50);
66 vtkGetMacro(MainPanelSize,
int);
67 vtkSetMacro(MainPanelSize,
int);
68 vtkGetMacro(SecondaryPanelSize,
int);
69 vtkSetMacro(SecondaryPanelSize,
int);
72 vtkGetStringMacro(SelectedModule);
73 vtkSetStringMacro(SelectedModule);
80 SlicerLayoutInitialView = 0,
81 SlicerLayoutDefaultView = 1,
82 SlicerLayoutConventionalView = 2,
83 SlicerLayoutFourUpView = 3,
84 SlicerLayoutOneUp3DView = 4,
85 SlicerLayoutOneUpSliceView = 5,
86 SlicerLayoutOneUpRedSliceView = 6,
87 SlicerLayoutOneUpYellowSliceView = 7,
88 SlicerLayoutOneUpGreenSliceView = 8,
89 SlicerLayoutTabbed3DView = 9,
90 SlicerLayoutTabbedSliceView = 10,
91 SlicerLayoutLightboxView = 11,
92 SlicerLayoutCompareView = 12,
93 SlicerLayoutSideBySideLightboxView = 13,
94 SlicerLayoutNone = 14,
95 SlicerLayoutDual3DView = 15,
96 SlicerLayoutConventionalWidescreenView = 16,
97 SlicerLayoutCompareWidescreenView = 17,
98 SlicerLayoutSingleLightboxView = 18,
99 SlicerLayoutTriple3DEndoscopyView = 19,
100 SlicerLayout3DPlusLightboxView = 20,
101 SlicerLayoutThreeOverThreeView = 21,
102 SlicerLayoutFourOverFourView = 22,
103 SlicerLayoutCompareGridView = 23,
104 SlicerLayoutConventionalQuantitativeView = 24,
105 SlicerLayoutFourUpQuantitativeView = 25,
106 SlicerLayoutOneUpQuantitativeView = 26,
107 SlicerLayoutTwoOverTwoView = 27,
108 SlicerLayoutThreeOverThreeQuantitativeView = 28,
109 SlicerLayoutSideBySideView = 29,
110 SlicerLayoutFourByThreeSliceView = 30,
111 SlicerLayoutFourByTwoSliceView = 31,
112 SlicerLayoutFiveByTwoSliceView = 32,
113 SlicerLayoutThreeByThreeSliceView = 33,
114 SlicerLayoutFourUpTableView = 34,
115 SlicerLayout3DTableView = 35,
116 SlicerLayoutConventionalPlotView = 36,
117 SlicerLayoutFourUpPlotView = 37,
118 SlicerLayoutFourUpPlotTableView = 38,
119 SlicerLayoutOneUpPlotView = 39,
120 SlicerLayoutThreeOverThreePlotView = 40,
121 SlicerLayoutDicomBrowserView = 41,
124 SlicerLayoutMaximizedView = 98,
125 SlicerLayoutCustomView = 99,
126 SlicerLayoutUserView = 100
132 bool AddLayoutDescription(
int layout,
const char* layoutDescription);
137 bool SetLayoutDescription(
int layout,
const char* layoutDescription);
140 bool IsLayoutDescription(
int layout);
144 std::string GetLayoutDescription(
int layout);
151 vtkGetStringMacro(CurrentLayoutDescription);
154 vtkGetObjectMacro(LayoutRootElement, vtkXMLDataElement);
157 static vtkXMLDataElement* ParseLayout(
const char* description);
160 void UpdateCurrentLayoutDescription();
161 void SetAndParseCurrentLayoutDescription(
const char* description);
162 vtkSetStringMacro(CurrentLayoutDescription);
int NumberOfCompareViewLightboxRows
int BottomPanelVisibility
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
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