org.jzy3d.plot3d.rendering.lights
Class Light

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

public class Light
extends java.lang.Object


Constructor Summary
Light(int id)
           
Light(int id, boolean representationDisplayed)
           
Light(int id, boolean enabled, boolean representationDisplayed)
           
 
Method Summary
 void apply(javax.media.opengl.GL 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.GL 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)