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

Author Committer Branch Timestamp Parent
lassoan lassoan master 2016-08-16 12:41:52 master 296190a2
Changeset

BUG: Fixed problems in segmentation master repr switch

Store master representation in std::string instead of char. It makes code simpler and safer (NULL-pointer check for char was missing at many places).
Don't reset or change master representation in vtkSegmentation. When switching or changes is useful for user's convenience, it is done in GUI and logic classes.
Fixed bugs of deleting closed surface representation in Segment Editor module when that was the master representation.
Made temporary master representation observation disabling more robust (now the previous state is restored instead of always enabling after it was temporarily disabled).
Changed a few warning messages to debug message (it may be normal to have empty segments).

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

mod - Libs/MRML/Core/vtkMRMLSegmentationDisplayNode.cxx Diff File
mod - Libs/MRML/Core/vtkMRMLSegmentationNode.cxx Diff File
mod - Libs/MRML/Core/vtkMRMLSegmentationStorageNode.cxx Diff File
mod - Libs/vtkSegmentationCore/vtkBinaryLabelmapToClosedSurfaceConversionRule.cxx Diff File
mod - Libs/vtkSegmentationCore/vtkClosedSurfaceToBinaryLabelmapConversionRule.cxx Diff File
mod - Libs/vtkSegmentationCore/vtkSegmentation.cxx Diff File
mod - Libs/vtkSegmentationCore/vtkSegmentation.h Diff File
mod - Modules/Loadable/Segmentations/Logic/vtkSlicerSegmentationsModuleLogic.cxx Diff File
mod - Modules/Loadable/Segmentations/SubjectHierarchyPlugins/qSlicerSubjectHierarchySegmentationsPlugin.cxx Diff File
mod - Modules/Loadable/Segmentations/SubjectHierarchyPlugins/qSlicerSubjectHierarchySegmentsPlugin.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