public class Light extends Object
Modifier and Type | Field and Description |
---|---|
protected Color |
ambiantColor |
protected Color |
diffuseColor |
protected boolean |
enabled |
protected static com.jogamp.opengl.util.gl2.GLUT |
glut |
protected static int |
lightCount |
protected int |
lightId |
protected Coord3d |
position |
protected float[] |
positionZero |
protected boolean |
representationDisplayed |
protected float |
representationRadius |
protected Color |
specularColor |
Constructor and Description |
---|
Light() |
Light(int id) |
Light(int id,
boolean representationDisplayed) |
Light(int id,
boolean enabled,
boolean representationDisplayed) |
Modifier and Type | Method and Description |
---|---|
void |
apply(com.jogamp.opengl.GL gl,
Coord3d scale) |
Color |
getAmbiantColor() |
Color |
getDiffuseColor() |
int |
getId() |
Coord3d |
getPosition() |
boolean |
getRepresentationDisplayed() |
float |
getRepresentationRadius() |
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 |
setRepresentationRadius(float representationRadius) |
void |
setSpecularColor(Color specularColor) |
protected int lightId
protected boolean enabled
protected Color ambiantColor
protected Color diffuseColor
protected Color specularColor
protected Coord3d position
protected float[] positionZero
protected boolean representationDisplayed
protected float representationRadius
protected static com.jogamp.opengl.util.gl2.GLUT glut
protected static int lightCount
public Light()
public Light(int id)
public Light(int id, boolean representationDisplayed)
public Light(int id, boolean enabled, boolean representationDisplayed)
public void apply(com.jogamp.opengl.GL gl, Coord3d scale)
public void setRepresentationDisplayed(boolean status)
public boolean getRepresentationDisplayed()
public float getRepresentationRadius()
public void setRepresentationRadius(float representationRadius)
public int getId()
public void setPosition(Coord3d position)
public Coord3d getPosition()
public boolean isEnabled()
public void setEnabled(boolean enabled)
public Color getAmbiantColor()
public void setAmbiantColor(Color ambiantColor)
public Color getDiffuseColor()
public void setDiffuseColor(Color diffuseColor)
public Color getSpecularColor()
public void setSpecularColor(Color specularColor)
Copyright © 2016. All rights reserved.