|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.light.LightList
public final class LightList
LightList
is used internally by Spatial
s to manage
lights that are attached to them.
Constructor Summary | |
---|---|
LightList()
Default constructor for serialization. |
|
LightList(Spatial owner)
Creates a LightList for the given Spatial . |
Method Summary | |
---|---|
void |
add(Light l)
Adds a light to the list. |
void |
clear()
Resets list size to 0. |
LightList |
clone()
|
Light |
get(int num)
|
java.util.Iterator<Light> |
iterator()
Returns an iterator that can be used to iterate over this LightList. |
void |
read(JmeImporter im)
|
void |
remove(int index)
Remove the light at the given index. |
void |
remove(Light l)
Removes the given light from the LightList. |
void |
setOwner(Spatial owner)
Set the owner of the LightList. |
int |
size()
|
void |
sort(boolean transformChanged)
Sorts the elements in the list acording to their Comparator. |
void |
update(LightList local,
LightList parent)
Updates a "world-space" light list, using the spatial's local-space light list and its parent's world-space light list. |
void |
write(JmeExporter ex)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LightList()
public LightList(Spatial owner)
LightList
for the given Spatial
.
owner
- The spatial ownerMethod Detail |
---|
public void setOwner(Spatial owner)
owner
- public void add(Light l)
l
- The light to add.public void remove(int index)
index
- public void remove(Light l)
l
- the light to removepublic int size()
public Light get(int num)
java.lang.IndexOutOfBoundsException
- If the given index is outside bounds.public void clear()
public void sort(boolean transformChanged)
transformChanged
- Whether the spatial's transform has changedpublic void update(LightList local, LightList parent)
local
- parent
- public java.util.Iterator<Light> iterator()
iterator
in interface java.lang.Iterable<Light>
public LightList clone()
clone
in class java.lang.Object
public void write(JmeExporter ex) throws java.io.IOException
write
in interface Savable
java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
read
in interface Savable
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |