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.int
Return the number of available light.boolean
Return the lightning status.void
reload()
Reload light.void
setLightningEnable
(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:LightManager
Return the number of available light.- Specified by:
getLightNumber
in interfaceLightManager
- Returns:
- the number of available light.
-
getLight
Description copied from interface:LightManager
Return the i-th light.null
is returned if i is not a valid index.- Specified by:
getLight
in interfaceLightManager
- Parameters:
i
- the given index.- Returns:
- the i-th light.
-
setLightningEnable
public void setLightningEnable(boolean isLightningEnable) Description copied from interface:LightManager
Set the lightning status. Lighting is initially disabled. When it is enabled, light sources that are enabled contribute to the lighting calculation.- Specified by:
setLightningEnable
in interfaceLightManager
- Parameters:
isLightningEnable
- the new lightning status.
-
isLightningEnable
public boolean isLightningEnable()Description copied from interface:LightManager
Return the lightning status.- Specified by:
isLightningEnable
in interfaceLightManager
- Returns:
- the lightning status.
-
reload
public void reload()Reload light.
-