Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | List of all members
om::physics::collision::CollisionBroadphase Class Referenceabstract

An interface for classes that determine potentially colliding pairs of objects in a scene. More...

#include <omPhysicsCollisionBroadphase.h>

Public Member Functions

virtual ~CollisionBroadphase ()
 Destroy this broadphase and all allocated data. More...
 
virtual void addPairs (const CollisionRequest &request, CollisionNarrowphase &narrowphase)=0
 Test all objects in this broadphase and add potentially overlaping pairs to the narrowphase object. More...
 
virtual Size getColliderCount () const =0
 Return the number of colliders there are in this broadphase. More...
 
virtual Bool addCollider (Collider *collider)=0
 Add a collider to this broadphase. More...
 
virtual Bool removeCollider (const Collider *collider)=0
 Remove the specified collider from this broadphase. More...
 
virtual void clearColliders ()=0
 Remove all colliders from the broadphase. More...
 

Detailed Description

An interface for classes that determine potentially colliding pairs of objects in a scene.

Constructor & Destructor Documentation

virtual om::physics::collision::CollisionBroadphase::~CollisionBroadphase ( )
inlinevirtual

Destroy this broadphase and all allocated data.

Member Function Documentation

virtual void om::physics::collision::CollisionBroadphase::addPairs ( const CollisionRequest request,
CollisionNarrowphase narrowphase 
)
pure virtual

Test all objects in this broadphase and add potentially overlaping pairs to the narrowphase object.

virtual Size om::physics::collision::CollisionBroadphase::getColliderCount ( ) const
pure virtual

Return the number of colliders there are in this broadphase.

virtual Bool om::physics::collision::CollisionBroadphase::addCollider ( Collider collider)
pure virtual

Add a collider to this broadphase.

virtual Bool om::physics::collision::CollisionBroadphase::removeCollider ( const Collider collider)
pure virtual

Remove the specified collider from this broadphase.

virtual void om::physics::collision::CollisionBroadphase::clearColliders ( )
pure virtual

Remove all colliders from the broadphase.


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