argos::CDynamics3DMultiBodyObjectModel::CBase Class Reference

#include <dynamics3d_multi_body_object_model.h>

Inheritance diagram for argos::CDynamics3DMultiBodyObjectModel::CBase:
Collaboration diagram for argos::CDynamics3DMultiBodyObjectModel::CBase:

Public Member Functions

 CBase (CDynamics3DMultiBodyObjectModel &c_model, SAnchor *ps_anchor, const std::shared_ptr< btCollisionShape > &ptr_shape, const SData &s_data)
 
virtual ~CBase ()
 
virtual void Reset ()
 
virtual void ApplyForce (const btVector3 &c_force)
 
virtual void ApplyForce (const btVector3 &c_force, const btVector3 &c_offset)
 
virtual void ApplyTorque (const btVector3 &c_torque)
 
- Public Member Functions inherited from argos::CDynamics3DMultiBodyObjectModel::CLink
 CLink (CDynamics3DMultiBodyObjectModel &c_model, UInt32 un_link_index, SAnchor *ps_anchor, const std::shared_ptr< btCollisionShape > &ptr_shape, const SData &s_data)
 
virtual ~CLink ()
 
virtual void AddToWorld (btMultiBodyDynamicsWorld &c_world)
 
virtual void RemoveFromWorld (btMultiBodyDynamicsWorld &c_world)
 
virtual btTransform & GetTransform ()
 
UInt32 GetIndex () const
 
- Public Member Functions inherited from argos::CDynamics3DModel::CAbstractBody
 CAbstractBody (CDynamics3DModel &c_model, SAnchor *ps_anchor, const std::shared_ptr< btCollisionShape > &ptr_shape, const SData &s_data)
 
virtual ~CAbstractBody ()
 
CDynamics3DModelGetModel ()
 
SAnchorGetAnchor ()
 
btCollisionShape & GetShape ()
 
const SDataGetData () const
 
void UpdateAnchor ()
 

Additional Inherited Members

- Public Types inherited from argos::CDynamics3DModel::CAbstractBody
using TVector = std::vector< std::shared_ptr< CAbstractBody > >
 
using TVectorIterator = std::vector< std::shared_ptr< CAbstractBody > >::iterator
 
- Protected Attributes inherited from argos::CDynamics3DMultiBodyObjectModel::CLink
CDynamics3DMultiBodyObjectModelm_cModel
 
UInt32 m_unLinkIndex
 
btMultiBodyLinkCollider m_cMultiBodyLink
 
- Protected Attributes inherited from argos::CDynamics3DModel::CAbstractBody
CDynamics3DModelm_cModel
 
SAnchorm_psAnchor
 
std::shared_ptr< btCollisionShape > m_ptrShape
 
SData m_sData
 

Detailed Description

Definition at line 76 of file dynamics3d_multi_body_object_model.h.

Constructor & Destructor Documentation

◆ CBase()

argos::CDynamics3DMultiBodyObjectModel::CBase::CBase ( CDynamics3DMultiBodyObjectModel c_model,
SAnchor ps_anchor,
const std::shared_ptr< btCollisionShape > &  ptr_shape,
const SData s_data 
)

Definition at line 252 of file dynamics3d_multi_body_object_model.cpp.

◆ ~CBase()

virtual argos::CDynamics3DMultiBodyObjectModel::CBase::~CBase ( )
inlinevirtual

Definition at line 85 of file dynamics3d_multi_body_object_model.h.

Member Function Documentation

◆ ApplyForce() [1/2]

void argos::CDynamics3DMultiBodyObjectModel::CBase::ApplyForce ( const btVector3 &  c_force)
virtual

◆ ApplyForce() [2/2]

void argos::CDynamics3DMultiBodyObjectModel::CBase::ApplyForce ( const btVector3 &  c_force,
const btVector3 &  c_offset 
)
virtual

◆ ApplyTorque()

void argos::CDynamics3DMultiBodyObjectModel::CBase::ApplyTorque ( const btVector3 &  c_torque)
virtual

◆ Reset()

void argos::CDynamics3DMultiBodyObjectModel::CBase::Reset ( )
virtual