#include <lib_editortools.h>
A class representing a set of objects in the editor.
Most often allocate a copy of this object and then let SelectionListCreate() fill it.
Private Member Functions | |
C4DObjectList () | |
~C4DObjectList () | |
Alloc/Free | |
static C4DObjectList * | Alloc () |
static void | Free (C4DObjectList *&ptr) |
Object List | |
Int32 | GetCount () |
BaseObject * | GetObject (Int32 num) |
Float | GetZ (Int32 num) |
Int32 | GetPolyIdx (Int32 num) |
Bool | AddObject (BaseObject *op, Float z, Int32 polynum) |
void | Flush () |
|
private |
|
private |
|
static |
|
static |
Int32 GetCount | ( | ) |
Get the number of objects stored in the list.
BaseObject* GetObject | ( | Int32 | num | ) |
Gets a stored object pointer by index.
[in] | num | An object index: 0 <= num < GetCount() |
Gets the Z distance to a stored object by index.
[in] | num | An object index: 0 <= num < GetCount() |
Gets the polygon index of a stored object by index.
[in] | num | An object index: 0 <= num < GetCount() |
Bool AddObject | ( | BaseObject * | op, |
Float | z, | ||
Int32 | polynum | ||
) |
Adds an object to the list at a certain Z distance.
[in] | op | The object to add. The caller owns the pointed object. |
[in] | z | The Z distance to op. |
[in] | polynum | The number of polygons. |
void Flush | ( | ) |
Clears the object list.