[vtkusers] [FORGED] Re: Updating render

Gib Bogle g.bogle at auckland.ac.nz
Sat Mar 3 05:46:56 EST 2018


Thanks Elvis.  I am using QVTKWidget, and your suggestion did the trick.

Cheers, Gib
________________________________________
From: Elvis Stansvik <elvis.stansvik at orexplore.com>
Sent: Saturday, 3 March 2018 8:20 p.m.
To: Gib Bogle
Cc: vtkusers at vtk.org
Subject: [FORGED] Re: [vtkusers] Updating render

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