Standard
Class Standard_TrapModeProduct

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

class 
Standard_TrapModeBase:Standard_TrapModeProduct



Ultra Fractal Source

Toggle UF Source Code Display

 class Standard_TrapModeProduct(Standard_TrapModeBase) {
 public:
   func Init(complex pz)
     Standard_TrapModeBase.Init(pz)
     m_UntransformedPoints[0] = (1, 0)
     m_TransformedPoints[0] = (1, 0)
     m_Distances[0] = 1
   endfunc
   
   func Iterate(complex pz, complex pzt, float pdistance, float ptexture)
     Standard_TrapModeBase.Iterate(pz, pzt, pdistance, ptexture)
     if pdistance < m_Threshold
       SetTrapInfo(0, m_UntransformedPoints[0] * pz / GetThreshold(), \
         m_TransformedPoints[0] * pzt / GetThreshold(), \
         m_Distances[0] * pdistance / GetThreshold())
       m_Solid = false
     endif
   endfunc
 
 default:
   title = "Product"
 }
 


Constructor Summary
Standard_TrapModeProduct()
           
 
Method Summary
 void Init(complex pz)
          Calls the inherited Init() and also sets m_Solid to true because this is the initial condition for most trap modes.
 void Iterate(complex pz, complex pzt, float pdistance, float ptexture)
          call this for each point
 
Methods inherited from class Standard:Standard_TrapModeBase
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_TrapModeProduct

public Standard_TrapModeProduct()
Method Detail

Init

public void Init(complex pz)
Description copied from class: Standard_TrapModeBase
Calls the inherited Init() and also sets m_Solid to true because this is the initial condition for most trap modes.

Overrides:
Init in class Standard_TrapModeBase

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