This should return the vtkCamera of the 3D View:

mitk::BaseRenderer::GetInstance(mitk::BaseRenderer::GetRenderWindowByName("stdmulti.widget4"))->GetVtkRenderer()->GetActiveCamera();

Best,
Stefan

From: Bertram Sabrowsky-Hirsch 
[mailto:[email protected]]
Sent: Donnerstag, 15. März 2018 15:18
To: [email protected]
Subject: Re: [mitk-users] Adjusting the Camera manually

Hi everyone,

Is there any way to adjust the camera of the 3D View programmatically? I would 
like to set the position and direction of the camera in my program code.

Thank you in advance!

Kind regards,
Bertram
------------------------------------------------------------------------------
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