anl.aida.viz3d
Class VShapeTS

java.lang.Object
  extended by anl.aida.viz3d.VSpatial
      extended by anl.aida.viz3d.VGeometry
          extended by anl.aida.viz3d.VShapeTS

public class VShapeTS
extends VGeometry

Encapsulates a vertex array in a VSpatial. This assumes the vertex array is in GL.GL_TRIANGLE_STRIP format.


Field Summary
 
Fields inherited from class anl.aida.viz3d.VGeometry
geom, mode, vertexCount
 
Fields inherited from class anl.aida.viz3d.VSpatial
appearence, boundingSphere, clientMap, dirty, id, localRotation, localScale, localTrans, parent, visible, worldRotation, worldScale, worldTrans
 
Constructor Summary
VShapeTS(GeometryData geom)
           
 
Method Summary
protected  boolean intersects(javax.vecmath.Point3f rayOrigin, javax.vecmath.Vector3f rayDirection)
          Tests whether the ray intersects with the geometry (the triangles) of this shape.
 
Methods inherited from class anl.aida.viz3d.VGeometry
doDraw, intersects
 
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
 

Constructor Detail

VShapeTS

public VShapeTS(GeometryData geom)
Method Detail

intersects

protected boolean intersects(javax.vecmath.Point3f rayOrigin,
                             javax.vecmath.Vector3f rayDirection)
Tests whether the ray intersects with the geometry (the triangles) of this shape.

Specified by:
intersects in class VGeometry
Parameters:
rayOrigin - the ray's origin
rayDirection - the ray's shape
Returns:
true if the ray does intersect with this geometry