|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object common:Generic common:TrapMode common:TrapModeWithThreshold Standard:Standard_TrapModeBase Standard:Standard_TrapModeSum
class
class Standard_TrapModeSum(Standard_TrapModeBase) { public: func Iterate(complex pz, complex pzt, float pdistance, float ptexture) float d2 Standard_TrapModeBase.Iterate(pz, pzt, pdistance, ptexture) if pdistance < m_Threshold if @style == "Normal" SetTrapInfo(0, m_UntransformedPoints[0] + pz, \ m_TransformedPoints[0] + pzt, m_Distances[0] + pdistance) elseif @style == "Inverted" d2 = pdistance / m_Threshold m_UntransformedPoints[0] = pz + (m_UntransformedPoints[0] - pz) * d2 m_TransformedPoints[0] = pzt + (m_TransformedPoints[0] - pzt) * d2 m_Distances[0] = m_Distances[0] + pdistance endif if @style != "Normal" m_IterationPoints[0] = m_IterationPoints[0] + 1 endif m_Solid = false endif if @style == "Inverted Squared" d2 = sqr(pdistance / m_Threshold) m_UntransformedPoints[0] = pz + (m_UntransformedPoints[0] - pz) * d2 m_TransformedPoints[0] = pzt + (m_TransformedPoints[0] - pzt) * d2 m_Distances[0] = m_Distances[0] + 1 / d2 endif endfunc func Result() if @style == "Inverted" m_Distances[0] = m_Threshold * m_IterationPoints[0] - m_Distances[0] endif endfunc default: title = "Sum" int param style caption = "Style" default = 0 enum = "Normal" "Inverted" "Inverted Squared" hint = "Selects between different ways of summing the orbit values." endparam }
Constructor Summary | |
---|---|
Standard_TrapModeSum()
|
Method Summary | |
---|---|
void |
Iterate(complex pz,
complex pzt,
float pdistance,
float ptexture)
call this for each point |
void |
Result()
call this to compute final results |
Methods inherited from class Standard:Standard_TrapModeBase |
---|
Init, SetTrapInfo |
Methods inherited from class common:TrapModeWithThreshold |
---|
GetThreshold, SetThreshold, UsesThreshold |
Methods inherited from class common:TrapMode |
---|
GetDistance, GetIteration, GetTexture, GetTransformedPoint, GetUntransformedPoint, IsSolid, IterateSilent |
Methods inherited from class common:Generic |
---|
GetParent |
Methods inherited from class Object |
---|
|
Constructor Detail |
---|
public Standard_TrapModeSum()
Method Detail |
---|
public void Iterate(complex pz, complex pzt, float pdistance, float ptexture)
TrapMode
Iterate
in class TrapMode
public void Result()
TrapMode
Result
in class TrapMode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |