reb
Class ImageTrapTrapOnly

Object
  extended by common:Generic
      extended by reb:ImageTrapMode
          extended by reb:ImageTrapModeWithThreshold
              extended by reb:ImageTrapTrapOnly

class 
ImageTrapModeWithThreshold:ImageTrapTrapOnly

trap mode variant based upon a class of Damien Jones


Ultra Fractal Source

Toggle UF Source Code Display

 class ImageTrapTrapOnly(ImageTrapModeWithThreshold) {
 ; trap mode variant based upon a class of Damien Jones
 public:
   import "common.ulb"
 
   ; constructor
   func ImageTrapModeTrapOnly(Generic pparent)
     ImageTrapModeWithThreshold.IMageTrapModeWithThreshold(pparent)
   endfunc
 
   ; initialize the object
   func Init(complex pz)
     ImageTrapModeWithThreshold.Init(pz)
 
     m_Solid = true
   endfunc
 
   ; call for each iterated point
   func Iterate(complex pz, complex pzt, float pdistance, float ptexture, color pcolor)
     ImageTrapModeWithThreshold.Iterate(pz, pzt, pdistance,ptexture,pcolor)
     m_a = alpha(pcolor)
     if m_Iterations == 1
       m_Distances[0] = pdistance/m_Threshold
       m_UntransformedPoints[0] = pz
       m_Textures[0] = ptexture
       m_TransformedPoints[0] = pzt
       m_IterationPoints[0] = m_Iterations
       if (pdistance < m_Threshold)
         m_Solid = false
       endif
       m_ImagePoints[0] = pcolor
       edgefade(pdistance)
     endif
   endfunc
 
 default:
   title = "Trap Only"
   int param v_traponly
     caption = "Version (Trap Only)"
     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_traponly < 100
   endparam
 }
 


Constructor Summary
ImageTrapTrapOnly()
           
 
Method Summary
 void ImageTrapModeTrapOnly(Generic pparent)
          constructor
 void Init(complex pz)
          initialize the object
 void Iterate(complex pz, complex pzt, float pdistance, float ptexture, color pcolor)
          call for each iterated point
 
Methods inherited from class reb:ImageTrapModeWithThreshold
EdgeFade, GetAThreshold, GetThreshold, SetAThreshold, SetThreshold, UsesAThreshold, UsesThreshold
 
Methods inherited from class reb:ImageTrapMode
GetColor, GetDistance, GetIteration, GetTexture, GetTransformedPoint, GetUntransformedPoint, IsSolid, IterateSilent, Result
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

ImageTrapTrapOnly

public ImageTrapTrapOnly()
Method Detail

ImageTrapModeTrapOnly

public void ImageTrapModeTrapOnly(Generic pparent)
constructor


Init

public void Init(complex pz)
initialize the object

Overrides:
Init in class ImageTrapMode

Iterate

public void Iterate(complex pz,
                    complex pzt,
                    float pdistance,
                    float ptexture,
                    color pcolor)
call for each iterated point

Overrides:
Iterate in class ImageTrapMode