anl.aida.viz3d
Class VGeometry

java.lang.Object
  extended by anl.aida.viz3d.VSpatial
      extended by anl.aida.viz3d.VGeometry
Direct Known Subclasses:
VLine, VShapeTF, VShapeTS

public abstract class VGeometry
extends VSpatial

Abstract base class for the VSpatials that contain geometry.


Field Summary
protected  GeometryData geom
           
protected  int mode
           
protected  int vertexCount
           
 
Fields inherited from class anl.aida.viz3d.VSpatial
appearence, boundingSphere, clientMap, dirty, id, localRotation, localScale, localTrans, parent, visible, worldRotation, worldScale, worldTrans
 
Constructor Summary
VGeometry()
           
 
Method Summary
protected  void doDraw(javax.media.opengl.GL gl)
          Does the actual drawing.
protected abstract  boolean intersects(javax.vecmath.Point3f rayOrigin, javax.vecmath.Vector3f rayDirection)
          Gets whether or not the specified array intersects this VGeometry's geometry.
 void intersects(javax.vecmath.Point3f rayOrigin, javax.vecmath.Vector3f rayDirection, Accumulator accumulator)
          Performs an intersection these on this VSpatial with the specified ray.
 
Methods inherited from class anl.aida.viz3d.VSpatial
doGetBoundingSphere, draw, getBoundingSphere, getLocalBoundingSphere, getMaterialAppearence, getParent, getProperty, getTranslation, getWorldToLocalTransform, isVisible, markAsDirty, percolateDirtyUp, putProperty, rotate, rotate, scale, setMaterialAppearence, setParent, setVisible, transform, translate, translate, updateWorldTransformation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

geom

protected GeometryData geom

vertexCount

protected int vertexCount

mode

protected int mode
Constructor Detail

VGeometry

public VGeometry()
Method Detail

doDraw

protected void doDraw(javax.media.opengl.GL gl)
Description copied from class: VSpatial
Does the actual drawing.

Specified by:
doDraw in class VSpatial

intersects

public void intersects(javax.vecmath.Point3f rayOrigin,
                       javax.vecmath.Vector3f rayDirection,
                       Accumulator accumulator)
Description copied from class: VSpatial
Performs an intersection these on this VSpatial with the specified ray. If the intersection passes, this VSpatial should be added to the Accumulator.

Specified by:
intersects in class VSpatial
Parameters:
rayOrigin - the ray's origin
rayDirection - the ray's direction
accumulator - the accumulator to add the VSpatial to

intersects

protected abstract boolean intersects(javax.vecmath.Point3f rayOrigin,
                                      javax.vecmath.Vector3f rayDirection)
Gets whether or not the specified array intersects this VGeometry's geometry.

Parameters:
rayOrigin - the ray's origin
rayDirection - the ray's direction
Returns:
whether or not the specified array intersects this VGeometry's geometry.