[vtkusers] vtkRenderWindowInteractor and opencv
Anant Vemuri
ajar108 at gmail.com
Sun Sep 11 22:55:11 EDT 2011
Thank you David. I found some examples of using QVTKWidget. I am going to
try them out now.
On Fri, Sep 9, 2011 at 9:04 PM, David Doria <daviddoria at gmail.com> wrote:
> On Thu, Sep 8, 2011 at 9:37 PM, Anant Vemuri <ajar108 at gmail.com> wrote:
> > Hi,
> >
> > I am using opencv with vtk and i have a loop for opencv to do some
> > processing on images and using that information to modify the vtk window.
> > However, I am not able to keep the interactor on vtk window while I run
> the
> > opencv loop.
> >
> > When I do interactor->Start(), it starts an event loop by itself and any
> > further processing is stopped until I click "q". But after I exit the
> > interactor by clicking 'q' I cannot do any interaction in the window like
> > zoom in and zoom out or rotate the scene.
> >
> > I browsed through the forums and some examples on VTK documentation and
> came
> > across some ideas others have expressed.
> >
> > Using interactor->CreateRepeatingTimer()
> > Using mutiple threads.
> >
> > I was wondering if anyone has some ideas on this matter, or encountered a
> > similar issue.
> >
> > Thank you.
> > Anant.
>
> I would use a QVTKWidget inside of a Qt application. Then you never
> enter the VTK main loop, and everything works much more as you would
> expect. However, there is quite a bit of overhead in including Qt in
> your project.
>
> David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110912/bbf038bd/attachment.htm>
More information about the vtkusers
mailing list