类 PlasmaFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.WholeImageFilter
-
- org.meteoinfo.image.filter.PlasmaFilter
-
- 所有已实现的接口:
BufferedImageOp,Cloneable
public class PlasmaFilter extends WholeImageFilter
-
-
字段概要
字段 修饰符和类型 字段 说明 floatturbulence-
从类继承的字段 org.meteoinfo.image.filter.WholeImageFilter
originalSpace, transformedSpace
-
-
构造器概要
构造器 构造器 说明 PlasmaFilter()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected int[]filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace)Actually filter the pixels.ColormapgetColormap()Get the colormap to be used for the filter.floatgetScaling()intgetSeed()floatgetTurbulence()Returns the turbulence of the effect.booleangetUseColormap()booleangetUseImageColors()voidrandomize()voidsetColormap(Colormap colormap)Set the colormap to be used for the filter.voidsetScaling(float scaling)voidsetSeed(int seed)voidsetTurbulence(float turbulence)Specifies the turbulence of the texture.voidsetUseColormap(boolean useColormap)voidsetUseImageColors(boolean useImageColors)StringtoString()-
从类继承的方法 org.meteoinfo.image.filter.WholeImageFilter
filter, transformSpace
-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
方法详细资料
-
setTurbulence
public void setTurbulence(float turbulence)
Specifies the turbulence of the texture.- 参数:
turbulence- the turbulence of the texture. min-value 0 max-value 10- 另请参阅:
getTurbulence()
-
getTurbulence
public float getTurbulence()
Returns the turbulence of the effect.- 返回:
- the turbulence of the effect.
- 另请参阅:
setTurbulence(float)
-
setScaling
public void setScaling(float scaling)
-
getScaling
public float getScaling()
-
setColormap
public void setColormap(Colormap colormap)
Set the colormap to be used for the filter.- 参数:
colormap- the colormap- 另请参阅:
getColormap()
-
getColormap
public Colormap getColormap()
Get the colormap to be used for the filter.- 返回:
- the colormap
- 另请参阅:
setColormap(org.meteoinfo.image.filter.Colormap)
-
setUseColormap
public void setUseColormap(boolean useColormap)
-
getUseColormap
public boolean getUseColormap()
-
setUseImageColors
public void setUseImageColors(boolean useImageColors)
-
getUseImageColors
public boolean getUseImageColors()
-
setSeed
public void setSeed(int seed)
-
getSeed
public int getSeed()
-
randomize
public void randomize()
-
filterPixels
protected int[] filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace)从类复制的说明:WholeImageFilterActually filter the pixels.- 指定者:
filterPixels在类中WholeImageFilter- 参数:
width- the image widthheight- the image heightinPixels- the image pixelstransformedSpace- the output bounds- 返回:
- the output pixels
-
-