reb
Class ImageTrapModeAverage

Object
  extended by common:Generic
      extended by reb:ImageTrapMode
          extended by reb:ImageTrapModeWithThreshold
              extended by reb:ImageTrapModeSum
                  extended by reb:ImageTrapModeAverage

class 
ImageTrapModeSum:ImageTrapModeAverage

This trap mode averages the trapped points that are within the threshold.


Ultra Fractal Source

Toggle UF Source Code Display

 class ImageTrapModeAverage(ImageTrapModeSum) {
 ; This trap mode averages the trapped points that are within the threshold.
 
 public:
   import "common.ulb"
   
   ; constructor
   func ImageTrapModeAverage(Generic pparent)
     ImageTrapModeSum.ImageTrapModeSum(pparent)
   endfunc
 
   ; call in the final section of the coloring formula/class
   func Result()
     float ii = 1.0 / m_IterationPoints[0]
     m_Distances[0] = m_Distances[0] * ii
     m_UntransformedPoints[0] = m_UntransformedPoints[0] * ii
     m_Textures[0] = m_Textures[0] * ii
     m_TransformedPoints[0] = m_TransformedPoints[0] * ii
   endfunc
 
 default:
   title = "Average"
   int param v_average
     caption = "Version (Average)"
     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_average < 100
   endparam
 }
 


Constructor Summary
ImageTrapModeAverage()
           
ImageTrapModeAverage(Generic pparent)
          constructor
 
Method Summary
 void Result()
          call in the final section of the coloring formula/class
 
Methods inherited from class reb:ImageTrapModeSum
Init, Iterate
 
Methods inherited from class reb:ImageTrapModeWithThreshold
EdgeFade, GetAThreshold, GetThreshold, SetAThreshold, SetThreshold, UsesAThreshold, UsesThreshold
 
Methods inherited from class reb:ImageTrapMode
GetColor, GetDistance, GetIteration, GetTexture, GetTransformedPoint, GetUntransformedPoint, IsSolid, IterateSilent
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

ImageTrapModeAverage

public ImageTrapModeAverage(Generic pparent)
constructor


ImageTrapModeAverage

public ImageTrapModeAverage()
Method Detail

Result

public void Result()
call in the final section of the coloring formula/class

Overrides:
Result in class ImageTrapMode