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