Xj3D 2.0 VRML/X3D Code API

org.web3d.x3d.sai
Interface X3DColorNode

All Superinterfaces:
X3DGeometricPropertyNode, X3DNode
All Known Subinterfaces:
Color, ColorRGBA

public interface X3DColorNode
extends X3DGeometricPropertyNode

Defines the requirements of an X3DColorNode abstract node type

Version:
$Revision: 1.4 $
Author:
Rex Melton

Method Summary
 void getColor(float[] val)
          Return the color value in the argument float[]
 int getNumColor()
          Return the number of MFColor items in the color field.
 void setColor(float[] val)
          Set the color field.
 
Methods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
 

Method Detail

getNumColor

int getNumColor()
Return the number of MFColor items in the color field.

Returns:
the number of MFColor items in the color field.

getColor

void getColor(float[] val)
Return the color value in the argument float[]

Parameters:
val - The float[] to initialize.

setColor

void setColor(float[] val)
Set the color field.

Parameters:
val - The float[] to set.

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium