类 RippleFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.TransformFilter
-
- org.meteoinfo.image.filter.RippleFilter
-
- 所有已实现的接口:
java.awt.image.BufferedImageOp,java.lang.Cloneable
public class RippleFilter extends TransformFilter
A filter which distorts an image by rippling it in the X or Y directions. The amplitude and wavelength of rippling can be specified as well as whether pixels going off the edges are wrapped or not.
-
-
字段概要
字段 修饰符和类型 字段 说明 static intNOISENoise ripples.static intSAWTOOTHSawtooth wave ripples.static intSINESine wave ripples.static intTRIANGLETriangle wave ripples.-
从类继承的字段 org.meteoinfo.image.filter.TransformFilter
BILINEAR, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, RGB_CLAMP, transformedSpace, WRAP, ZERO
-
-
构造器概要
构造器 构造器 说明 RippleFilter()Construct a RippleFilter.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intgetWaveType()Get the wave type.floatgetXAmplitude()Get the amplitude of ripple in the X direction.floatgetXWavelength()Get the wavelength of ripple in the X direction.floatgetYAmplitude()Get the amplitude of ripple in the Y direction.floatgetYWavelength()Get the wavelength of ripple in the Y direction.voidsetWaveType(int waveType)Set the wave type.voidsetXAmplitude(float xAmplitude)Set the amplitude of ripple in the X direction.voidsetXWavelength(float xWavelength)Set the wavelength of ripple in the X direction.voidsetYAmplitude(float yAmplitude)Set the amplitude of ripple in the Y direction.voidsetYWavelength(float yWavelength)Set the wavelength of ripple in the Y direction.java.lang.StringtoString()protected voidtransformInverse(int x, int y, float[] out)Inverse transform a point.protected voidtransformSpace(java.awt.Rectangle r)Forward transform a rectangle.-
从类继承的方法 org.meteoinfo.image.filter.TransformFilter
filter, filterPixelsNN, getEdgeAction, getInterpolation, setEdgeAction, setInterpolation
-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
方法详细资料
-
setXAmplitude
public void setXAmplitude(float xAmplitude)
Set the amplitude of ripple in the X direction.- 参数:
xAmplitude- the amplitude (in pixels).- 另请参阅:
getXAmplitude()
-
getXAmplitude
public float getXAmplitude()
Get the amplitude of ripple in the X direction.- 返回:
- the amplitude (in pixels).
- 另请参阅:
setXAmplitude(float)
-
setXWavelength
public void setXWavelength(float xWavelength)
Set the wavelength of ripple in the X direction.- 参数:
xWavelength- the wavelength (in pixels).- 另请参阅:
getXWavelength()
-
getXWavelength
public float getXWavelength()
Get the wavelength of ripple in the X direction.- 返回:
- the wavelength (in pixels).
- 另请参阅:
setXWavelength(float)
-
setYAmplitude
public void setYAmplitude(float yAmplitude)
Set the amplitude of ripple in the Y direction.- 参数:
yAmplitude- the amplitude (in pixels).- 另请参阅:
getYAmplitude()
-
getYAmplitude
public float getYAmplitude()
Get the amplitude of ripple in the Y direction.- 返回:
- the amplitude (in pixels).
- 另请参阅:
setYAmplitude(float)
-
setYWavelength
public void setYWavelength(float yWavelength)
Set the wavelength of ripple in the Y direction.- 参数:
yWavelength- the wavelength (in pixels).- 另请参阅:
getYWavelength()
-
getYWavelength
public float getYWavelength()
Get the wavelength of ripple in the Y direction.- 返回:
- the wavelength (in pixels).
- 另请参阅:
setYWavelength(float)
-
setWaveType
public void setWaveType(int waveType)
Set the wave type.- 参数:
waveType- the type.- 另请参阅:
getWaveType()
-
getWaveType
public int getWaveType()
Get the wave type.- 返回:
- the type.
- 另请参阅:
setWaveType(int)
-
transformSpace
protected void transformSpace(java.awt.Rectangle r)
从类复制的说明:TransformFilterForward transform a rectangle. Used to determine the size of the output image.- 覆盖:
transformSpace在类中TransformFilter- 参数:
r- the rectangle to transform
-
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
-
-