FreeWRL/FreeX3D  3.0.0
EventOutSFNode.java
1 package vrml.external.field;
2 import java.util.*;
5 import vrml.external.Node;
6 
7 
8 public class EventOutSFNode extends EventOut {
9  public EventOutSFNode() {EventType = FieldTypes.SFNODE;}
10 
11  public Node getValue() {
12  String rep;
13  StringTokenizer tokens;
14  int counttokens;
15 
16  Node retnode;
17 
18  if (RLreturn == null) {
19  rep = Browser.SendEventOut (nodeptr, offset, datasize, datatype, command);
20  } else {
21  rep = RLreturn;
22  }
23  tokens = new StringTokenizer (rep);
24  counttokens = tokens.countTokens();
25 
26 
27  retnode = new Node();
28  rep = tokens.nextToken();
29  retnode.nodeptr = Integer.parseInt(rep);
30  return retnode;
31 
32  }
33 }
34