reb
Class MobiusArray

Object
  extended by common:Array
      extended by reb:MobiusArray

class 
Array:MobiusArray

class for Mobius Transformation arrays


Ultra Fractal Source

Toggle UF Source Code Display

 class MobiusArray(Array) {
 ; class for Mobius Transformation arrays
 
 public:
   import "common.ulb"
 
 ; Constructor for Mobius arrays
 ; @param plength = sets the size of the array
   func MobiusArray(int plength)
     setLength(m_T, plength)
   endfunc
 
 ; Get array length
   int func GetArrayLength()
     return length(m_T)
   endfunc
 
 ; Set array length
   func SetArrayLength(int plength)
     setLength(m_T, plength)
   endfunc
 
 ; Copy array
   func Copy(MobiusArray &dest)
     int l = this.GetArrayLength()
     if (dest == 0)
       dest = new MobiusArray(l)
     else
       dest.SetArrayLength(l)
     endif
     int j = 0
     while (j < l)
       dest.m_T[j] = m_T[j]
       j = j + 1
     endwhile
   endfunc
 
   Mobius m_T[]
   
 default:
   title = "Mobius Array"
   int param v_mobiusarray
     caption = "Version (Mobius Array)"
     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_mobiusarray < 100
   endparam
 }
 


Constructor Summary
MobiusArray()
           
MobiusArray(int plength)
          Constructor for Mobius arrays
 
Method Summary
 void Copy(MobiusArray dest)
          Copy array
 int GetArrayLength()
          Get array length
 void SetArrayLength(int plength)
          Set array length
 
Methods inherited from class Object
 

Constructor Detail

MobiusArray

public MobiusArray(int plength)
Constructor for Mobius arrays

Parameters:
plength - = sets the size of the array

MobiusArray

public MobiusArray()
Method Detail

GetArrayLength

public int GetArrayLength()
Get array length

Overrides:
GetArrayLength in class Array
Returns:
the number of elements in the array

SetArrayLength

public void SetArrayLength(int plength)
Set array length

Overrides:
SetArrayLength in class Array
Parameters:
plength - new length of the array

Copy

public void Copy(MobiusArray dest)
Copy array