org.scilab.forge.scirenderer.implementation.jogl.lightning
Class JoGLLightManager

java.lang.Object
  extended by org.scilab.forge.scirenderer.implementation.jogl.lightning.JoGLLightManager
All Implemented Interfaces:
LightManager

public class JoGLLightManager
extends java.lang.Object
implements 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
JoGLLightManager(JoGLDrawingTools drawingTools)
          Default constructor.
 
Method Summary
 Light getLight(int i)
          Return the i-th light.
 int getLightNumber()
          Return the number of available light.
 boolean isLightningEnable()
          Return the lightning status.
 void reload()
          Reload light.
 void setLightningEnable(boolean isLightningEnable)
          Set the lightning status.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JoGLLightManager

public JoGLLightManager(JoGLDrawingTools drawingTools)
Default constructor.

Parameters:
drawingTools - the drawing tools.
Method Detail

getLightNumber

public int getLightNumber()
Description copied from interface: LightManager
Return the number of available light.

Specified by:
getLightNumber in interface LightManager
Returns:
the number of available light.

getLight

public Light getLight(int i)
Description copied from interface: LightManager
Return the i-th light. null is returned if i is not a valid index.

Specified by:
getLight in interface LightManager
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 interface LightManager
Parameters:
isLightningEnable - the new lightning status.

isLightningEnable

public boolean isLightningEnable()
Description copied from interface: LightManager
Return the lightning status.

Specified by:
isLightningEnable in interface LightManager
Returns:
the lightning status.

reload

public void reload()
Reload light.