djfractal
Class FastFractalComputer

java.lang.Object
  extended bydjfractal.AbstractFractalComputer
      extended bydjfractal.FastFractalComputer
All Implemented Interfaces:
FractalComputer, java.io.Serializable

public class FastFractalComputer
extends AbstractFractalComputer

Fast implementation of the FractalComputer interface using raw doubles.

See Also:
FractalComputer, Serialized Form

Field Summary
 
Fields inherited from class djfractal.AbstractFractalComputer
bounds, colors, scale, verbose
 
Constructor Summary
FastFractalComputer()
           
 
Method Summary
 void _init(int iterations, java.math.BigDecimal bailout)
           
protected  int calculate(java.math.BigDecimal cr, java.math.BigDecimal ci)
           
static void main(java.lang.String[] args)
           
protected  void subRegion(int startX, int startY, int subRegionWidth, int subRegionHeight, int offsetX, int offsetY, int width, int height, FractalResult fr)
          Compute a subRegion of a fractal data.
 
Methods inherited from class djfractal.AbstractFractalComputer
calculateAll, discrepancy, init, insert, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FastFractalComputer

public FastFractalComputer()
Method Detail

_init

public void _init(int iterations,
                  java.math.BigDecimal bailout)
Specified by:
_init in class AbstractFractalComputer

subRegion

protected void subRegion(int startX,
                         int startY,
                         int subRegionWidth,
                         int subRegionHeight,
                         int offsetX,
                         int offsetY,
                         int width,
                         int height,
                         FractalResult fr)
Description copied from class: AbstractFractalComputer

Compute a subRegion of a fractal data.

This method is invoked by AbstractFractalComputer.calculateAll(FractalData fd) to prevent the computation of precomputed corners.

Specified by:
subRegion in class AbstractFractalComputer
Parameters:
startX - the X value of the point this subregion begins
startY - the Y value of the point this subregion begins
subRegionWidth - the width of the subregion
subRegionHeight - the height of the subregion
offsetX - the X offset in the fr.values array
offsetY - the Y offset in the fr.values array
width - the width of the fractal data the specified subregion belongs to
height - the height of the fractal data the specified subregion belongs to
fr - the FractalResult object to fill

calculate

protected final int calculate(java.math.BigDecimal cr,
                              java.math.BigDecimal ci)
Specified by:
calculate in class AbstractFractalComputer

main

public static void main(java.lang.String[] args)


DJFractal help mailing list