From: "Frank C.P. Hsu" <[EMAIL PROTECTED]>
Sent: Friday, September 08, 2000 5:26 AM
> My problem is how to start or stop Interpolator by press a key?
> Can anybody give me some suggestion or example ?
I haven't done this, but I'd try extending the Interpolator, give it a
'running' flag, override its initialization() to add a WakeupOnAWTEvent (I
suppose that the WakeupOnElapsedFrame gets set in super.initialization(), so
that would have to get called first), and override processStimulus() to
decode the Wakeup criteria, respond accordingly, and reset the Wakeups.
Alternatively, you could write a general AWTEvent response routine that
would move the Interpolator's bounds out of range or detach/attach the
Interpolator from the scenegraph. Writing it all into the Interpolator has
a better feel to it though.
Cheers,
Fred Klingener
Brock Engineering
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".