|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objectcommon:Array
reb:PointArray
class
class for creating 3D point object arrays
class PointArray(Array) {
; class for creating 3D point object arrays
public:
import "common.ulb"
; Constructor for plane arrays
; @param plength = sets the size of the array
func PointArray(int plength)
setLength(pt, plength)
endfunc
; Get array length
int func GetArrayLength()
return length(pt)
endfunc
; Set array length
func SetArrayLength(int plength)
setLength(pt, plength)
endfunc
; Copy array
func Copy(PointArray &dest)
int l = this.GetArrayLength()
if (dest == 0)
dest = new PointArray(l)
else
dest.SetArrayLength(l)
endif
int j = 0
while (j < l)
dest.pt[j] = pt[j]
j = j + 1
endwhile
endfunc
Point pt[]
default:
title = "Point Array"
int param v_pointarray
caption = "Version (Point 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_pointarray < 100
endparam
}
| Constructor Summary | |
|---|---|
PointArray()
|
|
PointArray(int plength)
Constructor for plane arrays |
|
| Method Summary | |
|---|---|
void |
Copy(PointArray dest)
Copy array |
int |
GetArrayLength()
Get array length |
void |
SetArrayLength(int plength)
Set array length |
| Methods inherited from class Object |
|---|
|
| Constructor Detail |
|---|
public PointArray(int plength)
plength - = sets the size of the arraypublic PointArray()
| Method Detail |
|---|
public int GetArrayLength()
GetArrayLength in class Arraypublic void SetArrayLength(int plength)
SetArrayLength in class Arrayplength - new length of the arraypublic void Copy(PointArray dest)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||