CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

csMeshList Class Reference

General list of meshes. More...

#include <meshobj.h>

Inheritance diagram for csMeshList:

iMeshList iBase csEngineMeshList csMeshMeshList csSectorMeshList List of all members.

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...


Detailed Description

General list of meshes.

This class implements iMeshList. Subclasses of this class can override FreeItem(), AddMesh(), and RemoveMesh() for more specific functionality.

Definition at line 51 of file meshobj.h.


Constructor & Destructor Documentation

csMeshList::csMeshList (    ) 
 

constructor.


Member Function Documentation

virtual int csMeshList::Add (  iMeshWrapper *    obj )  [virtual]
 

Add a mesh.

Implements iMeshList.

virtual int csMeshList::Find (  iMeshWrapper *    obj )  const [virtual]
 

Find a mesh and return its index.

Implements iMeshList.

virtual iMeshWrapper* csMeshList::FindByName (  const char *    Name )  const [virtual]
 

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.

iMeshWrapper* csMeshList::FindByNameWithChild (  const char *    Name )  const
 

Find a mesh in <name>:<childname>:<childname> notation.

virtual void csMeshList::FreeItem (  iMeshWrapper *    )  [inline, virtual]
 

Override FreeItem.

Reimplemented in csEngineMeshList.

Definition at line 69 of file meshobj.h.

virtual iMeshWrapper* csMeshList::Get (  int    n )  const [inline, virtual]
 

Return a mesh by index.

Implements iMeshList.

Definition at line 72 of file meshobj.h.

References csRefArray::Get.

virtual int csMeshList::GetCount (    )  const [inline, virtual]
 

Return the number of meshes in this list.

Implements iMeshList.

Definition at line 71 of file meshobj.h.

References csRefArray::Length.

virtual void csMeshList::PrepareItem (  iMeshWrapper *    )  [inline, virtual]
 

Override PrepareItem.

Reimplemented in csMeshMeshList.

Definition at line 67 of file meshobj.h.

virtual bool csMeshList::Remove (  int    n )  [virtual]
 

Remove the nth mesh.

Implements iMeshList.

virtual bool csMeshList::Remove (  iMeshWrapper *    obj )  [virtual]
 

Remove a mesh.

Implements iMeshList.

virtual void csMeshList::RemoveAll (    )  [virtual]
 

Remove all meshes.

Implements iMeshList.

Referenced by csSectorMeshList::~csSectorMeshList.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14