public class ConstMFColor extends ConstMField
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
clonepublic 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.public int getSize()
ConstMFieldgetSize 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.