Opcode.h
Go to the documentation of this file.
1 /*
3  * OPCODE - Optimized Collision Detection
4  * Copyright (C) 2001 Pierre Terdiman
5  * Homepage: http://www.codercorner.com/Opcode.htm
6  */
8 
10 
16 
19 // Include Guard
20 #ifndef __OPCODE_H__
21 #define __OPCODE_H__
22 
24 // Things to help us compile on non-windows platforms
25 
26 #if defined(__APPLE__) || defined(__MACOSX__)
27 #if __APPLE_CC__ < 1495
28 #define sqrtf sqrt
29 #define sinf sin
30 #define cosf cos
31 #define acosf acos
32 #define asinf sinf
33 #endif
34 #endif
35 
36 #ifndef _MSC_VER
37 
38 #define __int64 long long int
39 #define __stdcall /* */
40 
41 #endif
42 
44 // Compilation messages
45 #ifdef _MSC_VER
46  #if defined(OPCODE_EXPORTS)
47  // #pragma message("Compiling OPCODE")
48  #elif !defined(OPCODE_EXPORTS)
49  // #pragma message("Using OPCODE")
51  // Automatic linking
52  #ifndef BAN_OPCODE_AUTOLINK
53  #ifdef _DEBUG
54  //#pragma comment(lib, "Opcode_D.lib")
55  #else
56  //#pragma comment(lib, "Opcode.lib")
57  #endif
58  #endif
59  #endif
60 #endif
61 
63 // Preprocessor
64 #ifndef ICE_NO_DLL
65  #ifdef OPCODE_EXPORTS
66  #define OPCODE_API// __declspec(dllexport)
67  #else
68  #define OPCODE_API// __declspec(dllimport)
69  #endif
70 #else
71  #define OPCODE_API
72 #endif
73 
74  #include "OPC_IceHook.h"
75 //#include<iostream>
76 
77 namespace hrp {
78  class CollisionPairInserterBase;
79 }
80 
81  namespace Opcode
82  {
83  // Bulk-of-the-work
84  #include "OPC_Settings.h"
85  #include "OPC_Common.h"
86  #include "OPC_MeshInterface.h"
87  // Builders
88  #include "OPC_TreeBuilders.h"
89  // Trees
90  #include "OPC_AABBTree.h"
91  #include "OPC_OptimizedTree.h"
92  // Models
93  #include "OPC_BaseModel.h"
94  #include "OPC_Model.h"
95  #include "OPC_HybridModel.h"
96  // Colliders
97  #include "OPC_Collider.h"
98  #include "OPC_VolumeCollider.h"
99  #include "OPC_TreeCollider.h"
100  #include "OPC_RayCollider.h"
101  #include "OPC_SphereCollider.h"
102  //#include "OPC_OBBCollider.h"
103  //#include "OPC_AABBCollider.h"
104  //#include "OPC_LSSCollider.h"
105  #include "OPC_PlanesCollider.h"
106  // Usages
107  #include "OPC_Picking.h"
108  // Sweep-and-prune
109  //#include "OPC_BoxPruning.h"
110  //#include "OPC_SweepAndPrune.h"
111 
114  }
115 
116 #endif // __OPCODE_H__
Opcode::CloseOpcode
FUNCTION OPCODE_API bool CloseOpcode()
Definition: Opcode.cpp:46
OPC_Common.h
OPC_TreeCollider.h
FUNCTION
#define FUNCTION
Definition: IcePreprocessor.h:83
hrp
Definition: ColdetModel.h:28
OPC_MeshInterface.h
OPC_OptimizedTree.h
OPC_Picking.h
OPC_Settings.h
OPC_IceHook.h
OPC_TreeBuilders.h
OPC_RayCollider.h
OPC_VolumeCollider.h
Opcode::InitOpcode
FUNCTION OPCODE_API bool InitOpcode()
Definition: Opcode.cpp:38
OPC_Collider.h
OPC_BaseModel.h
OPC_AABBTree.h
OPC_SphereCollider.h
OPCODE_API
#define OPCODE_API
Definition: Opcode.h:68
OPC_HybridModel.h
OPC_PlanesCollider.h
OPC_Model.h
Opcode
Definition: CollisionPairInserterBase.h:18


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Wed Sep 7 2022 02:51:04