Import 2017-06-07 23:51:09: master 4f65338f

Author Committer Branch Timestamp Parent
naucoin naucoin master 2015-09-29 17:48:02 master 808c8e68
Affected Issues 0003956: Repeated saves of MRBs cause corruption
Changeset

BUG: fix volume property file extensions for saving

When fixing the repeated file extensions problem, the
volume property files were missed. The problem
came up when loading in a volume property file
via add data (rather than a scene file) then
trying to save it again. The node was named with
the .vp file extension and then the file name
was adjusted to add another .vp to the end. This
fix changes the the name of the node to exclude
the extension so it will save correctly.

Added testing for the AddVolumePropertyFromFile
method and added some checks to it for missing
scene and file names. Added the supported
write types as well.

Issue 0003956

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

mod - Modules/Loadable/VolumeRendering/Logic/Testing/Cxx/CMakeLists.txt Diff File
add - Modules/Loadable/VolumeRendering/Logic/Testing/Cxx/vtkSlicerVolumeRenderingLogicAddFromFileTest.cxx Diff File
mod - Modules/Loadable/VolumeRendering/Logic/vtkSlicerVolumeRenderingLogic.cxx Diff File
mod - Modules/Loadable/VolumeRendering/MRML/vtkMRMLVolumePropertyStorageNode.cxx Diff File
mod - Modules/Loadable/VolumeRendering/MRML/vtkMRMLVolumePropertyStorageNode.h Diff File