Standard
Class Standard_TrapModeAlternatingAverage

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

class 
Standard_TrapModeBase:Standard_TrapModeAlternatingAverage



Ultra Fractal Source

Toggle UF Source Code Display

 class Standard_TrapModeAlternatingAverage(Standard_TrapModeBase) {
 public:
   func Iterate(complex pz, complex pzt, float pdistance, float ptexture)
     Standard_TrapModeBase.Iterate(pz, pzt, pdistance, ptexture)
     if pdistance < m_Threshold
       m_UntransformedPoints[0] = pz - m_UntransformedPoints[0]
       m_TransformedPoints[0] = pzt - m_TransformedPoints[0]
       if @style == "Type 1"
         m_Distances[0] = m_Threshold - abs(m_Distances[0] - pdistance)
       else
         m_Distances[0] = abs(pdistance - m_Threshold + m_Distances[0])
       endif
       m_IterationPoints[0] = m_IterationPoints[0] + 1
       m_Solid = false
     endif
   endfunc
 
 default:
   title = "Alternating Average"
   int param style
     caption = "Style"
     default = 0
     enum = "Type 1" "Type 2"
     hint = "Selects between two ways of alternating average values."
   endparam
 }
 


Constructor Summary
Standard_TrapModeAlternatingAverage()
           
 
Method Summary
 void Iterate(complex pz, complex pzt, float pdistance, float ptexture)
          call this for each point
 
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, Result
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

Standard_TrapModeAlternatingAverage

public Standard_TrapModeAlternatingAverage()
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