org.jzy3d.plot3d.rendering.lights
Class Light
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Light
public Light(int id)
Light
public Light(int id,
boolean representationDisplayed)
Light
public Light(int id,
boolean enabled,
boolean representationDisplayed)
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)