mmf
Class MMF_FormulaTransform

Object
  extended by common:Generic
      extended by common:Transform
          extended by common:UserTransform
              extended by mmf:MMF_FormulaTransform

class 
UserTransform:MMF_FormulaTransform

Allows the use of any object main formula as a transform


Ultra Fractal Source

Toggle UF Source Code Display

 class MMF_FormulaTransform(common.ulb:UserTransform) {
 ; Allows the use of any object main formula as a transform<br>
 public:
   import "common.ulb"
   import "Standard.ulb"
   
   ; @param pparent the parent, generally "this" for the parent, or zero
   func MMF_FormulaTransform(Generic pparent)
     UserTransform.UserTransform(pparent)
     fFormula = new @p_Formula(this)
   endfunc
 
   func Init(complex pz)
 ;    m_Iterations = 0 not used in this transform
     m_Solid = false
     fFormula.Init(pz)
   endfunc
 
   complex func Iterate(complex pz)
 ;    m_Iterations = m_Iterations + 1 not used in this transform
     return fFormula.Iterate(pz)
   endfunc
 
 private:
   Formula fFormula
 
 default:
   title = "Any Formula"
   heading
     text = "Choose any main formula to be used as the transform, not \
             all formulas will produce good results. Note that some of \
             the main formula parameters will be superfluos, such as any \
             bailout value/s."
   endheading
   Formula param p_Formula
     caption = "Formula"
     default = Standard_Mandelbrot
     hint = "The normal iterative function of the chosen formula is used as \
             the transform."
   endparam
 }
 


Constructor Summary
MMF_FormulaTransform()
           
MMF_FormulaTransform(Generic pparent)
           
 
Method Summary
 void Init(complex pz)
          Set up for a sequence of values
 complex Iterate(complex pz)
          Transform a single point within a sequence
 
Methods inherited from class common:Transform
IsSolid, IterateSilent
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

MMF_FormulaTransform

public MMF_FormulaTransform(Generic pparent)
Parameters:
pparent - the parent, generally "this" for the parent, or zero

MMF_FormulaTransform

public MMF_FormulaTransform()
Method Detail

Init

public void Init(complex pz)
Description copied from class: Transform
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). It will be called even if only one value is being transformed (e.g. a normal transformation formula). Use this to perform any setup that is exactly the same for each value in the sequence being transformed.

Overrides:
Init in class Transform
Parameters:
pz - the value representing the sequence; for a normal transformation formula use, this will be #pixel. In some cases this may differ from the first value passed to Iterate() if the calling code applies some other transformations.

Iterate

public complex Iterate(complex pz)
Description copied from class: Transform
Transform a single point within a sequence

After a sequence has been set up with Init(), this function will be called once for each value in the sequence. Note that all values in the sequence must be processed in order (they cannot be processed out of order). If the sequence contains only one value, Init() will still be called and then Iterate() will be called just once.

Overrides:
Iterate in class Transform
Parameters:
pz - the complex value to be transformed
Returns:
the transformed value