Panda3D
odeContactJoint.h
1 #ifndef ODECONTACTJOINT_H
2 #define ODECONTACTJOINT_H
3 
4 #include "pandabase.h"
5 #include "typedObject.h"
6 #include "luse.h"
7 
8 #include "ode_includes.h"
9 
10 #include "odeJoint.h"
11 #include "odeContact.h"
12 
13 ////////////////////////////////////////////////////////////////////
14 // Class : OdeContactJoint
15 // Description :
16 ////////////////////////////////////////////////////////////////////
17 class EXPCL_PANDAODE OdeContactJoint : public OdeJoint {
18  friend class OdeJoint;
19 
20 public:
21  OdeContactJoint(dJointID id);
22 
23 PUBLISHED:
24  OdeContactJoint(OdeWorld &world, const OdeContact &contact);
25  OdeContactJoint(OdeWorld &world, OdeJointGroup &joint_group, const OdeContact &contact);
26  virtual ~OdeContactJoint();
27 
28 public:
29  static TypeHandle get_class_type() {
30  return _type_handle;
31  }
32  static void init_type() {
33  OdeJoint::init_type();
34  register_type(_type_handle, "OdeContactJoint",
35  OdeJoint::get_class_type());
36  }
37  virtual TypeHandle get_type() const {
38  return get_class_type();
39  }
40  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
41 
42 private:
43  static TypeHandle _type_handle;
44 };
45 
46 #include "odeContactJoint.I"
47 
48 #endif
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85