Class OGLIndexedQuadSet

java.lang.Object
All Implemented Interfaces:
org.j3d.aviatrix3d.NodeUpdateListener, VRMLNode, FrameStateListener, VRMLComponentGeometryNodeType, VRMLGeometryNodeType, VRMLNodeComponentListener, VRMLNodeType, OGLGeometryNodeType, OGLVRMLNode

public class OGLIndexedQuadSet extends BaseIndexedQuadSet implements OGLGeometryNodeType, org.j3d.aviatrix3d.NodeUpdateListener
OpenGL implementation of a IndexedQuadSet.

The point set directly maps to Aviatrix3D's IndexedQuadArray class. When the coordinates change to a different length than the current set, it will notify the geometry listener to fetch the new information.

If the VRML file did not provide a Coordinate node, then this class will not present any geometry from the getGeometry() or getSceneGraphObject() calls. If the user later specifies the renderety through an event, the listener(s) will be notified.

In this implementation, if the length of the color array is shorter that the length of the coordinate array, colors will be ignored.

Version:
$Revision: 1.7 $ copied from the OGLQuadSet node by Alan Hudson, with incorporation of the 'index' node attribute.
Author:
Vincent Marchetti