vrml.field
Class ConstMFVec3d

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

public class ConstMFVec3d
extends ConstMField

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

ConstMFVec3d

public ConstMFVec3d(double[][] vec3s)
Construct a read-only MFVec3d field.

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

ConstMFVec3d

public ConstMFVec3d(double[] vec3s)
Construct a read-only MFVec3d field.

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

ConstMFVec3d

public ConstMFVec3d(int size,
                    double[] vec3s)
Construct a read-only MFVec3d field.

Parameters:
size - Number of SFVec3d 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(double[][] vec3s)
Retrieves the value of an MFVec3d field.

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

getValue

public void getValue(double[] vec3s)
Retrieves the value of an MFVec3d field.

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

get1Value

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

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

get1Value

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

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