|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A node which specifies color information.
| Method Summary | |
void |
getColor(float[] colors)
Get current value of field color. |
int |
getNumColorComponents()
Get the number of components defined for this texture type. |
int |
getNumColors()
Get the number of items in the color array now. |
void |
setColor(float[] newColor,
int numValid)
Accessor method to set a new value for field attribute color. |
| Methods inherited from interface org.web3d.vrml.nodes.VRMLGeometricPropertyNodeType |
addComponentListener, removeComponentListener |
| Methods inherited from interface org.web3d.vrml.nodes.VRMLNodeType |
addNodeListener, getFieldValue, getMetadataObject, getRefCount, hasFieldChanged, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, sendRoute, setDEF, setFrameStateManager, setMetadataObject, setupFinished, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, updateRefCount |
| Methods inherited from interface org.web3d.vrml.lang.VRMLNode |
getFieldDeclaration, getFieldIndex, getNodeFieldIndices, getNumFields, getPrimaryType, getSecondaryType, getUserData, getVRMLNodeName, isDEF, setErrorReporter, setUserData, setVersion |
| Methods inherited from interface org.web3d.vrml.nodes.FrameStateListener |
allEventsComplete |
| Method Detail |
public int getNumColorComponents()
public void setColor(float[] newColor,
int numValid)
newColor - An array of 3 floats(r,g,b) specifying the new colornumValid - The number of valid values to copy from the array
ArrayIndexOutofBoundsExceptionpublic int getNumColors()
public void getColor(float[] colors)
colors - The array to copy the color values into
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||