Panda3D
odeLMotorJoint.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 odeLMotorJoint.h
10  * @author joswilso
11  * @date 2006-12-27
12  */
13 
14 
15 #ifndef ODELMOTORJOINT_H
16 #define ODELMOTORJOINT_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 OdeLMotorJoint : public OdeJoint {
29  friend class OdeJoint;
30 
31 public:
32  OdeLMotorJoint(dJointID id);
33 
34 PUBLISHED:
35  OdeLMotorJoint(OdeWorld &world);
36  OdeLMotorJoint(OdeWorld &world, OdeJointGroup &joint_group);
37  virtual ~OdeLMotorJoint();
38 
39  INLINE void set_num_axes(int num);
40  INLINE void set_axis(int anum, int rel, dReal x, dReal y, dReal z);
41  INLINE void set_axis(int anum, int rel, const LVecBase3f &axis);
42  INLINE void set_param(int parameter, dReal value);
43 
44  INLINE int get_num_axes() const;
45  INLINE LVecBase3f get_axis(int anum) const;
46  MAKE_SEQ(get_axes, get_num_axes, get_axis);
47  INLINE dReal get_param(int parameter) const;
48 
49 public:
50  static TypeHandle get_class_type() {
51  return _type_handle;
52  }
53  static void init_type() {
54  OdeJoint::init_type();
55  register_type(_type_handle, "OdeLMotorJoint",
56  OdeJoint::get_class_type());
57  }
58  virtual TypeHandle get_type() const {
59  return get_class_type();
60  }
61  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
62 
63 private:
64  static TypeHandle _type_handle;
65 };
66 
67 #include "odeLMotorJoint.I"
68 
69 #endif
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81