Python Script Engine  8.3
GL Studio Editor Python Script API
VectorArray Class Reference

Public Member Functions

 VectorArray ()
 
None Insert (Vector &v)
 
int GetCount ()
 
VectorGetVectorAtIndex (int index)
 

Detailed Description

Common editor interface Vector array.

If the VectorArray instance is empty, it will return 'False' in comparison checks.

# Python:
import VectorArray
vectorArray = VectorArray.VectorArray()
if vectorArray: # Will be False
pass
vectorArray.Insert( someVector )
if vectorArray: # Will be True
pass
VectorArray()
default ctor

Constructor & Destructor Documentation

◆ VectorArray()

VectorArray::VectorArray ( )

default ctor

Member Function Documentation

◆ GetCount()

int VectorArray::GetCount ( )

get the number of elements in the array

Returns
the number of elements in the array

◆ GetVectorAtIndex()

Vector * VectorArray::GetVectorAtIndex ( int  index)

get the Vector at the given index in the array

Parameters
indexthe index of the Vector to retrieve
Returns
Vector * to the Vector at the given index

◆ Insert()

None VectorArray::Insert ( Vector v)

insert the given Vector at the end of the array

Parameters
vVector to insert

The documentation for this class was generated from the following file: