View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003076 | Slicer4 | Module Editor | public | 2013-04-17 05:32 | 2017-06-07 23:27 |
Reporter | finetjul | Assigned To | finetjul | ||
Priority | normal | Severity | minor | Reproducibility | sometimes |
Status | closed | Resolution | fixed | ||
Product Version | Slicer 4.2.2-1 | ||||
Target Version | Fixed in Version | Slicer 4.4.0 | |||
Summary | 0003076: Editor doesn't update scalar range | ||||
Description | When editing a labelmap, the scalar range of the image can change. However, the scalar range from node->GetImageData()->GetPointData()->GetScalars()->GetScalarRange() stays the same. | ||||
Steps To Reproduce | Load an image and edit it in the Editor module Edit the labelmap with a label that would change the range | ||||
Additional Information | Call Modified() on the vtkImageData pointData scalars. | ||||
Tags | No tags attached. | ||||
I took the opportunity to make a single method to modify the relevant parts of the volume node and confirmed that the scalar range is updated. http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=21892 Unfortunately, the volume rendering colors still do not update, so I'm re-assigning this back to Julien. To reproduce:
|
|
Hi Julien - Did you have a chance to look at this? I was planning to add a volume rendering button in the editor but it won't make sense until this issue is resolved. Thanks, |
|
Hi Steve, |
|
Okay - thanks. Can you think of a way to reset it from the mrml level? That is, if I detect the scalar range has changed, could I remove the volume rendering nodes and re-add them? |
|
It might work. Another work-around would be to call Modified() on the color transfer function. That would refresh the volume rendering internals. |
|
No luck :( Also tried deleting and re-creating the nodes. Will need to keep thinking.... |
|
Fixed in r23027 |
|
Works great - thanks! |
|
Slicer: 2145-support-for-installing-extension-from-file c9b1e89b 2013-04-17 10:19:28 Details Diff |
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 |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-04-17 05:32 | finetjul | New Issue | |
2013-04-17 05:32 | finetjul | Status | new => assigned |
2013-04-17 05:32 | finetjul | Assigned To | => pieper |
2013-04-17 05:34 | finetjul | Steps to Reproduce Updated | |
2013-04-17 06:20 | pieper | Assigned To | pieper => finetjul |
2013-04-17 06:23 | pieper | Note Added: 0008422 | |
2013-04-17 06:23 | pieper | Status | assigned => feedback |
2013-05-01 11:33 | pieper | Note Added: 0008549 | |
2013-05-01 11:40 | finetjul | Note Added: 0008550 | |
2013-05-01 11:43 | pieper | Note Added: 0008551 | |
2013-05-01 11:46 | finetjul | Note Added: 0008552 | |
2013-05-01 12:04 | pieper | Note Added: 0008553 | |
2014-02-25 03:54 | pieper | Relationship added | related to 0003497 |
2014-03-27 04:28 | finetjul | Note Added: 0011467 | |
2014-03-27 04:28 | finetjul | Status | feedback => resolved |
2014-03-27 04:28 | finetjul | Fixed in Version | => Slicer 4.4.0 |
2014-03-27 04:28 | finetjul | Resolution | open => fixed |
2014-03-27 12:14 | finetjul | Relationship added | related to 0001477 |
2014-03-27 14:16 | pieper | Note Added: 0011475 | |
2014-03-27 14:16 | pieper | Status | resolved => closed |
2017-06-07 23:27 | pieper | Changeset attached | => Slicer 2145-support-for-installing-extension-from-file c9b1e89b |