public class MFDouble extends MField
| Constructor and Description |
|---|
MFDouble()
Construct a new MFDouble field in OpenVRML using the default params
|
MFDouble(double[] values)
Construct an MFDouble field in OpenVRML using the given params.
|
MFDouble(int size,
double[] values)
Construct an MFDouble field in OpenVRML using the given params.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(ConstSFDouble d)
Add a new element at the end of the list.
|
void |
addValue(double d)
Add a new element at the end of the list.
|
void |
addValue(SFDouble d)
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.
|
double |
get1Value(int index)
Retrieves a specific SFDouble element in an MFDouble and
returns it as a double.
|
int |
getSize()
Number of elements contained in the MField.
|
void |
getValue(double[] values)
Retrieves the value of an MFDouble field.
|
void |
insertValue(int index,
ConstSFDouble d)
Insert a new element at the specified position.
|
void |
insertValue(int index,
double d)
Insert a new element at the specified position.
|
void |
insertValue(int index,
SFDouble d)
Insert a new element at the specified position.
|
void |
set1Value(int index,
ConstSFDouble d)
Set a specified element in the field.
|
void |
set1Value(int index,
double d)
Set a specified element in the field.
|
void |
set1Value(int index,
SFDouble d)
Set a specified element in the field.
|
void |
setValue(ConstMFDouble value)
Set the value of the field.
|
void |
setValue(double[] values)
Set the value of the field.
|
void |
setValue(int size,
double[] values)
Set the value of the field.
|
void |
setValue(MFDouble value)
Set the value of the field.
|
public MFDouble()
public MFDouble(int size,
double[] values)
size - Number of SFDouble elements passed in.values - Array of SFDouble values.public MFDouble(double[] values)
values - An array of SFDouble values.public int getSize()
MFieldpublic void clear()
MFieldpublic void delete(int index)
MFieldpublic void getValue(double[] values)
values - Array of double values to be returned.public double get1Value(int index)
index - Position of desired SFDoublepublic void setValue(double[] values)
values - New value for field.public void setValue(int size,
double[] values)
size - Size of new value for field.values - New value for field.public void setValue(MFDouble value)
value - New value for field.public void setValue(ConstMFDouble value)
value - New value for field.public void set1Value(int index,
double d)
index - Position of element to update.d - New value for element.public void set1Value(int index,
ConstSFDouble d)
index - Position of element to update.d - New value for element.public void set1Value(int index,
SFDouble d)
index - Position of element to update.d - New value for element.public void addValue(double d)
d - Element to add.public void addValue(ConstSFDouble d)
d - Element to add.public void addValue(SFDouble d)
d - Element to add.public void insertValue(int index,
double d)
index - Position to insert new element at.d - Value to insert.public void insertValue(int index,
ConstSFDouble d)
index - Position to insert new element at.d - SFDouble to insert.public void insertValue(int index,
SFDouble d)
index - Position to insert new element at.d - SFDouble to insert.