Panda3D
odePlaneGeom.h
1 // Filename: odePlaneGeom.h
2 // Created by: joswilso (27Dec06)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef ODEPLANEGEOM_H
16 #define ODEPLANEGEOM_H
17 
18 #include "pandabase.h"
19 #include "luse.h"
20 
21 #include "ode_includes.h"
22 #include "odeGeom.h"
23 
24 ////////////////////////////////////////////////////////////////////
25 // Class : OdePlaneGeom
26 // Description :
27 ////////////////////////////////////////////////////////////////////
28 class EXPCL_PANDAODE OdePlaneGeom : public OdeGeom {
29  friend class OdeGeom;
30 
31 public:
32  OdePlaneGeom(dGeomID id);
33 
34 PUBLISHED:
35  OdePlaneGeom(dReal a, dReal b, dReal c, dReal d);
36  OdePlaneGeom(const LVecBase4f &params);
37  OdePlaneGeom(OdeSpace &space, dReal a, dReal b, dReal c, dReal d);
38  OdePlaneGeom(OdeSpace &space, const LVecBase4f &params);
39  virtual ~OdePlaneGeom();
40 
41  INLINE void set_params(dReal a, dReal b, dReal c, dReal d);
42  INLINE void set_params(const LVecBase4f &params);
43  INLINE LVecBase4f get_params() const;
44  INLINE dReal get_point_depth(dReal x, dReal y, dReal z) const;
45  INLINE dReal get_point_depth(const LPoint3f &p) const;
46 
47 public:
48  INLINE static int get_geom_class() { return dPlaneClass; };
49 
50 public:
51  static TypeHandle get_class_type() {
52  return _type_handle;
53  }
54  static void init_type() {
55  OdeGeom::init_type();
56  register_type(_type_handle, "OdePlaneGeom",
57  OdeGeom::get_class_type());
58  }
59  virtual TypeHandle get_type() const {
60  return get_class_type();
61  }
62  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
63 
64 private:
65  static TypeHandle _type_handle;
66 };
67 
68 #include "odePlaneGeom.I"
69 
70 #endif
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Definition: lpoint3.h:99
This is the base class for all three-component vectors and points.
Definition: lvecBase4.h:111
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85