|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvrml.Field
vrml.MField
vrml.field.MFDouble
public class MFDouble
Represents a VRML MFDouble field in Java.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class vrml.Field |
---|
clone, dispose, finalize, getPeer, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public int getSize()
MField
getSize
in class MField
public void clear()
MField
clear
in class MField
public void delete(int index)
MField
delete
in class MField
index
- Index of field to delete.public void getValue(double[] values)
values
- Array of double values to be returned.public double get1Value(int index)
index
- Position of desired SFDouble
public 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |