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