Panda3D
 All Classes Functions Variables Enumerations
odeBallJoint.h
1 #ifndef ODEBALLJOINT_H
2 #define ODEBALLJOINT_H
3 
4 #include "pandabase.h"
5 #include "typedObject.h"
6 #include "luse.h"
7 
8 #include "ode_includes.h"
9 
10 #include "odeJoint.h"
11 
12 ////////////////////////////////////////////////////////////////////
13 // Class : OdeBallJoint
14 // Description :
15 ////////////////////////////////////////////////////////////////////
16 class EXPCL_PANDAODE OdeBallJoint : public OdeJoint {
17  friend class OdeJoint;
18 
19 public:
20  OdeBallJoint(dJointID id);
21 
22 PUBLISHED:
23  OdeBallJoint(OdeWorld &world);
24  OdeBallJoint(OdeWorld &world, OdeJointGroup &joint_group);
25  virtual ~OdeBallJoint();
26 
27  INLINE void set_anchor(dReal x, dReal y, dReal z);
28  INLINE void set_anchor(const LVecBase3f &anchor);
29  INLINE void set_anchor2(dReal x, dReal y, dReal z);
30  INLINE void set_anchor2(const LVecBase3f &anchor);
31 
32  INLINE LVecBase3f get_anchor() const;
33  INLINE LVecBase3f get_anchor2() const;
34 
35 public:
36  static TypeHandle get_class_type() {
37  return _type_handle;
38  }
39  static void init_type() {
40  OdeJoint::init_type();
41  register_type(_type_handle, "OdeBallJoint",
42  OdeJoint::get_class_type());
43  }
44  virtual TypeHandle get_type() const {
45  return get_class_type();
46  }
47  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
48 
49 private:
50  static TypeHandle _type_handle;
51 };
52 
53 #include "odeBallJoint.I"
54 
55 #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