![]() |
Public API Reference |
#include <meshobj.h>
Inheritance diagram for csMeshList:
Public Methods | |
csMeshList () | |
constructor. More... | |
iMeshWrapper * | FindByNameWithChild (const char *Name) const |
Find a mesh in <name>:<childname>:<childname> notation. More... | |
virtual void | PrepareItem (iMeshWrapper *) |
Override PrepareItem. More... | |
virtual void | FreeItem (iMeshWrapper *) |
Override FreeItem. More... | |
virtual int | GetCount () const |
Return the number of meshes in this list. More... | |
virtual iMeshWrapper * | Get (int n) const |
Return a mesh by index. More... | |
virtual int | Add (iMeshWrapper *obj) |
Add a mesh. More... | |
virtual bool | Remove (iMeshWrapper *obj) |
Remove a mesh. More... | |
virtual bool | Remove (int n) |
Remove the nth mesh. More... | |
virtual void | RemoveAll () |
Remove all meshes. More... | |
virtual int | Find (iMeshWrapper *obj) const |
Find a mesh and return its index. More... | |
virtual iMeshWrapper * | FindByName (const char *Name) const |
Find a mesh by name. More... |
This class implements iMeshList. Subclasses of this class can override FreeItem(), AddMesh(), and RemoveMesh() for more specific functionality.
Definition at line 53 of file meshobj.h.
|
constructor.
|
|
Add a mesh.
Implements iMeshList. |
|
Find a mesh and return its index.
Implements iMeshList. |
|
Find a mesh by name. If there is a colon in the name then this function is able to search for children too. i.e. like mesh:childmesh:childmesh. Implements iMeshList. |
|
Find a mesh in <name>:<childname>:<childname> notation.
|
|
Override FreeItem.
Reimplemented in csEngineMeshList. |
|
Return a mesh by index.
Implements iMeshList. Definition at line 74 of file meshobj.h. References csArray< T *, csRefArrayElementHandler< T * > >::Get. |
|
Return the number of meshes in this list.
Implements iMeshList. Definition at line 73 of file meshobj.h. References csArray< T *, csRefArrayElementHandler< T * > >::Length. |
|
Override PrepareItem.
Reimplemented in csMeshMeshList. |
|
Remove the nth mesh.
Implements iMeshList. |
|
Remove a mesh.
Implements iMeshList. |
|
Remove all meshes.
Implements iMeshList. Referenced by csSectorMeshList::~csSectorMeshList. |