Class LightFilter.Light

    • Constructor Summary

      Constructors 
      Constructor Description
      Light()  
      Light​(float azimuth, float elevation, float intensity)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone()  
      float getAzimuth()  
      float getCentreX()
      Get the centre of the light in the X direction as a proportion of the image size.
      float getCentreY()
      Get the centre of the light in the Y direction as a proportion of the image size.
      int getColor()  
      float getConeAngle()  
      float getDistance()  
      float getElevation()  
      float getFocus()  
      float getIntensity()  
      void prepare​(int width, int height)
      Prepare the light for rendering.
      void setAzimuth​(float azimuth)  
      void setCentreX​(float x)
      Set the centre of the light in the X direction as a proportion of the image size.
      void setCentreY​(float y)
      Set the centre of the light in the Y direction as a proportion of the image size.
      void setColor​(int color)  
      void setConeAngle​(float coneAngle)  
      void setDistance​(float distance)  
      void setElevation​(float elevation)  
      void setFocus​(float focus)  
      void setIntensity​(float intensity)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Light

        public Light()
      • Light

        public Light​(float azimuth,
                     float elevation,
                     float intensity)
    • Method Detail

      • setAzimuth

        public void setAzimuth​(float azimuth)
      • getAzimuth

        public float getAzimuth()
      • setElevation

        public void setElevation​(float elevation)
      • getElevation

        public float getElevation()
      • setDistance

        public void setDistance​(float distance)
      • getDistance

        public float getDistance()
      • setIntensity

        public void setIntensity​(float intensity)
      • getIntensity

        public float getIntensity()
      • setConeAngle

        public void setConeAngle​(float coneAngle)
      • getConeAngle

        public float getConeAngle()
      • setFocus

        public void setFocus​(float focus)
      • getFocus

        public float getFocus()
      • setColor

        public void setColor​(int color)
      • getColor

        public int getColor()
      • setCentreX

        public void setCentreX​(float x)
        Set the centre of the light in the X direction as a proportion of the image size.
        Parameters:
        x - the center
        See Also:
        getCentreX()
      • getCentreX

        public float getCentreX()
        Get the centre of the light in the X direction as a proportion of the image size.
        Returns:
        the center
        See Also:
        setCentreX(float)
      • setCentreY

        public void setCentreY​(float y)
        Set the centre of the light in the Y direction as a proportion of the image size.
        Parameters:
        y - the center
        See Also:
        getCentreY()
      • getCentreY

        public float getCentreY()
        Get the centre of the light in the Y direction as a proportion of the image size.
        Returns:
        the center
        See Also:
        setCentreY(float)
      • prepare

        public void prepare​(int width,
                            int height)
        Prepare the light for rendering.
        Parameters:
        width - the output image width
        height - the output image height
      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object