odeHashSpace.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. #ifndef ODEHASHSPACE_H
  15. #define ODEHASHSPACE_H
  16. #include "pandabase.h"
  17. #include "typedObject.h"
  18. #include "luse.h"
  19. #include "ode_includes.h"
  20. #include "odeSpace.h"
  21. ////////////////////////////////////////////////////////////////////
  22. // Class : OdeHashSpace
  23. // Description :
  24. ////////////////////////////////////////////////////////////////////c
  25. class EXPCL_PANDAODE OdeHashSpace : public OdeSpace {
  26. friend class OdeSpace;
  27. friend class OdeGeom;
  28. private:
  29. OdeHashSpace(dSpaceID id);
  30. PUBLISHED:
  31. OdeHashSpace();
  32. OdeHashSpace(OdeSpace &space);
  33. virtual ~OdeHashSpace();
  34. INLINE void set_levels(int minlevel, int maxlevel);
  35. INLINE int get_min_level() const;
  36. INLINE int get_max_level() const;
  37. public:
  38. static TypeHandle get_class_type() {
  39. return _type_handle;
  40. }
  41. static void init_type() {
  42. OdeSpace::init_type();
  43. register_type(_type_handle, "OdeHashSpace",
  44. OdeSpace::get_class_type());
  45. }
  46. virtual TypeHandle get_type() const {
  47. return get_class_type();
  48. }
  49. virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
  50. private:
  51. static TypeHandle _type_handle;
  52. };
  53. #include "odeHashSpace.I"
  54. #endif