[vtkusers] Updating render

Elvis Stansvik elvis.stansvik at orexplore.com
Sat Mar 3 02:20:48 EST 2018


2018-03-03 6:52 GMT+01:00 Gib Bogle <g.bogle at auckland.ac.nz>:
> Hello,
>
>
> I have a simple QVTK program that draws a collection of cylinder actors (Qt
> 4.8.1, VTK 5.10).  The function that updates the actor positions is a Qt
> slot; on receiving a signal from another thread the function is invoked with
> the array of new positions.  Everything is working fine, except that the
> scene does not get updated unless I interact with it (move the mouse).  I
> don't understand what is needed to force the scene update.  I'm sure it must
> be something simple.
>
>
> Please enlighten me.

If you're using QVTKOpenGLWidget, I think a call to update() should be
enough (it's a Qt function).

If you're using the old and deprecated QVTKWidget, then I think a call
to GetRenderWindow()->Render() is what is needed.

Hope that helps.

Elvis

>
>
> Thanks
>
> Gib
>
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtkusers
>


More information about the vtkusers mailing list