Panda3D
odeSliderJoint.h
1 #ifndef ODESLIDERJOINT_H
2 #define ODESLIDERJOINT_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 : OdeSliderJoint
13 // Description :
14 ////////////////////////////////////////////////////////////////////
15 class EXPCL_PANDAODE OdeSliderJoint : public OdeJoint {
16  friend class OdeJoint;
17 
18 public:
19  OdeSliderJoint(dJointID id);
20 
21 PUBLISHED:
22  OdeSliderJoint(OdeWorld &world);
23  OdeSliderJoint(OdeWorld &world, OdeJointGroup &joint_group);
24  virtual ~OdeSliderJoint();
25 
26  INLINE void set_axis(dReal x, dReal y, dReal z);
27  INLINE void set_axis(const LVecBase3f &axis);
28  INLINE void set_axis_delta(dReal x, dReal y, dReal z, dReal ax, dReal ay, dReal az);
29  INLINE void set_axis_delta(const LVecBase3f &axis, const LVecBase3f &vec);
30  INLINE void add_force(dReal force);
31 
32  INLINE dReal get_position() const;
33  INLINE dReal get_position_rate() const;
34  INLINE LVecBase3f get_axis() const;
35 
36  INLINE void set_param_lo_stop(dReal val);
37  INLINE void set_param_hi_stop(dReal val);
38  INLINE void set_param_vel(dReal val);
39  INLINE void set_param_f_max(dReal val);
40  INLINE void set_param_fudge_factor(dReal val);
41  INLINE void set_param_bounce(dReal val);
42  INLINE void set_param_CFM(dReal val);
43  INLINE void set_param_stop_ERP(dReal val);
44  INLINE void set_param_stop_CFM(dReal val);
45 
46  INLINE dReal get_param_lo_stop() const;
47  INLINE dReal get_param_hi_stop() const;
48  INLINE dReal get_param_vel() const;
49  INLINE dReal get_param_f_max() const;
50  INLINE dReal get_param_fudge_factor() const;
51  INLINE dReal get_param_bounce() const;
52  INLINE dReal get_param_CFM() const;
53  INLINE dReal get_param_stop_ERP() const;
54  INLINE dReal get_param_stop_CFM() const;
55 
56 public:
57  static TypeHandle get_class_type() {
58  return _type_handle;
59  }
60  static void init_type() {
61  OdeJoint::init_type();
62  register_type(_type_handle, "OdeSliderJoint",
63  OdeJoint::get_class_type());
64  }
65  virtual TypeHandle get_type() const {
66  return get_class_type();
67  }
68  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
69 
70 private:
71  static TypeHandle _type_handle;
72 };
73 
74 #include "odeSliderJoint.I"
75 
76 #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