mt
Class ConvergentDivergentManyJulia

Object
  extended by common:Generic
      extended by common:Formula
          extended by common:ConvergentDivergentFormula
              extended by mt:ConvergentDivergentManyJulia
Direct Known Subclasses:
MT_ManyMagnetIIJulia, MT_ManyMagnetIJulia

class 
ConvergentDivergentFormula:ConvergentDivergentManyJulia

mark Townsend, July 2008


Ultra Fractal Source

Toggle UF Source Code Display

 class ConvergentDivergentManyJulia(common.ulb:ConvergentDivergentFormula) {
 ;
 ; mark Townsend, July 2008
 ;
 public:
   func ConvergentDivergentManyJulia(Generic pparent)
     Formula.Formula(pparent)
   endfunc
   
   complex func Init(complex pz)
     ConvergentDivergentFormula.Init(pz)
     float iscale = 1 / @scale
     m_seed = round(pz * @scale) * iscale
     z = (pz - m_seed) * @scale * @jscale    
     return z
   endfunc
   
 protected:
   complex m_seed
     
 default:
   param scale
     caption = "Julia Density"
     default = 2.0
     hint = "Specifies the density of separate Julia sets; higher \
             numbers will produce more divisions."
   endparam
   param jscale
     caption = "Julia Zoom"
     default = 3.0
     hint = "Specifies the zoom level of Julia sets within each division."
   endparam
 }
 


Constructor Summary
ConvergentDivergentManyJulia()
           
ConvergentDivergentManyJulia(Generic pparent)
           
 
Method Summary
 complex Init(complex pz)
          Set up for a sequence of values
 
Methods inherited from class common:ConvergentDivergentFormula
GetLowerBailout, GetUpperBailout, IsBailedOut, Iterate
 
Methods inherited from class common:Formula
GetPrimaryExponent
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

ConvergentDivergentManyJulia

public ConvergentDivergentManyJulia(Generic pparent)

ConvergentDivergentManyJulia

public ConvergentDivergentManyJulia()
Method Detail

Init

public complex Init(complex pz)
Description copied from class: ConvergentDivergentFormula
Set up for a sequence of values

This function will be called at the beginning of each sequence of values (e.g. at the beginning of each fractal orbit).

Overrides:
Init in class ConvergentDivergentFormula
Parameters:
pz - seed value for the sequence; for a normal fractal formula, this will be #pixel
Returns:
first value in the sequence; this corresponds to #z in a fractal formula