reb
Class REB_Switch_FractalTiler

Object
  extended by common:Generic
      extended by common:Formula
          extended by reb:Switch
              extended by reb:REB_Switch_FractalTiler

class 
Switch:REB_Switch_FractalTiler

A tiling formula that can be used with any object switch formualas.



Ultra Fractal Source

Toggle UF Source Code Display


Constructor Summary
REB_Switch_FractalTiler()
           
REB_Switch_FractalTiler(Generic pparent)
           
 
Method Summary
 complex Init(complex pz)
          Set up for a sequence of values
 boolean IsBailedOut(complex pz)
          Override the default function for bailout
 complex Iterate(complex pz)
          call for each iterated point.
 
Methods inherited from class reb:Switch
GetParams, SetParams
 
Methods inherited from class common:Formula
GetLowerBailout, GetPrimaryExponent, GetUpperBailout
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

REB_Switch_FractalTiler

public REB_Switch_FractalTiler(Generic pparent)

REB_Switch_FractalTiler

public REB_Switch_FractalTiler()
Method Detail

Init

public complex Init(complex pz)
Description copied from class: Formula
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 Switch
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

Iterate

public complex Iterate(complex pz)
call for each iterated point. Overrides the parent Iterate function.

Overrides:
Iterate in class Switch
Parameters:
pz - previous value in the sequence; corresponds to #z in a fractal formula. Note that you should always use this value for computing the next iteration, rather than a saved value, as the calling code may modify the returned value before passing it back to the next Iterate() call.
Returns:
the next value in the sequence

IsBailedOut

public boolean IsBailedOut(complex pz)
Override the default function for bailout

Overrides:
IsBailedOut in class Switch
Parameters:
pz - last sequence value to test; this should be the value returned from the previous Iterate() call. Note that it is acceptable to ignore pz and use m_BailedOut, but any code calling IsBailedOut() should pass in the correct pz for Formula classes which do not use m_BailedOut.
Returns:
true if the sequence has bailed out (i.e. should be terminated)