|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object common:Array reb:PlaneArray
class
class for creating plane object arrays
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 |
---|
public PlaneArray(int plength)
public PlaneArray()
Method Detail |
---|
public int GetArrayLength()
GetArrayLength
in class Array
public void SetArrayLength(int plength)
SetArrayLength
in class Array
plength
- new length of the arraypublic void Copy(PlaneArray dest)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |