public class TurbulenceRable8Bit extends AbstractColorInterpolationRable implements TurbulenceRable
csLinear
props, srcs, stamp
Constructor and Description |
---|
TurbulenceRable8Bit(java.awt.geom.Rectangle2D region) |
TurbulenceRable8Bit(java.awt.geom.Rectangle2D region,
int seed,
int numOctaves,
double baseFreqX,
double baseFreqY,
boolean stitched,
boolean fractalNoise) |
Modifier and Type | Method and Description |
---|---|
java.awt.image.RenderedImage |
createRendering(java.awt.image.renderable.RenderContext rc) |
double |
getBaseFrequencyX()
Get the current base fequency in x direction.
|
double |
getBaseFrequencyY()
Get the current base fequency in y direction.
|
java.awt.geom.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.
|
java.awt.geom.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(java.awt.geom.Rectangle2D turbulenceRegion)
Sets the turbulence region
|
convertSourceCS, convertSourceCS, getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinear
createDefaultRendering, createScaledRendering, getDependencyRegion, getDirtyRegion, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getTimeStamp, getWidth, init, init, init, init, isDynamic, touch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinear
getDependencyRegion, getDirtyRegion, getTimeStamp
public TurbulenceRable8Bit(java.awt.geom.Rectangle2D region)
public TurbulenceRable8Bit(java.awt.geom.Rectangle2D region, int seed, int numOctaves, double baseFreqX, double baseFreqY, boolean stitched, boolean fractalNoise)
public java.awt.geom.Rectangle2D getTurbulenceRegion()
getTurbulenceRegion
in interface TurbulenceRable
public java.awt.geom.Rectangle2D getBounds2D()
getBounds2D
in interface Filter
getBounds2D
in class AbstractRable
public int getSeed()
getSeed
in interface TurbulenceRable
public int getNumOctaves()
getNumOctaves
in interface TurbulenceRable
public double getBaseFrequencyX()
getBaseFrequencyX
in interface TurbulenceRable
public double getBaseFrequencyY()
getBaseFrequencyY
in interface TurbulenceRable
public boolean isStitched()
isStitched
in interface TurbulenceRable
public boolean isFractalNoise()
isFractalNoise
in interface TurbulenceRable
public void setTurbulenceRegion(java.awt.geom.Rectangle2D turbulenceRegion)
setTurbulenceRegion
in interface TurbulenceRable
turbulenceRegion
- region to fill with turbulence function.public void setSeed(int seed)
setSeed
in interface TurbulenceRable
seed
- The new seed value for the pseudo random number generator.public void setNumOctaves(int numOctaves)
setNumOctaves
in interface TurbulenceRable
numOctaves
- The new number of octaves for the noise function .public void setBaseFrequencyX(double baseFreqX)
setBaseFrequencyX
in interface TurbulenceRable
baseFreqX
- The new base fequency in x direction.public void setBaseFrequencyY(double baseFreqY)
setBaseFrequencyY
in interface TurbulenceRable
baseFreqY
- The new base fequency in y direction.public void setStitched(boolean stitched)
setStitched
in interface TurbulenceRable
stitched
- true if the turbulence operator should stitch tiles.public void setFractalNoise(boolean fractalNoise)
setFractalNoise
in interface TurbulenceRable
fractalNoise
- true if fractal noise should be used.public java.awt.image.RenderedImage createRendering(java.awt.image.renderable.RenderContext rc)
createRendering
in interface java.awt.image.renderable.RenderableImage
Copyright © 2022 Apache Software Foundation. All Rights Reserved.