Package vrml.field
Class ConstMFInt32
java.lang.Object
vrml.Field
vrml.ConstField
vrml.ConstMField
vrml.field.ConstMFInt32
- 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
numElements
Fields inherited from class vrml.Field
valueChanged
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Construct an instance with default values.ConstMFInt32
(int[] values) Construct a new constant field based on all the given values.ConstMFInt32
(int size, int[] values) Construct new constant field based on the subset of the given values. -
Method Summary
Methods inherited from class vrml.ConstMField
getSize
-
Field Details
-
data
protected int[] dataThe data that the field contains
-
-
Constructor Details
-
ConstMFInt32
protected ConstMFInt32()Construct an instance with default values. Not available to mere mortals. -
ConstMFInt32
public ConstMFInt32(int[] values) Construct a new constant field based on all the given values.- Parameters:
values
- The values to copy
-
ConstMFInt32
public ConstMFInt32(int size, int[] 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(int[] values) Copy the values of this array into the user provided array.- Parameters:
values
- The array to copy data into
-
get1Value
public int 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
-