HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BV_Callback.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: BV_Callback.h
7  */
8 
9 #ifndef __BV_Callback_h__
10 #define __BV_Callback_h__
11 
12 #include "BV_API.h"
13 class BV_Node;
14 class BV_NodeLeaf;
15 
16 /// Callback for bounding volume hierarchy intersection operation.
18 {
19 public:
20  BV_Callback();
21  virtual ~BV_Callback();
22 
23  enum Action
24  {
25  /// Continue intersection process
27  /// Stop intersection process
28  BV_STOP
29  };
30  virtual Action callback(int primIdA, int primIdB) = 0;
31 
32 private:
33  /// Disallowed.
34  /// @{
35  BV_Callback(const BV_Callback &);
36  BV_Callback &operator=(const BV_Callback &);
37  /// @}
38 };
39 
40 #endif
Callback for bounding volume hierarchy intersection operation.
Definition: BV_Callback.h:17
#define BV_API
Definition: BV_API.h:10
Continue intersection process.
Definition: BV_Callback.h:26