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


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

in Table To:


© 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