FreeWRL/FreeX3D  3.0.0
BrowserGlobals.java
1 package sai;
2 import org.web3d.x3d.sai.*;
3 
4 import vrml.external.field.*;
5 import vrml.external.FreeWRLEAI.*;
6 
7 public class BrowserGlobals
8 {
9 
10 
11 // Events. EVno is the "highest +1" registered event number...
12 // EVarray corresponds to the events returned by FreeWRL to our
13 // type, EVtype is the type as registered.
14 public static double TickTime = 0.0;
15 public static int EVno = 0;
16 public static int EVarray [] = new int[256];
17 public static int EVtype [] = new int[256];
18 public static Object EVObject[] = new Object[256];
19 public static X3DFieldEventListener EVObserver[] = new X3DFieldEventListener[256];
20 
21 // The FreeWRL browser sends us changes to variables if/when they
22 // are updated. We tell the FreeWRL viewer what variables to look at
23 // by giving it a register listener command. The EAIinThread thread
24 // will send responses to the getVRMLReply procedure (below), or, if
25 // it receives an event, will send the result to the RL_Async thread...
26 
27 public static EAIAsyncThread RL_Async;
28 
29 // Query Number as sent to the FreeWRL Browser.
30 public static int queryno = 1;
31 
32 
33 // Sending to FreeWRL needs to synchronize on an object;
34 static Object FreeWRLToken = new Object();
35 }
36