public abstract class AMagnetFractalIterator extends AFractalIterator
AMagnetFractalIterator
class provides a base class for magnet fractals (converging and diverging).
Note that this is an abstract class.
AFractalIterator.EFractalType
fBifurcationAxisZ1, fBifurcationAxisZ2, fBifurcationOutlierPercentileOffset, fBifurcationPoints, fCalculateAdvancedColoring, fComplexHeight, fComplexWidth, fDualParameter, fEscapeRadius, fEscapeRadiusSqr, fExteriorGaussianIntegersTrapFactor, fExteriorOrbitTrapCrossStalksCentre, fExteriorOrbitTrapDiskCentre, fExteriorOrbitTrapDiskRadius, fExteriorOrbitTrapSineAdditiveFactor, fExteriorOrbitTrapSineMultiplicativeFactor, fExteriorOrbitTrapTangensAdditiveFactor, fExteriorOrbitTrapTangensMultiplicativeFactor, fExteriorStripingDensity, fFractalType, fInteriorGaussianIntegersTrapFactor, fInteriorOrbitTrapCrossStalksCentre, fInteriorOrbitTrapDiskCentre, fInteriorOrbitTrapDiskRadius, fInteriorOrbitTrapSineAdditiveFactor, fInteriorOrbitTrapSineMultiplicativeFactor, fInteriorOrbitTrapTangensAdditiveFactor, fInteriorOrbitTrapTangensMultiplicativeFactor, fInteriorStripingDensity, fInvertYAxis, fMaxBifurcationValue, fMaxNrOfIterations, fMinBifurcationValue, fNrOfBifurcationPoints, fNrOfBifurcationPointsPerOrbit, fNrOfBifurcationPointsToDiscard, fP1, fP1X, fP1Y, fP2, fP2X, fP2Y, fScreenBounds, fScreenHeight, fScreenWidth, fUseFixedNrOfIterations, fZ0, kInitialScreenBounds
Constructor and Description |
---|
AMagnetFractalIterator()
Constructs an
AMagnetFractalIterator object. |
Modifier and Type | Method and Description |
---|---|
org.sm.smtools.math.complex.ComplexNumber |
getDefaultDualParameter()
Returns the default dual parameter in the complex plane.
|
double |
getDefaultEscapeRadius()
Returns the default escape radius of 100.
|
double |
getRootTolerance()
Returns the tolerance used for finding roots.
|
protected IterationResult |
iterate(org.sm.smtools.math.complex.ComplexNumber z,
org.sm.smtools.math.complex.ComplexNumber c,
boolean saveOrbit)
Helper method for a general iteration with a combined escape-time and convergence algorithm.
|
protected void |
plainTextLoadCustomParameters(org.sm.smtools.util.TextFileParser tfp)
Loads custom fractal parameters from a plain-text file.
|
protected void |
plainTextSaveCustomParameters(org.sm.smtools.util.TextFileWriter tfw)
Saves custom fractal parameters to a plain-text file.
|
void |
setRootTolerance(double rootTolerance)
Sets the tolerance used for finding roots.
|
protected void |
streamLoadCustomParameters(java.io.DataInputStream dataInputStream)
Loads custom fractal parameters from a file as a stream.
|
protected void |
streamSaveCustomParameters(java.io.DataOutputStream dataOutputStream)
Saves custom fractal parameters to a file as a stream.
|
autoDetermineMaxNrOfIterations, convertComplexNumberToScreenLocation, convertComplexNumberToScreenLocation, convertScreenLocationToComplexNumber, convertScreenLocationToComplexNumber, evaluateFractalFunction, getBifurcationAxisZ1, getBifurcationAxisZ2, getBifurcationOutlierPercentileOffset, getBifurcationPoint, getCalculateAdvancedColoring, getCurrentZoomLevel, getCustomFilenamePart, getDefaultP1, getDefaultP2, getDualParameter, getEscapeRadius, getExteriorGaussianIntegersTrapFactor, getExteriorOrbitTrapCrossStalksCentre, getExteriorOrbitTrapDiskCentre, getExteriorOrbitTrapDiskRadius, getExteriorOrbitTrapSineAdditiveFactor, getExteriorOrbitTrapSineMultiplicativeFactor, getExteriorOrbitTrapTangensAdditiveFactor, getExteriorOrbitTrapTangensMultiplicativeFactor, getExteriorStripingDensity, getFamilyName, getFractalType, getInteriorGaussianIntegersTrapFactor, getInteriorOrbitTrapCrossStalksCentre, getInteriorOrbitTrapDiskCentre, getInteriorOrbitTrapDiskRadius, getInteriorOrbitTrapSineAdditiveFactor, getInteriorOrbitTrapSineMultiplicativeFactor, getInteriorOrbitTrapTangensAdditiveFactor, getInteriorOrbitTrapTangensMultiplicativeFactor, getInteriorStripingDensity, getInvertYAxis, getMainFractalOrbitStartingPoint, getMaxBifurcationValue, getMaxNrOfIterations, getMinBifurcationValue, getNrOfBifurcationPoints, getNrOfBifurcationPointsPerOrbit, getNrOfBifurcationPointsToDiscard, getP1, getP2, getScreenBounds, getScreenHeight, getScreenWidth, getUseFixedNrOfIterations, iterateBifurcationDiagram, iterateDualFractal, iterateDualFractal, iterateMainFractal, iterateMainFractal, plainTextLoadParameters, plainTextSaveParameters, resetMainFractalOrbitStartingPoint, setBifurcationAxisZ1, setBifurcationAxisZ2, setBifurcationOutlierPercentileOffset, setCalculateAdvancedColoring, setComplexBounds, setDualParameter, setEscapeRadius, setExteriorGaussianIntegersTrapFactor, setExteriorOrbitTrapCrossStalksCentre, setExteriorOrbitTrapDiskCentre, setExteriorOrbitTrapDiskRadius, setExteriorOrbitTrapSineAdditiveFactor, setExteriorOrbitTrapSineMultiplicativeFactor, setExteriorOrbitTrapTangensAdditiveFactor, setExteriorOrbitTrapTangensMultiplicativeFactor, setExteriorStripingDensity, setFractalType, setInteriorGaussianIntegersTrapFactor, setInteriorOrbitTrapCrossStalksCentre, setInteriorOrbitTrapDiskCentre, setInteriorOrbitTrapDiskRadius, setInteriorOrbitTrapSineAdditiveFactor, setInteriorOrbitTrapSineMultiplicativeFactor, setInteriorOrbitTrapTangensAdditiveFactor, setInteriorOrbitTrapTangensMultiplicativeFactor, setInteriorStripingDensity, setInvertYAxis, setMainFractalOrbitStartingPoint, setMaxNrOfIterations, setNrOfBifurcationPointsPerOrbit, setNrOfBifurcationPointsToDiscard, setScreenBounds, setScreenBounds, setUseFixedNrOfIterations, streamLoadParameters, streamSaveParameters
public AMagnetFractalIterator()
AMagnetFractalIterator
object.public org.sm.smtools.math.complex.ComplexNumber getDefaultDualParameter()
getDefaultDualParameter
in class AFractalIterator
public double getDefaultEscapeRadius()
getDefaultEscapeRadius
in class AFractalIterator
public final double getRootTolerance()
protected IterationResult iterate(org.sm.smtools.math.complex.ComplexNumber z, org.sm.smtools.math.complex.ComplexNumber c, boolean saveOrbit)
iterate
in class AFractalIterator
z
- the complex variable zc
- the complex parameter csaveOrbit
- a boolean
indicating whether or not the orbit should be savedprotected void plainTextLoadCustomParameters(org.sm.smtools.util.TextFileParser tfp) throws org.sm.smtools.exceptions.FileParseException
plainTextLoadCustomParameters
in class AFractalIterator
tfp
- a reference to the file parserorg.sm.smtools.exceptions.FileParseException
- in case a read error occursprotected void plainTextSaveCustomParameters(org.sm.smtools.util.TextFileWriter tfw) throws org.sm.smtools.exceptions.FileWriteException
plainTextSaveCustomParameters
in class AFractalIterator
tfw
- a reference to the file writerorg.sm.smtools.exceptions.FileWriteException
- in case a write error occurspublic final void setRootTolerance(double rootTolerance)
rootTolerance
- the tolerance used for finding rootsprotected void streamLoadCustomParameters(java.io.DataInputStream dataInputStream) throws java.io.IOException
streamLoadCustomParameters
in class AFractalIterator
dataInputStream
- a data inputstreamjava.io.IOException
- in case a parse error occursprotected void streamSaveCustomParameters(java.io.DataOutputStream dataOutputStream) throws java.io.IOException
streamSaveCustomParameters
in class AFractalIterator
dataOutputStream
- a data outputstreamjava.io.IOException
- in case a write error occurs