On 09.05.2012 15:58, Rodgers, Chris M wrote:
> Hi everyone,
>
> I have two StdMultiWidgets between which I am trying to synchronize
> their views. I am able to synchronize the camera for both 3D views,
> however I cannot do the same for the 2D views in the same manner. It
> appears the camera control for both view types are completely unrelated.
>
> How would I acquire the camera information of one 2D view and apply it
> to another, such as for the zoom?
>
> Thanks again for any help you can provide on this.
>

Dear Chris,

to fully synchronize two sets of render windows (like StdMultiWidget), 
you would want to sync two properties of the associated BaseRenderer objects
  - their DisplayGeometries, which define
    - view direction
    - zoom factor
    - viewport (origin + extent)
  - their WorldGeometries, which define
    - visible part of the world (clipping)

This could be achieved by creating an observer object for the 
BaseRenderer's SliceNavigationController instance, which sends ITK 
events whenever a geometry changes. You would need to interpret the 
changes and adapt the second viewport appropriately.

All above assumes that all your render windows show the same set of 
images/surfaces/.. If this is not true, additional syncing would be 
needed to display the same items.

I don't know of any current activity in MITK to solve syncing issues in 
a general way, but I guess above notes might help you to find the rights 
parts to implement what you need.

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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to