|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectvrml.Field
vrml.MField
vrml.field.MFFloat
public class MFFloat
Represents a VRML MFFloat field in Java.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| 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 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.| Method Detail |
|---|
public int getSize()
MField
getSize in class MFieldpublic void clear()
MField
clear in class MFieldpublic void delete(int index)
MField
delete in class MFieldindex - Index of field to delete.public void getValue(float[] values)
values - Array of float values to be returned.public float get1Value(int index)
index - Position of desired SFFloat
public 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||