View Issue Details

IDProjectCategoryView StatusLast Update
0001629Slicer4Module SceneViewspublic2014-03-06 06:09
Reporterkikinis Assigned Tonicole  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformMACOSOS XOS Version10.7.2
Product VersionSlicer 4.0.0 
Target VersionSlicer 4.2.0Fixed in VersionSlicer 4.2.0 
Summary0001629: different sceneviews available depending on how a scene is loaded
Description

2011-11-11-NeuroDTI in Rons examples. Scene called Ademo
When I load this scene through the add data icon in the welcome module, all sceneviews are shown correctly. When loading the same scene through the mrml icon in the upper left of the main gui, one view is missing.

TagsNo tags attached.

Relationships

related to 0001887 closedfinetjul sceneview roundtrip problem with LUT and with VR 

Activities

2011-12-15 01:54

 

2011-12-15 01:54

 

kikinis

kikinis

2011-12-15 02:00

developer   ~0003447

There are two problems here:

  1. Clearly, the mrml files do not get loaded by the same code depending on what place you load them from. We should have only one way to load a scene and it should be accessed from all the interfaces that offer to do this.
  2. How is it possible, that only one sceneview is missing?

BTW: in both cases I started slicer, loaded the scene and took the snapshot. I did not use close scene.

pieper

pieper

2011-12-15 03:13

administrator   ~0003448

Possible clue: I believe AddData is importing into the existing scene while Load Scene closes the old scene first.

kikinis

kikinis

2011-12-15 05:34

developer   ~0003450

As noted above, I exited and restarted slicer before loading the scene in both cases.

finetjul

finetjul

2012-03-12 17:27

administrator   ~0003848

If I don't hide the scene, it appears that the last scene view node is not inside the top level hierarchy node

2012-03-12 17:27

 

nicole

nicole

2012-03-14 07:25

administrator   ~0003863

You should see the same behaviour using the Welcome module Load Data button (or File -> Add Data) as you would see using File -> Import Scene. File -> Load Scene closes the current scene first and then calls Import, and since we were having some scene close issues, fixing those might have resolved this problem slightly.

Looking at the data in question, the mrml file shows the VirtualProbe storage node (vtkMRMLSceneViewStorageNode12) inside of a scene view (Master Scene View) as well as being it's own top level scene view with it's own storage node with the same id. I don't think that storing a scene is supposed to store scene view nodes, I think I fixed a related bug a while back, but the mrml file ADemo.mrml isn't showing a revision number.

nicole

nicole

2012-03-14 08:08

administrator   ~0003864

svn 19603 fixes import, restore, close crash

nicole

nicole

2012-03-14 08:28

administrator   ~0003865

Looking more closely at the ADemo.mrml file, there are hierarchy nodes that are missing the pointers to their associated nodes. Nothing's pointing to the VirutalProbe scene view, so it's not showing up in the Scene Views tree on Scene Load. It shows up in the list of scene views available to restore from the tool bar along the top because that just scans the scenes for scene view nodes and doesn't need the hierarchy nodes.

I could write some code that after scene import is done, it makes sure that scene view nodes all have hierarchy nodes, but I'd rather that the mrml scene file was updated to be correct (attached to this bug).

2012-03-14 08:29

 

ADemo.mrml (332,848 bytes)

Issue History

Date Modified Username Field Change
2011-12-15 01:54 kikinis New Issue
2011-12-15 01:54 kikinis Status new => assigned
2011-12-15 01:54 kikinis Assigned To => finetjul
2011-12-15 01:54 kikinis File Added: Screen Shot 2011-12-15 at 6.48.41 AM.png
2011-12-15 01:54 kikinis File Added: Screen Shot 2011-12-15 at 6.47.36 AM.png
2011-12-15 02:00 kikinis Note Added: 0003447
2011-12-15 03:13 pieper Note Added: 0003448
2011-12-15 05:34 kikinis Note Added: 0003450
2012-03-12 17:27 finetjul Note Added: 0003848
2012-03-12 17:27 finetjul File Added: sceneviewnotintoplevelhierarchynode.png
2012-03-12 17:27 finetjul Assigned To finetjul => nicole
2012-03-14 07:25 nicole Note Added: 0003863
2012-03-14 08:08 nicole Note Added: 0003864
2012-03-14 08:28 nicole Note Added: 0003865
2012-03-14 08:29 nicole File Added: ADemo.mrml
2012-04-06 07:03 finetjul Category Base Code => Scene Views
2012-04-10 10:59 finetjul Relationship added related to 0001887
2012-08-20 10:11 nicole Status assigned => resolved
2012-08-20 10:11 nicole Resolution open => fixed
2012-08-21 11:32 jcfr Target Version => Slicer 4.2.0 - Feature freeze Sept 1st 2012
2012-09-15 09:58 kikinis Status resolved => closed
2014-03-06 06:09 jcfr Fixed in Version => Slicer 4.2.0