Hi,

set the "visible" property in the generic property list of your data node to 
false and set it in the renderer specific property list to true. mitk::DataNode 
also has a convenience method for setting the "visible" property, for example:


yourDataNode->SetVisibility(false); // Make data node invisible in all render 
windows


auto renderer3d = 
mitk::BaseRenderer::GetInstance(mitk::BaseRenderer::GetRenderWindowByName("stdmulti.widget4"));
 // Get renderer of the 3d render window
yourDataNode->SetVisibility(true,  renderer3d); // Override visibility only in 
specific property list


You can also do this in the GUI by activating the developer mode of the 
Properties View in the Preferences (Ctrl+P). Then you can switch between all 
the property lists of a data node in the Properties View. The renderer specific 
lists are probably empty but you can add a bool property called "visible" when 
clicking on the "Add" button.


Best,

Stefan


________________________________
Von: shaowen li <armdlishao...@gmail.com>
Gesendet: Freitag, 4. Mai 2018 14:44
An: mitk-users@lists.sourceforge.net
Betreff: [mitk-users] datanode display

Hi,
  How to display a datanode only in a render window? Look forward to your reply!
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to