[vtkusers] Keyboard interaction with VTK in Java

tytyty0007 at hotmail.com tytyty0007 at hotmail.com
Wed Oct 12 08:58:40 EDT 2005


Hi all,

I'm trying to implement keyboard interaction in my existing vtk project. 
Unfortunately I cannot find any example Java code to get the desired output. 
I did found some C++ code (in the tutorial/example section of vtk) that does 
keyboard interation (using vtkInteractorStyle, overwriting the OnChar 
function). Unfortunately I am not able to rewrite the C++ code in java since 
the pointer structures used in the C++ sample.  I did try to create a 
subclass extending a vtkInteractorStyle object and then overwriting the 
OnKeyPress method but with no result (the OnKeyPress function did not seem 
to be called). Does anyone have an idea how to tackle tis problem?

J. Koenduin

_________________________________________________________________
Stuur een voiceclip met MSN Messenger 7.5 
http://www1.imagine-msn.com/Messenger/Video.aspx




More information about the vtkusers mailing list