dmj5
Class DMJ_TrapDiameter

Object
  extended by common:Generic
      extended by common:Transfer
          extended by dmj5:DMJ_TrapDiameter

class 
Transfer:DMJ_TrapDiameter

This transfer will make a trap shape have a diameter.


Ultra Fractal Source

Toggle UF Source Code Display

 class DMJ_TrapDiameter(common.ulb:Transfer) {
   ; This transfer will make a trap shape have a diameter.
   
 public:
   import "common.ulb"
   
   func DMJ_TrapDiameter(Generic pparent)
     Transfer.Transfer(pparent)
   endfunc
 
   float func Iterate(float pr)
     return abs(@p_diameter*0.5 - pr)
   endfunc
   
 default:
   title = "Trap Diameter"
 
   int param v_dmj_trapdiameter
     caption = "Version (DMJ_TrapDiameter)"
     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_dmj_trapdiameter < 100
   endparam
 
   float param p_diameter
     caption = "Diameter"
     default = 0.5
     hint = "This is the diameter value used to create the hollow shape."
   endparam
 }
 


Constructor Summary
DMJ_TrapDiameter()
           
DMJ_TrapDiameter(Generic pparent)
           
 
Method Summary
 float Iterate(float pr)
          call this to process another value in the sequence
 
Methods inherited from class common:Transfer
Init, IterateSilent
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

DMJ_TrapDiameter

public DMJ_TrapDiameter(Generic pparent)

DMJ_TrapDiameter

public DMJ_TrapDiameter()
Method Detail

Iterate

public float Iterate(float pr)
Description copied from class: Transfer
call this to process another value in the sequence

Overrides:
Iterate in class Transfer