1 #ifndef __vtkMRMLLayoutNode_h 2 #define __vtkMRMLLayoutNode_h 7 class vtkXMLDataElement;
19 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
26 virtual
void ReadXMLAttributes( const
char** atts) VTK_OVERRIDE;
29 virtual
void WriteXML(ostream& of,
int indent) VTK_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);
76 virtual const
char* GetNodeTagName() VTK_OVERRIDE {
return "Layout";}
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,
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
vtkXMLDataElement * LayoutRootElement
void operator=(const vtkMRMLNode &)
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
char * CurrentLayoutDescription
Abstract Superclass for all specific types of MRML nodes.
int CollapseSliceControllers
int NumberOfCompareViewRows
int NumberOfCompareViewColumns