Hello Rocío,

How do you “load files”? Typically you won’t load files (images) into a multi 
widget or a render window but into the data storage. The content of the data 
storage is then represented by the data manager (typically the workbench part 
on the leftmost side of the MITK workbench).
Is the MRI image visible in both multi widgets, if you just load it alone?

What do you mean with “Reset View”? Using the “Reset View” option from the 
top-right render window menu? This should trigger a so-called “Global Reinit”, 
which is also available in the context-menu of data nodes in the data manager. 
This will initialize the views to the bounding box of all images inside the 
data storage. However, depending on the origin and geometry of your images you 
might not be able to see both images simultaneously.

There is a possibility to circumvent this issue using “renderer specific 
property lists”. You can look into the RenderWindowManager module (e.g. here: 
https://phabricator.mitk.org/source/mitk/browse/master/Modules/RenderWindowManager/src/mitkRenderWindowLayerController.cpp;48733f55943c98170b2339eb85503edc4d5052d8$120-161)
 to see how you can define a data node to be visible in a renderer specific 
property list.
Using a renderer specific property list will allow you to show different nodes 
with different renderer (inside a render window).
Here 
https://phabricator.mitk.org/source/mitk/browse/master/Modules/RenderWindowManager/src/mitkRenderWindowViewDirectionController.cpp;48733f55943c98170b2339eb85503edc4d5052d8$83-110
 you can see how the view of a renderer is initialized only with the bounding 
geometries of the images that are currently visible inside the renderer.

Best,
Amir

From: LOPEZ VELAZCO, ROCIO [mailto:[email protected]]
Sent: Thursday, 15 March, 2018 11:27
To: [email protected]
Subject: [mitk-users] Update different QmitkStdMultiWidget in same app

Hello all,
I am developing a MITK based application which has two tabs with two different 
QmitkStdMultiWidget . The first one is to show a MRI Image and the second one 
is to show a US image. The button "load files" is in the first tab. When images 
are loaded only the first QmitkStdMultiWidget shows the image, to be able to 
see the US in second tab I have to manually do "Reset View". This allows me to 
show US image but then MRI image "disappears" in the first QmitkStdMultiWidget. 
It seems that I can't show both tabs updated at the same time...
Would you have any hint with this? Does it have something to do with the 
Rendering Manager? I would be grateful if you could help me!
Thank you very much in advance!
Best regards,
Rocío

--

Rocío López Velazco

SimbioSYS group, BCN MedTech

UniversityPompeu Fabra

Department of Information and Communication Technologies
Roc Boronat, 122 (Tànger Building),  08018 Barcelona
Office 55 119
https://bcn-medtech.upf.edu/



------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to