View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000971 | Slicer3 | Base Code | public | 2010-09-12 07:23 | 2010-10-12 09:38 |
Reporter | pohl | Assigned To | alexy | ||
Priority | urgent | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | OS | Ubutnu 9.10 64 bit | OS Version | ||
Summary | 0000971: Scene import does not work correctly | ||||
Description | Scene import does not work correctly when nodes in the mrml file reference a node whose ID is getting changed to an ID that also already exist in the mrml file | ||||
Steps To Reproduce |
| ||||
Additional Information | Here is what happens: when slicer imports the file then it detects that the id vtkMRMLScalarVolumeNode1 already exists in the scene and thus changes the id of the node in the file to vtkMRMLScalarVolumeNode2 as well as adding it to ReferencedIDChanges in vtkMRMLScene::AddNodeNoNotify . Now, in vtkMRMLScene::UpdateNodeReferences the reference of vtkMRMLEMSAtlasNode1 is changed from vtkMRMLScalarVolumeNode1 to vtkMRMLScalarVolumeNode2. When slicer now imports vtkMRMLScalarVolumeNode2 from the file, it detects that this id already exists in the scene too. It repeats the previous procedure. The reference of vtkMRMLEMSAtlasNode1 that pointed in the file to ID vtkMRMLScalarVolumeNode1 and was changed to vtkMRMLScalarVolumeNode2 is now changed again to vtkMRMLScalarVolumeNode3 which is not the original volume anymore! This is repeated until a unique id is found that is not changed anymore ! That is why all of vtkMRMLEMSAtlasNode1 references now point to the same id , which is vtkMRMLScalarVolumeNode5 | ||||
Tags | No tags attached. | ||||
2010-09-12 07:23
|
MRIHumanBrain.tar (102,400 bytes) |
Kilian, could you attach the original scene and scene you are trying to import? |
|
2010-10-08 06:54
|
SceneBug971.tar (112,640 bytes) |
See SceneBug971.tar - You can also simply load in any volume and then import SceneToImport |
|
Fixed on Slicer3 trunk: |
|
Yes - it seems to work now - thanks Kilian |
|
Checked in into Slicer3.6 and Slicer4 branches. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2010-09-12 07:23 | pohl | New Issue | |
2010-09-12 07:23 | pohl | File Added: MRIHumanBrain.tar | |
2010-09-14 12:28 | pohl | Status | new => assigned |
2010-09-14 12:28 | pohl | Assigned To | => alexy |
2010-10-07 12:43 | alexy | Note Added: 0002045 | |
2010-10-08 06:54 | pohl | File Added: SceneBug971.tar | |
2010-10-08 06:55 | pohl | Note Added: 0002050 | |
2010-10-08 07:39 | alexy | Note Added: 0002051 | |
2010-10-08 07:39 | alexy | Status | assigned => resolved |
2010-10-08 07:39 | alexy | Resolution | open => fixed |
2010-10-11 13:39 | pohl | Note Added: 0002056 | |
2010-10-12 09:38 | alexy | Note Added: 0002058 | |
2010-10-12 09:38 | alexy | Status | resolved => closed |