Class DiffuseLightingRable8Bit

    • Constructor Detail

      • DiffuseLightingRable8Bit

        public DiffuseLightingRable8Bit​(Filter src,
                                        java.awt.geom.Rectangle2D litRegion,
                                        Light light,
                                        double kd,
                                        double surfaceScale,
                                        double[] kernelUnitLength)
    • Method Detail

      • getLitRegion

        public java.awt.geom.Rectangle2D getLitRegion()
        Returns this filter's litRegion
        Specified by:
        getLitRegion in interface DiffuseLightingRable
        Returns:
        the litRegion for this filter
      • setLitRegion

        public void setLitRegion​(java.awt.geom.Rectangle2D litRegion)
        Set this filter's litRegion
        Specified by:
        setLitRegion in interface DiffuseLightingRable
      • setKd

        public void setKd​(double kd)
        Sets the diffuse constant, or kd
        Specified by:
        setKd in interface DiffuseLightingRable
      • getKernelUnitLength

        public double[] getKernelUnitLength()
        Returns the min [dx,dy] distance in user space for evalutation of the sobel gradient.
        Specified by:
        getKernelUnitLength in interface DiffuseLightingRable
      • setKernelUnitLength

        public void setKernelUnitLength​(double[] kernelUnitLength)
        Sets the min [dx,dy] distance in user space for evaluation of the sobel gradient. If set to zero or null then device space will be used.
        Specified by:
        setKernelUnitLength in interface DiffuseLightingRable
      • createRendering

        public java.awt.image.RenderedImage createRendering​(java.awt.image.renderable.RenderContext rc)
        Specified by:
        createRendering in interface java.awt.image.renderable.RenderableImage