FreeWRL / FreeX3D 4.3.0
BrowserGlobals.java
1package sai;
2import org.web3d.x3d.sai.*;
3
4import vrml.external.field.*;
5import vrml.external.FreeWRLEAI.*;
6
7public 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.
14public static double TickTime = 0.0;
15public static int EVno = 0;
16public static int EVarray [] = new int[256];
17public static int EVtype [] = new int[256];
18public static Object EVObject[] = new Object[256];
19public 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
27public static EAIAsyncThread RL_Async;
28
29// Query Number as sent to the FreeWRL Browser.
30public static int queryno = 1;
31
32
33// Sending to FreeWRL needs to synchronize on an object;
34static Object FreeWRLToken = new Object();
35}
36