org.jzy3d.plot3d.rendering.lights
Class Light

java.lang.Object
  extended by org.jzy3d.plot3d.rendering.lights.Light

public class Light
extends Object


Field Summary
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  int representationRadius
           
protected  Color specularColor
           
 
Constructor Summary
Light()
           
Light(int id)
           
Light(int id, boolean representationDisplayed)
           
Light(int id, boolean enabled, boolean representationDisplayed)
           
 
Method Summary
 void apply(javax.media.opengl.GL gl, Coord3d scale)
           
 Color getAmbiantColor()
           
 Color getDiffuseColor()
           
 int getId()
           
 Coord3d getPosition()
           
 boolean getRepresentationDisplayed()
           
 int 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(int representationRadius)
           
 void setSpecularColor(Color specularColor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 int representationRadius

glut

protected static com.jogamp.opengl.util.gl2.GLUT glut

lightCount

protected static int lightCount
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

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.