[vtkusers] Animation in an interactive window
Vardhman Jain
vardhman at gmail.com
Wed Mar 23 08:24:18 EST 2005
Hi,
I am trying to write a program which requires some kind of
animation of the actors, for which I am currently using a simple for
loop. I was to enable some mouse/keyboard interaction to be able to
the camera, AFAIK I have to do
vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();
iren->SetRenderWindow(renWin);
and then iren->Start();
How do I mix the for loop and this function call together? In
OpenGL/Glut I would have used a glutTImer to get the animation and
glutKeyboardFunc to do the interaction, can some one suggest how to
achieve this in VTK.
Thanks in anticipation.
Vardhman
--
http://vardhman.blogspot.com
More information about the vtkusers
mailing list