dmj5
Class DMJ_TrapModeChangeAverage
Object
common:Generic
common:TrapMode
dmj5:DMJ_TrapModeChangeAverage
class
- TrapMode:DMJ_TrapModeChangeAverage
Ultra Fractal Source
Toggle UF Source Code Display
class DMJ_TrapModeChangeAverage(common.ulb:TrapMode) {
public:
import "common.ulb"
func DMJ_TrapModeChangeAverage(Generic pparent)
TrapMode.TrapMode(pparent)
endfunc
func Init(complex pz)
TrapMode.Init(pz)
m_Solid = true
m_PreviousDistance = 0
m_PreviousTexture = 0
endfunc
func Iterate(complex pz, complex pzt, float pdistance, float ptexture)
TrapMode.Iterate(pz, pzt, pdistance, ptexture)
if (pdistance < m_PreviousDistance)
m_Distances[0] = m_Distances[0] + m_PreviousDistance-pdistance
m_Textures[0] = m_Textures[0] + m_PreviousTexture-ptexture
m_UntransformedPoints[0] = m_UntransformedPoints[0] + pz
m_TransformedPoints[0] = m_TransformedPoints[0] + pzt
m_IterationPoints[0] = m_IterationPoints[0] + 1
m_Solid = false
endif
m_PreviousDistance = pdistance
endfunc
protected:
float m_PreviousDistance
float m_PreviousTexture
default:
title = "Change Average"
int param v_dmj_trapmodechangeaverage
caption = "Version (DMJ_TrapModeChangeAverage)"
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_dmj_trapmodechangeaverage < 100
endparam
}
Method Summary |
void |
Init(complex pz)
call this at the beginning of each sequence |
void |
Iterate(complex pz,
complex pzt,
float pdistance,
float ptexture)
call this for each point |
Methods inherited from class common:TrapMode |
GetDistance, GetIteration, GetTexture, GetThreshold, GetTransformedPoint, GetUntransformedPoint, IsSolid, IterateSilent, Result, SetThreshold, UsesThreshold |
Methods inherited from class Object |
|
DMJ_TrapModeChangeAverage
public DMJ_TrapModeChangeAverage(Generic pparent)
DMJ_TrapModeChangeAverage
public DMJ_TrapModeChangeAverage()
Init
public void Init(complex pz)
- Description copied from class:
TrapMode
- call this at the beginning of each sequence
- Overrides:
Init
in class TrapMode
Iterate
public void Iterate(complex pz,
complex pzt,
float pdistance,
float ptexture)
- Description copied from class:
TrapMode
- call this for each point
- Overrides:
Iterate
in class TrapMode