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"><<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>></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 <<a href="mailto:ajar108@gmail.com">ajar108@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I am using opencv with vtk and i have a loop for opencv to do some<br>
> processing on images and using that information to modify the vtk window.<br>
> However, I am not able to keep the interactor on vtk window while I run the<br>
> opencv loop.<br>
><br>
> When I do interactor->Start(), it starts an event loop by itself and any<br>
> further processing is stopped until I click "q". But after I exit the<br>
> interactor by clicking 'q' I cannot do any interaction in the window like<br>
> zoom in and zoom out or rotate the scene.<br>
><br>
> I browsed through the forums and some examples on VTK documentation and came<br>
> across some ideas others have expressed.<br>
><br>
> Using interactor->CreateRepeatingTimer()<br>
> Using mutiple threads.<br>
><br>
> I was wondering if anyone has some ideas on this matter, or encountered a<br>
> similar issue.<br>
><br>
> Thank you.<br>
> 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>