[vtkusers] Render images in threads other than main thread
lor fal
lorfalwit at gmail.com
Mon Apr 9 02:29:42 EDT 2018
Hi Todd,
Thanks for your advice. The problem is that I want to render the image in
real-time. The solution suggested in the link you posted is no other than a
repeating timer. Is there some way in Vtk to control the update rate?
On Mon, Apr 2, 2018 at 6:31 PM, Todd <nztoddler at yahoo.com> wrote:
> Hi Hugh
>
> GUI elements are normally only updated on the main thread, so I suspect
> you need to synchronize your callback from the worker thread. I'm not
> familiar with Qt, but it seems to be documented.
> http://www.informit.com/articles/article.aspx?p=1405551&seqNum=3
>
> Todd
>
>
> On 2 Apr 2018 10:00 p.m., lor fal <lorfalwit at gmail.com> wrote:
>
> Hi all:
>
> I am using QVTKOpenGLWidget to bridge between Qt and Vtk. However, when I
> trying to call vtkRenderWindowInteractor::Render in worker thread, it
> always report error like "makeCurrent() error", which seems something wrong
> while changing OpenGL context. I have googled my questions and found some
> suggestions but none of them could work.
>
> Does anybody know exactly how to render images in worker thread?
>
> Thanks in advance.
>
> --
> Best regards,
> Hugh Lo
>
>
>
--
Best regards,
Hugh Lo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180409/1412b901/attachment.html>
More information about the vtkusers
mailing list