Basic HTML version of Foils prepared 5 August 97

Foil 20 EventOutObserver Interface in EAI - II

From VRML97 Scripting: Java Nodes and External Authoring Interface UC Web Applications Certificate -- July 24 1997. by Wojtek Furmanski and Balaji Natarajan


Public class MyObserver implements EventOutObserver {
public void callback(EventOut value,double timestamp) {
//cast the obtained value here into an EventOutSFVec3f
} }
.............
MyObserver observer = new MyObserver;
mover.getEventOut("translation_changed").advise(observer,null);
When the eventOut from translation occurs,observer.callback() is executed.



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Nov 29 1998