public class SpecularLightingRable8Bit extends AbstractColorInterpolationRable implements SpecularLightingRable
csLinear
props, srcs, stamp
Constructor and Description |
---|
SpecularLightingRable8Bit(Filter src,
java.awt.geom.Rectangle2D litRegion,
Light light,
double ks,
double specularExponent,
double surfaceScale,
double[] kernelUnitLength) |
Modifier and Type | Method and Description |
---|---|
java.awt.image.RenderedImage |
createRendering(java.awt.image.renderable.RenderContext rc) |
java.awt.geom.Rectangle2D |
getBounds2D()
Returns this filter's bounds
|
double[] |
getKernelUnitLength()
Returns the min [dx,dy] distance in user space for evalutation of
the sobel gradient.
|
double |
getKs() |
Light |
getLight() |
java.awt.geom.Rectangle2D |
getLitRegion()
Returns this filter's litRegion
|
Filter |
getSource()
Returns the source to be filtered
|
double |
getSpecularExponent() |
double |
getSurfaceScale() |
void |
setKernelUnitLength(double[] kernelUnitLength)
Sets the min [dx,dy] distance in user space for evaluation of the
sobel gradient.
|
void |
setKs(double ks)
Sets the specular constant, or ks
|
void |
setLight(Light light) |
void |
setLitRegion(java.awt.geom.Rectangle2D litRegion)
Set this filter's litRegion
|
void |
setSource(Filter src)
Sets the source to be filtered
|
void |
setSpecularExponent(double specularExponent)
Sets the specular exponent
|
void |
setSurfaceScale(double surfaceScale)
Sets the surface scale
|
convertSourceCS, convertSourceCS, getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinear
createDefaultRendering, createScaledRendering, getDependencyRegion, getDirtyRegion, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getTimeStamp, getWidth, init, init, init, init, isDynamic, touch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinear
getDependencyRegion, getDirtyRegion, getTimeStamp
public Filter getSource()
getSource
in interface SpecularLightingRable
public void setSource(Filter src)
setSource
in interface SpecularLightingRable
public java.awt.geom.Rectangle2D getBounds2D()
getBounds2D
in interface Filter
getBounds2D
in class AbstractRable
public java.awt.geom.Rectangle2D getLitRegion()
getLitRegion
in interface SpecularLightingRable
public void setLitRegion(java.awt.geom.Rectangle2D litRegion)
setLitRegion
in interface SpecularLightingRable
public Light getLight()
getLight
in interface SpecularLightingRable
public void setLight(Light light)
setLight
in interface SpecularLightingRable
light
- New Light objectpublic double getSurfaceScale()
getSurfaceScale
in interface SpecularLightingRable
public void setSurfaceScale(double surfaceScale)
setSurfaceScale
in interface SpecularLightingRable
public double getKs()
getKs
in interface SpecularLightingRable
public void setKs(double ks)
setKs
in interface SpecularLightingRable
public double getSpecularExponent()
getSpecularExponent
in interface SpecularLightingRable
public void setSpecularExponent(double specularExponent)
setSpecularExponent
in interface SpecularLightingRable
public double[] getKernelUnitLength()
getKernelUnitLength
in interface SpecularLightingRable
public void setKernelUnitLength(double[] kernelUnitLength)
setKernelUnitLength
in interface SpecularLightingRable
public java.awt.image.RenderedImage createRendering(java.awt.image.renderable.RenderContext rc)
createRendering
in interface java.awt.image.renderable.RenderableImage
Copyright © 2022 Apache Software Foundation. All Rights Reserved.