|
|||||||||
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.ConstMFVec2f
public class ConstMFVec2f
Represents a read-only VRML MFVec2f field in Java.
Constructor Summary | |
---|---|
ConstMFVec2f(float[] vec2s)
Construct a read-only MFVec2f field. |
|
ConstMFVec2f(float[][] vec2s)
Construct a read-only MFVec2f field. |
|
ConstMFVec2f(int size,
float[] vec2s)
Construct a read-only MFVec2f field. |
Method Summary | |
---|---|
void |
get1Value(int index,
float[] vec2s)
Retrieves a specific element in an MFVec2f and returns it as a float array. |
void |
get1Value(int index,
SFVec2f vec)
Retrieves a specific element in an MFVec2f and returns it as an SFVec2f. |
int |
getSize()
Number of elements contained in the MField. |
void |
getValue(float[] vec2s)
Retrieves the value of an MFVec2f field. |
void |
getValue(float[][] vec2s)
Retrieves the value of an MFVec2f 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 ConstMFVec2f(float[][] vec2s)
vec2s
- An array of sets of x,y valuespublic ConstMFVec2f(float[] vec2s)
vec2s
- List of x,y pairspublic ConstMFVec2f(int size, float[] vec2s)
size
- Number of SFVec2f elements passed in.vec2s
- List of x,y pairsMethod Detail |
---|
public int getSize()
ConstMField
getSize
in class ConstMField
public void getValue(float[][] vec2s)
vec2s
- 2D array of x,y pairs to be returned.public void getValue(float[] vec2s)
vec2s
- Array of x,y pairs to be returned.public void get1Value(int index, float[] vec2s)
index
- Position of desired elementvec2s
- Element at specified positionpublic void get1Value(int index, SFVec2f 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 |