Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
Stg::Ancestor Class Reference

#include <stage.hh>

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

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

AncestorLoad (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
 

Detailed Description

Base class for Model and World

Definition at line 680 of file stage.hh.

Constructor & Destructor Documentation

Ancestor::Ancestor ( )

Definition at line 5 of file ancestor.cc.

Ancestor::~Ancestor ( )
virtual

Definition at line 15 of file ancestor.cc.

Member Function Documentation

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

get the children of the this element

Definition at line 706 of file stage.hh.

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

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

Definition at line 732 of file stage.hh.

Ancestor & Ancestor::Load ( Worldfile wf,
int  section 
)
protected

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

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

Definition at line 729 of file stage.hh.

virtual void Stg::Ancestor::SetToken ( const std::string &  str)
inlinevirtual

Reimplemented in Stg::Model.

Definition at line 718 of file stage.hh.

const char* Stg::Ancestor::Token ( ) const
inline

Definition at line 715 of file stage.hh.

const std::string& Stg::Ancestor::TokenStr ( ) const
inline

Definition at line 716 of file stage.hh.

Friends And Related Function Documentation

friend class Canvas
friend

Definition at line 682 of file stage.hh.

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

Definition at line 687 of file stage.hh.

std::vector<Model*> Stg::Ancestor::children
protected

Definition at line 689 of file stage.hh.

bool Stg::Ancestor::debug
protected

Definition at line 691 of file stage.hh.

std::map<std::string,void*> Stg::Ancestor::props
protected

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

Definition at line 694 of file stage.hh.

std::string Stg::Ancestor::token
protected

Definition at line 696 of file stage.hh.


The documentation for this class was generated from the following files:


stage
Author(s): Richard Vaughan , Brian Gerkey , Reed Hedges , Andrew Howard , Toby Collett , Pooya Karimian , Jeremy Asher , Alex Couture-Beil , Geoff Biggs , Rich Mattes , Abbas Sadat
autogenerated on Mon Jun 10 2019 15:06:11