<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Hi Enzo,</div><div class="gmail_quote"><br></div><div class="gmail_quote">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.</div><div class="gmail_quote"><br></div><div class="gmail_quote">On Tue, Jul 5, 2016 at 11:04 AM, Enzo Matsumiya <span dir="ltr"><<a href="mailto:enzo.matsumiya@gmail.com" target="_blank">enzo.matsumiya@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
My API implements a method to open a DICOM study and some methods for image processing using ITK.<br>
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.<br>
<br>
What is the correct way to deal with that, considering I need constant communication from the UI controls with my VTK objects?<br><br>
</blockquote></div><br></div></div>