Robotics Library  0.6.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Protected Attributes | Private Attributes | List of all members
rl::sg::Model Class Reference

#include <Model.h>

Inheritance diagram for rl::sg::Model:
Inheritance graph
[legend]
Collaboration diagram for rl::sg::Model:
Collaboration graph
[legend]

Public Types

typedef ::std::vector< Body * >
::iterator 
Iterator

Public Member Functions

 Model (Scene *scene)
virtual ~Model ()
virtual void add (Body *body)
Iterator begin ()
virtual Bodycreate ()=0
Iterator end ()
BodygetBody (const ::std::size_t &i) const
virtual ::std::string getName () const
::std::size_t getNumBodies () const
ScenegetScene () const
virtual void remove (Body *body)
virtual void setName (const ::std::string &name)

Protected Attributes

::std::vector< Body * > bodies
Scenescene

Private Attributes

::std::string name

Member Typedef Documentation

typedef ::std::vector< Body* >::iterator rl::sg::Model::Iterator

Constructor & Destructor Documentation

rl::sg::Model::Model ( Scene scene)
rl::sg::Model::~Model ( )
virtual

Member Function Documentation

void rl::sg::Model::add ( Body body)
virtual
Model::Iterator rl::sg::Model::begin ( )
virtual Body* rl::sg::Model::create ( )
pure virtual
Model::Iterator rl::sg::Model::end ( )
Body * rl::sg::Model::getBody ( const ::std::size_t &  i) const
std::string rl::sg::Model::getName ( ) const

Reimplemented in rl::sg::so::Model.

std::size_t rl::sg::Model::getNumBodies ( ) const
Scene * rl::sg::Model::getScene ( ) const
void rl::sg::Model::remove ( Body body)
virtual
void rl::sg::Model::setName ( const ::std::string &  name)
virtual

Reimplemented in rl::sg::so::Model.

Member Data Documentation

::std::vector< Body* > rl::sg::Model::bodies
protected
::std::string rl::sg::Model::name
private
Scene* rl::sg::Model::scene
protected

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