Standard
Class Standard_TrapShapeBox

Object
  extended by common:Generic
      extended by common:TrapShape
          extended by Standard:Standard_TrapShapeBox

class 
TrapShape:Standard_TrapShapeBox



Ultra Fractal Source

Toggle UF Source Code Display

 class Standard_TrapShapeBox(common.ulb:TrapShape) {
 public:
   float func Iterate(complex pz)
     float d = abs(real(pz))
     float d2 = abs(imag(pz))
     if d2 > d
       d = d2
     endif
     return abs(d - @diameter)
   endfunc
 default:
   title = "Box"
   float param diameter
     caption = "Diameter"
     default = 1
     hint = "This is the size of the trap shape."
   endparam
 }
 


Constructor Summary
Standard_TrapShapeBox()
           
 
Method Summary
 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

Standard_TrapShapeBox

public Standard_TrapShapeBox()
Method Detail

Iterate

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

Overrides:
Iterate in class TrapShape