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,
144 void UpdateViewNodes();
148 void UpdateLayoutNode();
154 void UpdateFromLayoutNode();
156 void UpdateViewCollectionsFromLayout();
157 void CreateMissingViews();
158 void CreateMissingViews(vtkXMLDataElement* layoutRootElement);
162 vtkCollection* GetViewsFromLayout(vtkXMLDataElement* root);
166 void UpdateCompareViewLayoutDefinitions();
169 vtkXMLDataElement* GetNextViewElement(vtkXMLDataElement* viewElement);
170 vtkXMLDataElement* GetNextElement(vtkXMLDataElement* element);
171 ViewAttributes GetViewElementAttributes(vtkXMLDataElement* viewElement)
const;
172 ViewProperties GetViewElementProperties(vtkXMLDataElement* viewElement)
const;
173 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