Panda3D
odeConvexGeom.h
1 // Filename: odeConvexGeom.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 ODECONVEXGEOM_H
16 #define ODECONVEXGEOM_H
17 
18 #include "pandabase.h"
19 #include "typedObject.h"
20 #include "luse.h"
21 
22 #include "ode_includes.h"
23 #include "odeGeom.h"
24 
25 ////////////////////////////////////////////////////////////////////
26 // Class : OdeConvexGeom
27 // Description :
28 ////////////////////////////////////////////////////////////////////
29 class EXPCL_PANDAODE OdeConvexGeom : public OdeGeom {
30  friend class OdeGeom;
31 
32 public:
33  OdeConvexGeom(dGeomID id);
34 
35 PUBLISHED:
36  OdeConvexGeom();
37  virtual ~OdeConvexGeom();
38 
39  INLINE void set_convex(dReal *_planes, unsigned int _count, dReal *_points, unsigned int _pointcount, unsigned int *_polygons);
40 
41 public:
42  INLINE static int get_geom_class() { return dConvexClass; };
43 
44 public:
45  static TypeHandle get_class_type() {
46  return _type_handle;
47  }
48  static void init_type() {
49  OdeGeom::init_type();
50  register_type(_type_handle, "OdeConvexGeom",
51  OdeGeom::get_class_type());
52  }
53  virtual TypeHandle get_type() const {
54  return get_class_type();
55  }
56  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
57 
58 private:
59  static TypeHandle _type_handle;
60 };
61 
62 #include "odeConvexGeom.I"
63 
64 #endif
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85