mmf
Class MMF_TransferMerge
Object
common:Generic
common:Transfer
mmf:MMF_TransferMerge
class
- Transfer:MMF_TransferMerge
Allows the combination of multiple transfer options
Ultra Fractal Source
Toggle UF Source Code Display
class MMF_TransferMerge(common.ulb:Transfer) {
; Allows the combination of multiple transfer options
public:
; @param pparent the parent, generally "this" for the parent, or zero
func MMF_TransferMerge(Generic pparent)
Transfer.Transfer(pparent)
m_transfer[0] = new @transfer0(pparent)
m_transfer[1] = new @transfer1(pparent)
if @numtrans>0
m_transfer[2] = new @transfer2(pparent)
if @numtrans>1
m_transfer[3] = new @transfer3(pparent)
if @numtrans>2
m_transfer[4] = new @transfer4(pparent)
if @numtrans>3
m_transfer[5] = new @transfer5(pparent)
if @numtrans>4
m_transfer[6] = new @transfer6(pparent)
if @numtrans>5
m_transfer[7] = new @transfer7(pparent)
if @numtrans>6
m_transfer[8] = new @transfer8(pparent)
if @numtrans>7
m_transfer[9] = new @transfer9(pparent)
endif
endif
endif
endif
endif
endif
endif
endif
endfunc
; @param pz complex to initialise
func Init(complex pz)
int i = 1
m_transfer[0].Init(pz)
m_transfer[1].Init(pz)
while (i=i+1)<@numtrans+2
m_transfer[i].Init(pz)
endwhile
endfunc
; @param pr the float value to manipulate
; @return the manipulated value
float func Iterate(float pr)
int i = 1
pr = m_transfer[1].Iterate(m_transfer[0].Iterate(pr))
while (i=i+1)<@numtrans+2
pr = m_transfer[i].Iterate(pr)
endwhile
return pr
endfunc
func IterateSilent()
int i = 1
m_transfer[0].IterateSilent()
m_transfer[1].IterateSilent()
while (i=i+1)<@numtrans+2
m_transfer[i].IterateSilent()
endwhile
endfunc
protected:
Transfer m_transfer[10]
default:
title = "MMF Transfer Merge"
int param v_mmftransfermerge
caption = "Version (MMF Transfer Merge)"
default = 100
hint = "This version parameter is used to detect when a change has been \
made to the formula that is incompatible with the previous \
version. When that happens, this field will reflect the old \
version number to alert you to the fact that an alternate \
rendering is being used."
visible = @v_mmftransfermerge < 100
endparam
int param numtrans
caption = "Number of Transfers"
enum = "2" "3" "4" "5" "6" "7" "8" "9" "10"
default = 0
endparam
Transfer param transfer0
caption = "1st Transfer"
default = NullTransfer
endparam
Transfer param transfer1
caption = "2nd Transfer"
default = NullTransfer
endparam
Transfer param transfer2
caption = "3rd Transfer"
default = NullTransfer
visible = @numtrans>0
endparam
Transfer param transfer3
caption = "4th Transfer"
default = NullTransfer
visible = @numtrans>1
endparam
Transfer param transfer4
caption = "5th Transfer"
default = NullTransfer
visible = @numtrans>2
endparam
Transfer param transfer5
caption = "6th Transfer"
default = NullTransfer
visible = @numtrans>3
endparam
Transfer param transfer6
caption = "7th Transfer"
default = NullTransfer
visible = @numtrans>4
endparam
Transfer param transfer7
caption = "8th Transfer"
default = NullTransfer
visible = @numtrans>5
endparam
Transfer param transfer8
caption = "9th Transfer"
default = NullTransfer
visible = @numtrans>6
endparam
Transfer param transfer9
caption = "10th Transfer"
default = NullTransfer
visible = @numtrans>7
endparam
}
Method Summary |
void |
Init(complex pz)
call this to begin processing a sequence
NOTE: although Transfer computes reals, it is still initialized
with a complex value, usually corresponding to the point this
is being applied to |
float |
Iterate(float pr)
call this to process another value in the sequence |
void |
IterateSilent()
Update internal counters without transforming a value |
Methods inherited from class Object |
|
MMF_TransferMerge
public MMF_TransferMerge(Generic pparent)
- Parameters:
pparent
- the parent, generally "this" for the parent, or zero
MMF_TransferMerge
public MMF_TransferMerge()
Init
public void Init(complex pz)
- Description copied from class:
Transfer
- call this to begin processing a sequence
NOTE: although Transfer computes reals, it is still initialized
with a complex value, usually corresponding to the point this
is being applied to
- Overrides:
Init
in class Transfer
- Parameters:
pz
- complex to initialise
Iterate
public float Iterate(float pr)
- Description copied from class:
Transfer
- call this to process another value in the sequence
- Overrides:
Iterate
in class Transfer
- Parameters:
pr
- the float value to manipulate
- Returns:
- the manipulated value
IterateSilent
public void IterateSilent()
- Description copied from class:
Transfer
- Update internal counters without transforming a value
- Overrides:
IterateSilent
in class Transfer