com.jme.scene
Class BumpMapNode

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

public class BumpMapNode
extends Node

BumpMapNode

Version:
$id$
Author:
Mark Powell
See Also:
Serialized Form

Field Summary
 
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
BumpMapNode(Node objects, Texture normalMap, Light light, boolean modulate)
           
 
Method Summary
 void computeLightVectors(TriMesh mesh)
           
 void draw(Renderer r)
          draw calls the onDraw method for each child maintained by this node.
 AlphaState getAlphaState()
           
 Light getLight()
           
 Texture getNormalMap()
           
 Node getObjects()
           
 TextureState getTextureState()
           
 boolean isModulated()
           
 void setCurrentAmbientMaterial(ColorRGBA color)
           
 void setCurrentDiffuseMaterial(ColorRGBA color, int maxTextureUnits)
           
 void updateWorldBound()
          updateWorldBound merges the bounds of all the children maintained by this node.
 
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, updateWorldData
 
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

BumpMapNode

public BumpMapNode(Node objects,
                   Texture normalMap,
                   Light light,
                   boolean modulate)
Method Detail

getObjects

public Node getObjects()

getNormalMap

public Texture getNormalMap()

getTextureState

public TextureState getTextureState()

getLight

public Light getLight()

getAlphaState

public AlphaState getAlphaState()

isModulated

public boolean isModulated()

setCurrentAmbientMaterial

public void setCurrentAmbientMaterial(ColorRGBA color)

setCurrentDiffuseMaterial

public void setCurrentDiffuseMaterial(ColorRGBA color,
                                      int maxTextureUnits)

computeLightVectors

public void computeLightVectors(TriMesh mesh)

updateWorldBound

public void updateWorldBound()
Description copied from class: Node
updateWorldBound merges the bounds of all the children maintained by this node. This will allow for faster culling operations.

Overrides:
updateWorldBound in class Node
See Also:
Spatial.updateWorldBound()

draw

public void draw(Renderer r)
Description copied from class: Node
draw calls the onDraw method for each child maintained by this node.

Overrides:
draw in class Node
Parameters:
r - the renderer to draw to.
See Also:
Spatial.draw(com.jme.renderer.Renderer)