#include <stage.hh>
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 |
Friends | |
class | Canvas |
Definition at line 5 of file ancestor.cc.
Ancestor::~Ancestor | ( | ) | [virtual] |
Definition at line 15 of file ancestor.cc.
void Ancestor::AddChild | ( | Model * | mod | ) | [virtual] |
Definition at line 21 of file ancestor.cc.
void Ancestor::ForEachDescendant | ( | model_callback_t | func, |
void * | arg | ||
) |
recursively call func( model, arg ) for each descendant
Definition at line 46 of file ancestor.cc.
std::vector<Model*>& Stg::Ancestor::GetChildren | ( | ) | [inline] |
Pose Ancestor::GetGlobalPose | ( | ) | const [virtual] |
Reimplemented in Stg::Model.
Definition at line 41 of file ancestor.cc.
void* Stg::Ancestor::GetProperty | ( | std::string & | key | ) | [inline] |
Ancestor & Ancestor::Load | ( | Worldfile * | wf, |
int | section | ||
) | [protected] |
Reimplemented in Stg::Model.
Definition at line 56 of file ancestor.cc.
void Ancestor::RemoveChild | ( | Model * | mod | ) | [virtual] |
Reimplemented in Stg::WorldGui.
Definition at line 35 of file ancestor.cc.
void Ancestor::Save | ( | Worldfile * | wf, |
int | section | ||
) | [protected] |
Definition at line 61 of file ancestor.cc.
void Stg::Ancestor::SetProperty | ( | std::string & | key, |
void * | value | ||
) | [inline] |
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] |
friend class Canvas [friend] |
Reimplemented in Stg::ModelPosition, Stg::Model, Stg::WorldGui, and Stg::World.
std::map<std::string,unsigned int> Stg::Ancestor::child_type_counts [protected] |
std::vector<Model*> Stg::Ancestor::children [protected] |
bool Stg::Ancestor::debug [protected] |
std::map<std::string,void*> Stg::Ancestor::props [protected] |
std::string Stg::Ancestor::token [protected] |