Panda3D
odeHashSpace.h
1 // Filename: odeHashSpace.h
2 // Created by: joswilso (27Dec06)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef ODEHASHSPACE_H
16 #define ODEHASHSPACE_H
17 
18 #include "pandabase.h"
19 #include "typedObject.h"
20 #include "luse.h"
21 
22 #include "ode_includes.h"
23 #include "odeSpace.h"
24 
25 
26 ////////////////////////////////////////////////////////////////////
27 // Class : OdeHashSpace
28 // Description :
29 ////////////////////////////////////////////////////////////////////c
30 class EXPCL_PANDAODE OdeHashSpace : public OdeSpace {
31  friend class OdeSpace;
32  friend class OdeGeom;
33 
34 public:
35  OdeHashSpace(dSpaceID id);
36 
37 PUBLISHED:
38  OdeHashSpace();
39  OdeHashSpace(OdeSpace &space);
40  virtual ~OdeHashSpace();
41 
42  INLINE void set_levels(int minlevel, int maxlevel);
43  INLINE int get_min_level() const;
44  INLINE int get_max_level() const;
45 
46 public:
47  static TypeHandle get_class_type() {
48  return _type_handle;
49  }
50  static void init_type() {
51  OdeSpace::init_type();
52  register_type(_type_handle, "OdeHashSpace",
53  OdeSpace::get_class_type());
54  }
55  virtual TypeHandle get_type() const {
56  return get_class_type();
57  }
58  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
59 
60 private:
61  static TypeHandle _type_handle;
62 };
63 
64 #include "odeHashSpace.I"
65 
66 #endif
67 
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85