Class OGLTextureCoordinate3D

java.lang.Object
All Implemented Interfaces:
VRMLNode, FrameStateListener, VRMLGeometricPropertyNodeType, VRMLNodeType, VRMLTextureCoordinateNodeType, OGLVRMLNode

public class OGLTextureCoordinate3D extends BaseTextureCoordinate3D implements OGLVRMLNode
OpenGL implementation of a TextureCoordinate3D node.

The texture coordinate node does not occupy a space in the Aviatrix3D 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.1 $
Author:
Justin Couch