DART  6.7.3
dart::collision::CollisionDetector::ManagerForSharableCollisionObjects Class Referencefinal

#include <CollisionDetector.hpp>

Inheritance diagram for dart::collision::CollisionDetector::ManagerForSharableCollisionObjects:
dart::collision::CollisionDetector::CollisionObjectManager

Classes

struct  CollisionObjectDeleter
 This deleter is responsible for deleting CollisionObject and removing it from mCollisionObjectMap when it is not shared by any CollisionGroups. More...
 

Public Member Functions

 ManagerForSharableCollisionObjects (CollisionDetector *cd)
 Constructor. More...
 
virtual ~ManagerForSharableCollisionObjects ()
 Destructor. More...
 
std::shared_ptr< CollisionObjectclaimCollisionObject (const dynamics::ShapeFrame *shapeFrame)
 Claim CollisionObject associated with shapeFrame. More...
 
CollisionDetectorgetCollisionDetector ()
 Returns collision detector. More...
 

Protected Attributes

CollisionDetectormCollisionDetector
 

Private Types

using CollisionObjectMap = std::map< const dynamics::ShapeFrame *, std::weak_ptr< CollisionObject > >
 

Private Attributes

const CollisionObjectDeleter mCollisionObjectDeleter
 
CollisionObjectMap mCollisionObjectMap
 

Member Typedef Documentation

◆ CollisionObjectMap

Constructor & Destructor Documentation

◆ ManagerForSharableCollisionObjects()

dart::collision::CollisionDetector::ManagerForSharableCollisionObjects::ManagerForSharableCollisionObjects ( CollisionDetector cd)

Constructor.

◆ ~ManagerForSharableCollisionObjects()

dart::collision::CollisionDetector::ManagerForSharableCollisionObjects::~ManagerForSharableCollisionObjects ( )
virtual

Destructor.

Member Function Documentation

◆ claimCollisionObject()

std::shared_ptr< CollisionObject > dart::collision::CollisionDetector::ManagerForSharableCollisionObjects::claimCollisionObject ( const dynamics::ShapeFrame shapeFrame)
virtual

Claim CollisionObject associated with shapeFrame.

New CollisionObject will be created if it hasn't created yet for shapeFrame.

Implements dart::collision::CollisionDetector::CollisionObjectManager.

◆ getCollisionDetector()

CollisionDetector * dart::collision::CollisionDetector::CollisionObjectManager::getCollisionDetector ( )
inherited

Returns collision detector.

Member Data Documentation

◆ mCollisionDetector

CollisionDetector* dart::collision::CollisionDetector::CollisionObjectManager::mCollisionDetector
protectedinherited

◆ mCollisionObjectDeleter

const CollisionObjectDeleter dart::collision::CollisionDetector::ManagerForSharableCollisionObjects::mCollisionObjectDeleter
private

◆ mCollisionObjectMap

CollisionObjectMap dart::collision::CollisionDetector::ManagerForSharableCollisionObjects::mCollisionObjectMap
private