anl.aida.viz3d
Class VShapeTF

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

public class VShapeTF
extends VGeometry

Encapsulates a vertex array in a VNode. This assumes the vertex array is GL.GL_TRIANGLE_FAN 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
VShapeTF(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

VShapeTF

public VShapeTF(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