#include <CollisionEventHandler.h>
Inheritance diagram for opal::CollisionEventHandler:
Public Member Functions | |
OPAL_DECL | CollisionEventHandler () |
virtual OPAL_DECL | ~CollisionEventHandler () |
virtual OPAL_DECL void OPAL_CALL | handleCollisionEvent (const CollisionEvent &e)=0 |
virtual OPAL_DECL void OPAL_CALL | internal_pushCollisionEvent (const CollisionEvent &e) |
virtual OPAL_DECL void OPAL_CALL | internal_handlePendingCollisionEvents () |
Protected Attributes | |
std::vector< CollisionEvent > | mPendingCollisionEvents |
Definition at line 75 of file CollisionEventHandler.h.
|
Definition at line 32 of file CollisionEventHandler.cpp. |
|
Definition at line 36 of file CollisionEventHandler.cpp. References mPendingCollisionEvents. |
|
Called once for each pending CollisionEvent. This is always called at the end of every time step so CollisionEvents get handled right away. Referenced by internal_handlePendingCollisionEvents(). |
|
Loops through the pending CollisionEvents, calling the event handling function (which is always user-defined) for each. Definition at line 47 of file CollisionEventHandler.cpp. References handleCollisionEvent(), and mPendingCollisionEvents. |
|
Adds a CollisionEvent to this handler's internal list. These will get handled at the end of the current time step. Definition at line 41 of file CollisionEventHandler.cpp. References mPendingCollisionEvents. Referenced by opal::ode_hidden::internal_collisionCallback(). |
|
This list holds pending CollisionEvents. It allows events to be queued during collision detection and handled at a safe time. Definition at line 101 of file CollisionEventHandler.h. Referenced by internal_handlePendingCollisionEvents(), internal_pushCollisionEvent(), and ~CollisionEventHandler(). |