public abstract class FractalSetEffect extends ImageEffect
Constructor and Description |
---|
FractalSetEffect() |
Modifier and Type | Method and Description |
---|---|
ComplexNumber |
getComplexNumberAt(int iXPos,
int iYPos)
Returns the complex number that it is represented by the specified position in the image.
|
EffectParameters |
getEffectParameters()
Returns the parameters that are currently used for the Mandelbrot set effect.
|
java.awt.Point |
getNearestPixelOfComplexNumber(ComplexNumber pComplexNumber) |
java.awt.image.BufferedImage |
process()
Returns an image of the Julia set according to the parameters that were set.
|
void |
setEffectParameters(EffectParameters pEffectParameters)
Sets the parameters for the Mandelbrot set effect.
|
void |
setFractalSetParameters(FractalSetParameters pParameters)
Sets the parameters for the Mandelbrot set effect.
|
isRunning, processAsThread, run
public ComplexNumber getComplexNumberAt(int iXPos, int iYPos)
iXPos
- The horizontal position as integer.iYPos
- The vertical position as integer.ComplexNumber
object representing the complex number of the position in the image.public java.awt.Point getNearestPixelOfComplexNumber(ComplexNumber pComplexNumber)
public EffectParameters getEffectParameters()
getEffectParameters
in class ImageEffect
public void setFractalSetParameters(FractalSetParameters pParameters)
pParameters
- The parameters that configure the effect.public void setEffectParameters(EffectParameters pEffectParameters)
MandelbrotSetParameters
.setEffectParameters
in class ImageEffect
pEffectParameters
- The parameters that configure the effect.public java.awt.image.BufferedImage process() throws java.lang.Exception
process
in class ImageEffect
java.lang.Exception
- if there are errors when processing the image effect.