|
hpp-fcl
3.0.0
HPP fork of FCL -- The Flexible Collision Library
|
Collision callback to collect collision pairs potentially in contacts. More...
#include <hpp/fcl/broadphase/default_broadphase_callbacks.h>


Public Types | |
| typedef std::pair< CollisionObject *, CollisionObject * > | CollisionPair |
Public Member Functions | |
| CollisionCallBackCollect (const size_t max_size) | |
| Default constructor. More... | |
| bool | collide (CollisionObject *o1, CollisionObject *o2) |
| Collision evaluation between two objects in collision. This callback will cause the broadphase evaluation to stop if it returns true. More... | |
| size_t | numCollisionPairs () const |
| Returns the number of registered collision pairs. More... | |
| const std::vector< CollisionPair > & | getCollisionPairs () const |
| Returns a const reference to the active collision_pairs to check. More... | |
| void | init () |
| Reset the callback. More... | |
| bool | exist (const CollisionPair &pair) const |
| Check whether a collision pair exists. More... | |
| bool | exist (CollisionObject *o1, CollisionObject *o2) const |
| Check whether a collision pair exists. More... | |
| virtual | ~CollisionCallBackCollect () |
Public Member Functions inherited from hpp::fcl::CollisionCallBackBase | |
| virtual bool | operator() (CollisionObject *o1, CollisionObject *o2) |
| Functor call associated to the collide operation. More... | |
Protected Attributes | |
| std::vector< CollisionPair > | collision_pairs |
| size_t | max_size |
Collision callback to collect collision pairs potentially in contacts.
| typedef std::pair<CollisionObject*, CollisionObject*> hpp::fcl::CollisionCallBackCollect::CollisionPair |
| hpp::fcl::CollisionCallBackCollect::CollisionCallBackCollect | ( | const size_t | max_size | ) |
Default constructor.
|
inlinevirtual |
|
virtual |
Collision evaluation between two objects in collision. This callback will cause the broadphase evaluation to stop if it returns true.
| [in] | o1 | Collision object #1. |
| [in] | o2 | Collision object #2. |
Implements hpp::fcl::CollisionCallBackBase.
| bool hpp::fcl::CollisionCallBackCollect::exist | ( | CollisionObject * | o1, |
| CollisionObject * | o2 | ||
| ) | const |
Check whether a collision pair exists.
| bool hpp::fcl::CollisionCallBackCollect::exist | ( | const CollisionPair & | pair | ) | const |
Check whether a collision pair exists.
| const std::vector<CollisionPair>& hpp::fcl::CollisionCallBackCollect::getCollisionPairs | ( | ) | const |
Returns a const reference to the active collision_pairs to check.
|
virtual |
Reset the callback.
Reimplemented from hpp::fcl::CollisionCallBackBase.
| size_t hpp::fcl::CollisionCallBackCollect::numCollisionPairs | ( | ) | const |
Returns the number of registered collision pairs.
|
protected |
|
protected |