| 1 |  | 
|---|
| 2 | /* | 
|---|
| 3 | Bullet Continuous Collision Detection and Physics Library | 
|---|
| 4 | Copyright (c) 2003-2006 Erwin Coumans  http://continuousphysics.com/Bullet/ | 
|---|
| 5 |  | 
|---|
| 6 | This software is provided 'as-is', without any express or implied warranty. | 
|---|
| 7 | In no event will the authors be held liable for any damages arising from the use of this software. | 
|---|
| 8 | Permission is granted to anyone to use this software for any purpose, | 
|---|
| 9 | including commercial applications, and to alter it and redistribute it freely, | 
|---|
| 10 | subject to the following restrictions: | 
|---|
| 11 |  | 
|---|
| 12 | 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. | 
|---|
| 13 | 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. | 
|---|
| 14 | 3. This notice may not be removed or altered from any source distribution. | 
|---|
| 15 | */ | 
|---|
| 16 |  | 
|---|
| 17 | #ifndef OVERLAPPING_PAIR_CALLBACK_H | 
|---|
| 18 | #define OVERLAPPING_PAIR_CALLBACK_H | 
|---|
| 19 |  | 
|---|
| 20 | class btDispatcher; | 
|---|
| 21 | struct  btBroadphasePair; | 
|---|
| 22 |  | 
|---|
| 23 | ///The btOverlappingPairCallback class is an additional optional broadphase user callback for adding/removing overlapping pairs, similar interface to btOverlappingPairCache. | 
|---|
| 24 | class btOverlappingPairCallback | 
|---|
| 25 | { | 
|---|
| 26 | public: | 
|---|
| 27 | virtual ~btOverlappingPairCallback() | 
|---|
| 28 | { | 
|---|
| 29 |  | 
|---|
| 30 | } | 
|---|
| 31 |  | 
|---|
| 32 | virtual btBroadphasePair*       addOverlappingPair(btBroadphaseProxy* proxy0,btBroadphaseProxy* proxy1) = 0; | 
|---|
| 33 |  | 
|---|
| 34 | virtual void*   removeOverlappingPair(btBroadphaseProxy* proxy0,btBroadphaseProxy* proxy1,btDispatcher* dispatcher) = 0; | 
|---|
| 35 |  | 
|---|
| 36 | virtual void    removeOverlappingPairsContainingProxy(btBroadphaseProxy* proxy0,btDispatcher* dispatcher) = 0; | 
|---|
| 37 |  | 
|---|
| 38 | }; | 
|---|
| 39 |  | 
|---|
| 40 | #endif //OVERLAPPING_PAIR_CALLBACK_H | 
|---|