[vtkusers] Update() methods on multithreaded applications
David Gobbi
david.gobbi at gmail.com
Tue Jul 5 13:50:27 EDT 2016
Hi Enzo,
If you have an ITK pipeline or a VTK pipeline that only doesn't do any
display (i.e. that only does IO or processing), then put it into a QThread
so that it can update asynchronously. When the thread re-joins your
application, you get the pipeline's output and connect it to your display
pipeline.
On Tue, Jul 5, 2016 at 11:04 AM, Enzo Matsumiya <enzo.matsumiya at gmail.com>
wrote:
> Hello,
>
> My API implements a method to open a DICOM study and some methods for
> image processing using ITK.
> When using my test application, I call these methods but they lock the UI,
> as expected, since I'm using VTK and ITK from an object on the same thread
> as the application's UI.
>
> What is the correct way to deal with that, considering I need constant
> communication from the UI controls with my VTK objects?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160705/dee3fe3f/attachment.html>
More information about the vtkusers
mailing list