com.jme.light
Class LightStateController

java.lang.Object
  extended by com.jme.scene.Controller
      extended by com.jme.light.LightStateController
All Implemented Interfaces:
Savable, java.io.Serializable

Deprecated.

@Deprecated
public class LightStateController
extends Controller

The LightStateController sorts the Lights from a collection of lights, the best eight for a particular Spatial. This can be used to create many lights inside a scene with moving objects. All spatials that use this controller are required to have there own light state and have the Light Combine Mode set to REPLACE. The controller uses a copy of a LightStateController. New lights that are added to the original LightStateContraller after the controller was created will be ignored. The Controller allows you to set a update Interval that allows you to tell the controller when to update.
This class should not be used anymore, use Node.sortLights() instead.

Author:
Badmi, Mark Powell
See Also:
jmetest.util.TestManyLights, Serialized Form

Field Summary
 
Fields inherited from class com.jme.scene.Controller
RT_CLAMP, RT_CYCLE, RT_WRAP
 
Constructor Summary
LightStateController()
          Deprecated.  
LightStateController(Spatial par, LightManagement manager)
          Deprecated. Creates a new instance of LightStateController.
LightStateController(Spatial par, LightManagement manager, float updateInt, int timeSlot)
          Deprecated. Creates a new instance of LightStateController The spatial passed to the function is required to have a LightState attached.
 
Method Summary
 float getUpdateInterval()
          Deprecated. Returns the Update Interval.
 void read(JMEImporter e)
          Deprecated.  
 void setUpdateInterval(float interval)
          Deprecated. Sets the Update Interval.
 void update(float time)
          Deprecated. Update is called internally.
 void write(JMEExporter e)
          Deprecated.  
 
Methods inherited from class com.jme.scene.Controller
getClassTag, getControllerValues, getMaxTime, getMinTime, getRepeatType, getSpeed, isActive, setActive, setControllerValues, setMaxTime, setMinTime, setRepeatType, setSpeed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LightStateController

public LightStateController()
Deprecated. 

LightStateController

public LightStateController(Spatial par,
                            LightManagement manager)
Deprecated. 
Creates a new instance of LightStateController. The spatial passed to the function is required to have a LightState attached. A copy is made of the lightCreator that passed so all addition the original lightCreator will be ignored.


LightStateController

public LightStateController(Spatial par,
                            LightManagement manager,
                            float updateInt,
                            int timeSlot)
Deprecated. 
Creates a new instance of LightStateController The spatial passed to the function is required to have a LightState attached. A copy is made of the lightCreator that passed so all addition the original lightCreator will be ignored.

Method Detail

setUpdateInterval

public void setUpdateInterval(float interval)
Deprecated. 
Sets the Update Interval.


getUpdateInterval

public float getUpdateInterval()
Deprecated. 
Returns the Update Interval.


update

public void update(float time)
Deprecated. 
Update is called internally. The parent (if it is visible) has all lights maintained by the LightStateCreator resorted for possible changes.

Specified by:
update in class Controller
Parameters:
time - The time in seconds between the last call to update and the current one

write

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

read

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