mt
Class MT_ImageMapsTexture

Object
  extended by common:Generic
      extended by common:TrapShape
          extended by mt:MT_ImageMapsTexture

class 
TrapShape:MT_ImageMapsTexture

Mark Townsend, June 2008


Ultra Fractal Source

Toggle UF Source Code Display

 class MT_ImageMapsTexture(common.ulb:TrapShape) {
 ;
 ; Mark Townsend, June 2008
 ;
 public:
   func MT_ImageMapsTexture(Generic pparent)
     TrapShape.TrapShape(pparent)
     fImage = new @p_image(this)
     if !fImage.getEmpty()
       fRatio = fImage.getWidth() / fImage.getHeight()
     else
       fRatio = 1
     endif
   endfunc
 
   float func Iterate(complex pz)
     TrapShape.Iterate(pz)
     color clr = fImage.getColor(real(pz)+ flip(imag(pz) * fRatio))
     return 1 - (0.3 * red(clr)+ 0.59 * green(clr) + 0.11 * blue(clr))
   endfunc
 
 private:
   ImageWrapper fImage
   float fRatio
 
 default:
   title = "Image Maps Texture"
   ImageWrapper param p_image
     caption = "Image"
     default = ImageImport
   endparam
 }
 


Constructor Summary
MT_ImageMapsTexture()
           
MT_ImageMapsTexture(Generic pparent)
           
 
Method Summary
 float Iterate(complex pz)
          call this for each iteration being trapped
 
Methods inherited from class common:TrapShape
GetColorChannel, GetTextureValue, GetTransformedPoint, Init, IterateSilent, SetThreshold
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

MT_ImageMapsTexture

public MT_ImageMapsTexture(Generic pparent)

MT_ImageMapsTexture

public MT_ImageMapsTexture()
Method Detail

Iterate

public float Iterate(complex pz)
Description copied from class: TrapShape
call this for each iteration being trapped

Overrides:
Iterate in class TrapShape