vrml.field
Class ConstMFVec3f

java.lang.Object
  extended by vrml.Field
      extended by vrml.ConstField
          extended by vrml.ConstMField
              extended by vrml.field.ConstMFVec3f
All Implemented Interfaces:
java.lang.Cloneable

public class ConstMFVec3f
extends ConstMField

Represents a read-only VRML MFVec3f field in Java.


Constructor Summary
ConstMFVec3f(float[] vec3s)
          Construct a read-only MFVec3f field.
ConstMFVec3f(float[][] vec3s)
          Construct a read-only MFVec3f field.
ConstMFVec3f(int size, float[] vec3s)
          Construct a read-only MFVec3f field.
 
Method Summary
 void get1Value(int index, float[] vec3s)
          Retrieves a specific element in an MFVec3f and returns it as a float array.
 void get1Value(int index, SFVec3f vec)
          Retrieves a specific element in an MFVec3f and returns it as an SFVec3f.
 int getSize()
          Number of elements contained in the MField.
 void getValue(float[] vec3s)
          Retrieves the value of an MFVec3f field.
 void getValue(float[][] vec3s)
          Retrieves the value of an MFVec3f 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

ConstMFVec3f

public ConstMFVec3f(float[][] vec3s)
Construct a read-only MFVec3f field.

Parameters:
vec3s - An array of sets of x,y,z values

ConstMFVec3f

public ConstMFVec3f(float[] vec3s)
Construct a read-only MFVec3f field.

Parameters:
vec3s - List of x,y,z tuples

ConstMFVec3f

public ConstMFVec3f(int size,
                    float[] vec3s)
Construct a read-only MFVec3f field.

Parameters:
size - Number of SFVec3f elements passed in.
vec3s - List of x,y,z tuples
Method Detail

getSize

public int getSize()
Description copied from class: ConstMField
Number of elements contained in the MField.

Specified by:
getSize in class ConstMField
Returns:
the number of elements.

getValue

public void getValue(float[][] vec3s)
Retrieves the value of an MFVec3f field.

Parameters:
vec3s - 2D array of x,y,z tuples to be returned.

getValue

public void getValue(float[] vec3s)
Retrieves the value of an MFVec3f field.

Parameters:
vec3s - Array of x,y,z tuples to be returned.

get1Value

public void get1Value(int index,
                      float[] vec3s)
Retrieves a specific element in an MFVec3f and returns it as a float array.

Parameters:
index - Position of desired element
vec3s - Element at specified position

get1Value

public void get1Value(int index,
                      SFVec3f vec)
Retrieves a specific element in an MFVec3f and returns it as an SFVec3f.

Parameters:
index - Position of desired element
vec - Element at specified position