Panda3D
odeSliderJoint.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file odeSliderJoint.h
10  * @author joswilso
11  * @date 2006-12-27
12  */
13 
14 
15 #ifndef ODESLIDERJOINT_H
16 #define ODESLIDERJOINT_H
17 
18 #include "pandabase.h"
19 #include "luse.h"
20 
21 #include "ode_includes.h"
22 
23 #include "odeJoint.h"
24 
25 /**
26  *
27  */
28 class EXPCL_PANDAODE OdeSliderJoint : public OdeJoint {
29  friend class OdeJoint;
30 
31 public:
32  OdeSliderJoint(dJointID id);
33 
34 PUBLISHED:
35  OdeSliderJoint(OdeWorld &world);
36  OdeSliderJoint(OdeWorld &world, OdeJointGroup &joint_group);
37  virtual ~OdeSliderJoint();
38 
39  INLINE void set_axis(dReal x, dReal y, dReal z);
40  INLINE void set_axis(const LVecBase3f &axis);
41  INLINE void set_axis_delta(dReal x, dReal y, dReal z, dReal ax, dReal ay, dReal az);
42  INLINE void set_axis_delta(const LVecBase3f &axis, const LVecBase3f &vec);
43  INLINE void add_force(dReal force);
44 
45  INLINE dReal get_position() const;
46  INLINE dReal get_position_rate() const;
47  INLINE LVecBase3f get_axis() const;
48 
49  INLINE void set_param_lo_stop(dReal val);
50  INLINE void set_param_hi_stop(dReal val);
51  INLINE void set_param_vel(dReal val);
52  INLINE void set_param_f_max(dReal val);
53  INLINE void set_param_fudge_factor(dReal val);
54  INLINE void set_param_bounce(dReal val);
55  INLINE void set_param_CFM(dReal val);
56  INLINE void set_param_stop_ERP(dReal val);
57  INLINE void set_param_stop_CFM(dReal val);
58 
59  INLINE dReal get_param_lo_stop() const;
60  INLINE dReal get_param_hi_stop() const;
61  INLINE dReal get_param_vel() const;
62  INLINE dReal get_param_f_max() const;
63  INLINE dReal get_param_fudge_factor() const;
64  INLINE dReal get_param_bounce() const;
65  INLINE dReal get_param_CFM() const;
66  INLINE dReal get_param_stop_ERP() const;
67  INLINE dReal get_param_stop_CFM() const;
68 
69 public:
70  static TypeHandle get_class_type() {
71  return _type_handle;
72  }
73  static void init_type() {
74  OdeJoint::init_type();
75  register_type(_type_handle, "OdeSliderJoint",
76  OdeJoint::get_class_type());
77  }
78  virtual TypeHandle get_type() const {
79  return get_class_type();
80  }
81  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
82 
83 private:
84  static TypeHandle _type_handle;
85 };
86 
87 #include "odeSliderJoint.I"
88 
89 #endif
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
OdeJointGroup
Definition: odeJointGroup.h:26
register_type
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
Definition: register_type.I:22
OdeJoint
Definition: odeJoint.h:51
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81
OdeSliderJoint
Definition: odeSliderJoint.h:28
luse.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
ode_includes.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
odeJoint.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
OdeWorld
Definition: odeWorld.h:33
odeSliderJoint.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.