com.jme.scene.lod
Class DiscreteLodNode

java.lang.Object
  extended by com.jme.scene.Spatial
      extended by com.jme.scene.Node
          extended by com.jme.scene.SwitchNode
              extended by com.jme.scene.lod.DiscreteLodNode
All Implemented Interfaces:
Savable, java.io.Serializable

public class DiscreteLodNode
extends SwitchNode
implements Savable

DiscreteLodNode

Version:
$Id: DiscreteLodNode.java 4131 2009-03-19 20:15:28Z blaine.dev $
Author:
Mark Powell
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jme.scene.Spatial
Spatial.CullHint, Spatial.LightCombineMode, Spatial.NormalsMode, Spatial.TextureCombineMode
 
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
cullHint, frustrumIntersects, geometricalControllers, isCollidable, lightCombineMode, localRotation, localScale, localTranslation, LOCKED_BOUNDS, LOCKED_BRANCH, LOCKED_MESH_DATA, LOCKED_NONE, LOCKED_SHADOWS, LOCKED_TRANSFORMS, lockedMode, name, normalsMode, parent, queueDistance, renderQueueMode, renderStateList, textureCombineMode, worldBound, worldRotation, worldScale, worldTranslation, zOrder
 
Constructor Summary
DiscreteLodNode()
           
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.
 SwitchModel getSwitchModel()
          Gets the switch model associated with this node.
 void read(JMEImporter e)
           
 void selectLevelOfDetail(Camera camera)
           
 void write(JMEExporter e)
           
 
Methods inherited from class com.jme.scene.SwitchNode
attachChild, attachChildAt, disableAllChildren, findCollisions, findPick, getActiveChild, hasCollision, setActiveChild
 
Methods inherited from class com.jme.scene.Node
applyRenderState, childChange, detachAllChildren, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, lockBounds, lockMeshes, lockShadows, lockTransforms, setModelBound, sortLights, swapChildren, unlockBounds, unlockMeshes, unlockShadows, unlockTransforms, updateModelBound, updateWorldBound, updateWorldData, updateWorldVectors
 
Methods inherited from class com.jme.scene.Spatial
addController, calculateCollisions, calculatePick, clearControllers, clearRenderState, clearRenderState, getClassTag, getController, getControllerCount, getControllers, getCullHint, getLastFrustumIntersection, getLightCombineMode, getLocalCullHint, getLocalLightCombineMode, getLocalNormalsMode, getLocalRenderQueueMode, getLocalRotation, getLocalScale, getLocalTextureCombineMode, getLocalToWorldMatrix, getLocalTranslation, getLocks, getName, getNormalsMode, getParent, getRenderQueueMode, getRenderState, getRenderState, getTextureCombineMode, getUserData, getWorldBound, getWorldRotation, getWorldScale, getWorldTranslation, getZOrder, hasAncestor, isCollidable, localToWorld, lock, lock, lockBranch, lockMeshes, lookAt, onDraw, propagateBoundToRoot, propagateStatesFromRoot, removeController, removeController, removeFromParent, removeUserData, rotateUpTo, setCullHint, setIsCollidable, setLastFrustumIntersection, setLightCombineMode, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalTranslation, setLocalTranslation, setLocks, setLocks, setName, setNormalsMode, setParent, setRenderQueueMode, setRenderState, setTextureCombineMode, setUserData, setZOrder, setZOrder, toString, unlock, unlock, unlockBranch, unlockMeshes, updateGeometricState, updateRenderState, updateRenderState, updateWorldRotation, updateWorldScale, updateWorldTranslation, updateWorldVectors, worldToLocal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.jme.util.export.Savable
getClassTag
 

Constructor Detail

DiscreteLodNode

public DiscreteLodNode()

DiscreteLodNode

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

getSwitchModel

public SwitchModel getSwitchModel()
Gets the switch model associated with this node.

Returns:

selectLevelOfDetail

public void selectLevelOfDetail(Camera camera)

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.
See Also:
Spatial.draw(com.jme.renderer.Renderer)

write

public void write(JMEExporter e)
           throws java.io.IOException
Specified by:
write in interface Savable
Overrides:
write in class SwitchNode
Throws:
java.io.IOException

read

public void read(JMEImporter e)
          throws java.io.IOException
Specified by:
read in interface Savable
Overrides:
read in class SwitchNode
Throws:
java.io.IOException