Standard
Class Standard_TrapModeBase

Object
  extended by common:Generic
      extended by common:TrapMode
          extended by common:TrapModeWithThreshold
              extended by Standard:Standard_TrapModeBase
Direct Known Subclasses:
MMF_TrapModeIteration, Standard_TrapModeAlternatingAverage, Standard_TrapModeAverage, Standard_TrapModeClosest, Standard_TrapModeExponentialAverage, Standard_TrapModeFarthest, Standard_TrapModeFirst, Standard_TrapModeLast, Standard_TrapModeProduct, Standard_TrapModeSum, Standard_TrapModeTrapOnly, Standard_TrapModeTwoBase

class 
TrapModeWithThreshold:Standard_TrapModeBase

Implements a few common things that most trap modes need.


Ultra Fractal Source

Toggle UF Source Code Display

 class Standard_TrapModeBase(common.ulb:TrapModeWithThreshold) {
 ; Implements a few common things that most trap modes need.
 public:
   ; Calls the inherited Init() and also sets m_Solid to true because this is
   ; the initial condition for most trap modes.
   func Init(complex pz)
     TrapModeWithThreshold.Init(pz)
     m_Solid = true
   endfunc
 
 protected:
   ; SetTrapInfo makes it a little easier to set the information for a trapped
   ; point. It just updates the member variables of the TrapMode base class.
   func SetTrapInfo(int i, complex pz, complex pzt, float pdistance)
     m_Distances[i] = pdistance
     m_UntransformedPoints[i] = pz
     m_TransformedPoints[i] = pzt
     m_IterationPoints[i] = m_Iterations
   endfunc
 }
 


Constructor Summary
Standard_TrapModeBase()
           
 
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.
protected  void SetTrapInfo(int i, complex pz, complex pzt, float pdistance)
          SetTrapInfo makes it a little easier to set the information for a trapped point.
 
Methods inherited from class common:TrapModeWithThreshold
GetThreshold, SetThreshold, UsesThreshold
 
Methods inherited from class common:TrapMode
GetDistance, GetIteration, GetTexture, GetTransformedPoint, GetUntransformedPoint, IsSolid, Iterate, IterateSilent, Result
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

Standard_TrapModeBase

public Standard_TrapModeBase()
Method Detail

Init

public 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.

Overrides:
Init in class TrapMode

SetTrapInfo

protected void SetTrapInfo(int i,
                           complex pz,
                           complex pzt,
                           float pdistance)
SetTrapInfo makes it a little easier to set the information for a trapped point. It just updates the member variables of the TrapMode base class.