vrml.field
Class MFColor

java.lang.Object
  extended by vrml.Field
      extended by vrml.MField
          extended by vrml.field.MFColor
All Implemented Interfaces:
java.lang.Cloneable

public class MFColor
extends MField


Constructor Summary
MFColor()
           
MFColor(float[] colors)
           
MFColor(float[][] colors)
           
MFColor(int size, float[] colors)
           
 
Method Summary
 void addValue(ConstSFColor color)
           
 void addValue(float red, float green, float blue)
           
 void addValue(SFColor color)
           
 void clear()
           
 void delete(int index)
           
 void get1Value(int index, float[] colors)
           
 void get1Value(int index, SFColor color)
           
 int getSize()
           
 void getValue(float[] colors)
           
 void getValue(float[][] colors)
           
 void insertValue(int index, ConstSFColor color)
           
 void insertValue(int index, float red, float green, float blue)
           
 void insertValue(int index, SFColor color)
           
 void set1Value(int index, ConstSFColor color)
           
 void set1Value(int index, float red, float green, float blue)
           
 void set1Value(int index, SFColor color)
           
 void setValue(ConstMFColor colors)
           
 void setValue(float[] colors)
           
 void setValue(float[][] colors)
           
 void setValue(int size, float[] colors)
           
 void setValue(MFColor colors)
          color[0] ...
 java.lang.String toString()
           
 
Methods inherited from class vrml.Field
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MFColor

public MFColor()

MFColor

public MFColor(float[][] colors)

MFColor

public MFColor(float[] colors)

MFColor

public MFColor(int size,
               float[] colors)
Method Detail

getSize

public int getSize()
Specified by:
getSize in class MField

clear

public void clear()
Specified by:
clear in class MField

delete

public void delete(int index)
Specified by:
delete in class MField

getValue

public void getValue(float[][] colors)

getValue

public void getValue(float[] colors)

get1Value

public void get1Value(int index,
                      float[] colors)

get1Value

public void get1Value(int index,
                      SFColor color)

setValue

public void setValue(float[][] colors)

setValue

public void setValue(float[] colors)

setValue

public void setValue(int size,
                     float[] colors)

setValue

public void setValue(MFColor colors)
color[0] ... color[size - 1] are used as color data in the way that color[0], color[1], and color[2] represent the first color. The number of colors is defined as " { }size / 3".


setValue

public void setValue(ConstMFColor colors)

set1Value

public void set1Value(int index,
                      ConstSFColor color)

set1Value

public void set1Value(int index,
                      SFColor color)

set1Value

public void set1Value(int index,
                      float red,
                      float green,
                      float blue)

addValue

public void addValue(ConstSFColor color)

addValue

public void addValue(SFColor color)

addValue

public void addValue(float red,
                     float green,
                     float blue)

insertValue

public void insertValue(int index,
                        ConstSFColor color)

insertValue

public void insertValue(int index,
                        SFColor color)

insertValue

public void insertValue(int index,
                        float red,
                        float green,
                        float blue)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object