Package vrml.eai.field
Class EventInMFVec3f
java.lang.Object
vrml.eai.field.BaseField
vrml.eai.field.EventIn
vrml.eai.field.EventInMFVec3f
- Direct Known Subclasses:
EventInMFVec3fWrapper
VRML eventIn class for MFVec3f.
- Version:
- 1.0 30 April 1998
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class vrml.eai.field.EventIn
getUserData, setUserData
-
Constructor Details
-
EventInMFVec3f
protected EventInMFVec3f()Construct an instance of this class. The superclass is called with the type MFVec3f
-
-
Method Details
-
setValue
public abstract void setValue(float[][] value) Set the value of the array of 3D vectors. Input is an array of floats If value[i] does not contain at least three values it will generate an ArrayIndexOutOfBoundsException. If value[i] contains more than three items only the first three values will be used and the rest ignored.If one or more of the values for value[i] are null then the resulting event that is sent to the VRML scene graph is implementation dependent but no error indicator will be set here.
- Parameters:
value
- The array of vec2f values where
value[i][0] = X
value[i][1] = Y
value[i][2] = Z- Throws:
ArrayIndexOutOfBoundsException
- A value did not contain at least three values for the vector definition.
-
set1Value
public abstract void set1Value(int index, float[] value) Set a particular vector value in the given eventIn array. To the VRML world this will generate a full MFVec3f event with the nominated index value changed.The value array must contain at least three elements. If the array contains more than 3 values only the first 3 values will be used and the rest ignored.
If the index is out of the bounds of the current array of data values or the array of values does not contain at least 3 elements an ArrayIndexOutOfBoundsException will be generated.
- Parameters:
index
- The position to set the vector valuevalue
- The array of vector values where
value[0] = X
value[1] = Y
value[2] = Z- Throws:
ArrayIndexOutOfBoundsException
- A value did not contain at least 3 values for the vector
-