Class OGLPointSet

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

public class OGLPointSet extends BasePointSet implements OGLGeometryNodeType, org.j3d.aviatrix3d.NodeUpdateListener
OpenGL implementation of an PointSet.

The point set directly maps to Aviatrix3D's PointArray 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.13 $
Author:
Justin Couch