|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jme.light.LightManagement
@Deprecated public class LightManagement
The LightStateCreator class is used to sort lights in a scene.
The utility allows the user to place multiple lights in a single container and
the best eight lights (those lights that most directly affect a Spatial) will be
applied.
This class should not be used anymore, use Node.sortLights() instead.
jmetest.util.TestManyLights,
Serialized Form| Field Summary | |
|---|---|
static boolean |
LIGHTS_ENABLED
Deprecated. |
| Constructor Summary | |
|---|---|
LightManagement()
Deprecated. Creates a new instance of LightStateCreator |
|
| Method Summary | |
|---|---|
void |
addLight(Light l)
Deprecated. Adds a light for the controller to sort into a spatial. |
boolean |
contains(Light l)
Deprecated. |
LightState |
createLightState(Spatial sp)
Deprecated. Creates a new LightState for a spatial placing the "best" eight lights currently maintained by the LightStateCreator. |
Light |
get(int i)
Deprecated. Gets the Ith light from the creator. |
java.lang.Class |
getClassTag()
Deprecated. The peristed type for the object. |
protected float |
getColorValue(Light l)
Deprecated. |
java.util.ArrayList<Light> |
getLights()
Deprecated. |
protected float |
getValueFor(Light l,
BoundingVolume val)
Deprecated. |
(package private) float |
getValueFor(PointLight l,
BoundingVolume val)
Deprecated. |
(package private) float |
getValueFor(SpotLight l,
BoundingVolume val)
Deprecated. |
protected float |
max(ColorRGBA a)
Deprecated. |
int |
numberOfLights()
Deprecated. Returns the number of lights in the creator. |
void |
read(JMEImporter im)
Deprecated. |
boolean |
removeLight(Light l)
Deprecated. |
void |
reset()
Deprecated. |
void |
resortLightsFor(LightState ls,
Spatial sp)
Deprecated. Gives the LightState the best possible lights for the Spatial. |
void |
setLights(java.util.ArrayList<Light> lights)
Deprecated. |
protected void |
sort(Spatial sp)
Deprecated. Sort the lightList in descending order according to the getValueFor(Light, BoundingVolume) method. |
void |
write(JMEExporter ex)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean LIGHTS_ENABLED
| Constructor Detail |
|---|
public LightManagement()
| Method Detail |
|---|
public void addLight(Light l)
public boolean contains(Light l)
public boolean removeLight(Light l)
public Light get(int i)
public int numberOfLights()
public LightState createLightState(Spatial sp)
public void resortLightsFor(LightState ls,
Spatial sp)
protected void sort(Spatial sp)
getValueFor(Light, BoundingVolume) method.
sp - spatial to pass to getValueForprotected float max(ColorRGBA a)
protected float getColorValue(Light l)
protected float getValueFor(Light l,
BoundingVolume val)
float getValueFor(PointLight l,
BoundingVolume val)
float getValueFor(SpotLight l,
BoundingVolume val)
public void read(JMEImporter im)
throws java.io.IOException
read in interface Savablejava.io.IOException
public void write(JMEExporter ex)
throws java.io.IOException
write in interface Savablejava.io.IOExceptionpublic java.lang.Class getClassTag()
Savable
getClassTag in interface Savablepublic java.util.ArrayList<Light> getLights()
public void setLights(java.util.ArrayList<Light> lights)
public void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||