Standard
Class Standard_TrapShapeGaussianInteger

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

class 
TrapShape:Standard_TrapShapeGaussianInteger



Ultra Fractal Source

Toggle UF Source Code Display

 class Standard_TrapShapeGaussianInteger(common.ulb:TrapShape) {
 public:
   func Init(complex pz)
     if @norm == "none"
       fNormFactor = 1
     elseif @norm == "pixel"
       fNormFactor = #pixel
     elseif @norm == "factor"
       fNormFactor = @fac
     else ; f(z)
       fNormFactor = @normfunc(pz)
     endif
   endfunc
 
   float func Iterate(complex pz)
     complex temp = pz / fNormFactor
     if @inttype == "round(z)"
       temp = round(temp)
     elseif @inttype == "trunc(z)"
       temp = trunc(temp)
     elseif @inttype == "floor(z)"
       temp = floor(temp)
     else
       temp = ceil(temp)
     endif
     return cabs(pz - temp * fNormFactor)
   endfunc
   
 private:
   complex fNormFactor
   
 default:
   title = "Gaussian Integer"
   param inttype
     caption="Integer Type"
     default=0
     enum="round(z)" "trunc(z)" "floor(z)" "ceil(z)"
     hint="Selects between four ways of reducing the orbit value z to an \
           integer. Each will produce different effects."
   endparam
   param norm
     caption="Normalization"
     default=0
     enum="none" "pixel" "factor" "f(z)"
     hint="Selects an optional normalization algorithm that is applied to the \
           integer values."
   endparam
   param fac
     caption=" Factor"
     default=(2.0,1.0)
     visible = @norm == "factor"
     hint="Specifies the normalization factor that is used if Normalization is \
           set to 'factor'."
   endparam
   func normfunc
     caption=" Function"
     default=ident()
     hint="Selects the normalization function that is used if Normalization is \
           set to 'f(z)'."
     visible = @norm == "f(z)"
   endfunc
 }
 


Constructor Summary
Standard_TrapShapeGaussianInteger()
           
 
Method Summary
 void Init(complex pz)
          call this before each sequence of values to be trapped
 float Iterate(complex pz)
          call this for each iteration being trapped
 
Methods inherited from class common:TrapShape
GetColorChannel, GetTextureValue, GetTransformedPoint, IterateSilent, SetThreshold
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

Standard_TrapShapeGaussianInteger

public Standard_TrapShapeGaussianInteger()
Method Detail

Init

public void Init(complex pz)
Description copied from class: TrapShape
call this before each sequence of values to be trapped

Overrides:
Init in class TrapShape

Iterate

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

Overrides:
Iterate in class TrapShape