mmf
Class MMF_TransformAdd
Object
common:Generic
common:Transform
common:UserTransform
mmf:MMF_TransformAdd
class
- UserTransform:MMF_TransformAdd
Adds the results of two transforms together
Ultra Fractal Source
Toggle UF Source Code Display
class MMF_TransformAdd(common.ulb:UserTransform) {
; Adds the results of two transforms together<br>
public:
import "common.ulb"
; @param pparent the parent, generally "this" for the parent, or zero
func MMF_TransformAdd(Generic pparent)
UserTransform.UserTransform(pparent)
fTransform1 = new @p_Transform1(this)
fTransform2 = new @p_Transform2(this)
endfunc
func Init(complex pz)
; m_Iterations = 0 not used in this transform
m_Solid = false
fTransform1.Init(pz)
fTransform2.Init(pz)
endfunc
complex func Iterate(complex pz)
; m_Iterations = m_Iterations + 1 not used in this transform
return fTransform1.Iterate(pz) + fTransform2.Iterate(pz)
endfunc
private:
Transform fTransform1
Transform fTransform2
default:
title = "Transform Add"
Transform param p_Transform1
caption = "First Transform"
default = MMF_GeneralTransform
hint = "The result of this is added to the result of 'Second Transform'."
endparam
Transform param p_Transform2
caption = "Second Transform"
default = MMF_GeneralTransform
hint = "The result of this is added to the result of 'First Transform'."
endparam
}
Methods inherited from class Object |
|
MMF_TransformAdd
public MMF_TransformAdd(Generic pparent)
- Parameters:
pparent
- the parent, generally "this" for the parent, or zero
MMF_TransformAdd
public MMF_TransformAdd()
Init
public void Init(complex pz)
- Description copied from class:
Transform
- Set up for a sequence of values
This function will be called at the beginning of each
sequence of values (e.g. at the beginning of each fractal
orbit). It will be called even if only one value is being
transformed (e.g. a normal transformation formula). Use
this to perform any setup that is exactly the same for
each value in the sequence being transformed.
- Overrides:
Init
in class Transform
- Parameters:
pz
- the value representing the sequence; for a normal transformation formula use, this will be #pixel. In some cases this may differ from the first value passed to Iterate() if the calling code applies some other transformations.
Iterate
public complex Iterate(complex pz)
- Description copied from class:
Transform
- Transform a single point within a sequence
After a sequence has been set up with Init(), this function
will be called once for each value in the sequence. Note
that all values in the sequence must be processed in order
(they cannot be processed out of order). If the sequence
contains only one value, Init() will still be called and
then Iterate() will be called just once.
- Overrides:
Iterate
in class Transform
- Parameters:
pz
- the complex value to be transformed
- Returns:
- the transformed value