2 import org.web3d.x3d.sai.*;
7 private String name = null;
9 private String ptr = null;
10 private String perlPtr = null;
19 public String toString() {
21 str =
new String(
"NODE" + perlPtr);
25 public boolean equals(Object o) {
34 public void setPerlPtr(String p) {
38 public String getPerlPtr() {
42 public String getName() {
48 int[] ret =
new int[1];
49 retval = browser.sendGlobalCommand(
"k " + ptr);
50 ret[0] = Integer.parseInt(retval);
56 String name, access, type;
57 StringTokenizer tokens;
65 retval = browser.sendGlobalCommand(command);
66 System.out.println(
"got retval: " + retval);
68 tokens=
new StringTokenizer(retval);
70 if ((retval == null) || (retval.equals(
""))) {
74 numFields = Integer.parseInt(tokens.nextToken());
78 for (i = 0; i < numFields; i++) {
79 name = tokens.nextToken();
80 type = tokens.nextToken();
81 access = tokens.nextToken();
82 itype = FreeWRLFieldTypes.getIntType(type);
83 iaccess = FreeWRLFieldTypes.getAccessFromType(access);
91 String NNN =
"nodeFrom_getEventIn";
92 StringTokenizer tokens;
97 String st = browser.SendEventType(perlPtr, ptr, fieldName,
"eventIn");
99 tokens =
new StringTokenizer(st);
100 String NNPR = tokens.nextToken();
101 String NOFF = tokens.nextToken();
102 String NDS = tokens.nextToken();
103 String NewDT = tokens.nextToken();
104 String ScrT = tokens.nextToken();
105 String access = tokens.nextToken();
107 if (access.equals(
"FreeWRLPTR")) {
110 int ia = FreeWRLFieldTypes.getAccessFromType(access);
113 if (NewDT.equals(
"p")) {
116 }
else if (NewDT.equals(
"k")) {
119 }
else if (NewDT.equals(
"e")) {
122 }
else if (NewDT.equals(
"c")) {
125 }
else if (NewDT.equals(
"l")) {
128 }
else if (NewDT.equals(
"d")) {
131 }
else if (NewDT.equals(
"m")) {
134 }
else if (NewDT.equals(
"o")) {
137 }
else if (NewDT.equals(
"h")) {
140 }
else if (NewDT.equals(
"r")) {
143 }
else if (NewDT.equals(
"s")) {
146 }
else if (NewDT.equals(
"j")) {
149 }
else if (NewDT.equals(
"l")) {
152 }
else if (NewDT.equals(
"q")) {
155 }
else if (NewDT.equals(
"i")) {
158 }
else if (NewDT.equals(
"g")) {
161 }
else if (NewDT.equals(
"b")) {
164 }
else if (NewDT.equals(
"f")) {
167 }
else if (NewDT.equals(
"v")) {
170 }
else if (NewDT.equals(
"w")) {
173 }
else if (NewDT.equals(
"u")) {
176 }
else if (NewDT.equals(
"z")) {
179 }
else if (NewDT.equals(
"A")) {
182 }
else if (NewDT.equals(
"B")) {
185 }
else if (NewDT.equals(
"C")) {
192 ret.setCommand(fieldName);
194 ret.setDataType(NewDT);
195 ret.setNodePtr(NNPR);
197 ret.setDataSize(NDS);
198 ret.setScriptType(ScrT);
205 public void setNodeName(String n) {
209 public void setType(
int t) {
213 public void setPointer(String p) {
217 public String getPointer() {
230 private void checkValid() {