reb
Class ImageTrapColoringMagnitude

Object
  extended by common:Generic
      extended by reb:ImageTrapColoring
          extended by reb:ImageTrapColoringMagnitude

class 
ImageTrapColoring:ImageTrapColoringMagnitude

Returns the magnitude of the trapped point which has been weighted by a texture

Returns either the transformed or the untransformed point.The inherited function CResult() returns a color from a ColorTrap class if one is being used.


Ultra Fractal Source

Toggle UF Source Code Display

 class ImageTrapColoringMagnitude(ImageTrapColoring) {
 ; Returns the magnitude of the trapped point which has been weighted by a texture <br>
 ; <p>
 ; Returns either the transformed or the untransformed point.The inherited
 ; function CResult() returns a color from a ColorTrap class if one is being used.
 public:
   import "common.ulb"
 
   ; constructor
   func ImageTrapColoringMagnitude(Generic pparent)
     ImageTrapColoring.ImageTrapColoring(pparent)
   endfunc
 
   ; use in the Result section of a direct coloring formula.
   float func Result(ImageTrapMode ptrapmode)
     ImageTrapColoring.Result(ptrapmode)
     if (@p_untransformed)
       return cabs(ptrapmode.GetUntransformedPoint(0)) + ptrapmode.GetTexture(0)
     else
       return cabs(ptrapmode.GetTransformedPoint(0)) + ptrapmode.GetTexture(0)
     endif
   endfunc
 
 default:
   title = "Magnitude"
   int param v_magnitude
     caption = "Version (Magnitude)"
     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_magnitude < 100
   endparam
 
   bool param p_untransformed
     caption = "Use value before transformation"
     default = true
     hint = "If checked, coloring will be based on the value prior to any trap position transformations."
   endparam
 }
 


Constructor Summary
ImageTrapColoringMagnitude()
           
ImageTrapColoringMagnitude(Generic pparent)
          constructor
 
Method Summary
 float Result(ImageTrapMode ptrapmode)
          use in the Result section of a direct coloring formula.
 
Methods inherited from class reb:ImageTrapColoring
CResult
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

ImageTrapColoringMagnitude

public ImageTrapColoringMagnitude(Generic pparent)
constructor


ImageTrapColoringMagnitude

public ImageTrapColoringMagnitude()
Method Detail

Result

public float Result(ImageTrapMode ptrapmode)
use in the Result section of a direct coloring formula.

Overrides:
Result in class ImageTrapColoring