|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objectcommon:Array
reb:SphereArray
class
class for sphere arrays
class SphereArray(Array) {
; class for sphere arrays
public:
import "common.ulb"
; Sphere array constructor
; @param plength = size of the sphere array
func SphereArray(int plength)
setLength(sph, plength)
endfunc
; Get array length
int func GetArrayLength()
return length(sph)
endfunc
; Set array length
func SetArrayLength(int plength)
setLength(sph, plength)
endfunc
; Copy Array
; @param dest = SphereArray object to copy all values into
; previous contents of dest will be discarded.
func Copy(SphereArray &dest)
int l = this.GetArrayLength()
if (dest == 0)
dest = new SphereArray(l)
else
dest.SetArrayLength(l)
endif
int j = 0
while (j < l)
dest.sph[j] = sph[j]
j = j + 1
endwhile
endfunc
Sphere sph[]
default:
title = "Sphere Array"
int param v_spherearray
caption = "Version (Sphere 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_spherearray < 100
endparam
}
| Constructor Summary | |
|---|---|
SphereArray()
|
|
SphereArray(int plength)
Sphere array constructor |
|
| Method Summary | |
|---|---|
void |
Copy(SphereArray dest)
Copy Array |
int |
GetArrayLength()
Get array length |
void |
SetArrayLength(int plength)
Set array length |
| Methods inherited from class Object |
|---|
|
| Constructor Detail |
|---|
public SphereArray(int plength)
plength - = size of the sphere arraypublic SphereArray()
| Method Detail |
|---|
public int GetArrayLength()
GetArrayLength in class Arraypublic void SetArrayLength(int plength)
SetArrayLength in class Arrayplength - new length of the arraypublic void Copy(SphereArray dest)
dest - = SphereArray object to copy all values into
previous contents of dest will be discarded.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||