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 ColorambiantColorprotected ColordiffuseColorprotected booleanenabledprotected static intlightCountprotected intlightIdprotected Coord3dpositionprotected float[]positionZeroprotected booleanrepresentationDisplayedprotected floatrepresentationRadiusprotected ColorspecularColor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(IPainter painter, Coord3d scale)protected voidconfigureLight(IPainter painter)protected voidconfigureLight(IPainter painter, int lightId)ColorgetAmbiantColor()ColorgetDiffuseColor()intgetId()Coord3dgetPosition()booleangetRepresentationDisplayed()floatgetRepresentationRadius()ColorgetSpecularColor()booleanisEnabled()static voidresetCounter()voidsetAmbiantColor(Color ambiantColor)voidsetDiffuseColor(Color diffuseColor)voidsetEnabled(boolean enabled)voidsetPosition(Coord3d position)voidsetRepresentationDisplayed(boolean status)Indicates if a square is drawn to show the light position.voidsetRepresentationRadius(float representationRadius)voidsetSpecularColor(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)
-
-