Public Member Functions | Protected Member Functions | Protected Attributes

Stg::Ancestor Class Reference

#include <stage.hh>

Inheritance diagram for Stg::Ancestor:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void AddChild (Model *mod)
 Ancestor ()
void ForEachDescendant (model_callback_t func, void *arg)
ModelPtrVecGetChildren ()
virtual Pose GetGlobalPose ()
void * GetProperty (std::string &key)
virtual void RemoveChild (Model *mod)
void SetProperty (std::string &key, void *value)
void SetToken (const std::string &str)
const char * Token ()
const std::string & TokenStr ()
virtual ~Ancestor ()

Protected Member Functions

void Load (Worldfile *wf, int section)
void Save (Worldfile *wf, int section)

Protected Attributes

std::map< std::string,
unsigned int > 
child_type_counts
ModelPtrVec children
bool debug
std::map< std::string, void * > props
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 ( 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* Stg::Ancestor::GetProperty ( std::string &  key) [inline]

A key-value database for users to associate arbitrary things with this model.

void Ancestor::Load ( Worldfile wf,
int  section 
) [protected]

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.

void Stg::Ancestor::SetToken ( const std::string &  str) [inline]
const char* Stg::Ancestor::Token ( ) [inline]
const std::string& Stg::Ancestor::TokenStr ( ) [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

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: