org.jzy3d.plot3d.rendering.lights
Class Light
java.lang.Object
org.jzy3d.plot3d.rendering.lights.Light
public class Light
- extends Object
Constructor Summary |
Light()
|
Light(int id)
|
Light(int id,
boolean representationDisplayed)
|
Light(int id,
boolean enabled,
boolean representationDisplayed)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
representationRadius
protected int representationRadius
glut
protected static com.jogamp.opengl.util.gl2.GLUT glut
lightCount
protected static int lightCount
Light
public Light()
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()
getRepresentationRadius
public int getRepresentationRadius()
setRepresentationRadius
public void setRepresentationRadius(int representationRadius)
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)
Copyright © 2013. All rights reserved.