public abstract class APowerFractalIterator extends MandelbrotJuliaFractalIterator
APowerFractalIterator
class provides the base class for power fractals.AFractalIterator.EFractalType
Modifier and Type | Field and Description |
---|---|
protected org.sm.smtools.math.complex.ComplexNumber |
fPower |
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 |
---|
APowerFractalIterator()
Creates a
APowerFractalIterator object and initialises it with the default power. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCustomFilenamePart()
Returns the power in the custom filename part.
|
double |
getDefaultEscapeRadius()
Returns the default escape radius of 2.
|
protected abstract org.sm.smtools.math.complex.ComplexNumber |
getDefaultPower()
Returns the default power.
|
org.sm.smtools.math.complex.ComplexNumber |
getPower()
Returns the power for this fractal.
|
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 |
setPower(org.sm.smtools.math.complex.ComplexNumber power)
Sets the power for this fractal.
|
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.
|
evaluateFractalFunction, getDefaultDualParameter, getDefaultP1, getDefaultP2, getFamilyName
evaluateFractalFunction, iterate, iterateBifurcationDiagram, renderSpider, rotateImage
autoDetermineMaxNrOfIterations, convertComplexNumberToScreenLocation, convertComplexNumberToScreenLocation, convertScreenLocationToComplexNumber, convertScreenLocationToComplexNumber, getBifurcationAxisZ1, getBifurcationAxisZ2, getBifurcationOutlierPercentileOffset, getBifurcationPoint, getCalculateAdvancedColoring, getCurrentZoomLevel, getDualParameter, getEscapeRadius, getExteriorGaussianIntegersTrapFactor, getExteriorOrbitTrapCrossStalksCentre, getExteriorOrbitTrapDiskCentre, getExteriorOrbitTrapDiskRadius, getExteriorOrbitTrapSineAdditiveFactor, getExteriorOrbitTrapSineMultiplicativeFactor, getExteriorOrbitTrapTangensAdditiveFactor, getExteriorOrbitTrapTangensMultiplicativeFactor, getExteriorStripingDensity, getFractalType, getInteriorGaussianIntegersTrapFactor, getInteriorOrbitTrapCrossStalksCentre, getInteriorOrbitTrapDiskCentre, getInteriorOrbitTrapDiskRadius, getInteriorOrbitTrapSineAdditiveFactor, getInteriorOrbitTrapSineMultiplicativeFactor, getInteriorOrbitTrapTangensAdditiveFactor, getInteriorOrbitTrapTangensMultiplicativeFactor, getInteriorStripingDensity, getInvertYAxis, getMainFractalOrbitStartingPoint, getMaxBifurcationValue, getMaxNrOfIterations, getMinBifurcationValue, getNrOfBifurcationPoints, getNrOfBifurcationPointsPerOrbit, getNrOfBifurcationPointsToDiscard, getP1, getP2, getScreenBounds, getScreenHeight, getScreenWidth, getUseFixedNrOfIterations, 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 APowerFractalIterator()
APowerFractalIterator
object and initialises it with the default power.public java.lang.String getCustomFilenamePart()
getCustomFilenamePart
in class AFractalIterator
public double getDefaultEscapeRadius()
getDefaultEscapeRadius
in class MandelbrotJuliaFractalIterator
protected abstract org.sm.smtools.math.complex.ComplexNumber getDefaultPower()
public final org.sm.smtools.math.complex.ComplexNumber getPower()
protected 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 setPower(org.sm.smtools.math.complex.ComplexNumber power)
power
- the power for this fractalprotected 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