FreeWRL/FreeX3D
3.0.0
Main Page
Related Pages
Data Structures
Files
File List
EventOutSFRotation.java
1
package
vrml.external.field;
2
import
java.util.*;
3
import
vrml.external.field.FieldTypes
;
4
import
vrml.external.Browser
;
5
6
public
class
EventOutSFRotation
extends
EventOut
{
7
public
EventOutSFRotation
() {EventType = FieldTypes.SFROTATION;}
8
9
public
float
[] getValue() {
10
11
12
float
[] fvals =
new
float
[4];
13
StringTokenizer tokens;
14
String rep;
15
16
if
(RLreturn == null) {
17
rep = Browser.SendEventOut (nodeptr, offset, datasize, datatype,
command
);
18
}
else
{
19
rep = RLreturn;
20
}
21
tokens =
new
StringTokenizer (rep);
22
23
fvals[0]=Float.valueOf(tokens.nextToken()).floatValue();
24
fvals[1]=Float.valueOf(tokens.nextToken()).floatValue();
25
fvals[2]=Float.valueOf(tokens.nextToken()).floatValue();
26
fvals[3]=Float.valueOf(tokens.nextToken()).floatValue();
27
28
return
fvals;
29
}
30
}
command
Definition:
common.c:686
vrml.external.field.EventOut
Definition:
EventOut.java:6
vrml.external.field.FieldTypes
Definition:
FieldTypes.java:5
vrml.external.field.EventOutSFRotation
Definition:
EventOutSFRotation.java:6
vrml.external.Browser
Definition:
Browser.java:27
src
java
vrml
external
field
EventOutSFRotation.java
Generated on Thu Dec 14 2017 12:14:40 for FreeWRL/FreeX3D by
1.8.6