Panda3D
 All Classes Functions Variables Enumerations
odeLMotorJoint.h
1 #ifndef ODELMOTORJOINT_H
2 #define ODELMOTORJOINT_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 : OdeLMotorJoint
13 // Description :
14 ////////////////////////////////////////////////////////////////////
15 class EXPCL_PANDAODE OdeLMotorJoint : public OdeJoint {
16  friend class OdeJoint;
17 
18 public:
19  OdeLMotorJoint(dJointID id);
20 
21 PUBLISHED:
22  OdeLMotorJoint(OdeWorld &world);
23  OdeLMotorJoint(OdeWorld &world, OdeJointGroup &joint_group);
24  virtual ~OdeLMotorJoint();
25 
26  INLINE void set_num_axes(int num);
27  INLINE void set_axis(int anum, int rel, dReal x, dReal y, dReal z);
28  INLINE void set_axis(int anum, int rel, const LVecBase3f &axis);
29  INLINE void set_param(int parameter, dReal value);
30 
31  INLINE int get_num_axes() const;
32  INLINE LVecBase3f get_axis(int anum) const;
33  MAKE_SEQ(get_axes, get_num_axes, get_axis);
34  INLINE dReal get_param(int parameter) const;
35 
36 public:
37  static TypeHandle get_class_type() {
38  return _type_handle;
39  }
40  static void init_type() {
41  OdeJoint::init_type();
42  register_type(_type_handle, "OdeLMotorJoint",
43  OdeJoint::get_class_type());
44  }
45  virtual TypeHandle get_type() const {
46  return get_class_type();
47  }
48  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
49 
50 private:
51  static TypeHandle _type_handle;
52 };
53 
54 #include "odeLMotorJoint.I"
55 
56 #endif
This is the base class for all three-component vectors and points.
Definition: lvecBase3.h:105
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85