|
|||||||||
| 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.ConstMFColor
public class ConstMFColor
Represents a read-only VRML MFColor field in Java.
| Constructor Summary | |
|---|---|
ConstMFColor(float[] colors)
Construct a read-only MFColor field. |
|
ConstMFColor(float[][] colors)
Construct a read-only MFColor field. |
|
ConstMFColor(int size,
float[] colors)
Construct a read-only MFColor field. |
|
| Method Summary | |
|---|---|
void |
get1Value(int index,
float[] colors)
Retrieves a specific SFColor element in an MFColor and returns it as a float array. |
void |
get1Value(int index,
SFColor color)
Retrieves a specific SFColor element in an MFColor and returns it as an SFColor object. |
int |
getSize()
Number of elements contained in the MField. |
void |
getValue(float[] colors)
Retrieves the value of an MFColor field. |
void |
getValue(float[][] colors)
Retrieves the value of an MFColor 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 ConstMFColor(float[][] colors)
colors - An array of sets of three-float values (RGB)public ConstMFColor(float[] colors)
colors - An array of RGB values.
public ConstMFColor(int size,
float[] colors)
size - Number of RGB value passed in array.colors - Array of RGB values.| Method Detail |
|---|
public int getSize()
ConstMField
getSize in class ConstMFieldpublic void getValue(float[][] colors)
colors - 2D array of sets of RGB values to be returned.public void getValue(float[] colors)
colors - Array of sets of RGB values to be returned.
public void get1Value(int index,
float[] colors)
index - Position of desired SFColorcolors - RGB value of specified SFColor.
public void get1Value(int index,
SFColor color)
index - Position of desired SFColorcolor - SFColor that will be set to desired value.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||