|
Xj3D VRML/X3D Code API | ||||||||||
| 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
Constant VRML JSAI type class containing multiple rotations.
Internally the class keeps data as a flat array, so that is the most efficient way of interacting with this class.
| Field Summary | |
protected float[] |
data
The data of the underlying field |
| Fields inherited from class vrml.ConstMField |
numElements |
| Fields inherited from class vrml.Field |
valueChanged |
| Constructor Summary | |
protected |
ConstMFRotation()
Construct an instance with default values. |
|
ConstMFRotation(float[] vecs)
Construct a new field based on all the given data values |
|
ConstMFRotation(float[][] vecs)
Construct a new field based on all the given 4D array of values. |
|
ConstMFRotation(int size,
float[] vecs)
Construct a new field based on subsection the given data values |
| Method Summary | |
java.lang.Object |
clone()
Make a clone of this object. |
void |
get1Value(int index,
float[] vec)
Get the vec value at the given position and copy it into the user provided array. |
void |
get1Value(int index,
SFRotation vec)
Get the vec value at the given position and copy it into the user provided field. |
void |
getValue(float[] vecs)
Copy the vec values used in this field into the user provided array. |
void |
getValue(float[][] vecs)
Get the vec values used in this field and copy them into the user provided array. |
java.lang.String |
toString()
Create a string representation of the field values. |
| Methods inherited from class vrml.ConstMField |
getSize |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected float[] data
| Constructor Detail |
protected ConstMFRotation()
public ConstMFRotation(float[][] vecs)
vecs - The vec values to usepublic ConstMFRotation(float[] vecs)
vecs - The vec values to use
public ConstMFRotation(int size,
float[] vecs)
size - The number of items to use. numElements = size / 4vecs - The vec values to use| Method Detail |
public void getValue(float[][] vecs)
vecs - The array to copy values topublic void getValue(float[] vecs)
vecs - The array to copy values to
public void get1Value(int index,
float[] vec)
index - The position of the vec to copyvec - The array to copy data to
public void get1Value(int index,
SFRotation vec)
index - The position of the vec to copyvec - The field to copy data topublic java.lang.String toString()
public java.lang.Object clone()
clone in class Field
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||