Package vrml.field
Class ConstMFFloat
java.lang.Object
vrml.Field
vrml.ConstField
vrml.ConstMField
vrml.field.ConstMFFloat
- All Implemented Interfaces:
Cloneable
Constant VRML JSAI type class containing multiple float fields.
- Version:
- $Revision: 1.5 $
- Author:
- Alan Hudson, Justin Couch
-
Field Summary
FieldsFields inherited from class vrml.ConstMField
numElements
Fields inherited from class vrml.Field
valueChanged
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Construct an instance with default values.ConstMFFloat
(float[] values) Construct a new constant field based on all the given values.ConstMFFloat
(int size, float[] values) Construct new constant field based on the subset of the given values. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Make a clone of this object.float
get1Value
(int index) Fetch the value at the given array index positionvoid
getValue
(float[] values) Copy the values of this array into the user provided array.toString()
Create a string representation of the field values.Methods inherited from class vrml.ConstMField
getSize
-
Field Details
-
data
protected float[] dataThe data that the field contains
-
-
Constructor Details
-
ConstMFFloat
protected ConstMFFloat()Construct an instance with default values. Not available to mere mortals. -
ConstMFFloat
public ConstMFFloat(float[] values) Construct a new constant field based on all the given values.- Parameters:
values
- The values to copy
-
ConstMFFloat
public ConstMFFloat(int size, float[] values) Construct new constant field based on the subset of the given values.- Parameters:
size
- The number of items to copyvalues
- The source values to copy
-
-
Method Details
-
getValue
public void getValue(float[] values) Copy the values of this array into the user provided array.- Parameters:
values
- The array to copy data into
-
get1Value
public float get1Value(int index) Fetch the value at the given array index position- Parameters:
index
- The position to ask the value of- Returns:
- The value at that position
-
toString
-
clone
-