org.apache.batik.ext.awt.image.renderable
public class TurbulenceRable8Bit extends AbstractColorInterpolationRable implements TurbulenceRable
Constructor Summary | |
---|---|
TurbulenceRable8Bit(Rectangle2D region) | |
TurbulenceRable8Bit(Rectangle2D region, int seed, int numOctaves, double baseFreqX, double baseFreqY, boolean stitched, boolean fractalNoise) |
Method Summary | |
---|---|
RenderedImage | createRendering(RenderContext rc) |
double | getBaseFrequencyX()
Get the current base fequency in x direction. |
double | getBaseFrequencyY()
Get the current base fequency in y direction. |
Rectangle2D | getBounds2D()
Get the turbulence region |
int | getNumOctaves()
Get the current number of octaves for the noise function . |
int | getSeed()
Get the current seed value for the pseudo random number generator. |
Rectangle2D | getTurbulenceRegion()
Get the turbulence region |
boolean | isFractalNoise()
Returns true if the turbulence function is using fractal noise,
instead of turbulence noise. |
boolean | isStitched()
Returns true if the turbulence function is currently stitching tiles. |
void | setBaseFrequencyX(double baseFreqX)
Set the base fequency in x direction. |
void | setBaseFrequencyY(double baseFreqY)
Set the base fequency in y direction. |
void | setFractalNoise(boolean fractalNoise)
Turns on/off fractal noise. |
void | setNumOctaves(int numOctaves)
Set the number of octaves for the noise function . |
void | setSeed(int seed)
Set the seed value for the pseudo random number generator. |
void | setStitched(boolean stitched)
Set stitching state for tiles. |
void | setTurbulenceRegion(Rectangle2D turbulenceRegion)
Sets the turbulence region |
Returns: The current base fequency in x direction.
Returns: The current base fequency in y direction.
Returns: The current number of octaves for the noise function .
Returns: The current seed value for the pseudo random number generator.
Returns: true if the turbulence function is using fractal noise, instead of turbulence noise.
Returns: true if the turbulence function is currently stitching tiles.
Parameters: baseFreqX The new base fequency in x direction.
Parameters: baseFreqY The new base fequency in y direction.
Parameters: fractalNoise true if fractal noise should be used.
Parameters: numOctaves The new number of octaves for the noise function .
Parameters: seed The new seed value for the pseudo random number generator.
Parameters: stitched true if the turbulence operator should stitch tiles.
Parameters: turbulenceRegion region to fill with turbulence function.