mt
Class MT_TrapShape_Transform

Object
  extended by common:Generic
      extended by common:TrapShape
          extended by mt:MT_TrapShape_Transform

class 
TrapShape:MT_TrapShape_Transform

Mark Townsend, June 2008


Ultra Fractal Source

Toggle UF Source Code Display

 class MT_TrapShape_Transform(common.ulb:TrapShape) {
 ;
 ; Mark Townsend, June 2008
 ;
 public:
   func MT_TrapShape_Transform(Generic pparent)
     TrapShape.TrapShape(pparent)
     fTransform = new @p_transform(this)
   endfunc
 
   func init(complex pz)
     fTransform.init(pz)
   endfunc
   
   float func Iterate(complex pz)
     m_LastZ = fTransform.Iterate(pz)
     if @mode == "Magnitude"
       return cabs(m_LastZ)
     else
       return cabs(pz - m_LastZ)
     endif
    endfunc
 
 private:
   UserTransform fTransform
   
 default:
   title = "Transform"
   param mode
     caption = "Mode"
     enum = "Magnitude" "Distance"
   endparam
   UserTransform param p_transform
     caption = "Transform"
     default = MT_GravitationalLens
   endparam
 }
 


Constructor Summary
MT_TrapShape_Transform()
           
MT_TrapShape_Transform(Generic pparent)
           
 
Method Summary
 void init(complex pz)
           
 float Iterate(complex pz)
          call this for each iteration being trapped
 
Methods inherited from class common:TrapShape
GetColorChannel, GetTextureValue, GetTransformedPoint, Init, IterateSilent, SetThreshold
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

MT_TrapShape_Transform

public MT_TrapShape_Transform(Generic pparent)

MT_TrapShape_Transform

public MT_TrapShape_Transform()
Method Detail

init

public void init(complex pz)

Iterate

public float Iterate(complex pz)
Description copied from class: TrapShape
call this for each iteration being trapped

Overrides:
Iterate in class TrapShape