common
Class TrapColoringDistance

Object
  extended by common:Generic
      extended by common:TrapColoring
          extended by common:TrapColoringDistance

class 
TrapColoring:TrapColoringDistance



Ultra Fractal Source

Toggle UF Source Code Display

 class TrapColoringDistance(TrapColoring) {
 public:
   func TrapColoringDistance(Generic pparent)
     TrapColoring.TrapColoring(pparent)
   endfunc
   
   float func Result(TrapMode ptrapmode)
     if (@p_autoscale)
       return (ptrapmode.GetDistance(0) + ptrapmode.GetTexture(0)) / ptrapmode.GetThreshold()
     else
       return (ptrapmode.GetDistance(0) + ptrapmode.GetTexture(0))
     endif
   endfunc
 
 default:
   title = "Distance"
 
   int param v_trapcoloringdistance
     caption = "Version (TrapColoringDistance)"
     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_trapcoloringdistance < 100
   endparam
 
   bool param p_autoscale
     caption = "Auto-scale Coloring"
     default = true
     hint = "If checked, coloring will be automatically scaled to match the trap threshold."
   endparam
 }
 


Constructor Summary
TrapColoringDistance()
           
TrapColoringDistance(Generic pparent)
           
 
Method Summary
 float Result(TrapMode ptrapmode)
          get a final result
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

TrapColoringDistance

public TrapColoringDistance(Generic pparent)

TrapColoringDistance

public TrapColoringDistance()
Method Detail

Result

public float Result(TrapMode ptrapmode)
Description copied from class: TrapColoring
get a final result

Overrides:
Result in class TrapColoring