Package vrml.field
Class ConstMFTime
java.lang.Object
vrml.Field
vrml.ConstField
vrml.ConstMField
vrml.field.ConstMFTime
- All Implemented Interfaces:
Cloneable
Constant VRML JSAI type class containing multiple time fields.
- Version:
- $Revision: 1.5 $
- Author:
- Alan Hudson, Justin Couch
-
Field Summary
FieldsFields inherited from class vrml.ConstMField
numElementsFields inherited from class vrml.Field
valueChanged -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstruct an instance with default values.ConstMFTime(double[] values) Construct a new constant field based on all the given values.ConstMFTime(int size, double[] values) Construct new constant field based on the subset of the given values. -
Method Summary
Modifier and TypeMethodDescriptionclone()Make a clone of this object.doubleget1Value(int index) Fetch the value at the given array index positionvoidgetValue(double[] 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 double[] dataThe data that the field contains
-
-
Constructor Details
-
ConstMFTime
protected ConstMFTime()Construct an instance with default values. Not available to mere mortals. -
ConstMFTime
public ConstMFTime(double[] values) Construct a new constant field based on all the given values.- Parameters:
values- The values to copy
-
ConstMFTime
public ConstMFTime(int size, double[] 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(double[] values) Copy the values of this array into the user provided array.- Parameters:
values- The array to copy data into
-
get1Value
public double 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
-