On 02.11.2012 14:24, matthieu dumont wrote:
> Hi,
>
> I have multiple viewports rendering  in different sections of a single
> RenderWindow. I tired adding a /vtkMitkRectangleProp /to some of the
> renderers but it seems to have trouble rendering properly in any
> renderer with viewport % set to anything other than 100%.
>
> This image is an example where I have 4 viewports in 1 render window.
> http://imgur.com/OMlvp
>
> The bottom left viewport has a /vtkMitkRectangleProp /but fails to
> render 2 out of 4 borders.
>
> So im wondering, is /vtkMitkRectangleProp /only usable with one
> renderer(viewport) per RenderWindow or am I doing it wrong?
>
> Thanks!

Hi Matthieu,

by accident I stumbled over the same problem some days ago. I wanted to 
use MITK rendering only in a small part (viewport) of a render window. 
If you modify the viewport of the vtkRenderer by SetViewport(..), this 
seems to work fine with all VTK mappers. For the few OpenGL mappers in 
MITK I had to implement a fix:

http://bugs.mitk.org/show_bug.cgi?id=13543

This basically scales the OpenGL mapper outputs into the defined 
viewport. Comments on this fix are very welcome.

I didn't check how vtkMitkRectangleProp is integrated into rendering but 
I find the same OpenGL code pieces which were wrong in the bug I fixed 
(the lines around glOrtho()). You could try if a fix similar to mine 
will help you (and then file a bug and patch if you want).

Kind regards
Daniel

-- 
Dr. Daniel Maleike                           Telefon: + 49 6221 647976 3
Mint Medical GmbH, Friedrich-Ebert-Straße 2, 69221 Dossenheim/Heidelberg
Geschäftsführer: Dr. Matthias Baumhauer
Registergericht Mannheim, HRB 709351

------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to