[vtkusers] interactor in a main loop

Simon Drouin sdrouin at bic.mni.mcgill.ca
Wed Oct 6 11:18:18 EDT 2004


Clinton Stimpson wrote:

>You might be able to use a timer to do the frame grabbing.  The
>vtkRenderWindowInteractor classes can make timers and they work with the
>interactor start method.
>  
>

If you use vtkVideoSource's Record method, you could watch the 
TimerEvent of your vtkRenderWindowInteractor and call Render then. This 
will update the output of the vtkVideoSource to give you the latest 
grabbed frame in the window. It is probably not as exact as posting an 
event when a new frame is available, but it might be enough for you.

Simon



More information about the vtkusers mailing list