Standard
Class Standard_TrapColoringDistance

Object
  extended by common:Generic
      extended by common:TrapColoring
          extended by Standard:Standard_TrapColoringDistance

class 
TrapColoring:Standard_TrapColoringDistance



Ultra Fractal Source

Toggle UF Source Code Display

 class Standard_TrapColoringDistance(common.ulb:TrapColoring) {
 public:
   float func Result(TrapMode ptrapmode)
     if @scaleByThreshold
       return ptrapmode.GetDistance(0) / ptrapmode.GetThreshold()
     else
       return ptrapmode.GetDistance(0)
     endif
   endfunc
 default:
   title = "Distance"
   rating = recommended
   bool param @scaleByThreshold
     caption = "Scale by Threshold"
     default = false
     hint = "If checked, coloring will be automatically scaled to match the \
             trap threshold. The Orbit Traps coloring algorithm in Standard.ucl \
             uses this for the First and Last trap modes, and it is always \
             enabled for the Direct Orbit Traps coloring algorithm."
   endparam
 }
 


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

Constructor Detail

Standard_TrapColoringDistance

public Standard_TrapColoringDistance()
Method Detail

Result

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

Overrides:
Result in class TrapColoring