anl.aida.viz3d
Class CompositeGeometry

java.lang.Object
  extended by anl.aida.viz3d.VSpatial
      extended by anl.aida.viz3d.CompositeGeometry

public class CompositeGeometry
extends VSpatial


Field Summary
private  VGeometry[] geometries
           
 
Fields inherited from class anl.aida.viz3d.VSpatial
appearence, boundingSphere, clientMap, dirty, id, localRotation, localScale, localTrans, parent, visible, worldRotation, worldScale, worldTrans
 
Constructor Summary
CompositeGeometry(BoundingSphere sphere, VGeometry... geoms)
           
 
Method Summary
protected  void doDraw(javax.media.opengl.GL gl)
          Does the actual drawing.
 void intersects(javax.vecmath.Point3f rayOrigin, javax.vecmath.Vector3f rayDirection, Accumulator accumulator)
          Performs an intersection these on this VSpatial with the specified ray.
protected  void markAsDirty()
           
 void setMaterialAppearence(MaterialAppearence app)
          Sets the MaterialAppearence of this VSpatial.
 void updateWorldTransformation()
           
 
Methods inherited from class anl.aida.viz3d.VSpatial
doGetBoundingSphere, draw, getBoundingSphere, getLocalBoundingSphere, getMaterialAppearence, getParent, getProperty, getTranslation, getWorldToLocalTransform, isVisible, percolateDirtyUp, putProperty, rotate, rotate, scale, setParent, setVisible, transform, translate, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

geometries

private VGeometry[] geometries
Constructor Detail

CompositeGeometry

public CompositeGeometry(BoundingSphere sphere,
                         VGeometry... geoms)
Method Detail

markAsDirty

protected void markAsDirty()
Overrides:
markAsDirty in class VSpatial

updateWorldTransformation

public void updateWorldTransformation()
Overrides:
updateWorldTransformation in class VSpatial

doDraw

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

Specified by:
doDraw in class VSpatial

setMaterialAppearence

public void setMaterialAppearence(MaterialAppearence app)
Description copied from class: VSpatial
Sets the MaterialAppearence of this VSpatial.

Overrides:
setMaterialAppearence in class VSpatial
Parameters:
app - the new appearence

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