Class JoGLLightManager
java.lang.Object
org.scilab.forge.scirenderer.implementation.jogl.lightning.JoGLLightManager
- All Implemented Interfaces:
LightManager
JoGL implementation of
LightManager- Author:
- Pierre Lando
-
Field Summary
Fields inherited from interface org.scilab.forge.scirenderer.lightning.LightManager
DEFAULT_LIGHTNING_STATUS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLight(int i) Return the i-th light.intReturn the number of available light.booleanReturn the lightning status.voidreload()Reload light.voidsetLightningEnable(boolean isLightningEnable) Set the lightning status.
-
Constructor Details
-
JoGLLightManager
Default constructor.- Parameters:
drawingTools- the drawing tools.
-
-
Method Details
-
getLightNumber
public int getLightNumber()Description copied from interface:LightManagerReturn the number of available light.- Specified by:
getLightNumberin interfaceLightManager- Returns:
- the number of available light.
-
getLight
Description copied from interface:LightManagerReturn the i-th light.nullis returned if i is not a valid index.- Specified by:
getLightin interfaceLightManager- Parameters:
i- the given index.- Returns:
- the i-th light.
-
setLightningEnable
public void setLightningEnable(boolean isLightningEnable) Description copied from interface:LightManagerSet the lightning status. Lighting is initially disabled. When it is enabled, light sources that are enabled contribute to the lighting calculation.- Specified by:
setLightningEnablein interfaceLightManager- Parameters:
isLightningEnable- the new lightning status.
-
isLightningEnable
public boolean isLightningEnable()Description copied from interface:LightManagerReturn the lightning status.- Specified by:
isLightningEnablein interfaceLightManager- Returns:
- the lightning status.
-
reload
public void reload()Reload light.
-