Class Light
- java.lang.Object
-
- org.jzy3d.plot3d.rendering.lights.Light
-
public class Light extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Color
ambiantColor
protected Color
diffuseColor
protected boolean
enabled
protected static int
lightCount
protected int
lightId
protected Coord3d
position
protected float[]
positionZero
protected boolean
representationDisplayed
protected float
representationRadius
protected Color
specularColor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(IPainter painter, Coord3d scale)
protected void
configureLight(IPainter painter)
protected void
configureLight(IPainter painter, int lightId)
Color
getAmbiantColor()
Color
getDiffuseColor()
int
getId()
Coord3d
getPosition()
boolean
getRepresentationDisplayed()
float
getRepresentationRadius()
Color
getSpecularColor()
boolean
isEnabled()
static void
resetCounter()
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)
-
-
-
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
-
representationRadius
protected float representationRadius
-
lightCount
protected static int lightCount
-
-
Method Detail
-
resetCounter
public static void resetCounter()
-
configureLight
protected void configureLight(IPainter painter)
-
configureLight
protected void configureLight(IPainter painter, int lightId)
-
setRepresentationDisplayed
public void setRepresentationDisplayed(boolean status)
Indicates if a square is drawn to show the light position.
-
getRepresentationDisplayed
public boolean getRepresentationDisplayed()
-
getRepresentationRadius
public float getRepresentationRadius()
-
setRepresentationRadius
public void setRepresentationRadius(float 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)
-
-