Interface TurbulenceRable
-
- All Superinterfaces:
Filter,FilterColorInterpolation,java.awt.image.renderable.RenderableImage
- All Known Implementing Classes:
TurbulenceRable8Bit
public interface TurbulenceRable extends FilterColorInterpolation
Creates a sourceless image from a turbulence function.- Version:
- $Id: TurbulenceRable.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetBaseFrequencyX()Gets the current base fequency in x direction.doublegetBaseFrequencyY()Gets the current base fequency in y direction.intgetNumOctaves()Gets the current number of octaves for the noise function .intgetSeed()Gets the current seed value for the pseudo random number generator.java.awt.geom.Rectangle2DgetTurbulenceRegion()Gets the turbulence regionbooleanisFractalNoise()Returns true if the turbulence function is using fractal noise, instead of turbulence noise.booleanisStitched()Returns true if the turbulence function is currently stitching tiles.voidsetBaseFrequencyX(double xfreq)Sets the base fequency in x direction.voidsetBaseFrequencyY(double yfreq)Sets the base fequency in y direction.voidsetFractalNoise(boolean fractalNoise)Turns on/off fractal noise.voidsetNumOctaves(int numOctaves)Sets the number of octaves for the noise function .voidsetSeed(int seed)Sets the seed value for the pseudo random number generator.voidsetStitched(boolean stitched)Sets stitching state for tiles.voidsetTurbulenceRegion(java.awt.geom.Rectangle2D turbulenceRegion)Sets the turbulence region-
Methods inherited from interface org.apache.batik.ext.awt.image.renderable.Filter
getBounds2D, getDependencyRegion, getDirtyRegion, getTimeStamp
-
Methods inherited from interface org.apache.batik.ext.awt.image.renderable.FilterColorInterpolation
getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinear
-
-
-
-
Method Detail
-
setTurbulenceRegion
void setTurbulenceRegion(java.awt.geom.Rectangle2D turbulenceRegion)
Sets the turbulence region- Parameters:
turbulenceRegion- region to fill with turbulence function.
-
getTurbulenceRegion
java.awt.geom.Rectangle2D getTurbulenceRegion()
Gets the turbulence region
-
getSeed
int getSeed()
Gets the current seed value for the pseudo random number generator.- Returns:
- The current seed value for the pseudo random number generator.
-
getBaseFrequencyX
double getBaseFrequencyX()
Gets the current base fequency in x direction.- Returns:
- The current base fequency in x direction.
-
getBaseFrequencyY
double getBaseFrequencyY()
Gets the current base fequency in y direction.- Returns:
- The current base fequency in y direction.
-
getNumOctaves
int getNumOctaves()
Gets the current number of octaves for the noise function .- Returns:
- The current number of octaves for the noise function .
-
isStitched
boolean isStitched()
Returns true if the turbulence function is currently stitching tiles.- Returns:
- true if the turbulence function is currently stitching tiles.
-
isFractalNoise
boolean isFractalNoise()
Returns true if the turbulence function is using fractal noise, instead of turbulence noise.- Returns:
- true if the turbulence function is using fractal noise, instead of turbulence noise.
-
setSeed
void setSeed(int seed)
Sets the seed value for the pseudo random number generator.- Parameters:
seed- The new seed value for the pseudo random number generator.
-
setBaseFrequencyX
void setBaseFrequencyX(double xfreq)
Sets the base fequency in x direction.- Parameters:
xfreq- The new base fequency in x direction.
-
setBaseFrequencyY
void setBaseFrequencyY(double yfreq)
Sets the base fequency in y direction.- Parameters:
yfreq- The new base fequency in y direction.
-
setNumOctaves
void setNumOctaves(int numOctaves)
Sets the number of octaves for the noise function .- Parameters:
numOctaves- The new number of octaves for the noise function .
-
setStitched
void setStitched(boolean stitched)
Sets stitching state for tiles.- Parameters:
stitched- true if the turbulence operator should stitch tiles.
-
setFractalNoise
void setFractalNoise(boolean fractalNoise)
Turns on/off fractal noise.- Parameters:
fractalNoise- true if fractal noise should be used.
-
-