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

Author Committer Branch Timestamp Parent
lassoan lassoan master 2016-08-23 17:46:50 master b02e72e0
Changeset

ENH: Finished implementing undo/redo for Segment Editor

Undo/redo is now enabled by default.

Fixed modification event management for segmentation nodes. Displayable managers now observe segmentation node changes (there is no need for direct display refresh trigger from segmentation node).
Fixed restoring of segment colors from .seg.nrrd files.

Improved segment editor update speed:

  1. Only those representations will be re-generated where the master representation actually changed (e.g., if an empty part of a segment is "cleared" as a result of an editing operation, it no longer triggers a refresh on dependent representations)
  2. During saving undo state, those representations that has not changed compared to the last saved state are only shallow-copied from the previous saved state.

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

mod - Libs/MRML/Core/vtkMRMLSegmentationDisplayNode.cxx Diff File
mod - Libs/MRML/Core/vtkMRMLSegmentationDisplayNode.h Diff File
mod - Libs/MRML/Core/vtkMRMLSegmentationNode.cxx Diff File
mod - Libs/MRML/Core/vtkMRMLSegmentationNode.h Diff File
mod - Libs/MRML/Core/vtkMRMLSegmentationStorageNode.cxx Diff File
mod - Libs/MRML/Core/vtkMRMLSegmentationStorageNode.h Diff File
mod - Libs/vtkSegmentationCore/vtkOrientedImageDataResample.cxx Diff File
mod - Libs/vtkSegmentationCore/vtkOrientedImageDataResample.h Diff File
mod - Libs/vtkSegmentationCore/vtkSegment.cxx Diff File
mod - Libs/vtkSegmentationCore/vtkSegment.h Diff File
mod - Libs/vtkSegmentationCore/vtkSegmentation.cxx Diff File
mod - Libs/vtkSegmentationCore/vtkSegmentation.h Diff File
mod - Libs/vtkSegmentationCore/vtkSegmentationHistory.cxx Diff File
mod - Libs/vtkSegmentationCore/vtkSegmentationHistory.h Diff File
mod - Modules/Loadable/Segmentations/EditorEffects/Python/SegmentEditorIdentifyIslandsEffect.py Diff File
mod - Modules/Loadable/Segmentations/Logic/vtkSlicerSegmentationsModuleLogic.cxx Diff File
mod - Modules/Loadable/Segmentations/MRMLDM/vtkMRMLSegmentationsDisplayableManager2D.cxx Diff File
mod - Modules/Loadable/Segmentations/MRMLDM/vtkMRMLSegmentationsDisplayableManager3D.cxx Diff File
mod - Modules/Loadable/Segmentations/Widgets/qMRMLSegmentEditorWidget.cxx Diff File
mod - Modules/Loadable/Segmentations/Widgets/qMRMLSegmentationRepresentationsListView.cxx Diff File
mod - Modules/Loadable/Segmentations/qSlicerSegmentationsModuleWidget.cxx Diff File