argos::CDynamics3DSingleBodyObjectModel::CBody Class Reference

#include <dynamics3d_single_body_object_model.h>

Inheritance diagram for argos::CDynamics3DSingleBodyObjectModel::CBody:
Collaboration diagram for argos::CDynamics3DSingleBodyObjectModel::CBody:

Public Member Functions

 CBody (CDynamics3DModel &c_model, SAnchor *ps_anchor, const std::shared_ptr< btCollisionShape > &ptr_shape, const SData &s_data)
 
virtual ~CBody ()
 
virtual void Reset ()
 
virtual void AddToWorld (btMultiBodyDynamicsWorld &c_world)
 
virtual void RemoveFromWorld (btMultiBodyDynamicsWorld &c_world)
 
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)
 
virtual btTransform & GetTransform ()
 
- 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 ()
 

Protected Attributes

btRigidBody m_cRigidBody
 
- Protected Attributes inherited from argos::CDynamics3DModel::CAbstractBody
CDynamics3DModelm_cModel
 
SAnchorm_psAnchor
 
std::shared_ptr< btCollisionShape > m_ptrShape
 
SData m_sData
 

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
 

Detailed Description

Definition at line 38 of file dynamics3d_single_body_object_model.h.

Constructor & Destructor Documentation

◆ CBody()

argos::CDynamics3DSingleBodyObjectModel::CBody::CBody ( CDynamics3DModel c_model,
SAnchor ps_anchor,
const std::shared_ptr< btCollisionShape > &  ptr_shape,
const SData s_data 
)

Definition at line 100 of file dynamics3d_single_body_object_model.cpp.

◆ ~CBody()

virtual argos::CDynamics3DSingleBodyObjectModel::CBody::~CBody ( )
inlinevirtual

Definition at line 47 of file dynamics3d_single_body_object_model.h.

Member Function Documentation

◆ AddToWorld()

void argos::CDynamics3DSingleBodyObjectModel::CBody::AddToWorld ( btMultiBodyDynamicsWorld &  c_world)
virtual

◆ ApplyForce() [1/2]

void argos::CDynamics3DSingleBodyObjectModel::CBody::ApplyForce ( const btVector3 &  c_force)
virtual

◆ ApplyForce() [2/2]

void argos::CDynamics3DSingleBodyObjectModel::CBody::ApplyForce ( const btVector3 &  c_force,
const btVector3 &  c_offset 
)
virtual

◆ ApplyTorque()

void argos::CDynamics3DSingleBodyObjectModel::CBody::ApplyTorque ( const btVector3 &  c_torque)
virtual

◆ GetTransform()

btTransform & argos::CDynamics3DSingleBodyObjectModel::CBody::GetTransform ( )
virtual

◆ RemoveFromWorld()

void argos::CDynamics3DSingleBodyObjectModel::CBody::RemoveFromWorld ( btMultiBodyDynamicsWorld &  c_world)
virtual

◆ Reset()

void argos::CDynamics3DSingleBodyObjectModel::CBody::Reset ( )
virtual

Member Data Documentation

◆ m_cRigidBody

btRigidBody argos::CDynamics3DSingleBodyObjectModel::CBody::m_cRigidBody
protected

Definition at line 66 of file dynamics3d_single_body_object_model.h.