Stg::Ancestor Class Reference
#include <stage.hh>
Inheritance diagram for Stg::Ancestor:
Public Member Functions | |
virtual void | AddChild (Model *mod) |
Ancestor () | |
void | ForEachDescendant (model_callback_t func, void *arg) |
std::vector< Model * > & | GetChildren () |
virtual Pose | GetGlobalPose () const |
void * | GetProperty (std::string &key) |
virtual void | RemoveChild (Model *mod) |
void | SetProperty (std::string &key, void *value) |
virtual void | SetToken (const std::string &str) |
const char * | Token () const |
const std::string & | TokenStr () const |
virtual | ~Ancestor () |
Protected Member Functions | |
Ancestor & | Load (Worldfile *wf, int section) |
void | Save (Worldfile *wf, int section) |
Protected Attributes | |
std::map< std::string, unsigned int > | child_type_counts |
std::vector< Model * > | children |
bool | debug |
std::map< std::string, void * > | props |
std::string | token |
Detailed Description
Constructor & Destructor Documentation
Ancestor::Ancestor | ( | ) |
Ancestor::~Ancestor | ( | ) | [virtual] |
Member Function Documentation
void Ancestor::AddChild | ( | Model * | mod | ) | [virtual] |
void Ancestor::ForEachDescendant | ( | model_callback_t | func, |
void * | arg | ||
) |
recursively call func( model, arg ) for each descendant
std::vector<Model*>& Stg::Ancestor::GetChildren | ( | ) | [inline] |
get the children of the this element
Pose Ancestor::GetGlobalPose | ( | ) | const [virtual] |
Reimplemented in Stg::Model.
void* Stg::Ancestor::GetProperty | ( | std::string & | key | ) | [inline] |
A key-value database for users to associate arbitrary things with this model.
Reimplemented in Stg::Model.
void Ancestor::RemoveChild | ( | Model * | mod | ) | [virtual] |
Reimplemented in Stg::WorldGui.
void Ancestor::Save | ( | Worldfile * | wf, |
int | section | ||
) | [protected] |
void Stg::Ancestor::SetProperty | ( | std::string & | key, |
void * | value | ||
) | [inline] |
A key-value database for users to associate arbitrary things with this model.
virtual void Stg::Ancestor::SetToken | ( | const std::string & | str | ) | [inline, virtual] |
Reimplemented in Stg::Model.
const char* Stg::Ancestor::Token | ( | ) | const [inline] |
const std::string& Stg::Ancestor::TokenStr | ( | ) | const [inline] |
Member Data Documentation
std::map<std::string,unsigned int> Stg::Ancestor::child_type_counts [protected] |
array contains the number of each type of child model
std::vector<Model*> Stg::Ancestor::children [protected] |
bool Stg::Ancestor::debug [protected] |
std::map<std::string,void*> Stg::Ancestor::props [protected] |
A key-value database for users to associate arbitrary things with this object.
std::string Stg::Ancestor::token [protected] |
The documentation for this class was generated from the following files:
Generated on Thu Dec 29 2011 16:43:39 for Stage by 1.7.5.1