argos::CDynamics3DModel::CAbstractBody Class Referenceabstract

#include <dynamics3d_model.h>

Collaboration diagram for argos::CDynamics3DModel::CAbstractBody:

Classes

struct  SData
 

Public Types

using TVector = std::vector< CAbstractBody * >
 
using TVectorIterator = std::vector< CAbstractBody * >::iterator
 

Public Member Functions

 CAbstractBody (CDynamics3DModel &c_model, SAnchor &s_anchor, std::shared_ptr< btCollisionShape > &ptr_shape, const SData &s_data)
 
virtual ~CAbstractBody ()
 
CDynamics3DModelGetModel ()
 
SAnchorGetAnchor ()
 
btCollisionShape & GetShape ()
 
const SDataGetData ()
 
virtual void Reset ()=0
 
virtual void AddToWorld (btMultiBodyDynamicsWorld &c_world)=0
 
virtual void RemoveFromWorld (btMultiBodyDynamicsWorld &c_world)=0
 
virtual void ApplyForce (const btVector3 &c_force)=0
 
virtual void ApplyForce (const btVector3 &c_force, const btVector3 &c_offset)=0
 
virtual void ApplyTorque (const btVector3 &c_torque)=0
 
virtual btTransform & GetTransform ()=0
 
void UpdateAnchor ()
 

Protected Attributes

CDynamics3DModelm_cModel
 
SAnchorm_sAnchor
 
std::shared_ptr< btCollisionShape > m_ptrShape
 
SData m_sData
 

Detailed Description

Definition at line 34 of file dynamics3d_model.h.

Member Typedef Documentation

Definition at line 38 of file dynamics3d_model.h.

Definition at line 40 of file dynamics3d_model.h.

Constructor & Destructor Documentation

argos::CDynamics3DModel::CAbstractBody::CAbstractBody ( CDynamics3DModel c_model,
SAnchor s_anchor,
std::shared_ptr< btCollisionShape > &  ptr_shape,
const SData s_data 
)

Definition at line 36 of file dynamics3d_model.cpp.

virtual argos::CDynamics3DModel::CAbstractBody::~CAbstractBody ( )
inlinevirtual

Definition at line 66 of file dynamics3d_model.h.

Member Function Documentation

virtual void argos::CDynamics3DModel::CAbstractBody::AddToWorld ( btMultiBodyDynamicsWorld &  c_world)
pure virtual
virtual void argos::CDynamics3DModel::CAbstractBody::ApplyForce ( const btVector3 &  c_force)
pure virtual
virtual void argos::CDynamics3DModel::CAbstractBody::ApplyForce ( const btVector3 &  c_force,
const btVector3 &  c_offset 
)
pure virtual
virtual void argos::CDynamics3DModel::CAbstractBody::ApplyTorque ( const btVector3 &  c_torque)
pure virtual
SAnchor & argos::CDynamics3DModel::CAbstractBody::GetAnchor ( )

Definition at line 55 of file dynamics3d_model.cpp.

const CDynamics3DModel::CAbstractBody::SData & argos::CDynamics3DModel::CAbstractBody::GetData ( )

Definition at line 69 of file dynamics3d_model.cpp.

CDynamics3DModel & argos::CDynamics3DModel::CAbstractBody::GetModel ( )

Definition at line 48 of file dynamics3d_model.cpp.

btCollisionShape & argos::CDynamics3DModel::CAbstractBody::GetShape ( )

Definition at line 62 of file dynamics3d_model.cpp.

virtual btTransform& argos::CDynamics3DModel::CAbstractBody::GetTransform ( )
pure virtual
virtual void argos::CDynamics3DModel::CAbstractBody::RemoveFromWorld ( btMultiBodyDynamicsWorld &  c_world)
pure virtual
virtual void argos::CDynamics3DModel::CAbstractBody::Reset ( )
pure virtual
void argos::CDynamics3DModel::CAbstractBody::UpdateAnchor ( )

Definition at line 76 of file dynamics3d_model.cpp.

Member Data Documentation

CDynamics3DModel& argos::CDynamics3DModel::CAbstractBody::m_cModel
protected

Definition at line 94 of file dynamics3d_model.h.

std::shared_ptr<btCollisionShape> argos::CDynamics3DModel::CAbstractBody::m_ptrShape
protected

Definition at line 98 of file dynamics3d_model.h.

SAnchor& argos::CDynamics3DModel::CAbstractBody::m_sAnchor
protected

Definition at line 96 of file dynamics3d_model.h.

SData argos::CDynamics3DModel::CAbstractBody::m_sData
protected

Definition at line 100 of file dynamics3d_model.h.