View Issue Details

IDProjectCategoryView StatusLast Update
0004187Slicer4Core: MRMLpublic2016-07-18 16:33
Reportercriskross Assigned Tomayeul.chassagnard  
PriorityhighSeverityminorReproducibilityalways
Status feedbackResolutionopen 
PlatformOSOSYosemiteOS Version10.10
Product Version 
Target VersionFixed in Version 
Summary0004187: vtkMRMLDisplayNode - RemoveViewNodeID does not work.
Description

Take whatever fiducial or model and get its displayNode,

I tried it with model and fiducial, but calling the method seems to have no effect. The display options in the markups module don't change in any way.

Steps To Reproduce

The easiest way is to create fiducials and use the markups module to observer the display attributes for the fiducial list.

For removing a slice view from displaying the current node:

displayNode = node.GetDisplayNode()
if displayNode:
displayNode.RemoveAllViewNodeIDs()
displayNode.RemoveViewNodeID(sliceNode.GetID())

Additional Information

Using AddViewNodeID... works as expected

TagsNo tags attached.

Relationships

related to 0003476 closedjcfr Display the slice(s) in one 3D view and not another 

Activities

jcfr

jcfr

2016-07-18 16:02

administrator   ~0014042

Last edited: 2016-07-18 16:04

View 4 revisions

Note: By default display node are visible in all views

Here is what we tried:

  • Load MRHead
  • Open editor, paint on one slice
  • Create a model using ModelMaker
  • Then open python interactor:

<pre>
mn = getNode('vtkMRMLModelNode4')
dmn = mn.GetDisplayNode()
dmn.AddViewNodeID('vtkMRMLViewNode1') # Model is now only visible in left 3D view
dmn.AddViewNodeID('vtkMRMLViewNode2') # Model is now visible in the two 3D view
dmn.RemoveViewNodeID('vtkMRMLViewNode2') # Model is now only visible in left 3D view
dmn.RemoveViewNodeID('vtkMRMLViewNode1') # model is now visible in all views
dmn.AddViewNodeID('vtkMRMLViewNode1') # Model is now only visible in left 3D view
dmn.RemoveAllViewNodeIDs() # Model is now visible in all views
</pre>

Based on that experiment, function "RemoveAllViewNodeIDs" is working as expected.

Now, could you clarify what you mean by "The display options in the markups module don't change in any way." ?

Issue History

Date Modified Username Field Change
2016-05-10 13:15 criskross New Issue
2016-05-10 13:15 criskross Status new => assigned
2016-05-10 13:15 criskross Assigned To => alexy
2016-07-18 12:28 jcfr Assigned To alexy => mayeul.chassagnard
2016-07-18 16:02 jcfr Note Added: 0014042
2016-07-18 16:03 jcfr Note Edited: 0014042 View Revisions
2016-07-18 16:03 jcfr Note Edited: 0014042 View Revisions
2016-07-18 16:04 jcfr Note Edited: 0014042 View Revisions
2016-07-18 16:04 jcfr Status assigned => feedback
2016-07-18 16:33 jcfr Relationship added related to 0003476