|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvrml.Field
vrml.ConstField
vrml.ConstMField
vrml.field.ConstMFRotation
public class ConstMFRotation
Represents a read-only VRML MFRotation field in Java.
Constructor Summary | |
---|---|
ConstMFRotation(float[] rotations)
Construct a read-only MFRotation field. |
|
ConstMFRotation(float[][] rotations)
Construct a read-only MFRotation field. |
|
ConstMFRotation(int size,
float[] rotations)
Construct a read-only MFRotation field. |
Method Summary | |
---|---|
void |
get1Value(int index,
float[] rotation)
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. |
Methods inherited from class vrml.ConstField |
---|
clone |
Methods inherited from class vrml.Field |
---|
dispose, finalize, getPeer, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConstMFRotation(float[][] rotations)
rotations
- An array of four float tuples. (x, y, z, a)public ConstMFRotation(float[] rotations)
rotations
- List of x, y, z, a 4-tuplespublic ConstMFRotation(int size, float[] rotations)
size
- Number of rotations passed in.rotations
- List of x, y, z, a 4-tuplesMethod Detail |
---|
public int getSize()
ConstMField
getSize
in class ConstMField
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[] rotation)
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |