[vtkusers] vtkInteractor to only rotate on one axis?

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Tue Jun 19 00:07:51 EDT 2001


hi,

>>>>> "Phlip" == Phlip  <pplumlee at omnigon.com> writes:

    Phlip> So how, alternately, could I just let the shape rotate
    Phlip> around on its own, on a timer?

    >> > Use the tk 'after' to drive animations.

    Phlip> This implies tk has an 'after' feature that adds a timer?

    Phlip> Just one more tiny tip needed!

There is some documentation on Tkinter available here:

http://www.pythonware.com/library/tkinter/introduction/index.htm

The 'after' timer stuff is documented here:

http://www.pythonware.com/library/tkinter/introduction/x9129-alarm-handlers-and-other.htm

You could bind your polling function to rotate the camera via the
Azimuth and Elevation member functions (look at
vtkRenderWidget.py::vtkTkRenderWidget.Rotate function).

prabhu




More information about the vtkusers mailing list