Package vrml.eai.field
Class EventOutMFVec3f
java.lang.Object
vrml.eai.field.BaseField
vrml.eai.field.EventOut
vrml.eai.field.EventOutMField
vrml.eai.field.EventOutMFVec3f
- Direct Known Subclasses:
EventOutMFVec3fWrapper
VRML eventIn class for MFVec3f.
- Version:
- 1.0 30 April 1998
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract float[]
get1Value
(int index) Get a particular vector value in the given eventOut array.abstract void
get1Value
(int index, float[] vec) Get the value of a particular vector value in the event out array.abstract float[][]
getValue()
Get the value of the array of 2D vectors.abstract void
getValue
(float[] vec) Get the values of the event out flattened into a single 1D array.abstract void
getValue
(float[][] vec) Write the value of the event out to the given array.Methods inherited from class vrml.eai.field.EventOutMField
size
Methods inherited from class vrml.eai.field.EventOut
addVrmlEventListener, getUserData, removeVrmlEventListener, setUserData
-
Constructor Details
-
EventOutMFVec3f
protected EventOutMFVec3f()Construct an instance of this class. The superclass is called with the type MFVec3f
-
-
Method Details
-
getValue
public abstract float[][] getValue()Get the value of the array of 2D vectors. Output is an array of floats- Returns:
- The array of vec2f values where
value[i][0] = X
value[i][1] = Y
value[i][2] = Z
-
getValue
public abstract void getValue(float[][] vec) Write the value of the event out to the given array.- Parameters:
vec
- The array to be filled in where
vec[i][0] = X
vec[i][1] = Y
vec[i][2] = Z- Throws:
ArrayIndexOutOfBoundsException
- The provided array was too small
-
getValue
public abstract void getValue(float[] vec) Get the values of the event out flattened into a single 1D array. The array must be at least 3 times the size of the array.- Parameters:
vec
- The array to be filled in where the vec[i + 0] = X
vec[i + 1] = Y
vec[i + 2] = Z- Throws:
ArrayIndexOutOfBoundsException
- The provided array was too small
-
get1Value
public abstract float[] get1Value(int index) Get a particular vector value in the given eventOut array.If the index is out of the bounds of the current array of data values an ArrayIndexOutOfBoundsException will be generated.
- Parameters:
index
- The position to get the vector value from- Returns:
- The array of vector values where
value[0] = X
value[1] = Y
value[2] = Z - Throws:
ArrayIndexOutOfBoundsException
- The index was outside the current data array bounds.
-
get1Value
public abstract void get1Value(int index, float[] vec) Get the value of a particular vector value in the event out array.- Parameters:
index
- The position to get the vector value from.vec
- The array to place the value in where. vec[0] = X
vec[1] = Y
vec[2] = Z- Throws:
ArrayIndexOutOfBoundsException
- The provided array was too small or the index was outside the current data array bounds.
-