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
Constructors Constructor and Description Light()Light(int id)Light(int id, boolean representationDisplayed)Light(int id, boolean enabled, boolean representationDisplayed)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapply(com.jogamp.opengl.GL gl, Coord3d scale)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)
-
-
-
Constructor Detail
-
Light
public Light()
-
Light
public Light(int id)
-
Light
public Light(int id, boolean representationDisplayed)
-
Light
public Light(int id, boolean enabled, boolean representationDisplayed)
-
-
Method Detail
-
resetCounter
public static void resetCounter()
-
apply
public void apply(com.jogamp.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 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)
-
-
DMelt 3.0 © DataMelt by jWork.ORG