[vtkusers] Update() methods on multithreaded applications

Enzo Matsumiya enzo.matsumiya at gmail.com
Thu Jul 7 09:49:20 EDT 2016


Thanks David.

I solved it using QFuture instead (I don't know why QThread and boost::thread were not working).


> On Jul 5, 2016, at 14:50, David Gobbi <david.gobbi at gmail.com> wrote:
> 
> 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 <mailto: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/20160707/9c5ad16c/attachment.html>


More information about the vtkusers mailing list