类 SwimFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.TransformFilter
-
- org.meteoinfo.image.filter.SwimFilter
-
- 所有已实现的接口:
java.awt.image.BufferedImageOp,java.lang.Cloneable
public class SwimFilter extends TransformFilter
A filter which distorts an image as if it were underwater.
-
-
字段概要
-
从类继承的字段 org.meteoinfo.image.filter.TransformFilter
BILINEAR, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, RGB_CLAMP, transformedSpace, WRAP, ZERO
-
-
构造器概要
构造器 构造器 说明 SwimFilter()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 floatgetAmount()Get the amount of swim.floatgetAngle()Returns the angle of the effect.floatgetScale()Returns the scale of the distortion.floatgetStretch()Returns the stretch factor of the distortion.floatgetTime()Returns the time.floatgetTurbulence()Returns the turbulence of the effect.voidsetAmount(float amount)Set the amount of swim.voidsetAngle(float angle)Specifies the angle of the effect.voidsetScale(float scale)Specifies the scale of the distortion.voidsetStretch(float stretch)Specifies the stretch factor of the distortion.voidsetTime(float time)Specifies the time.voidsetTurbulence(float turbulence)Specifies the turbulence of the texture.java.lang.StringtoString()protected voidtransformInverse(int x, int y, float[] out)Inverse transform a point.-
从类继承的方法 org.meteoinfo.image.filter.TransformFilter
filter, filterPixelsNN, getEdgeAction, getInterpolation, setEdgeAction, setInterpolation, transformSpace
-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
方法详细资料
-
setAmount
public void setAmount(float amount)
Set the amount of swim.- 参数:
amount- the amount of swim min-value 0 max-value 100+- 另请参阅:
getAmount()
-
getAmount
public float getAmount()
Get the amount of swim.- 返回:
- the amount swim
- 另请参阅:
setAmount(float)
-
setScale
public void setScale(float scale)
Specifies the scale of the distortion.- 参数:
scale- the scale of the distortion. min-value 1 max-value 300+- 另请参阅:
getScale()
-
getScale
public float getScale()
Returns the scale of the distortion.- 返回:
- the scale of the distortion.
- 另请参阅:
setScale(float)
-
setStretch
public void setStretch(float stretch)
Specifies the stretch factor of the distortion.- 参数:
stretch- the stretch factor of the distortion. min-value 1 max-value 50+- 另请参阅:
getStretch()
-
getStretch
public float getStretch()
Returns the stretch factor of the distortion.- 返回:
- the stretch factor of the distortion.
- 另请参阅:
setStretch(float)
-
setAngle
public void setAngle(float angle)
Specifies the angle of the effect.- 参数:
angle- the angle of the effect.- 另请参阅:
getAngle()
-
getAngle
public float getAngle()
Returns the angle of the effect.- 返回:
- the angle of the effect.
- 另请参阅:
setAngle(float)
-
setTurbulence
public void setTurbulence(float turbulence)
Specifies the turbulence of the texture.- 参数:
turbulence- the turbulence of the texture. min-value 0 max-value 1- 另请参阅:
getTurbulence()
-
getTurbulence
public float getTurbulence()
Returns the turbulence of the effect.- 返回:
- the turbulence of the effect.
- 另请参阅:
setTurbulence(float)
-
setTime
public void setTime(float time)
Specifies the time. Use this to animate the effect.- 参数:
time- the time.- 另请参阅:
getTime()
-
getTime
public float getTime()
Returns the time.- 返回:
- the time.
- 另请参阅:
setTime(float)
-
transformInverse
protected void transformInverse(int x, int y, float[] out)从类复制的说明:TransformFilterInverse transform a point. This method needs to be overriden by all subclasses.- 指定者:
transformInverse在类中TransformFilter- 参数:
x- the X position of the pixel in the output imagey- the Y position of the pixel in the output imageout- the position of the pixel in the input image
-
toString
public java.lang.String toString()
- 覆盖:
toString在类中java.lang.Object
-
-