00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef ODEBOXGEOM_H
00016 #define ODEBOXGEOM_H
00017
00018 #include "pandabase.h"
00019 #include "typedObject.h"
00020 #include "luse.h"
00021
00022 #include "ode_includes.h"
00023 #include "odeGeom.h"
00024
00025
00026
00027
00028
00029 class EXPCL_PANDAODE OdeBoxGeom : public OdeGeom {
00030 friend class OdeGeom;
00031
00032 private:
00033 OdeBoxGeom(dGeomID id);
00034
00035 PUBLISHED:
00036 OdeBoxGeom(dReal lx, dReal ly, dReal lz);
00037 OdeBoxGeom(OdeSpace &space, dReal lx, dReal ly, dReal lz);
00038 OdeBoxGeom(OdeSpace &space, const LVecBase3f &size);
00039 virtual ~OdeBoxGeom();
00040
00041 INLINE void set_lengths(dReal lx, dReal ly, dReal lz);
00042 INLINE void set_lengths(const LVecBase3f &size);
00043 INLINE LVecBase3f get_lengths();
00044 INLINE dReal get_point_depth(dReal x, dReal y, dReal z);
00045 INLINE dReal get_point_depth(const LPoint3f &p);
00046
00047 public:
00048 INLINE static int get_geom_class() { return dBoxClass; };
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, "OdeBoxGeom",
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 "odeBoxGeom.I"
00069
00070 #endif