public class MFFloat extends MField
Constructor and Description |
---|
MFFloat()
Construct a new MFFloat field in OpenVRML using the default params
|
MFFloat(float[] values)
Construct an MFFloat field in OpenVRML using the given params.
|
MFFloat(int size,
float[] values)
Construct an MFFloat field in OpenVRML using the given params.
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(ConstSFFloat f)
Add a new element at the end of the list.
|
void |
addValue(float f)
Add a new element at the end of the list.
|
void |
addValue(SFFloat f)
Add a new element at the end of the list.
|
void |
clear()
Removes all fields from the MField.
|
void |
delete(int index)
Deletes a field from the MField.
|
float |
get1Value(int index)
Retrieves a specific SFFloat element in an MFFloat and
returns it as a float.
|
int |
getSize()
Number of elements contained in the MField.
|
void |
getValue(float[] values)
Retrieves the value of an MFFloat field.
|
void |
insertValue(int index,
ConstSFFloat f)
Insert a new element at the specified position.
|
void |
insertValue(int index,
float f)
Insert a new element at the specified position.
|
void |
insertValue(int index,
SFFloat f)
Insert a new element at the specified position.
|
void |
set1Value(int index,
ConstSFFloat f)
Set a specified element in the field.
|
void |
set1Value(int index,
float f)
Set a specified element in the field.
|
void |
set1Value(int index,
SFFloat f)
Set a specified element in the field.
|
void |
setValue(ConstMFFloat value)
Set the value of the field.
|
void |
setValue(float[] values)
Set the value of the field.
|
void |
setValue(int size,
float[] values)
Set the value of the field.
|
void |
setValue(MFFloat value)
Set the value of the field.
|
public MFFloat()
public MFFloat(int size, float[] values)
size
- Number of SFFloat elements passed in.values
- Array of SFFloat values.public MFFloat(float[] values)
values
- An array of SFFloat values.public int getSize()
MField
public void clear()
MField
public void delete(int index)
MField
public void getValue(float[] values)
values
- Array of float values to be returned.public float get1Value(int index)
index
- Position of desired SFFloatpublic void setValue(float[] values)
values
- New value for field.public void setValue(int size, float[] values)
size
- Size of new value for field.values
- New value for field.public void setValue(MFFloat value)
value
- New value for field.public void setValue(ConstMFFloat value)
value
- New value for field.public void set1Value(int index, float f)
index
- Position of element to update.f
- New value for element.public void set1Value(int index, ConstSFFloat f)
index
- Position of element to update.f
- New value for element.public void set1Value(int index, SFFloat f)
index
- Position of element to update.f
- New value for element.public void addValue(float f)
f
- Element to add.public void addValue(ConstSFFloat f)
f
- Element to add.public void addValue(SFFloat f)
f
- Element to add.public void insertValue(int index, float f)
index
- Position to insert new element at.f
- Value to insert.public void insertValue(int index, ConstSFFloat f)
index
- Position to insert new element at.f
- SFFloat to insert.public void insertValue(int index, SFFloat f)
index
- Position to insert new element at.f
- SFFloat to insert.