Module io.sf.carte.echosvg.awt
Class SpecularLightingRable8Bit
java.lang.Object
io.sf.carte.echosvg.ext.awt.image.renderable.AbstractRable
io.sf.carte.echosvg.ext.awt.image.renderable.AbstractColorInterpolationRable
io.sf.carte.echosvg.ext.awt.image.renderable.SpecularLightingRable8Bit
- All Implemented Interfaces:
- Filter,- FilterColorInterpolation,- SpecularLightingRable,- RenderableImage
public class SpecularLightingRable8Bit
extends AbstractColorInterpolationRable
implements SpecularLightingRable
Implementation of the SpecularLightRable interface.
- 
Field SummaryFields inherited from class io.sf.carte.echosvg.ext.awt.image.renderable.AbstractColorInterpolationRablecsLinearFields inherited from interface java.awt.image.renderable.RenderableImageHINTS_OBSERVED
- 
Constructor SummaryConstructorsConstructorDescriptionSpecularLightingRable8Bit(Filter src, Rectangle2D litRegion, Light light, double ks, double specularExponent, double surfaceScale, double[] kernelUnitLength) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns this filter's boundsdouble[]Returns the min [dx,dy] distance in user space for evalutation of the sobel gradient.doublegetKs()getLight()Returns this filter's litRegionReturns the source to be filtereddoubledoublevoidsetKernelUnitLength(double[] kernelUnitLength) Sets the min [dx,dy] distance in user space for evaluation of the sobel gradient.voidsetKs(double ks) Sets the specular constant, or ksvoidvoidsetLitRegion(Rectangle2D litRegion) Set this filter's litRegionvoidSets the source to be filteredvoidsetSpecularExponent(double specularExponent) Sets the specular exponentvoidsetSurfaceScale(double surfaceScale) Sets the surface scaleMethods inherited from class io.sf.carte.echosvg.ext.awt.image.renderable.AbstractColorInterpolationRableconvertSourceCS, convertSourceCS, getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinearMethods inherited from class io.sf.carte.echosvg.ext.awt.image.renderable.AbstractRablecreateDefaultRendering, createScaledRendering, getDependencyRegion, getDirtyRegion, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getTimeStamp, getWidth, init, init, init, init, isDynamic, touchMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.sf.carte.echosvg.ext.awt.image.renderable.FiltergetDependencyRegion, getDirtyRegion, getTimeStampMethods inherited from interface io.sf.carte.echosvg.ext.awt.image.renderable.FilterColorInterpolationgetOperationColorSpace, isColorSpaceLinear, setColorSpaceLinearMethods inherited from interface java.awt.image.renderable.RenderableImagecreateDefaultRendering, createScaledRendering, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getWidth, isDynamic
- 
Constructor Details- 
SpecularLightingRable8Bitpublic SpecularLightingRable8Bit(Filter src, Rectangle2D litRegion, Light light, double ks, double specularExponent, double surfaceScale, double[] kernelUnitLength) 
 
- 
- 
Method Details- 
getSourceReturns the source to be filtered- Specified by:
- getSourcein interface- SpecularLightingRable
 
- 
setSourceSets the source to be filtered- Specified by:
- setSourcein interface- SpecularLightingRable
 
- 
getBounds2DReturns this filter's bounds- Specified by:
- getBounds2Din interface- Filter
- Overrides:
- getBounds2Din class- AbstractRable
 
- 
getLitRegionReturns this filter's litRegion- Specified by:
- getLitRegionin interface- SpecularLightingRable
- Returns:
- the litRegion for this filter
 
- 
setLitRegionSet this filter's litRegion- Specified by:
- setLitRegionin interface- SpecularLightingRable
 
- 
getLight- Specified by:
- getLightin interface- SpecularLightingRable
- Returns:
- Light object used for the specular lighting
 
- 
setLight- Specified by:
- setLightin interface- SpecularLightingRable
- Parameters:
- light- New Light object
 
- 
getSurfaceScalepublic double getSurfaceScale()- Specified by:
- getSurfaceScalein interface- SpecularLightingRable
- Returns:
- surfaceScale
 
- 
setSurfaceScalepublic void setSurfaceScale(double surfaceScale) Sets the surface scale- Specified by:
- setSurfaceScalein interface- SpecularLightingRable
 
- 
getKspublic double getKs()- Specified by:
- getKsin interface- SpecularLightingRable
- Returns:
- specular constant, or ks.
 
- 
setKspublic void setKs(double ks) Sets the specular constant, or ks- Specified by:
- setKsin interface- SpecularLightingRable
 
- 
getSpecularExponentpublic double getSpecularExponent()- Specified by:
- getSpecularExponentin interface- SpecularLightingRable
- Returns:
- specular exponent
 
- 
setSpecularExponentpublic void setSpecularExponent(double specularExponent) Sets the specular exponent- Specified by:
- setSpecularExponentin interface- SpecularLightingRable
 
- 
getKernelUnitLengthpublic double[] getKernelUnitLength()Returns the min [dx,dy] distance in user space for evalutation of the sobel gradient.- Specified by:
- getKernelUnitLengthin interface- SpecularLightingRable
 
- 
setKernelUnitLengthpublic void setKernelUnitLength(double[] kernelUnitLength) Sets the min [dx,dy] distance in user space for evaluation of the sobel gradient. If set to zero or null then device space will be used.- Specified by:
- setKernelUnitLengthin interface- SpecularLightingRable
 
- 
createRendering- Specified by:
- createRenderingin interface- RenderableImage
 
 
-