|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DiffuseLightingRable
This filter primitive lights an image using the alpha channel as a bump map. The resulting image is an RGBA opaque image based on the light color with alpha = 1.0 everywhere. The lighting calculation follows the standard diffuse component of the Phong lighting model. The resulting image depends on the light color, light position and surface geometry of the input bump map. This filter follows the specification of the feDiffuseLighting filter in the SVG 1.0 specification.
Field Summary |
---|
Fields inherited from interface java.awt.image.renderable.RenderableImage |
---|
HINTS_OBSERVED |
Method Summary | |
---|---|
double |
getKd()
|
double[] |
getKernelUnitLength()
Returns the min [dx,dy] distance in user space for evalutation of the sobel gradient. |
Light |
getLight()
|
Rectangle2D |
getLitRegion()
|
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)
Sets the litRegion for this filter |
void |
setSource(Filter src)
Sets the source to be filtered |
void |
setSurfaceScale(double surfaceScale)
Sets the surface scale |
Methods inherited from interface org.apache.batik.ext.awt.image.renderable.FilterColorInterpolation |
---|
getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinear |
Methods inherited from interface org.apache.batik.ext.awt.image.renderable.Filter |
---|
getBounds2D, getDependencyRegion, getDirtyRegion, getTimeStamp |
Methods inherited from interface java.awt.image.renderable.RenderableImage |
---|
createDefaultRendering, createRendering, createScaledRendering, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getWidth, isDynamic |
Method Detail |
---|
Filter getSource()
void setSource(Filter src)
Light getLight()
void setLight(Light light)
light
- New Light objectdouble getSurfaceScale()
void setSurfaceScale(double surfaceScale)
double getKd()
void setKd(double kd)
Rectangle2D getLitRegion()
void setLitRegion(Rectangle2D litRegion)
double[] getKernelUnitLength()
void setKernelUnitLength(double[] kernelUnitLength)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |