jlb
Class JLB_SimpleBailout

Object
  extended by common:Generic
      extended by jlb:Reduction
          extended by jlb:JLB_SimpleBailout

class 
Reduction:JLB_SimpleBailout



Ultra Fractal Source

Toggle UF Source Code Display

 class JLB_SimpleBailout(Reduction) {
 
 public:
   import "common.ulb"
   
   func JLB_SimpleBailout(Generic pparent)
     Reduction.Reduction(pparent)
   endfunc
   
   func Init(complex pz)
     m_BailoutValue = real(pz)               ;@p_default
   endfunc
 
   ; @param pz
   ; @return true if bailed out
   bool func Iterate(complex pz)
     return (|pz| > m_BailoutValue)
   endfunc
   
 ;   func SetBailoutValue(float value)
 ;     m_BailoutValue = value
 ;   endfunc
 
 protected:
   float m_BailoutValue
 
 default:
   title = "Simple Bailout"
   int param v_SimpleBailout
     caption = "Version (SimpleBailout)"
     default = 100
     hint = "This version parameter is used to detect when a change has \
             been made to the formula that is incompatible with the \
             previous version. When that happens, this field will reflect \
             the old version number to alert you to the fact that an \
             alternate rendering is being used."
     visible = @v_SimpleBailout < 100
   endparam
   
 ;   float param p_default
 ;     default = 1
 ;     visible = false
 ;   endparam
 }
 


Constructor Summary
JLB_SimpleBailout()
           
JLB_SimpleBailout(Generic pparent)
           
 
Method Summary
 void Init(complex pz)
           
 boolean Iterate(complex pz)
           
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

JLB_SimpleBailout

public JLB_SimpleBailout(Generic pparent)

JLB_SimpleBailout

public JLB_SimpleBailout()
Method Detail

Init

public void Init(complex pz)
Overrides:
Init in class Reduction

Iterate

public boolean Iterate(complex pz)
Overrides:
Iterate in class Reduction
Parameters:
pz -
Returns:
true if bailed out