|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MFFloat
Representation of a MFFloat field.
| Method Summary | |
|---|---|
void |
append(float value)
Places a new value at the end of the existing value, increasing the field length accordingly. |
void |
clear()
Removes all values in the field and changes the field size to zero. |
float |
get1Value(int index)
Get the value of an individual item in the eventOut's value. |
void |
getValue(float[] values)
Write the value of the array of the floats to the given array. |
void |
insertValue(int index,
float value)
Inserts a value into an existing index of the field. |
void |
removeValue(int index)
Removes one value from the field. |
void |
set1Value(int index,
float value)
Set the value of an individual item in the eventIn's value. |
void |
setValue(int size,
float[] value)
Set the value of the eventIn to the new array of float values. |
| Methods inherited from interface org.web3d.x3d.sai.MField |
|---|
getSize |
| Methods inherited from interface org.web3d.x3d.sai.X3DField |
|---|
addX3DEventListener, getDefinition, getUserData, isReadable, isWritable, removeX3DEventListener, setUserData |
| Method Detail |
|---|
void append(float value)
value - The value to appendvoid clear()
void getValue(float[] values)
values - The array to be filled in
java.lang.ArrayIndexOutOfBoundsException - The provided array was too small
float get1Value(int index)
throws java.lang.ArrayIndexOutOfBoundsException
index - The position to be retrieved
java.lang.ArrayIndexOutOfBoundsException - The index was outside the current data
array bounds.
void insertValue(int index,
float value)
throws java.lang.ArrayIndexOutOfBoundsException
index - The position at which to insertvalue - The new element to insert
java.lang.ArrayIndexOutOfBoundsException - The index was outside the current field
size.
void removeValue(int index)
throws java.lang.ArrayIndexOutOfBoundsException
index - The position of the value to remove.
java.lang.ArrayIndexOutOfBoundsException - The index was outside the current field
size.
void setValue(int size,
float[] value)
size - The number of items to copy from the arrayvalue - The array of values to be used.
void set1Value(int index,
float value)
throws java.lang.ArrayIndexOutOfBoundsException
index - The position to set the float valuevalue - The value to be set
java.lang.ArrayIndexOutOfBoundsException - A value did not contain at least
three values for the colour component
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||