org.apache.batik.ext.awt.image.renderable
public class SpecularLightingRable8Bit extends AbstractColorInterpolationRable implements SpecularLightingRable
Constructor Summary | |
---|---|
SpecularLightingRable8Bit(Filter src, Rectangle2D litRegion, Light light, double ks, double specularExponent, double surfaceScale, double[] kernelUnitLength) |
Method Summary | |
---|---|
RenderedImage | createRendering(RenderContext rc) |
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() |
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(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 |
Returns: specular constant, or ks.
Returns: Light object used for the specular lighting
Returns: specular exponent
Returns: surfaceScale
Parameters: light New Light object