21 #ifndef __vtkMRMLLayoutLogic_h 22 #define __vtkMRMLLayoutLogic_h 26 #include "vtkMRMLLogicExport.h" 34 class vtkXMLDataElement;
78 void PrintSelf(ostream& os, vtkIndent indent)
override;
86 virtual void AddDefaultLayouts();
91 vtkMRMLNode* GetViewFromElement(vtkXMLDataElement* element);
96 vtkCollection* GetViewsFromAttributes(
const ViewAttributes& attributes);
105 vtkGetObjectMacro(ViewNodes, vtkCollection);
120 void CreateMaximizedViewLayoutDescription(
int layout,
147 void UpdateViewNodes();
151 void UpdateLayoutNode();
157 void UpdateFromLayoutNode();
159 void UpdateViewCollectionsFromLayout();
160 void CreateMissingViews();
161 void CreateMissingViews(vtkXMLDataElement* layoutRootElement);
165 vtkCollection* GetViewsFromLayout(vtkXMLDataElement* root);
169 void UpdateCompareViewLayoutDefinitions();
172 vtkXMLDataElement* GetNextViewElement(vtkXMLDataElement* viewElement);
173 vtkXMLDataElement* GetNextElement(vtkXMLDataElement* element);
174 ViewAttributes GetViewElementAttributes(vtkXMLDataElement* viewElement)
const;
175 ViewProperties GetViewElementProperties(vtkXMLDataElement* viewElement)
const;
176 ViewProperty GetViewElementProperty(vtkXMLDataElement* viewProperty)
const;
Superclass for MRML logic classes.
std::vector< ViewProperty > ViewProperties
void PrintSelf(ostream &os, vtkIndent indent) override
MRML logic class for layout manipulation.
Node that describes the view layout of the application.
virtual void OnMRMLNodeModified(vtkMRMLNode *)
vtkMRMLLayoutNode * LayoutNode
Pointer on the unique Layout node of the mrml node.
Abstract MRML node to represent a view. The class holds the properties common to any view type (3D...
A set of MRML Nodes that supports serialization and undo/redo.
vtkCollection * ViewNodes
Up-to-date list of the nodes that are mapped into the scene.
virtual void UnobserveMRMLScene()
virtual void SetMRMLSceneInternal(vtkMRMLScene *newScene)
virtual void OnMRMLSceneEndRestore()
virtual void OnMRMLSceneStartRestore()
virtual void UpdateFromMRMLScene()
Abstract Superclass for all specific types of MRML nodes.
std::map< std::string, std::string > ViewAttributes
ViewAttributes ViewProperty
static vtkMRMLAbstractLogic * New()
vtkXMLDataElement * ConventionalLayoutRootElement
int LastValidViewArrangement