<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Liz:
<p>You should be ready to look at some vtk source code..
<p>Its not too bad. Take a look at vtkXRenderWindowInteractor first, in
particular the
<br>functions Enable() and Disable () that set up and remove the event
handler (you
<br>will need to do that to change the events that are used in the default
interactor),
<br>and vtkXRenderWindowInteractorCallback(), which contains the event
loop. The KeyPress
<br>event is what you need to mess with, which calls the OnChar method.
<p>Now go into an example InteractorStyle, such as vtkInteractorStyleTrackball,
which
<br>defines the interactions with the trackball model; look at the OnChar
function (virtual,
<br>will be defined for each device using the keyboard).
<p>If you are on Windows, then you should find the vtkWin32RenderWindowInteractor
instead.
<p>Hope this helps.
<p> -- krs
<br>
<br>
<br>
<pre>--
K.R.Subramanian Phone: (704) 547-4872
Department of Computer Science FAX: (704) 547-3516
UNC Charlotte, 228A Kennedy
9201 Univ. City Blvd. Email: krs@cs.uncc.edu
Charlotte, NC 28223-0001 WWW: <A HREF="http://www.cs.uncc.edu/~krs">http://www.cs.uncc.edu/~krs</A></pre>
</html>