anl.aida.viz3d
Class VNode
java.lang.Object
anl.aida.viz3d.VSpatial
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()
|
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 |
children
protected java.util.List<VSpatial> children
lock
private java.util.concurrent.locks.ReentrantLock lock
VNode
public VNode()
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 originrayDirection
- the ray's directionaccumulator
- the accumulator to add the VSpatial to