org.apache.batik.ext.awt.image.renderable
public class DiffuseLightingRable8Bit extends AbstractColorInterpolationRable implements DiffuseLightingRable
Constructor Summary | |
---|---|
DiffuseLightingRable8Bit(Filter src, Rectangle2D litRegion, Light light, double kd, double surfaceScale, double[] kernelUnitLength) |
Method Summary | |
---|---|
RenderedImage | createRendering(RenderContext rc) |
Rectangle2D | getBounds2D()
Returns this filter's bounds |
double | getKd() |
double[] | getKernelUnitLength()
Returns the min [dx,dy] distance in user space for evalutation of
the sobel gradient. |
Light | getLight() |
Rectangle2D | getLitRegion()
Returns this filter's litRegion |
Filter | getSource()
Returns the source to be filtered |
double | getSurfaceScale() |
void | setKd(double kd)
Sets the diffuse constant, or kd |
void | setKernelUnitLength(double[] kernelUnitLength)
Sets the min [dx,dy] distance in user space for evaluation of the
sobel gradient. |
void | setLight(Light light) |
void | setLitRegion(Rectangle2D litRegion)
Set this filter's litRegion |
void | setSource(Filter src)
Sets the source to be filtered |
void | setSurfaceScale(double surfaceScale)
Sets the surface scale |
Returns: diffuse constant, or kd.
Returns: Light object used for the diffuse lighting
Returns: surfaceScale
Parameters: light New Light object