Class NRCoordinate

java.lang.Object
All Implemented Interfaces:
VRMLNode, FrameStateListener, VRMLCoordinateNodeType, VRMLGeometricPropertyNodeType, VRMLNodeType, NRVRMLNode

public class NRCoordinate extends BaseCoordinate implements NRVRMLNode
norender implementation of a Coordinate node.

The coordinate node does not occupy a space in the Java 3D scene graph as it is part of the GeometryArray class. This is used as a VRML construct only. When VRML changes the values here, we pass them back courtesy of the listeners to the children nodes.

Points are held internally as a flat array of values. The point list returned will always be flat. We do this because Java3D takes point values into the geometry classes as a single flat array. The array returned will always contain exactly the number of points specified.

The effect of this is that point values may be routed out of this node as a flat array of points rather than a 2D array. Receiving nodes should check for this version as well. This implementation will handle being routed either form.

Version:
$Revision: 1.3 $
Author:
Alan Hudson