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 char *str) |
const char * | Token () |
void | Unlock () |
virtual | ~Ancestor () |
Public Attributes | |
unsigned int | child_type_counts [MODEL_TYPE_COUNT] |
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 |
char * | token |
Detailed Description
Base class for Model and WorldConstructor & 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 char * | str | ) | [inline] |
const char* Stg::Ancestor::Token | ( | ) | [inline] |
void Stg::Ancestor::Unlock | ( | ) | [inline] |
Member Data Documentation
pthread_mutex_t Stg::Ancestor::access_mutex [protected] |
unsigned int Stg::Ancestor::child_type_counts[MODEL_TYPE_COUNT] |
array contains the number of each type of child model
ModelPtrVec Stg::Ancestor::children [protected] |
bool Stg::Ancestor::debug [protected] |
char* Stg::Ancestor::token [protected] |
The documentation for this class was generated from the following files:
Generated on Wed Jul 22 11:51:05 2009 for Stage by
