j2d.filters
Class LightFilter
java.lang.Object
j2d.filters.AbstractBufferedImageOp
j2d.filters.WholeImageFilter
j2d.filters.LightFilter
- All Implemented Interfaces:
- ImageProcessorInterface, java.awt.image.BufferedImageOp, java.io.Serializable, java.lang.Cloneable
- Direct Known Subclasses:
- ChromeFilter
public class LightFilter
- extends WholeImageFilter
- implements java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
COLORS_FROM_IMAGE
public static final int COLORS_FROM_IMAGE
- See Also:
- Constant Field Values
COLORS_CONSTANT
public static final int COLORS_CONSTANT
- See Also:
- Constant Field Values
BUMPS_FROM_IMAGE
public static final int BUMPS_FROM_IMAGE
- See Also:
- Constant Field Values
BUMPS_FROM_IMAGE_ALPHA
public static final int BUMPS_FROM_IMAGE_ALPHA
- See Also:
- Constant Field Values
BUMPS_FROM_MAP
public static final int BUMPS_FROM_MAP
- See Also:
- Constant Field Values
BUMPS_FROM_BEVEL
public static final int BUMPS_FROM_BEVEL
- See Also:
- Constant Field Values
AMBIENT
public static final int AMBIENT
- See Also:
- Constant Field Values
DISTANT
public static final int DISTANT
- See Also:
- Constant Field Values
POINT
public static final int POINT
- See Also:
- Constant Field Values
SPOT
public static final int SPOT
- See Also:
- Constant Field Values
LightFilter
public LightFilter()
setBumpFunction
public void setBumpFunction(Function2D bumpFunction)
getBumpFunction
public Function2D getBumpFunction()
setBumpHeight
public void setBumpHeight(float bumpHeight)
getBumpHeight
public float getBumpHeight()
setBumpSoftness
public void setBumpSoftness(float bumpSoftness)
getBumpSoftness
public float getBumpSoftness()
setBumpShape
public void setBumpShape(int bumpShape)
getBumpShape
public int getBumpShape()
setViewDistance
public void setViewDistance(float viewDistance)
getViewDistance
public float getViewDistance()
setEnvironmentMap
public void setEnvironmentMap(java.awt.image.BufferedImage environmentMap)
getEnvironmentMap
public java.awt.Image getEnvironmentMap()
setColorSource
public void setColorSource(int colorSource)
getColorSource
public int getColorSource()
setBumpSource
public void setBumpSource(int bumpSource)
getBumpSource
public int getBumpSource()
setDiffuseColor
public void setDiffuseColor(int diffuseColor)
getDiffuseColor
public int getDiffuseColor()
addLight
public void addLight(LightFilter.Light light)
removeLight
public void removeLight(LightFilter.Light light)
getLights
public java.util.Vector getLights()
phongShade
public javax.vecmath.Color4f phongShade(javax.vecmath.Vector3f position,
javax.vecmath.Vector3f viewpoint,
javax.vecmath.Vector3f normal,
javax.vecmath.Color4f diffuseColor,
javax.vecmath.Color4f specularColor,
LightFilter.Material material,
LightFilter.Light[] lightsArray)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object