|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme.scene.Spatial
com.jme.scene.Node
com.jme.light.SimpleLightNode
public class SimpleLightNode
Started Date: Jul 21, 2004
SimpleLightNode
defines a scene node that contains and maintains a
light object. A light node contains a single light, and positions the light
based on it's translation vector. If the contained light is a spot light, the
rotation of the node determines it's direction. If the contained light is a
Directional light rotation determines it's direction. It has no concept of
location.
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.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 | |
---|---|
SimpleLightNode()
|
|
SimpleLightNode(java.lang.String name,
Light light)
Constructor creates a new LightState object. |
Method Summary | |
---|---|
Light |
getLight()
|
void |
read(JMEImporter e)
|
void |
updateWorldData(float time)
updateWorldData modifies the light data based on any
change the light node has made. |
void |
write(JMEExporter e)
|
Methods inherited from class com.jme.scene.Node |
---|
applyRenderState, attachChild, attachChildAt, childChange, detachAllChildren, detachChild, detachChildAt, detachChildNamed, draw, findCollisions, findPick, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, hasCollision, lockBounds, lockMeshes, lockShadows, lockTransforms, setModelBound, sortLights, swapChildren, unlockBounds, unlockMeshes, unlockShadows, unlockTransforms, updateModelBound, updateWorldBound, updateWorldVectors |
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 |
---|
public SimpleLightNode()
public SimpleLightNode(java.lang.String name, Light light)
LightState
object. The light
state the node controls is required at construction time.
name
- the name of the scene element. This is required for
identification and comparision purposes.light
- The light to be moved around by this NodeMethod Detail |
---|
public Light getLight()
SimpleLightNode(String, Light)
public void updateWorldData(float time)
updateWorldData
modifies the light data based on any
change the light node has made.
updateWorldData
in class Node
time
- the time between frames.public void write(JMEExporter e) throws java.io.IOException
write
in interface Savable
write
in class Node
java.io.IOException
public void read(JMEImporter e) throws java.io.IOException
read
in interface Savable
read
in class Node
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |