Slicer: 490-qMRMLSceneHierarchyModel-avoid-extra-scene-lookup 94c1b41f

Author Committer Branch Timestamp Parent
naucoin naucoin 490-qMRMLSceneHierarchyModel-avoid-extra-scene-lookup 2016-03-31 13:46:14 490-qMRMLSceneHierarchyModel-avoid-extra-scene-lookup 9d2df083
Changeset

ENH: Allow setting color node when loading volumes

Add support to pick a non default color node when loading in a volume
via python or the Add Data widget.

In the volumes reader, check for a new property, colorNodeID, and use it to
set the color node information on the volume's display node after reading.

This can be used from python:

properties = {}
properties['colorNodeID'] = 'vtkMRMLColorTableNodeWarm1'
slicer.util.loadVolume(fileName, properties)

Added a color table node selector to the Volumes module IO widget. Set the
default color nodes via the color logic pointer, for label maps and
greyscales. Pass the colorNodeID property to the Volumes IO reader.
Added testing the color node setting to the widget test.

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

mod - Modules/Loadable/Volumes/Resources/UI/qSlicerVolumesIOOptionsWidget.ui Diff File
mod - Modules/Loadable/Volumes/Testing/Cxx/qSlicerVolumesIOOptionsWidgetTest1.cxx Diff File
mod - Modules/Loadable/Volumes/qSlicerVolumesIOOptionsWidget.cxx Diff File
mod - Modules/Loadable/Volumes/qSlicerVolumesIOOptionsWidget.h Diff File
mod - Modules/Loadable/Volumes/qSlicerVolumesReader.cxx Diff File