|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.javagl.swogl.scene.DefaultLightSetup
public final class DefaultLightSetup
Default implementation of a LightSetup
| Constructor Summary | |
|---|---|
DefaultLightSetup()
Creates a new, empty light setup, with a default ambient light of (0.2, 0.2, 0.2, 1.0). |
|
| Method Summary | |
|---|---|
void |
addLight(Light light)
Add the given Light to this setup. |
void |
addLightSetupListener(LightSetupListener lightSetupListener)
Add the given LightSetupListener to be informed about
changes in this LightSetup |
void |
clear()
Removes all lights from this LightSetup |
javax.vecmath.Color4f |
getAmbient()
Returns the global ambient light color |
java.util.List<Light> |
getLights()
Returns an unmodifiable copy of the current list of lights contained in this setup. |
int |
getMaximumNumberOfLights()
Returns the maximum number of Lights that
may be contained in this setup |
void |
removeLight(int index)
Removes the Light with the given Index from
this setup. |
void |
removeLight(Light light)
Removes the given Light from this setup. |
void |
removeLightSetupListener(LightSetupListener lightSetupListener)
Remove the given LightSetupListener |
void |
setAmbient(javax.vecmath.Tuple4f color)
Set the global ambient light color |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultLightSetup()
| Method Detail |
|---|
public javax.vecmath.Color4f getAmbient()
LightSetup
getAmbient in interface LightSetuppublic void setAmbient(javax.vecmath.Tuple4f color)
LightSetup
setAmbient in interface LightSetupcolor - The global ambient light colorpublic int getMaximumNumberOfLights()
LightSetupLights that
may be contained in this setup
getMaximumNumberOfLights in interface LightSetuppublic void addLight(Light light)
LightSetup
addLight in interface LightSetuplight - The light to addpublic void removeLight(int index)
LightSetupLight with the given Index from
this setup.
removeLight in interface LightSetupindex - The index of the Light to remove.public void removeLight(Light light)
LightSetupLight from this setup.
removeLight in interface LightSetuplight - The Light to remove.public void clear()
LightSetup
clear in interface LightSetuppublic java.util.List<Light> getLights()
LightSetup
getLights in interface LightSetuppublic void addLightSetupListener(LightSetupListener lightSetupListener)
LightSetupLightSetupListener to be informed about
changes in this LightSetup
addLightSetupListener in interface LightSetuplightSetupListener - The listener to addpublic void removeLightSetupListener(LightSetupListener lightSetupListener)
LightSetupLightSetupListener
removeLightSetupListener in interface LightSetuplightSetupListener - The listener to removepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||