Package org.web3d.x3d.sai
Interface SFColor
- All Superinterfaces:
X3DField
- All Known Implementing Classes:
SFColorObject
public interface SFColor extends X3DField
The SFColor field specifies one RGB (red-green-blue) color triple. Each color value is an RGB triple of floating point numbers in the range 0.0 to 1.0. The default value of an uninitialized SFColor field is (0 0 0). Warning: comma characters in attribute values do not pass strict XML validation.
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
-
Method Summary
Methods inherited from interface org.web3d.x3d.sai.X3DField
addX3DEventListener, getDefinition, isReadable, isWritable, removeX3DEventListener
-
Method Details
-
getValue
void getValue(float[] valueDestination)Write out the current value of this field into the external valueDestination array.- Parameters:
valueDestination- The array to be filled in with current field values.- Throws:
java.lang.ArrayIndexOutOfBoundsException- The provided valueDestination array was too small.
-
setValue
void setValue(float[] newValue)Assign a new value to this field.- Parameters:
newValue- the newValue to set
-