public interface MFTime extends MField
| Modifier and Type | Method and Description |
|---|---|
void |
append(double newValue)
Places a new value at the end of the existing value array, increasing the field length accordingly.
|
void |
append(long newValue)
Places a new value at the end of the existing value array, increasing the field length accordingly.
|
long |
get1JavaValue(int index)
Get an individual value from the existing field array.
|
double |
get1Value(int index)
Get an individual value from the existing field array.
|
void |
getValue(double[] valueDestination)
Write out the current value of this field into the external valueDestination array.
|
void |
insertValue(int index,
double newValue)
Insert a new value prior to the index location in the existing value array, increasing the field length accordingly.
|
void |
insertValue(int index,
long newValue)
Insert a new value prior to the index location in the existing value array, increasing the field length accordingly.
|
void |
set1Value(int index,
double newValue)
Replace a single value at the appropriate location in the existing value array.
|
void |
set1Value(int index,
long newValue)
Replace a single value at the appropriate location in the existing value array.
|
void |
setValue(int size,
double[] newValue)
Assign an array subset to this field.
|
void |
setValue(int size,
long[] newValue)
Assign an array subset to this field.
|
void |
setValue(long[] newValue)
Assign a new value to this field.
|
addX3DEventListener, getDefinition, isReadable, isWritable, removeX3DEventListenervoid getValue(double[] valueDestination)
valueDestination - The array to be filled in with current field values.java.lang.ArrayIndexOutOfBoundsException - The provided valueDestination array was too small.double get1Value(int index)
Get an individual value from the existing field array.
If the index is outside the bounds of the current array of data values, an ArrayIndexOutOfBoundsException is thrown.
index - is position of selected value in current arrayjava.lang.ArrayIndexOutOfBoundsException - The index was outside of the bounds of the current array.long get1JavaValue(int index)
Get an individual value from the existing field array.
If the index is outside the bounds of the current array of data values, an ArrayIndexOutOfBoundsException is thrown.
index - is position of selected value in current arrayjava.lang.ArrayIndexOutOfBoundsException - The index was outside of the bounds of the current array.void setValue(int size,
double[] newValue)
size - indicates size of result to copy (i.e. the number of typed singleton values) from beginning of newValue arraynewValue - The replacement value array to (potentially) slice and then assign.void setValue(int size,
long[] newValue)
size - indicates size of result to copy (i.e. the number of typed singleton values) from beginning of newValue array.newValue - The replacement value array to (potentially) slice and then assign.void setValue(long[] newValue)
newValue - is replacement value array to assignvoid set1Value(int index,
double newValue)
index - is position of selected value in current arraynewValue - provides new value to applyvoid set1Value(int index,
long newValue)
index - is position of selected value in current arraynewValue - provides new value to applyvoid append(double newValue)
newValue - The newValue to appendvoid append(long newValue)
newValue - The newValue to appendvoid insertValue(int index,
long newValue)
index - The position for the inserted value in the current arraynewValue - The newValue to insertvoid insertValue(int index,
double newValue)
index - The position for the inserted value in the current arraynewValue - The newValue to insertCopyright ©2005-2017 Web3D Consortium under an open-source license, free for any use. Feedback is welcome.