mt
Class MT_ConvolutionHelper
Object
mt:MT_ConvolutionHelper
class
- Object:MT_ConvolutionHelper
Helper class for MT_ConvolutionColoring.
Mark Townsend, May 2008
Ultra Fractal Source
Toggle UF Source Code Display
class MT_ConvolutionHelper {
;
; Helper class for MT_ConvolutionColoring.
; <p>
; Mark Townsend, May 2008
;
public:
import "common.ulb"
import "Standard.ulb"
func MT_ConvolutionHelper(MT_ConvolutionColoring owner)
fFormula = new @formulaClass(owner)
fColouring = new @coloringClass(owner)
endfunc
complex func Init(const complex pz)
fZ = fFormula.Init(pz)
fColouring.Init(fZ, pz)
return fZ
endfunc
complex func Iterate()
return (fZ = fFormula.Iterate(fZ))
endfunc
func IterateCol()
fColouring.Iterate(fZ)
return
endfunc
bool func IsBailedOut()
return fFormula.IsBailedOut(fZ)
endfunc
color func Result()
return fColouring.Result(fZ)
endfunc
bool func IsSolid()
return fColouring.IsSolid()
endfunc
private:
Formula fFormula
Coloring fColouring
complex fZ
default:
Formula param formulaClass
caption = "Fractal Formula"
default = Standard_Mandelbrot
hint = "Sets the actual fractal formula to use for the lighting effect."
endparam
Coloring param coloringClass
caption = "Coloring Algorithm"
default = Standard_Smooth
hint = "Selects the colouring algorithm to be used. Note that where \
necessary you should ensure duplicate parameters in the 'Fractal \
Formula' and the 'Colouring Algorithm' match each other - \
typically bailout values and degree/exponent/power values."
endparam
}
Methods inherited from class Object |
|
MT_ConvolutionHelper
public MT_ConvolutionHelper(MT_ConvolutionColoring owner)
MT_ConvolutionHelper
public MT_ConvolutionHelper()
Init
public complex Init(complex pz)
Iterate
public complex Iterate()
IterateCol
public void IterateCol()
IsBailedOut
public boolean IsBailedOut()
Result
public color Result()
IsSolid
public boolean IsSolid()