Panda3D
 All Classes Functions Variables Enumerations
odePlaneGeom.h
00001 // Filename: odePlaneGeom.h
00002 // Created by:  joswilso (27Dec06)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef ODEPLANEGEOM_H
00016 #define ODEPLANEGEOM_H
00017 
00018 #include "pandabase.h"
00019 #include "luse.h"
00020 
00021 #include "ode_includes.h"
00022 #include "odeGeom.h"
00023 
00024 ////////////////////////////////////////////////////////////////////
00025 //       Class : OdePlaneGeom
00026 // Description : 
00027 ////////////////////////////////////////////////////////////////////
00028 class EXPCL_PANDAODE OdePlaneGeom : public OdeGeom {
00029   friend class OdeGeom;
00030 
00031 private:
00032   OdePlaneGeom(dGeomID id);
00033 
00034 PUBLISHED:
00035   OdePlaneGeom(dReal a, dReal b, dReal c, dReal d);
00036   OdePlaneGeom(const LVecBase4f &params);
00037   OdePlaneGeom(OdeSpace &space, dReal a, dReal b, dReal c, dReal d);
00038   OdePlaneGeom(OdeSpace &space, const LVecBase4f &params);
00039   virtual ~OdePlaneGeom();
00040 
00041   INLINE void set_params(dReal a, dReal b, dReal c, dReal d);
00042   INLINE void set_params(const LVecBase4f &params);
00043   INLINE LVecBase4f get_params() const;
00044   INLINE dReal get_point_depth(dReal x, dReal y, dReal z) const;
00045   INLINE dReal get_point_depth(const LPoint3f &p) const;
00046 
00047 public:
00048   INLINE static int get_geom_class() { return dPlaneClass; };
00049 
00050 public:
00051   static TypeHandle get_class_type() {
00052     return _type_handle;
00053   }
00054   static void init_type() {
00055     OdeGeom::init_type();
00056     register_type(_type_handle, "OdePlaneGeom",
00057                   OdeGeom::get_class_type());
00058   }
00059   virtual TypeHandle get_type() const {
00060     return get_class_type();
00061   }
00062   virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00063 
00064 private:
00065   static TypeHandle _type_handle;
00066 };
00067 
00068 #include "odePlaneGeom.I"
00069 
00070 #endif
 All Classes Functions Variables Enumerations