Import 2017-06-07 23:51:09: master f7c1e39f

Author Committer Branch Timestamp Parent
pinter pinter master 2017-05-26 14:51:46 master 5b50bc97
Changeset

BUG: Fixed various subject hierarchy issues

  • When the subject hierarchy node was removed programmatically, then subject hierarchy was not rebuilt, and became unusable. It's because vtkCommand::Delete was not called when removing it from python, as a reference from the console was still around, so vtkMRMLScene::NodeRemovedEvent is observed instead. Also plugin logic explicitly rebuilds the new subject hierarchy node when the original one was removed
  • Added checks and removed unnecessary calls to remove unnecessary warning messages

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

mod - Libs/MRML/Core/vtkMRMLSubjectHierarchyNode.cxx Diff File
mod - Modules/Loadable/SubjectHierarchy/Widgets/qMRMLSubjectHierarchyComboBox.cxx Diff File
mod - Modules/Loadable/SubjectHierarchy/Widgets/qMRMLSubjectHierarchyModel.cxx Diff File
mod - Modules/Loadable/SubjectHierarchy/Widgets/qMRMLSubjectHierarchyModel.h Diff File
mod - Modules/Loadable/SubjectHierarchy/Widgets/qSlicerSubjectHierarchyPluginHandler.cxx Diff File
mod - Modules/Loadable/SubjectHierarchy/Widgets/qSlicerSubjectHierarchyPluginHandler.h Diff File
mod - Modules/Loadable/SubjectHierarchy/Widgets/qSlicerSubjectHierarchyPluginLogic.cxx Diff File
mod - Modules/Loadable/SubjectHierarchy/Widgets/qSlicerSubjectHierarchyPluginLogic.h Diff File
mod - Modules/Loadable/SubjectHierarchy/qSlicerSubjectHierarchyModule.cxx Diff File
mod - Modules/Loadable/Volumes/SubjectHierarchyPlugins/qSlicerSubjectHierarchyVolumesPlugin.cxx Diff File