org.jzy3d.plot3d.rendering.lights
Class Light

java.lang.Object
  extended by org.jzy3d.plot3d.rendering.lights.Light

public class Light
extends Object


Field Summary
protected  Color ambiantColor
           
protected  Color diffuseColor
           
protected  boolean enabled
           
protected static com.jogamp.opengl.util.gl2.GLUT glut
           
protected  int lightId
           
protected  Coord3d position
           
protected  float[] positionZero
           
protected  boolean representationDisplayed
           
protected  Color specularColor
           
 
Constructor Summary
Light(int id)
           
Light(int id, boolean representationDisplayed)
           
Light(int id, boolean enabled, boolean representationDisplayed)
           
 
Method Summary
 void apply(javax.media.opengl.GL2 gl, Coord3d scale)
           
 Color getAmbiantColor()
           
 Color getDiffuseColor()
           
 int getId()
           
 Coord3d getPosition()
           
 boolean getRepresentationDisplayed()
           
 Color getSpecularColor()
           
 boolean isEnabled()
           
 void setAmbiantColor(Color ambiantColor)
           
 void setDiffuseColor(Color diffuseColor)
           
 void setEnabled(boolean enabled)
           
 void setPosition(Coord3d position)
           
 void setRepresentationDisplayed(boolean status)
          Indicates if a square is drawn to show the light position.
 void setSpecularColor(Color specularColor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lightId

protected int lightId

enabled

protected boolean enabled

ambiantColor

protected Color ambiantColor

diffuseColor

protected Color diffuseColor

specularColor

protected Color specularColor

position

protected Coord3d position

positionZero

protected float[] positionZero

representationDisplayed

protected boolean representationDisplayed

glut

protected static com.jogamp.opengl.util.gl2.GLUT glut
Constructor Detail

Light

public Light(int id)

Light

public Light(int id,
             boolean representationDisplayed)

Light

public Light(int id,
             boolean enabled,
             boolean representationDisplayed)
Method Detail

apply

public void apply(javax.media.opengl.GL2 gl,
                  Coord3d scale)

setRepresentationDisplayed

public void setRepresentationDisplayed(boolean status)
Indicates if a square is drawn to show the light position.


getRepresentationDisplayed

public boolean getRepresentationDisplayed()

getId

public int getId()

setPosition

public void setPosition(Coord3d position)

getPosition

public Coord3d getPosition()

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean enabled)

getAmbiantColor

public Color getAmbiantColor()

setAmbiantColor

public void setAmbiantColor(Color ambiantColor)

getDiffuseColor

public Color getDiffuseColor()

setDiffuseColor

public void setDiffuseColor(Color diffuseColor)

getSpecularColor

public Color getSpecularColor()

setSpecularColor

public void setSpecularColor(Color specularColor)