Class LightFilter

  • All Implemented Interfaces:
    java.awt.image.BufferedImageOp, java.lang.Cloneable
    Direct Known Subclasses:
    ChromeFilter

    public class LightFilter
    extends WholeImageFilter
    A filter which produces lighting and embossing effects.
    • Constructor Detail

      • LightFilter

        public LightFilter()
    • Method Detail

      • setBumpFunction

        public void setBumpFunction​(Function2D bumpFunction)
      • getBumpFunction

        public Function2D getBumpFunction()
      • setBumpHeight

        public void setBumpHeight​(float bumpHeight)
      • getBumpHeight

        public float getBumpHeight()
      • setBumpSoftness

        public void setBumpSoftness​(float bumpSoftness)
      • getBumpSoftness

        public float getBumpSoftness()
      • setBumpShape

        public void setBumpShape​(int bumpShape)
      • getBumpShape

        public int getBumpShape()
      • setViewDistance

        public void setViewDistance​(float viewDistance)
      • getViewDistance

        public float getViewDistance()
      • setEnvironmentMap

        public void setEnvironmentMap​(java.awt.image.BufferedImage environmentMap)
      • getEnvironmentMap

        public java.awt.Image getEnvironmentMap()
      • setColorSource

        public void setColorSource​(int colorSource)
      • getColorSource

        public int getColorSource()
      • setBumpSource

        public void setBumpSource​(int bumpSource)
      • getBumpSource

        public int getBumpSource()
      • setDiffuseColor

        public void setDiffuseColor​(int diffuseColor)
      • getDiffuseColor

        public int getDiffuseColor()
      • getLights

        public java.util.Vector getLights()
      • setFromRGB

        protected void setFromRGB​(Color4f c,
                                  int argb)
      • filterPixels

        protected int[] filterPixels​(int width,
                                     int height,
                                     int[] inPixels,
                                     java.awt.Rectangle transformedSpace)
        Description copied from class: WholeImageFilter
        Actually filter the pixels.
        Specified by:
        filterPixels in class WholeImageFilter
        Parameters:
        width - the image width
        height - the image height
        inPixels - the image pixels
        transformedSpace - the output bounds
        Returns:
        the output pixels
      • toString

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