Standard
Class Standard_TrapModeSum

Object
  extended by common:Generic
      extended by common:TrapMode
          extended by common:TrapModeWithThreshold
              extended by Standard:Standard_TrapModeBase
                  extended by Standard:Standard_TrapModeSum

class 
Standard_TrapModeBase:Standard_TrapModeSum



Ultra Fractal Source

Toggle UF Source Code Display

 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

Standard_TrapModeSum

public Standard_TrapModeSum()
Method Detail

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

Result

public void Result()
Description copied from class: TrapMode
call this to compute final results

Overrides:
Result in class TrapMode