sofa::core::componentmodel::collision::NarrowPhaseDetection Class Reference

Given a set of potentially colliding pairs of models, compute set of contact points. More...

#include <NarrowPhaseDetection.h>

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

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

Collaboration graph
[legend]

Public Types

typedef std::map< std::pair
< core::CollisionModel
*, core::CollisionModel * >
, DetectionOutputVector * > 
DetectionOutputMap

Public Member Functions

virtual ~NarrowPhaseDetection ()
 Destructor.
virtual void beginNarrowPhase ()
 Clear all the potentially colliding pairs detected in the previous simulation step.
virtual void addCollisionPair (const std::pair< core::CollisionModel *, core::CollisionModel * > &cmPair)=0
 Add a new potentially colliding pairs of models.
virtual void addCollisionPairs (const sofa::helper::vector< std::pair< core::CollisionModel *, core::CollisionModel * > > &v)
 Add a new list of potentially colliding pairs of models.
virtual void endNarrowPhase ()
DetectionOutputMap & getDetectionOutputs ()

Protected Member Functions

virtual void changeInstanceNP (Instance inst)

Protected Attributes

DetectionOutputMap outputsMap
std::map< Instance,
DetectionOutputMap > 
storedOutputsMap

Detailed Description

Given a set of potentially colliding pairs of models, compute set of contact points.

Definition at line 51 of file NarrowPhaseDetection.h.


Member Typedef Documentation

Definition at line 54 of file NarrowPhaseDetection.h.


Constructor & Destructor Documentation

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

Destructor.

Definition at line 57 of file NarrowPhaseDetection.h.


Member Function Documentation

virtual void sofa::core::componentmodel::collision::NarrowPhaseDetection::addCollisionPair ( const std::pair< core::CollisionModel *, core::CollisionModel * > &  cmPair  )  [pure virtual]

virtual void sofa::core::componentmodel::collision::NarrowPhaseDetection::addCollisionPairs ( const sofa::helper::vector< std::pair< core::CollisionModel *, core::CollisionModel * > > &  v  )  [inline, virtual]

Add a new list of potentially colliding pairs of models.

Definition at line 73 of file NarrowPhaseDetection.h.

References addCollisionPair().

Referenced by sofa::component::collision::CarvingManager::doCarve(), and sofa::component::collision::DefaultPipeline::doCollisionDetection().

virtual void sofa::core::componentmodel::collision::NarrowPhaseDetection::beginNarrowPhase (  )  [inline, virtual]

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

virtual void sofa::core::componentmodel::collision::NarrowPhaseDetection::endNarrowPhase (  )  [inline, virtual]

DetectionOutputMap& sofa::core::componentmodel::collision::NarrowPhaseDetection::getDetectionOutputs (  )  [inline]


Field Documentation

Definition at line 108 of file NarrowPhaseDetection.h.

Referenced by changeInstanceNP().


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

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