类 CausticsFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.WholeImageFilter
-
- org.meteoinfo.image.filter.CausticsFilter
-
- 所有已实现的接口:
java.awt.image.BufferedImageOp,java.lang.Cloneable
public class CausticsFilter extends WholeImageFilter
A filter which simulates underwater caustics. This can be animated to get a bottom-of-the-swimming-pool effect.
-
-
字段概要
-
从类继承的字段 org.meteoinfo.image.filter.WholeImageFilter
originalSpace, transformedSpace
-
-
构造器概要
构造器 构造器 说明 CausticsFilter()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected int[]filterPixels(int width, int height, int[] inPixels, java.awt.Rectangle transformedSpace)Actually filter the pixels.floatgetAmount()Get the amount of effect.intgetBgColor()Get the background color.intgetBrightness()Get the brightness.floatgetDispersion()Get the dispersion.intgetSamples()Get the number of samples per pixel.floatgetScale()Returns the scale of the texture.floatgetTime()Set the time.floatgetTurbulence()Returns the turbulence of the effect.voidsetAmount(float amount)Set the amount of effect.voidsetBgColor(int c)Set the background color.voidsetBrightness(int brightness)Set the brightness.voidsetDispersion(float dispersion)Set the dispersion.voidsetSamples(int samples)Set the number of samples per pixel.voidsetScale(float scale)Specifies the scale of the texture.voidsetTime(float time)Set the time.voidsetTurbulence(float turbulence)Specifies the turbulence of the texture.java.lang.StringtoString()-
从类继承的方法 org.meteoinfo.image.filter.WholeImageFilter
filter, transformSpace
-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
方法详细资料
-
setScale
public void setScale(float scale)
Specifies the scale of the texture.- 参数:
scale- the scale of the texture.- 另请参阅:
getScale()
-
getScale
public float getScale()
Returns the scale of the texture.- 返回:
- the scale of the texture.
- 另请参阅:
setScale(float)
-
setBrightness
public void setBrightness(int brightness)
Set the brightness.- 参数:
brightness- the brightness.- 另请参阅:
getBrightness()
-
getBrightness
public int getBrightness()
Get the brightness.- 返回:
- the brightness.
- 另请参阅:
setBrightness(int)
-
setTurbulence
public void setTurbulence(float turbulence)
Specifies the turbulence of the texture.- 参数:
turbulence- the turbulence of the texture.- 另请参阅:
getTurbulence()
-
getTurbulence
public float getTurbulence()
Returns the turbulence of the effect.- 返回:
- the turbulence of the effect.
- 另请参阅:
setTurbulence(float)
-
setAmount
public void setAmount(float amount)
Set the amount of effect.- 参数:
amount- the amount- 另请参阅:
getAmount()
-
getAmount
public float getAmount()
Get the amount of effect.- 返回:
- the amount
- 另请参阅:
setAmount(float)
-
setDispersion
public void setDispersion(float dispersion)
Set the dispersion.- 参数:
dispersion- the dispersion min-value 0 max-value 1- 另请参阅:
getDispersion()
-
getDispersion
public float getDispersion()
Get the dispersion.- 返回:
- the dispersion
- 另请参阅:
setDispersion(float)
-
setTime
public void setTime(float time)
Set the time. Use this to animate the effect.- 参数:
time- the time- 另请参阅:
getTime()
-
getTime
public float getTime()
Set the time.- 返回:
- the time
- 另请参阅:
setTime(float)
-
setSamples
public void setSamples(int samples)
Set the number of samples per pixel. More samples means better quality, but slower rendering.- 参数:
samples- the number of samples- 另请参阅:
getSamples()
-
getSamples
public int getSamples()
Get the number of samples per pixel.- 返回:
- the number of samples
- 另请参阅:
setSamples(int)
-
setBgColor
public void setBgColor(int c)
Set the background color.- 参数:
c- the color- 另请参阅:
getBgColor()
-
getBgColor
public int getBgColor()
Get the background color.- 返回:
- the color
- 另请参阅:
setBgColor(int)
-
filterPixels
protected int[] filterPixels(int width, int height, int[] inPixels, java.awt.Rectangle transformedSpace)从类复制的说明:WholeImageFilterActually filter the pixels.- 指定者:
filterPixels在类中WholeImageFilter- 参数:
width- the image widthheight- the image heightinPixels- the image pixelstransformedSpace- the output bounds- 返回:
- the output pixels
-
toString
public java.lang.String toString()
- 覆盖:
toString在类中java.lang.Object
-
-