Thank you David. I found some examples of using QVTKWidget. I am going to try them out now.<br><br><div class="gmail_quote">On Fri, Sep 9, 2011 at 9:04 PM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On Thu, Sep 8, 2011 at 9:37 PM, Anant Vemuri &lt;<a href="mailto:ajar108@gmail.com">ajar108@gmail.com</a>&gt; wrote:<br>

&gt; Hi,<br>
&gt;<br>
&gt; I am using opencv with vtk and i have a loop for opencv to do some<br>
&gt; processing on images and using that information to modify the vtk window.<br>
&gt; However, I am not able to keep the interactor on vtk window while I run the<br>
&gt; opencv loop.<br>
&gt;<br>
&gt; When I do interactor-&gt;Start(), it starts an event loop by itself and any<br>
&gt; further processing is stopped until I click &quot;q&quot;. But after I exit the<br>
&gt; interactor by clicking &#39;q&#39; I cannot do any interaction in the window like<br>
&gt; zoom in and zoom out or rotate the scene.<br>
&gt;<br>
&gt; I browsed through the forums and some examples on VTK documentation and came<br>
&gt; across some ideas others have expressed.<br>
&gt;<br>
&gt; Using interactor-&gt;CreateRepeatingTimer()<br>
&gt; Using mutiple threads.<br>
&gt;<br>
&gt; I was wondering if anyone has some ideas on this matter, or encountered a<br>
&gt; similar issue.<br>
&gt;<br>
&gt; Thank you.<br>
&gt; Anant.<br>
<br>
</div></div>I would use a QVTKWidget inside of a Qt application. Then you never<br>
enter the VTK main loop, and everything works much more as you would<br>
expect. However, there is quite a bit of overhead in including Qt in<br>
your project.<br>
<font color="#888888"><br>
David<br>
</font></blockquote></div><br>