Basic HTML version of Foils prepared April 15 1997

Foil 14 Java code to set an eventOut field - II

From VRML 2 Scripting -- Java JavaScript VRMLScript CPS616 -- Information Track of CPS -- Spring Semester 97. by Balaji Natarajan(Geoffrey C. Fox) *

1 Public void processEvent(Event e) {
2 ConstSFBool v = (ConstSFBool)e.getValue();
3 if(v.getValue()) {
4 if(on.getValue()) {
5 newColor.setValue(red);
6 } else { newColor.setValue(blue);
7 }
8 on.setValue(!on.getValue()); } } }

Table Font Size


© 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 Thu Aug 14 1997