sofa::core::componentmodel::collision::ContactManager Class Reference

Given a set of detected contact points, create contact response components. More...

#include <ContactManager.h>

Inheritance diagram for sofa::core::componentmodel::collision::ContactManager:

Inheritance graph
[legend]
Collaboration diagram for sofa::core::componentmodel::collision::ContactManager:

Collaboration graph
[legend]

Public Types

typedef
NarrowPhaseDetection::DetectionOutputMap 
DetectionOutputMap
typedef sofa::helper::vector
< Contact * > 
ContactVector

Public Member Functions

 ContactManager ()
 Constructor.
virtual ~ContactManager ()
 Destructor.
virtual void createContacts (DetectionOutputMap &outputs)=0
virtual const ContactVector & getContacts ()
virtual void setIntersectionMethod (Intersection *v)
 virtual because subclasses might do precomputations based on intersection algorithms
Intersection * getIntersectionMethod () const

Protected Member Functions

virtual void changeInstance (Instance inst)

Protected Attributes

Intersection * intersectionMethod
 Current intersection method.
ContactVector contacts
std::map< Instance,
Intersection * > 
storedIntersectionMethod
 All intersection methods.
std::map< Instance, ContactVector > storedContacts

Detailed Description

Given a set of detected contact points, create contact response components.

Definition at line 51 of file ContactManager.h.


Member Typedef Documentation

Definition at line 55 of file ContactManager.h.

Definition at line 54 of file ContactManager.h.


Constructor & Destructor Documentation

sofa::core::componentmodel::collision::ContactManager::ContactManager (  )  [inline]

Constructor.

Definition at line 58 of file ContactManager.h.

virtual sofa::core::componentmodel::collision::ContactManager::~ContactManager (  )  [inline, virtual]

Destructor.

Definition at line 64 of file ContactManager.h.


Member Function Documentation

virtual void sofa::core::componentmodel::collision::ContactManager::changeInstance ( Instance  inst  )  [inline, protected, virtual]

virtual void sofa::core::componentmodel::collision::ContactManager::createContacts ( DetectionOutputMap &  outputs  )  [pure virtual]

virtual const ContactVector& sofa::core::componentmodel::collision::ContactManager::getContacts (  )  [inline, virtual]

Intersection* sofa::core::componentmodel::collision::ContactManager::getIntersectionMethod (  )  const [inline]

virtual void sofa::core::componentmodel::collision::ContactManager::setIntersectionMethod ( Intersection *  v  )  [inline, virtual]

virtual because subclasses might do precomputations based on intersection algorithms

Definition at line 71 of file ContactManager.h.

References intersectionMethod.

Referenced by sofa::simulation::PipelineImpl::computeCollisionReset().


Field Documentation

Definition at line 84 of file ContactManager.h.

Referenced by changeInstance().

All intersection methods.

Definition at line 82 of file ContactManager.h.

Referenced by changeInstance().


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

Generated on Sun Nov 23 04:23:35 2008 for Sofa by  doxygen 1.5.7.1