common
Class ColorTrapImage

Object
  extended by common:Generic
      extended by common:ColorTrap
          extended by common:ColorTrapImage

class 
ColorTrap:ColorTrapImage

Use an imported image as a trap shape (with color).


Ultra Fractal Source

Toggle UF Source Code Display

 class ColorTrapImage(ColorTrap) {
   ; Use an imported image as a trap shape (with color).
   
 public:
   func ColorTrapImage(Generic pparent)
     ColorTrap.ColorTrap(pparent)
     m_Image = new @f_image(this)
   endfunc
   
   func Init(complex pz)
     ColorTrap.Init(pz)
   endfunc
 
   color func Iterate(complex pz)
     return m_Image.getColor(pz)
   endfunc
 
 protected:
   ImageWrapper m_Image
   
 default:
   title = "Image Trap"
   
   int param v_colortrapimage
     caption = "Version (ColorTrapImage)"
     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_colortrapimage < 100
   endparam
 
   ImageWrapper param f_image
     caption = "Image Object"
     default = ImageImport
     hint = "This is the image object to use for your image trap."
   endparam
 }
 


Constructor Summary
ColorTrapImage()
           
ColorTrapImage(Generic pparent)
           
 
Method Summary
 void Init(complex pz)
          call this before each sequence of values to be trapped
 color Iterate(complex pz)
          call this to produce a result you should always override this function
 
Methods inherited from class common:ColorTrap
IterateSilent
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

ColorTrapImage

public ColorTrapImage(Generic pparent)

ColorTrapImage

public ColorTrapImage()
Method Detail

Init

public void Init(complex pz)
Description copied from class: ColorTrap
call this before each sequence of values to be trapped

Overrides:
Init in class ColorTrap

Iterate

public color Iterate(complex pz)
Description copied from class: ColorTrap
call this to produce a result you should always override this function

Overrides:
Iterate in class ColorTrap