Class Light


  • public class Light
    extends Object
    • 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
    • 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()
      • 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)