anl.aida.viz3d
Class VGeometry
java.lang.Object
anl.aida.viz3d.VSpatial
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.
Fields inherited from class anl.aida.viz3d.VSpatial |
appearence, boundingSphere, clientMap, dirty, id, localRotation, localScale, localTrans, parent, visible, worldRotation, worldScale, worldTrans |
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 |
geom
protected GeometryData geom
vertexCount
protected int vertexCount
mode
protected int mode
VGeometry
public VGeometry()
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 originrayDirection
- the ray's directionaccumulator
- 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 originrayDirection
- the ray's direction
- Returns:
- whether or not the specified array intersects
this VGeometry's geometry.