common
Class TrapModeWithThreshold

Object
  extended by common:Generic
      extended by common:TrapMode
          extended by common:TrapModeWithThreshold
Direct Known Subclasses:
DMJ_TrapModeAlternatingAverage, DMJ_TrapModeAlternatingAverage2, DMJ_TrapModeClosest, DMJ_TrapModeExponentialAverage, DMJ_TrapModeFarthest, DMJ_TrapModeFirst, DMJ_TrapModeInvertedSum, DMJ_TrapModeLast, DMJ_TrapModeProduct, DMJ_TrapModeSecondClosest, DMJ_TrapModeSecondFarthest, DMJ_TrapModeStacked, DMJ_TrapModeSum, DMJ_TrapModeTrapOnly, MMF_TrapModeSmoothWithThreshold, Standard_TrapModeBase, TrapModeFirst

class 
TrapMode:TrapModeWithThreshold

Variant of TrapMode that is thresholdable


Ultra Fractal Source

Toggle UF Source Code Display

 class TrapModeWithThreshold(TrapMode) {
   ; Variant of TrapMode that is thresholdable
   
 public:
   func TrapModeWithThreshold(Generic pparent)
     TrapMode.TrapMode(pparent)
     m_Threshold = 1.0
   endfunc
   
   float func GetThreshold()
     return m_Threshold
   endfunc
 
   func SetThreshold(float pthreshold)
     m_Threshold = pthreshold
   endfunc
   
   bool func UsesThreshold()
     return true
   endfunc
 
 protected:
   float m_Threshold
 
 default:
   int param v_trapmodewiththreshold
     caption = "Version (TrapModeWithThreshold)"
     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_trapmodewiththreshold < 100
   endparam
 }
 


Constructor Summary
TrapModeWithThreshold()
           
TrapModeWithThreshold(Generic pparent)
           
 
Method Summary
 float GetThreshold()
          get threshold value
 void SetThreshold(float pthreshold)
           
 boolean UsesThreshold()
          get whether threshold is even used
 
Methods inherited from class common:TrapMode
GetDistance, GetIteration, GetTexture, GetTransformedPoint, GetUntransformedPoint, Init, IsSolid, Iterate, IterateSilent, Result
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

TrapModeWithThreshold

public TrapModeWithThreshold(Generic pparent)

TrapModeWithThreshold

public TrapModeWithThreshold()
Method Detail

GetThreshold

public float GetThreshold()
Description copied from class: TrapMode
get threshold value

Overrides:
GetThreshold in class TrapMode

SetThreshold

public void SetThreshold(float pthreshold)
Overrides:
SetThreshold in class TrapMode

UsesThreshold

public boolean UsesThreshold()
Description copied from class: TrapMode
get whether threshold is even used

Overrides:
UsesThreshold in class TrapMode