Stg::Ancestor Class Reference
#include <stage.hh>
Inherited by Stg::Model, and Stg::World.
Public Member Functions | |
virtual void | AddChild (Model *mod) |
Ancestor () | |
void | ForEachDescendant (stg_model_callback_t func, void *arg) |
ModelPtrVec & | GetChildren () |
virtual Pose | GetGlobalPose () |
void | Lock () |
virtual void | RemoveChild (Model *mod) |
void | SetToken (const std::string &str) |
const char * | Token () |
void | Unlock () |
virtual | ~Ancestor () |
Public Attributes | |
std::map< std::string, unsigned int > | child_type_counts |
Protected Member Functions | |
void | Load (Worldfile *wf, int section) |
void | Save (Worldfile *wf, int section) |
Protected Attributes | |
pthread_mutex_t | access_mutex |
Used by Lock() and Unlock() to prevent parallel access to this model. | |
ModelPtrVec | children |
bool | debug |
std::string | token |
Detailed Description
Base class for Model and World
Constructor & Destructor Documentation
Ancestor::Ancestor | ( | ) |
Ancestor::~Ancestor | ( | ) | [virtual] |
Member Function Documentation
void Ancestor::AddChild | ( | Model * | mod | ) | [virtual] |
void Ancestor::ForEachDescendant | ( | stg_model_callback_t | func, | |
void * | arg | |||
) |
recursively call func( model, arg ) for each descendant
ModelPtrVec& Stg::Ancestor::GetChildren | ( | ) | [inline] |
get the children of the this element
Pose Ancestor::GetGlobalPose | ( | ) | [virtual] |
void Ancestor::Load | ( | Worldfile * | wf, | |
int | section | |||
) | [protected] |
Reimplemented in Stg::Model.
void Stg::Ancestor::Lock | ( | ) | [inline] |
void Ancestor::RemoveChild | ( | Model * | mod | ) | [virtual] |
Reimplemented in Stg::WorldGui.
void Ancestor::Save | ( | Worldfile * | wf, | |
int | section | |||
) | [protected] |
void Stg::Ancestor::SetToken | ( | const std::string & | str | ) | [inline] |
const char* Stg::Ancestor::Token | ( | ) | [inline] |
void Stg::Ancestor::Unlock | ( | ) | [inline] |
Member Data Documentation
pthread_mutex_t Stg::Ancestor::access_mutex [protected] |
Used by Lock() and Unlock() to prevent parallel access to this model.
Reimplemented in Stg::Model.
std::map<std::string,unsigned int> Stg::Ancestor::child_type_counts |
array contains the number of each type of child model
ModelPtrVec Stg::Ancestor::children [protected] |
bool Stg::Ancestor::debug [protected] |
std::string Stg::Ancestor::token [protected] |
The documentation for this class was generated from the following files:
Generated on Tue Oct 20 15:42:06 2009 for Stage by 1.6.1