mmf
Class DistanceEstimatorBase

Object
  extended by common:Generic
      extended by common:Coloring
          extended by common:GradientColoring
              extended by mmf:DistanceEstimatorBase
Direct Known Subclasses:
MMF_Magnet1DistanceEstimator, MMF_Magnet2DistanceEstimator, MMF_NewtonDistanceEstimator, MMF_NovaDistanceEstimator, MMF_StandardDistanceEstimator

class 
GradientColoring:DistanceEstimatorBase

Distance Estimator base class.


Ultra Fractal Source

Toggle UF Source Code Display

 class DistanceEstimatorBase(common.ulb:GradientColoring) {
 ; Distance Estimator base class.
 public:
   import "common.ulb"
   ; @param pparent the parent, generally "this" for the parent, or zero
   func DistanceEstimatorBase(Generic pparent)
     GradientColoring.GradientColoring(pparent)
   endfunc
   ; @param pz
   ; @return the distance
   float func ResultDistance(complex pz)
     return real(pz)
   endfunc
   ; @param pz
   ; @return the angle (from 0 to 1)
   float func ResultAngle(complex pz)
     return real(pz)
   endfunc
   
 protected:
   complex dz
 
 default:
   int param v_distanceestimatorbase
     caption = "Version (Distance Estimator Base)"
     default = 100
     hint = "This version parameter is used to detect when a change has \
             been made to the formula that is incompatible with the \
             previous version. When that happens, this field will reflect \
             the old version number to alert you to the fact that an \
             alternate rendering is being used."
     visible = @v_distanceestimatorbase < 100
   endparam
 }
 


Constructor Summary
DistanceEstimatorBase()
           
DistanceEstimatorBase(Generic pparent)
           
 
Method Summary
 float ResultAngle(complex pz)
           
 float ResultDistance(complex pz)
           
 
Methods inherited from class common:GradientColoring
Init, IsGradient, IsSolid, Iterate, Result, ResultIndex
 
Methods inherited from class common:Coloring
GetPixel
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

DistanceEstimatorBase

public DistanceEstimatorBase(Generic pparent)
Parameters:
pparent - the parent, generally "this" for the parent, or zero

DistanceEstimatorBase

public DistanceEstimatorBase()
Method Detail

ResultDistance

public float ResultDistance(complex pz)
Parameters:
pz -
Returns:
the distance

ResultAngle

public float ResultAngle(complex pz)
Parameters:
pz -
Returns:
the angle (from 0 to 1)