anl.aida.viz3d
Class VNode

java.lang.Object
  extended by anl.aida.viz3d.VSpatial
      extended by anl.aida.viz3d.VNode
Direct Known Subclasses:
StackDrawable2

public class VNode
extends VSpatial

VSpatial with children.


Field Summary
protected  java.util.List<VSpatial> children
           
private  java.util.concurrent.locks.ReentrantLock lock
           
 
Fields inherited from class anl.aida.viz3d.VSpatial
appearence, boundingSphere, clientMap, dirty, id, localRotation, localScale, localTrans, parent, visible, worldRotation, worldScale, worldTrans
 
Constructor Summary
VNode()
           
 
Method Summary
 void addChild(VSpatial child)
           
 void addChildren(VSpatial... items)
           
 java.lang.Iterable<VSpatial> children()
           
protected  void doDraw(javax.media.opengl.GL gl)
          Does the actual drawing.
protected  BoundingSphere doGetBoundingSphere()
          Gets the actual bounding sphere.
 VSpatial get(int childIndex)
           
 int getChildCount()
           
 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 removeAllChildren()
           
 void removeChild(VSpatial child)
           
 void updateWorldTransformation()
           
 
Methods inherited from class anl.aida.viz3d.VSpatial
draw, getBoundingSphere, getLocalBoundingSphere, getMaterialAppearence, getParent, getProperty, getTranslation, getWorldToLocalTransform, isVisible, percolateDirtyUp, putProperty, rotate, rotate, scale, setMaterialAppearence, 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

children

protected java.util.List<VSpatial> children

lock

private java.util.concurrent.locks.ReentrantLock lock
Constructor Detail

VNode

public VNode()
Method Detail

addChild

public void addChild(VSpatial child)

children

public java.lang.Iterable<VSpatial> children()

addChildren

public void addChildren(VSpatial... items)

removeChild

public void removeChild(VSpatial child)

getChildCount

public int getChildCount()

get

public VSpatial get(int childIndex)

removeAllChildren

public void removeAllChildren()

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

doGetBoundingSphere

protected BoundingSphere doGetBoundingSphere()
Description copied from class: VSpatial
Gets the actual bounding sphere. This is called by getBoundingSphere once the worldTransforms have been updated.

Overrides:
doGetBoundingSphere in class VSpatial
Returns:
this VSpatial's BoundingSphere.

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