Class SpecularLightingRed
- java.lang.Object
-
- org.apache.batik.ext.awt.image.rendered.AbstractRed
-
- org.apache.batik.ext.awt.image.rendered.AbstractTiledRed
-
- org.apache.batik.ext.awt.image.rendered.SpecularLightingRed
-
- All Implemented Interfaces:
java.awt.image.RenderedImage
,CachableRed
,TileGenerator
public class SpecularLightingRed extends AbstractTiledRed
- Version:
- $Id: SpecularLightingRed.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
Fields Modifier and Type Field Description private BumpMap
bumpMap
BumpMap sourceprivate double
ks
Specular lighting constantprivate Light
light
Light used for specular lightingprivate boolean
linear
true if calculations should be performed in linear sRGBprivate java.awt.Rectangle
litRegion
LitRegionprivate double
scaleX
Device space to user space scale factors, along each axis.private double
scaleY
Device space to user space scale factors, along each axis.private double
specularExponent
Specular lighting exponent-
Fields inherited from class org.apache.batik.ext.awt.image.rendered.AbstractRed
bounds, cm, minTileX, minTileY, numXTiles, numYTiles, props, sm, srcs, tileGridXOff, tileGridYOff, tileHeight, tileWidth
-
-
Constructor Summary
Constructors Constructor Description SpecularLightingRed(double ks, double specularExponent, Light light, BumpMap bumpMap, java.awt.Rectangle litRegion, double scaleX, double scaleY, boolean linear)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.WritableRaster
copyData(java.awt.image.WritableRaster wr)
void
genRect(java.awt.image.WritableRaster wr)
-
Methods inherited from class org.apache.batik.ext.awt.image.rendered.AbstractTiledRed
copyToRaster, copyToRasterByBlocks, createTileStore, drawBlock, drawBlockAndCopy, drawBlockInPlace, genTile, getData, getDefaultTileSize, getTile, getTileStore, init, init, init, setTile, setTileStore
-
Methods inherited from class org.apache.batik.ext.awt.image.rendered.AbstractRed
copyBand, getBounds, getColorModel, getData, getDependencyRegion, getDirtyRegion, getHeight, getMinTileX, getMinTileY, getMinX, getMinY, getNumXTiles, getNumYTiles, getProperty, getPropertyNames, getSampleModel, getSources, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getWidth, getXTile, getYTile, makeTile, updateTileGridInfo
-
-
-
-
Field Detail
-
ks
private double ks
Specular lighting constant
-
specularExponent
private double specularExponent
Specular lighting exponent
-
light
private Light light
Light used for specular lighting
-
bumpMap
private BumpMap bumpMap
BumpMap source
-
scaleX
private double scaleX
Device space to user space scale factors, along each axis.
-
scaleY
private double scaleY
Device space to user space scale factors, along each axis.
-
litRegion
private java.awt.Rectangle litRegion
LitRegion
-
linear
private boolean linear
true if calculations should be performed in linear sRGB
-
-
Method Detail
-
copyData
public java.awt.image.WritableRaster copyData(java.awt.image.WritableRaster wr)
- Specified by:
copyData
in interfacejava.awt.image.RenderedImage
- Overrides:
copyData
in classAbstractTiledRed
-
genRect
public void genRect(java.awt.image.WritableRaster wr)
- Specified by:
genRect
in classAbstractTiledRed
-
-