|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvrml.Field
vrml.MField
vrml.field.MFRotation
public class MFRotation
Represents a VRML MFRotation field in Java.
Constructor Summary | |
---|---|
MFRotation()
Default constructor. |
|
MFRotation(float[] rotations)
Construct an MFRotation field. |
|
MFRotation(float[][] rotations)
Construct an MFRotation field. |
|
MFRotation(int size,
float[] rotations)
Construct an MFRotation field. |
Method Summary | |
---|---|
void |
addValue(ConstSFRotation rotation)
Add a new element at the end of the list. |
void |
addValue(float axisX,
float axisY,
float axisZ,
float angle)
Add a new element at the end of the list. |
void |
addValue(SFRotation rotation)
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. |
void |
get1Value(int index,
float[] rotations)
Retrieves a specific rotation element in an MFRotation and returns it as a float array. |
void |
get1Value(int index,
SFRotation rotation)
Retrieves a specific rotation element in an MFRotation and returns it as an SFRotation. |
int |
getSize()
Number of elements contained in the MField. |
void |
getValue(float[] rotations)
Retrieves the value of an MFRotation field. |
void |
getValue(float[][] rotations)
Retrieves the value of an MFRotation field. |
void |
insertValue(int index,
ConstSFRotation rotation)
Insert a new element at the specified position. |
void |
insertValue(int index,
float axisX,
float axisY,
float axisZ,
float angle)
Insert a new element at the specified position. |
void |
insertValue(int index,
SFRotation rotation)
Insert a new element at the specified position. |
void |
set1Value(int index,
ConstSFRotation rotation)
Set a specified element in the field. |
void |
set1Value(int index,
float axisX,
float axisY,
float axisZ,
float angle)
Set a specified element in the field. |
void |
set1Value(int index,
SFRotation rotation)
Set a specified element in the field. |
void |
setValue(ConstMFRotation rotations)
Set the value of the field. |
void |
setValue(float[] rotations)
Set the value of the field. |
void |
setValue(float[][] rotations)
Set the value of the field. |
void |
setValue(int size,
float[] rotations)
Set the value of the field. |
void |
setValue(MFRotation rotations)
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 MFRotation()
public MFRotation(float[][] rotations)
rotations
- An array of four float tuples. (x, y, z, a)public MFRotation(float[] rotations)
rotations
- List of x, y, z, a 4-tuplespublic MFRotation(int size, float[] rotations)
size
- Number of rotations passed in.rotations
- List of x, y, z, a 4-tuplesMethod 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(float[][] rotations)
rotations
- 2D array of sets of rotation values to be returned.public void getValue(float[] rotations)
rotations
- Array of sets of rotations values to be returned.public void get1Value(int index, float[] rotations)
index
- Position of desired rotationrotation
- Value of specified rotation.public void get1Value(int index, SFRotation rotation)
index
- Position of desired rotationrotation
- SFRotation to be set to desired value.public void setValue(float[][] rotations)
rotations
- New value for field.public void setValue(float[] rotations)
rotations
- New value for field.public void setValue(int size, float[] rotations)
size
- Size of new value for field.rotations
- New value for field.public void setValue(MFRotation rotations)
rotations
- New value for field.public void setValue(ConstMFRotation rotations)
rotations
- New value for field.public void set1Value(int index, ConstSFRotation rotation)
index
- Position of element to update.rotation
- New value for element.public void set1Value(int index, SFRotation rotation)
index
- Position of element to update.rotation
- New value for element.public void set1Value(int index, float axisX, float axisY, float axisZ, float angle)
index
- Position of element to update.axisX
- Rotation along X-axis of new value.axisY
- Rotation along Y-axis of new value.axisZ
- Rotation along Z-axis of new value.angle
- Angle of new element.public void addValue(ConstSFRotation rotation)
rotation
- Element to add.public void addValue(SFRotation rotation)
rotation
- Element to add.public void addValue(float axisX, float axisY, float axisZ, float angle)
axisX
- Rotation along X-axis of new element.axisY
- Rotation along Y-axis of new element.axisZ
- Rotation along Z-axis of new element.angle
- Angle of new element.public void insertValue(int index, ConstSFRotation rotation)
index
- Position to insert new element at.rotation
- Value to insert.public void insertValue(int index, SFRotation rotation)
index
- Position to insert new element at.rotation
- Value to insert.public void insertValue(int index, float axisX, float axisY, float axisZ, float angle)
index
- Position to insert new element at.axisX
- Rotation along X-axis of rotation.axisY
- Rotation along Y-axis of rotation.axisZ
- Rotation along Z-axis of rotation.angle
- Angle of rotation.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |