Import 2017-06-07 23:51:09: master 900b422a

Author Committer Branch Timestamp Parent
pinter pinter master 2017-03-07 15:55:28 master 158a7a72
Changeset

ENH: Add backward compatibility support for old scenes containing SH

New node type vtkMRMLSubjectHierarchyLegacyNode is introduced, into which the subject hierarchy nodes from old MRML scenes are loaded, so that their information can be accessed and the hierarchy reconstructed. The new subject hierarchy nodes write a subject hierarchy version node attribute into the MRML scene on exporting. Most functions of the old subject hierarchy node were removed in the legacy node, and nly those methods are kept in this node from the old one that may be necessary to extract or use information loaded into this not and are not propagated into the new hierarchy (such as UIDs). Also, nested association support is also removed (because it never became completely stable), so if a scene is loaded where a data node is associated to the subject hierarchy node using nested association, then that node will not be properly represented in the hierarchy.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@25760 3bd1e089-480b-0410-8dfb-8563597acbee

mod - Libs/MRML/Core/CMakeLists.txt Diff File
mod - Libs/MRML/Core/vtkMRMLParser.cxx Diff File
add - Libs/MRML/Core/vtkMRMLSubjectHierarchyLegacyNode.cxx Diff File
add - Libs/MRML/Core/vtkMRMLSubjectHierarchyLegacyNode.h Diff File
mod - Libs/MRML/Core/vtkMRMLSubjectHierarchyNode.cxx Diff File
mod - Libs/MRML/Core/vtkMRMLSubjectHierarchyNode.h Diff File
mod - Modules/Loadable/SubjectHierarchy/Widgets/qSlicerSubjectHierarchyFolderPlugin.cxx Diff File