Robotics Library  0.7.0
Public Types | Public Member Functions | Protected Attributes | Private Attributes | List of all members
rl::sg::Model Class Referenceabstract

#include <Model.h>

Inheritance diagram for rl::sg::Model:
Inheritance 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

◆ Iterator

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

Constructor & Destructor Documentation

◆ Model()

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

◆ ~Model()

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

Member Function Documentation

◆ add()

void rl::sg::Model::add ( Body body)
virtual

◆ begin()

Model::Iterator rl::sg::Model::begin ( )

◆ create()

virtual Body* rl::sg::Model::create ( )
pure virtual

◆ end()

Model::Iterator rl::sg::Model::end ( )

◆ getBody()

Body * rl::sg::Model::getBody ( const ::std::size_t &  i) const

◆ getName()

std::string rl::sg::Model::getName ( ) const

◆ getNumBodies()

std::size_t rl::sg::Model::getNumBodies ( ) const

◆ getScene()

Scene * rl::sg::Model::getScene ( ) const

◆ remove()

void rl::sg::Model::remove ( Body body)
virtual

◆ setName()

void rl::sg::Model::setName ( const ::std::string &  name)
virtual

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

Member Data Documentation

◆ bodies

::std::vector<Body*> rl::sg::Model::bodies
protected

◆ name

::std::string rl::sg::Model::name
private

◆ scene

Scene* rl::sg::Model::scene
protected

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