18 #include "pandabase.h" 19 #include "typedObject.h" 25 #include "odeJointGroup.h" 27 #include "ode_includes.h" 41 static const int MAX_CONTACTS;
51 INLINE
void set_cleanup(
int mode);
52 INLINE
int get_cleanup()
const;
53 int query(
const OdeGeom& geom)
const;
54 int query(
const OdeSpace& space)
const;
55 INLINE
int get_num_geoms()
const;
57 EXTENSION(INLINE PyObject *get_AA_bounds()
const);
58 INLINE
int is_space();
59 INLINE
int get_class()
const;
60 INLINE
void set_category_bits(
const BitMask32 &bits);
61 INLINE
void set_collide_bits(
const BitMask32 &bits);
65 INLINE
void disable();
66 INLINE
int is_enabled();
67 void set_auto_collide_world(
OdeWorld&);
80 virtual void write(ostream &out = cout,
unsigned int indent=0)
const;
81 operator bool ()
const;
87 EXTENSION(PyObject *convert()
const);
88 EXTENSION(INLINE PyObject *get_converted_geom(
int i)
const);
89 EXTENSION(INLINE PyObject *get_converted_space()
const);
92 EXTENSION(
int collide(PyObject* arg, PyObject* near_callback));
93 int set_collide_id(
int collide_id, dGeomID
id);
94 int set_collide_id(
OdeGeom& geom,
int collide_id);
95 void set_surface_type(
int surface_type, dGeomID
id);
96 void set_surface_type(
OdeGeom& geom,
int surface_type);
97 int get_surface_type(dGeomID o1);
98 int get_surface_type(
OdeGeom& geom);
99 int get_collide_id(dGeomID o1);
100 int get_collide_id(
OdeGeom& geom);
102 INLINE
void set_collision_event(
const string &event_name);
103 INLINE
string get_collision_event();
106 static void auto_callback(
void*, dGeomID, dGeomID);
108 INLINE dSpaceID
get_id()
const;
109 static OdeWorld* _static_auto_collide_world;
110 static OdeSpace* _static_auto_collide_space;
111 static dJointGroupID _static_auto_collide_joint_group;
112 static int contactCount;
113 string _collision_event;
118 dJointGroupID _auto_collide_joint_group;
126 register_type(_type_handle,
"OdeSpace",
127 TypedObject::get_class_type());
130 return get_class_type();
138 GeomSurfaceMap _geom_surface_map;
141 GeomCollideIdMap _geom_collide_id_map;
145 #include "odeSpace.I"
This is the base class for all three-component vectors and points.
static void init_type()
This function is declared non-inline to work around a compiler bug in g++ 2.96.
bool is_empty() const
Returns true if the ID is 0, meaning the OdeGeom does not point to a valid geom.
This is an abstract class that all classes which use TypeHandle, and also provide virtual functions t...
dGeomID get_id() const
Returns the underlying dGeomID.
TypeHandle is the identifier used to differentiate C++ class types.