comirva.config
Class SDHConfig

java.lang.Object
  extended by comirva.config.SDHConfig
Direct Known Subclasses:
SDHDefaultConfig

public class SDHConfig
extends Object

This class represents a configuration for an SDH-Calculation. It is used to pass a configuration to the SDH-instance.


Constructor Summary
SDHConfig(int spread, int iterations, int fractalComponent)
          Creates a new instance of an SDH-Configuration.
 
Method Summary
 int getFractalComponent()
          Returns the strength of the fractal component used to unsharpen the SDH.
 int getIterations()
          Returns the number of interpolation iterations.
 int getSpread()
          Returns the spread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDHConfig

public SDHConfig(int spread,
                 int iterations,
                 int fractalComponent)
Creates a new instance of an SDH-Configuration.

Parameters:
spread - the spread
iterations - the number of interpolation iterations
fractalComponent - the strength of the fractal component that unsharpens the SDH (for a more natural look)
Method Detail

getSpread

public int getSpread()
Returns the spread.

Returns:
the spread

getIterations

public int getIterations()
Returns the number of interpolation iterations.

Returns:
the number of interpolation iterations

getFractalComponent

public int getFractalComponent()
Returns the strength of the fractal component used to unsharpen the SDH.

Returns:
the strength of the fractal component