EntityProcessor Class Reference

AssetProcessor for processing entities in an AssetGroup. More...

Inheritance diagram for EntityProcessor:

Inheritance graph
[legend]
Collaboration diagram for EntityProcessor:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 EntityProcessor (AssetGroup *parent)
 Constructor.
 ~EntityProcessor ()
 Deconstructor.
EntitygetEntity (const std::string &fileName)
 Gets the entity with the given filename.
void getEntityTree (Entity *root)
 Gets the entire entity tree with the given entity as root.
bool reloadAsset (const std::string &fileName)
 Reloads the asset with the given filename.
void reloadAssets ()
 Reloads all assets.
bool removeAsset (const std::string &fileName)
 Removes the asset with the given filename.
void removeAssets ()
 Removes all assets.

Static Public Member Functions

static AssetProcessorcreateProcessor (AssetGroup *parent)
 Creates a new EntityProcessor.

Protected Member Functions

bool loadAsset (const std::string &fileName)
 Loads the asset with the given filename.
void loadAssets ()
 Loads all assets.


Detailed Description

AssetProcessor for processing entities in an AssetGroup.

Definition at line 27 of file EntityProcessor.h.


Constructor & Destructor Documentation

EntityProcessor::EntityProcessor ( AssetGroup parent  ) 

Constructor.

Definition at line 24 of file EntityProcessor.cpp.

EntityProcessor::~EntityProcessor (  ) 

Deconstructor.

Definition at line 30 of file EntityProcessor.cpp.


Member Function Documentation

AssetProcessor * EntityProcessor::createProcessor ( AssetGroup parent  )  [static]

Creates a new EntityProcessor.

Note:
For internal use only!

Definition at line 425 of file EntityProcessor.cpp.

Entity * EntityProcessor::getEntity ( const std::string &  fileName  ) 

Gets the entity with the given filename.

Parameters:
fileName Filename of the mesh.

Definition at line 36 of file EntityProcessor.cpp.

void EntityProcessor::getEntityTree ( Entity root  ) 

Gets the entire entity tree with the given entity as root.

Parameters:
root Root entity of the tree
Note:
Existing parents are NOT overridden.

Definition at line 89 of file EntityProcessor.cpp.

bool EntityProcessor::loadAsset ( const std::string &  fileName  )  [protected, virtual]

Loads the asset with the given filename.

Parameters:
fileName Filename of the asset.
Returns:
True on succesful loading, false otherwise.

Reimplemented from AssetProcessor.

Definition at line 140 of file EntityProcessor.cpp.

void EntityProcessor::loadAssets (  )  [protected, virtual]

Loads all assets.

Reimplemented from AssetProcessor.

Definition at line 213 of file EntityProcessor.cpp.

bool EntityProcessor::reloadAsset ( const std::string &  fileName  )  [virtual]

Reloads the asset with the given filename.

Parameters:
fileName Filename of the asset.
Returns:
True on succesful removal, false otherwise.

Reimplemented from AssetProcessor.

Definition at line 298 of file EntityProcessor.cpp.

void EntityProcessor::reloadAssets (  )  [virtual]

Reloads all assets.

Reimplemented from AssetProcessor.

Definition at line 311 of file EntityProcessor.cpp.

bool EntityProcessor::removeAsset ( const std::string &  fileName  )  [virtual]

Removes the asset with the given filename.

Parameters:
fileName Filename of the asset.
Returns:
True on succesful removal, false otherwise.

Reimplemented from AssetProcessor.

Definition at line 349 of file EntityProcessor.cpp.

void EntityProcessor::removeAssets (  )  [virtual]

Removes all assets.

Reimplemented from AssetProcessor.

Definition at line 396 of file EntityProcessor.cpp.


The documentation for this class was generated from the following files:

Generated on Sun Aug 30 14:17:13 2009 for Sirrf - Simple Irrlicht Framework by  doxygen 1.5.8