public class Iterator
extends java.lang.Object
Constructor and Description |
---|
Iterator(IteratorParameters pParameters)
This standard constructor initializes the iterator with the defined parameters.
|
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 raster.
|
Raster |
getRaster(ImageEffect pImageEffect)
Calculates and returns the raster according to the properties that were set.
|
static void |
main(java.lang.String[] args)
A testing method to create an image out of a raster calculation.
|
void |
setIteratorParameters(IteratorParameters pParameters)
Sets the parameters for the iterator to calculate the raster.
|
public Iterator(IteratorParameters pParameters)
pParameters
- The iterator parameters that should be used. If it is null
then the default values are used.public void setIteratorParameters(IteratorParameters pParameters)
pParameters
- The parameters that configure the raster calculation.public Raster getRaster(ImageEffect pImageEffect)
pImageEffect
- The image effect object that is used to check if the process is still running. (TO DO: switch to a listener interface!)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 raster.public static void main(java.lang.String[] args)
args
- The arguments array. TO DO: get rid of this method and create a unit test!!!