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

Public Member Functions

 VectorArray ()
 
void Insert (Vector &v)
 
unsigned int GetCount (void)
 
VectorGetVectorAtIndex (int index)
 

Detailed Description

Common editor interface Vector array.

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

1 # Python:
2 import VectorArray
3 vectorArray = VectorArray.VectorArray()
4 if vectorArray: # Will be False
5  pass
6 vectorArray.Insert( someVector )
7 if vectorArray: # Will be True
8  pass

Constructor & Destructor Documentation

VectorArray::VectorArray ( )

default ctor

Member Function Documentation

unsigned int VectorArray::GetCount ( void  )

get the number of elements in the array

Returns
the number of elements in the array
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
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: