reb
Class PlaneArray

Object
  extended by common:Array
      extended by reb:PlaneArray

class 
Array:PlaneArray

class for creating plane object arrays


Ultra Fractal Source

Toggle UF Source Code Display

 class PlaneArray(Array) {
 ; class for creating plane object arrays
 
 public:
   import "common.ulb"
 
   ; Constructor for plane arrays.
   func PlaneArray(int plength)
     setLength(pl, plength)
   endfunc
 
 ; Get array length
   int func GetArrayLength()
     return length(pl)
   endfunc
 
 ; Set array length
   func SetArrayLength(int plength)
     setLength(pl, plength)
   endfunc
 
 ; Copy array
   func Copy(PlaneArray &dest)
     int l = this.GetArrayLength()
     if (dest == 0)
       dest = new PlaneArray(l)
     else
       dest.SetArrayLength(l)
     endif
     int j = 0
     while (j < l)
       dest.pl[j] = pl[j]
       j = j + 1
     endwhile
   endfunc
 
   Plane pl[]
   
 default:
   title = "Plane Array"
   int param v_planearray
     caption = "Version (Plane 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_planearray < 100
   endparam
 }
 


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

Constructor Detail

PlaneArray

public PlaneArray(int plength)
Constructor for plane arrays.


PlaneArray

public PlaneArray()
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(PlaneArray dest)
Copy array