org.jscience.media.pictures.filters
Class CausticsFilter

java.lang.Object
  extended by java.awt.image.ImageFilter
      extended by org.jscience.media.pictures.filters.WholeImageFilter
          extended by org.jscience.media.pictures.filters.CausticsFilter
All Implemented Interfaces:
java.awt.image.ImageConsumer, java.io.Serializable, java.lang.Cloneable

public class CausticsFilter
extends WholeImageFilter

DOCUMENT ME!

See Also:
Serialized Form

Field Summary
 float amount
          DOCUMENT ME!
 int brightness
          DOCUMENT ME!
 float dispersion
          DOCUMENT ME!
 float time
          DOCUMENT ME!
 float turbulence
          DOCUMENT ME!
 
Fields inherited from class org.jscience.media.pictures.filters.WholeImageFilter
canFilterIndexColorModel, defaultRGBModel, inBytePixels, inPixels, originalSpace, transformedSpace
 
Fields inherited from class java.awt.image.ImageFilter
consumer
 
Fields inherited from interface java.awt.image.ImageConsumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
 
Constructor Summary
CausticsFilter()
          Creates a new CausticsFilter object.
 
Method Summary
protected  float evaluate(float x, float y)
          DOCUMENT ME!
 float getAmount()
          DOCUMENT ME!
 int getBrightness()
          DOCUMENT ME!
 float getDispersion()
          DOCUMENT ME!
 int getSamples()
          DOCUMENT ME!
 float getScale()
          DOCUMENT ME!
 float getTime()
          DOCUMENT ME!
 float getTurbulence()
          DOCUMENT ME!
 void imageComplete(int status)
          DOCUMENT ME!
 void setAmount(float amount)
          DOCUMENT ME!
 void setBrightness(int brightness)
          DOCUMENT ME!
 void setDispersion(float dispersion)
          DOCUMENT ME!
 void setSamples(int samples)
          DOCUMENT ME!
 void setScale(float scale)
          DOCUMENT ME!
 void setTime(float time)
          DOCUMENT ME!
 void setTurbulence(float turbulence)
          DOCUMENT ME!
 java.lang.String toString()
          DOCUMENT ME!
static float turbulence2(float x, float y, float time, float octaves)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.media.pictures.filters.WholeImageFilter
setColorModel, setDimensions, setPixels, setPixels, transformSpace
 
Methods inherited from class java.awt.image.ImageFilter
clone, getFilterInstance, resendTopDownLeftRight, setHints, setProperties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

brightness

public int brightness
DOCUMENT ME!


amount

public float amount
DOCUMENT ME!


turbulence

public float turbulence
DOCUMENT ME!


dispersion

public float dispersion
DOCUMENT ME!


time

public float time
DOCUMENT ME!

Constructor Detail

CausticsFilter

public CausticsFilter()
Creates a new CausticsFilter object.

Method Detail

setScale

public void setScale(float scale)
DOCUMENT ME!

Parameters:
scale - DOCUMENT ME!

getScale

public float getScale()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setBrightness

public void setBrightness(int brightness)
DOCUMENT ME!

Parameters:
brightness - DOCUMENT ME!

getBrightness

public int getBrightness()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setTurbulence

public void setTurbulence(float turbulence)
DOCUMENT ME!

Parameters:
turbulence - DOCUMENT ME!

getTurbulence

public float getTurbulence()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setAmount

public void setAmount(float amount)
DOCUMENT ME!

Parameters:
amount - DOCUMENT ME!

getAmount

public float getAmount()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setDispersion

public void setDispersion(float dispersion)
DOCUMENT ME!

Parameters:
dispersion - DOCUMENT ME!

getDispersion

public float getDispersion()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setTime

public void setTime(float time)
DOCUMENT ME!

Parameters:
time - DOCUMENT ME!

getTime

public float getTime()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setSamples

public void setSamples(int samples)
DOCUMENT ME!

Parameters:
samples - DOCUMENT ME!

getSamples

public int getSamples()
DOCUMENT ME!

Returns:
DOCUMENT ME!

imageComplete

public void imageComplete(int status)
DOCUMENT ME!

Specified by:
imageComplete in interface java.awt.image.ImageConsumer
Overrides:
imageComplete in class java.awt.image.ImageFilter
Parameters:
status - DOCUMENT ME!

turbulence2

public static float turbulence2(float x,
                                float y,
                                float time,
                                float octaves)
DOCUMENT ME!

Parameters:
x - DOCUMENT ME!
y - DOCUMENT ME!
time - DOCUMENT ME!
octaves - DOCUMENT ME!
Returns:
DOCUMENT ME!

evaluate

protected float evaluate(float x,
                         float y)
DOCUMENT ME!

Parameters:
x - DOCUMENT ME!
y - DOCUMENT ME!
Returns:
DOCUMENT ME!

toString

public java.lang.String toString()
DOCUMENT ME!

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!