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

#include <Body.h>

Inheritance diagram for rl::sg::Body:
Inheritance graph
[legend]

Public Types

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

Public Member Functions

 Body (Model *model)
 
virtual ~Body ()
 
virtual void add (Shape *shape)
 
Iterator begin ()
 
virtual Shapecreate (SoVRMLShape *shape)=0
 
Iterator end ()
 
void getBoundingBoxPoints (const ::rl::math::Transform &frame, ::std::vector< ::rl::math::Vector3 > &p) const
 
ModelgetModel () const
 
virtual ::std::string getName () const
 
::std::size_t getNumShapes () const
 
void getPoints (const ::rl::math::Transform &frame, ::std::vector< ::rl::math::Vector3 > &p) const
 
ShapegetShape (const ::std::size_t &i) const
 
virtual void getFrame (::rl::math::Transform &frame)=0
 
virtual void remove (Shape *shape)
 
virtual void setFrame (const ::rl::math::Transform &frame)=0
 
virtual void setName (const ::std::string &name)
 

Public Attributes

::rl::math::Vector3 center
 
::rl::math::Vector3 max
 
::rl::math::Vector3 min
 
::std::vector< ::rl::math::Vector3points
 

Protected Attributes

Modelmodel
 
::std::vector< Shape * > shapes
 

Private Attributes

::std::string name
 

Member Typedef Documentation

◆ Iterator

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

Constructor & Destructor Documentation

◆ Body()

rl::sg::Body::Body ( Model model)

◆ ~Body()

rl::sg::Body::~Body ( )
virtual

Member Function Documentation

◆ add()

void rl::sg::Body::add ( Shape shape)
virtual

◆ begin()

Body::Iterator rl::sg::Body::begin ( )

◆ create()

virtual Shape* rl::sg::Body::create ( SoVRMLShape *  shape)
pure virtual

◆ end()

Body::Iterator rl::sg::Body::end ( )

◆ getBoundingBoxPoints()

void rl::sg::Body::getBoundingBoxPoints ( const ::rl::math::Transform frame,
::std::vector< ::rl::math::Vector3 > &  p 
) const

◆ getFrame()

virtual void rl::sg::Body::getFrame ( ::rl::math::Transform frame)
pure virtual

◆ getModel()

Model * rl::sg::Body::getModel ( ) const

◆ getName()

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

◆ getNumShapes()

std::size_t rl::sg::Body::getNumShapes ( ) const

◆ getPoints()

void rl::sg::Body::getPoints ( const ::rl::math::Transform frame,
::std::vector< ::rl::math::Vector3 > &  p 
) const

◆ getShape()

Shape * rl::sg::Body::getShape ( const ::std::size_t &  i) const

◆ remove()

void rl::sg::Body::remove ( Shape shape)
virtual

◆ setFrame()

virtual void rl::sg::Body::setFrame ( const ::rl::math::Transform frame)
pure virtual

◆ setName()

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

Reimplemented in rl::sg::so::Body.

Member Data Documentation

◆ center

::rl::math::Vector3 rl::sg::Body::center

◆ max

::rl::math::Vector3 rl::sg::Body::max

◆ min

::rl::math::Vector3 rl::sg::Body::min

◆ model

Model* rl::sg::Body::model
protected

◆ name

::std::string rl::sg::Body::name
private

◆ points

::std::vector< ::rl::math::Vector3 > rl::sg::Body::points

◆ shapes

::std::vector< Shape* > rl::sg::Body::shapes
protected

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