Slicer: 2145-support-for-installing-extension-from-file c9b1e89b

Author Committer Branch Timestamp Parent
pieper pieper 2145-support-for-installing-extension-from-file 2013-04-17 10:19:28 2145-support-for-installing-extension-from-file 9d396cb1
Affected Issues 0003076: Editor doesn't update scalar range
Changeset

BUG: 0003076 make sure scalar range is updated after edit operations.

This new method unifies the updating of the image data and volume
node to trigger rendering. By calling modified on the point scalars,
this GetScalarRange call returns the correct data.

http://na-mic.org/Bug/view.php?id=3076

This is confirmed by looking at the results of the call after
editing in new colors as shown below.

l = getNode('*label')
l
(vtkMRMLScalarVolumeNode)0x131766ba8
l.GetImageData().GetScalarRange()
(0.0, 15.0)
l.GetImageData().GetScalarRange()
(0.0, 18.0)

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

mod - Modules/Scripted/EditorLib/EditUtil.py Diff File
mod - Modules/Scripted/EditorLib/Effect.py Diff File
mod - Modules/Scripted/EditorLib/FastMarchingEffect.py Diff File
mod - Modules/Scripted/EditorLib/HelperBox.py Diff File
mod - Modules/Scripted/EditorLib/LabelEffect.py Diff File
mod - Modules/Scripted/EditorLib/PaintEffect.py Diff File
mod - Modules/Scripted/EditorLib/ThresholdEffect.py Diff File
mod - Modules/Scripted/EditorLib/WandEffect.py Diff File