Package vrml.eai.field
Class EventOutSFRotation
java.lang.Object
vrml.eai.field.BaseField
vrml.eai.field.EventOut
vrml.eai.field.EventOutSFRotation
- Direct Known Subclasses:
EventOutSFRotationWrapper
VRML eventOut class for SFRotation.
Rotation values are specified according to the VRML IS Specification Section 5.8 SFRotation and MFRotation.
- Version:
- 1.0 30 April 1998
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Construct an instance of this class. -
Method Summary
Methods inherited from class vrml.eai.field.EventOut
addVrmlEventListener, getUserData, removeVrmlEventListener, setUserData
-
Constructor Details
-
EventOutSFRotation
protected EventOutSFRotation()Construct an instance of this class. Calls the superclass constructor with the field type set to SFRotation
-
-
Method Details
-
getValue
public abstract float[] getValue()Get the rotation value in the given eventOut.- Returns:
- The array of rotation values where
value[0] = X component [0-1]
value[1] = Y component [0-1]
value[2] = Z component [0-1]
value[3] = Angle of rotation [-PI - PI] (nominally).
-
getValue
public abstract void getValue(float[] vec) Write the rotation value to the given eventOut- Parameters:
vec
- The array of vector values to be filled in where
value[0] = X component [0-1]
value[1] = Y component [0-1]
value[2] = Z component [0-1]
value[3] = Angle of rotation [-PI - PI] (nominally).- Throws:
ArrayIndexOutOfBoundsException
- The provided array was too small
-