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 23 of file EntityProcessor.cpp.

EntityProcessor::~EntityProcessor (  ) 

Deconstructor.

Definition at line 29 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 397 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 35 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 83 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 134 of file EntityProcessor.cpp.

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

Loads all assets.

Reimplemented from AssetProcessor.

Definition at line 201 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 280 of file EntityProcessor.cpp.

void EntityProcessor::reloadAssets (  )  [virtual]

Reloads all assets.

Reimplemented from AssetProcessor.

Definition at line 293 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 331 of file EntityProcessor.cpp.

void EntityProcessor::removeAssets (  )  [virtual]

Removes all assets.

Reimplemented from AssetProcessor.

Definition at line 368 of file EntityProcessor.cpp.


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

Generated on Fri Aug 21 23:55:14 2009 for Sirrf - Simple Irrlicht Framework by  doxygen 1.5.8