com.jme.scene.lod
Class DiscreteLodNode

java.lang.Object
  extended bycom.jme.scene.Spatial
      extended bycom.jme.scene.Node
          extended bycom.jme.scene.SwitchNode
              extended bycom.jme.scene.lod.DiscreteLodNode
All Implemented Interfaces:
java.io.Serializable

public class DiscreteLodNode
extends SwitchNode

DiscreteLodNode

Version:
$Id: DiscreteLodNode.java,v 1.5 2004/09/14 21:52:23 mojomonkey Exp $
Author:
Mark Powell
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jme.scene.SwitchNode
SN_INVALID_CHILD
 
Fields inherited from class com.jme.scene.Node
children
 
Fields inherited from class com.jme.scene.Spatial
currentStates, defaultStateList, forceCull, forceView, frustrumIntersects, geometricalControllers, lightCombineMode, localRotation, localScale, localTranslation, name, parent, queueDistance, renderQueueMode, renderStateList, textureCombineMode, worldBound, worldRotation, worldScale, worldTranslation, zOrder
 
Constructor Summary
DiscreteLodNode(java.lang.String name, SwitchModel model)
           
 
Method Summary
 void draw(Renderer r)
          If a valid active child is set, that child is rendered and none others.
 void selectLevelOfDetail(Camera camera)
           
 void updateWorldData(float time)
          updateWorldData updates all the children maintained by this node.
 
Methods inherited from class com.jme.scene.SwitchNode
disableAllChildren, getActiveChild, setActiveChild
 
Methods inherited from class com.jme.scene.Node
applyRenderState, attachChild, detachAllChildren, detachChild, detachChildAt, detachChildNamed, drawBounds, findCollisions, findPick, getChild, getChild, getChildren, getQuantity, hasChild, hasCollision, putClone, setChild, setForceView, updateCollisionTree, updateWorldBound
 
Methods inherited from class com.jme.scene.Spatial
addController, applyDefaultStates, calculateCollisions, calculatePick, clearCurrentState, clearCurrentStates, clearRenderState, getController, getControllers, getCurrentState, getLastFrustumIntersection, getLightCombineMode, getLocalRotation, getLocalScale, getLocalTranslation, getName, getParent, getRenderQueueMode, getRenderStateList, getTextureCombineMode, getWorldBound, getWorldRotation, getWorldScale, getWorldTranslation, getZOrder, isForceCulled, isForceView, onDraw, onDrawBounds, propagateBoundToRoot, propagateStatesFromRoot, removeController, removeFromParent, setForceCull, setLightCombineMode, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalTranslation, setName, setParent, setRenderQueueMode, setRenderState, setTextureCombineMode, setWorldBound, setZOrder, toString, updateGeometricState, updateRenderState, updateRenderState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DiscreteLodNode

public DiscreteLodNode(java.lang.String name,
                       SwitchModel model)
Method Detail

selectLevelOfDetail

public void selectLevelOfDetail(Camera camera)

updateWorldData

public void updateWorldData(float time)
Description copied from class: Node
updateWorldData updates all the children maintained by this node.

Overrides:
updateWorldData in class Node
Parameters:
time - the frame time.

draw

public void draw(Renderer r)
Description copied from class: SwitchNode
If a valid active child is set, that child is rendered and none others. This function should be called internally only.

Overrides:
draw in class SwitchNode
Parameters:
r - The render system to draw the child.