[vtkusers] Update Rendering after manually modified vtkCamera

mirko heuegger mheuegger at gmail.com
Tue Jan 17 07:19:46 EST 2012


Hello!

Have you tried to call:
vtkRenderer.Render(); ?


hth

mirko

On Tue, Jan 17, 2012 at 11:31 AM, Trystan Louboutin <tanstry at gmail.com> wrote:
> Hi All,
>
> I update the vtkCamera parameters on a rendering window using :
>
> SetFocalPoint(...);
> SetPosition(...);
> ComputeViewPlaneNormal();
> SetViewUp(...);
> OrthogonalizeViewUp();
> SetViewAngle(...);
>
> But the rendering is not updated immediately, it needs a user interaction
> such as a left click in the window or minimize-maximize the widget...
> It probably miss a call to an "update" function but I can't find the one.
> I tried calling ResetCameraClippingRange(); or ResetCamera(); on the
> renderer but nothing changes.
>
> Any idea ?
>
> Regards,
> Trystan
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
Real programmers don't document; if it was
hard to write, it should be hard to understand.



More information about the vtkusers mailing list