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

Author Committer Branch Timestamp Parent
naucoin naucoin master 2014-04-11 17:44:58 master 823eefac
Affected Issues 0003573: Model scalar display: lookup table scalar range option
Changeset

ENH: Expand scalar range options

Add the ScalarRangeFlag on the display node, test it, use it in the Model
display node.
Provide a GUI interface for it in the Models Scalars GUI.
Use it in the model displayable manager.
Separate out the auto scalar range setting from updating the poly data
in the model display node.

This expands the options from just using the scalar range of the data
to allowing the user to select using the scalar range defined on the
display node, the range on the color node, or the range of the data
type (use this last with caution, TBD: readjusting the minimum and
maximum values allowed on the range slider). Keeps the default
behaviour of AutoScalarRange and Data. The interaction of Auto/Manual
and the range flags might need some tweaking.
Also keeps the deep copy of the color look up table in the model displayable
manager - monitor for performance issues.
Expands the model displayable manager to work with procedural color nodes,
this required copying the color transfer function to a look up table to
support setting the range. Using a table with 256 entries for now.
UI full change due to having to run dos2unix on it to get it commited
to git without whitespace errors.

Issue 0003573

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

mod - Libs/MRML/Core/vtkMRMLCoreTestingMacros.h Diff File
mod - Libs/MRML/Core/vtkMRMLDisplayNode.cxx Diff File
mod - Libs/MRML/Core/vtkMRMLDisplayNode.h Diff File
mod - Libs/MRML/Core/vtkMRMLModelDisplayNode.cxx Diff File
mod - Libs/MRML/DisplayableManager/vtkMRMLModelDisplayableManager.cxx Diff File
mod - Modules/Loadable/Models/Widgets/Resources/UI/qMRMLModelDisplayNodeWidget.ui Diff File
mod - Modules/Loadable/Models/Widgets/qMRMLModelDisplayNodeWidget.cxx Diff File
mod - Modules/Loadable/Models/Widgets/qMRMLModelDisplayNodeWidget.h Diff File