anl.aida.viz3d
Class VLine

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

public class VLine
extends VGeometry

VSpatial that draws a line between two points.


Field Summary
private  javax.vecmath.Color4f color
           
private static float K_EPSILON
           
 
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
VLine(javax.vecmath.Point3f start, javax.vecmath.Point3f end)
           
 
Method Summary
protected  void doDraw(javax.media.opengl.GL gl)
          Does the actual drawing.
 javax.vecmath.Color4f getColor()
           
protected  boolean intersects(javax.vecmath.Point3f rayOrigin, javax.vecmath.Vector3f rayDirection)
          Gets whether or not the specified array intersects this VGeometry's geometry.
private  void resetBoundingSphere()
           
 void resetEndPt(javax.vecmath.Point3f end)
           
 void resetStartPt(javax.vecmath.Point3f start)
           
 void setColor(java.awt.Color color)
           
 
Methods inherited from class anl.aida.viz3d.VGeometry
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
 

Field Detail

K_EPSILON

private static final float K_EPSILON
See Also:
Constant Field Values

color

private javax.vecmath.Color4f color
Constructor Detail

VLine

public VLine(javax.vecmath.Point3f start,
             javax.vecmath.Point3f end)
Parameters:
start -
end -
Method Detail

resetBoundingSphere

private void resetBoundingSphere()

setColor

public void setColor(java.awt.Color color)

getColor

public javax.vecmath.Color4f getColor()

resetStartPt

public void resetStartPt(javax.vecmath.Point3f start)

resetEndPt

public void resetEndPt(javax.vecmath.Point3f end)

doDraw

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

Overrides:
doDraw in class VGeometry

intersects

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

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