Python Script Engine  8.2
GL Studio Editor Python Script API
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
VectorArray Class Reference

Public Member Functions

 VectorArray ()
 
void Insert (Vector &v)
 
unsigned 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()

unsigned 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()

void 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: