|
|||||||||
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.ConstMFVec3d
public class ConstMFVec3d
Represents a read-only VRML MFVec3d field in Java.
Constructor Summary | |
---|---|
ConstMFVec3d(double[] vec3s)
Construct a read-only MFVec3d field. |
|
ConstMFVec3d(double[][] vec3s)
Construct a read-only MFVec3d field. |
|
ConstMFVec3d(int size,
double[] vec3s)
Construct a read-only MFVec3d field. |
Method Summary | |
---|---|
void |
get1Value(int index,
double[] vec3s)
Retrieves a specific element in an MFVec3d and returns it as a double array. |
void |
get1Value(int index,
SFVec3d vec)
Retrieves a specific element in an MFVec3d and returns it as an SFVec3d. |
int |
getSize()
Number of elements contained in the MField. |
void |
getValue(double[] vec3s)
Retrieves the value of an MFVec3d field. |
void |
getValue(double[][] vec3s)
Retrieves the value of an MFVec3d 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 ConstMFVec3d(double[][] vec3s)
vec3s
- An array of sets of x,y,z valuespublic ConstMFVec3d(double[] vec3s)
vec3s
- List of x,y,z tuplespublic ConstMFVec3d(int size, double[] vec3s)
size
- Number of SFVec3d elements passed in.vec3s
- List of x,y,z tuplesMethod Detail |
---|
public int getSize()
ConstMField
getSize
in class ConstMField
public void getValue(double[][] vec3s)
vec3s
- 2D array of x,y,z tuples to be returned.public void getValue(double[] vec3s)
vec3s
- Array of x,y,z tuples to be returned.public void get1Value(int index, double[] vec3s)
index
- Position of desired elementvec3s
- Element at specified positionpublic void get1Value(int index, SFVec3d vec)
index
- Position of desired elementvec
- Element at specified position
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |