Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
OdeSpace Class Reference
Inheritance diagram for OdeSpace:
TypedObject MemoryBase OdeHashSpace OdeQuadTreeSpace OdeSimpleSpace

Public Member Functions

 OdeSpace (dSpaceID id)
 
void add (OdeGeom &geom)
 
void add (OdeSpace &space)
 
void auto_collide ()
 
void clean ()
 
OdeHashSpace convert_to_hash_space () const
 
OdeQuadTreeSpace convert_to_quad_tree_space () const
 
OdeSimpleSpace convert_to_simple_space () const
 
void destroy ()
 
void disable ()
 
void enable ()
 
virtual TypeHandle force_init_type ()
 
void get_AABB (LVecBase3f &min, LVecBase3f &max) const
 
BitMask32 get_category_bits ()
 
int get_class () const
 
int get_cleanup () const
 
BitMask32 get_collide_bits ()
 
int get_collide_id (dGeomID o1)
 
int get_collide_id (OdeGeom &geom)
 
std::string get_collision_event ()
 
OdeGeom get_geom (int i)
 
dSpaceID get_id () const
 Returns the underlying dSpaceID.
 
int get_num_geoms () const
 
OdeSpace get_space () const
 
int get_surface_type (dGeomID o1)
 
int get_surface_type (OdeGeom &geom)
 
virtual TypeHandle get_type () const
 
bool is_empty () const
 Returns true if the ID is 0, meaning the OdeSpace does not point to a valid space.
 
int is_enabled ()
 
int is_space ()
 
 operator bool () const
 
int query (const OdeGeom &geom) const
 
int query (const OdeSpace &space) const
 
void remove (OdeGeom &geom)
 
void remove (OdeSpace &space)
 
void set_auto_collide_joint_group (OdeJointGroup &)
 
void set_auto_collide_world (OdeWorld &)
 
void set_category_bits (const BitMask32 &bits)
 
void set_cleanup (int mode)
 
void set_collide_bits (const BitMask32 &bits)
 
int set_collide_id (int collide_id, dGeomID id)
 
int set_collide_id (OdeGeom &geom, int collide_id)
 
void set_collision_event (const std::string &event_name)
 
void set_surface_type (int surface_type, dGeomID id)
 
void set_surface_type (OdeGeom &geom, int surface_type)
 
virtual void write (std::ostream &out=std::cout, unsigned int indent=0) const
 
- Public Member Functions inherited from TypedObject
 TypedObject (const TypedObject &copy)=default
 
TypedObjectas_typed_object ()
 Returns the object, upcast (if necessary) to a TypedObject pointer.
 
const TypedObjectas_typed_object () const
 Returns the object, upcast (if necessary) to a TypedObject pointer.
 
int get_best_parent_from_Set (const std::set< int > &) const
 
int get_type_index () const
 Returns the internal index number associated with this object's TypeHandle, a unique number for each different type.
 
bool is_exact_type (TypeHandle handle) const
 Returns true if the current object is the indicated type exactly.
 
bool is_of_type (TypeHandle handle) const
 Returns true if the current object is or derives from the indicated type.
 
TypedObjectoperator= (const TypedObject &copy)=default
 
- Public Member Functions inherited from MemoryBase
void operator delete (void *, void *)
 
void operator delete (void *ptr)
 
void operator delete[] (void *, void *)
 
void operator delete[] (void *ptr)
 
void * operator new (size_t size)
 
void * operator new (size_t size, void *ptr)
 
void * operator new[] (size_t size)
 
void * operator new[] (size_t size, void *ptr)
 

Static Public Member Functions

static void auto_callback (void *, dGeomID, dGeomID)
 
static TypeHandle get_class_type ()
 
static void init_type ()
 
- Static Public Member Functions inherited from TypedObject
static TypeHandle get_class_type ()
 
static void init_type ()
 This function is declared non-inline to work around a compiler bug in g++ 2.96.
 

Public Attributes

std::string _collision_event
 
- Public Attributes inherited from TypedObject
 get_type
 

Static Public Attributes

static dJointGroupID _static_auto_collide_joint_group
 
static OdeSpace_static_auto_collide_space
 
static OdeWorld_static_auto_collide_world
 
static int contactCount
 

Friends

class OdeGeom
 

Detailed Description

Definition at line 37 of file odeSpace.h.

Constructor & Destructor Documentation

◆ OdeSpace()

OdeSpace::OdeSpace ( dSpaceID id)

Definition at line 31 of file odeSpace.cxx.

◆ ~OdeSpace()

OdeSpace::~OdeSpace ( )
virtual

Definition at line 38 of file odeSpace.cxx.

Member Function Documentation

◆ add() [1/2]

void OdeSpace::add ( OdeGeom & geom)

Definition at line 72 of file odeSpace.cxx.

◆ add() [2/2]

void OdeSpace::add ( OdeSpace & space)

Definition at line 60 of file odeSpace.cxx.

◆ auto_callback()

void OdeSpace::auto_callback ( void * data,
dGeomID o1,
dGeomID o2 )
static

Definition at line 130 of file odeSpace.cxx.

◆ auto_collide()

void OdeSpace::auto_collide ( )

Definition at line 117 of file odeSpace.cxx.

◆ clean()

void OdeSpace::clean ( )

Definition at line 84 of file odeSpace.cxx.

◆ convert_to_hash_space()

OdeHashSpace OdeSpace::convert_to_hash_space ( ) const

Definition at line 201 of file odeSpace.cxx.

◆ convert_to_quad_tree_space()

OdeQuadTreeSpace OdeSpace::convert_to_quad_tree_space ( ) const

Definition at line 208 of file odeSpace.cxx.

◆ convert_to_simple_space()

OdeSimpleSpace OdeSpace::convert_to_simple_space ( ) const

Definition at line 194 of file odeSpace.cxx.

◆ destroy()

void OdeSpace::destroy ( )

Definition at line 42 of file odeSpace.cxx.

◆ disable()

void OdeSpace::disable ( )
inline

Definition at line 95 of file odeSpace.I.

◆ enable()

void OdeSpace::enable ( )
inline

Definition at line 90 of file odeSpace.I.

◆ force_init_type()

virtual TypeHandle OdeSpace::force_init_type ( )
inlinevirtual

Implements TypedObject.

Definition at line 130 of file odeSpace.h.

◆ get_AABB()

void OdeSpace::get_AABB ( LVecBase3f & min,
LVecBase3f & max ) const
inline

Definition at line 52 of file odeSpace.I.

◆ get_category_bits()

BitMask32 OdeSpace::get_category_bits ( )
inline

Definition at line 80 of file odeSpace.I.

◆ get_class()

int OdeSpace::get_class ( ) const
inline

Definition at line 65 of file odeSpace.I.

◆ get_class_type()

static TypeHandle OdeSpace::get_class_type ( )
inlinestatic

Definition at line 119 of file odeSpace.h.

◆ get_cleanup()

int OdeSpace::get_cleanup ( ) const
inline

Definition at line 37 of file odeSpace.I.

◆ get_collide_bits()

BitMask32 OdeSpace::get_collide_bits ( )
inline

Definition at line 85 of file odeSpace.I.

◆ get_collide_id() [1/2]

int OdeSpace::get_collide_id ( dGeomID o1)

Definition at line 262 of file odeSpace.cxx.

◆ get_collide_id() [2/2]

int OdeSpace::get_collide_id ( OdeGeom & geom)

Definition at line 255 of file odeSpace.cxx.

◆ get_collision_event()

std::string OdeSpace::get_collision_event ( )
inline

Definition at line 110 of file odeSpace.I.

◆ get_geom()

OdeGeom OdeSpace::get_geom ( int i)

Definition at line 90 of file odeSpace.cxx.

◆ get_id()

dSpaceID OdeSpace::get_id ( ) const
inline

Returns the underlying dSpaceID.

Definition at line 27 of file odeSpace.I.

◆ get_num_geoms()

int OdeSpace::get_num_geoms ( ) const
inline

Definition at line 42 of file odeSpace.I.

◆ get_space()

OdeSpace OdeSpace::get_space ( ) const
inline

Definition at line 47 of file odeSpace.I.

◆ get_surface_type() [1/2]

int OdeSpace::get_surface_type ( dGeomID o1)

Definition at line 227 of file odeSpace.cxx.

◆ get_surface_type() [2/2]

int OdeSpace::get_surface_type ( OdeGeom & geom)

Definition at line 236 of file odeSpace.cxx.

◆ get_type()

virtual TypeHandle OdeSpace::get_type ( ) const
inlinevirtual

Implements TypedObject.

Definition at line 127 of file odeSpace.h.

◆ init_type()

static void OdeSpace::init_type ( )
inlinestatic

Definition at line 122 of file odeSpace.h.

◆ is_empty()

bool OdeSpace::is_empty ( ) const
inline

Returns true if the ID is 0, meaning the OdeSpace does not point to a valid space.

It is an error to call a method on an empty space. Note that an empty OdeSpace also evaluates to False.

Definition at line 19 of file odeSpace.I.

◆ is_enabled()

int OdeSpace::is_enabled ( )
inline

Definition at line 100 of file odeSpace.I.

◆ is_space()

int OdeSpace::is_space ( )
inline

Definition at line 60 of file odeSpace.I.

◆ operator bool()

OdeSpace::operator bool ( ) const

Definition at line 102 of file odeSpace.cxx.

◆ query() [1/2]

int OdeSpace::query ( const OdeGeom & geom) const

Definition at line 48 of file odeSpace.cxx.

◆ query() [2/2]

int OdeSpace::query ( const OdeSpace & space) const

Definition at line 54 of file odeSpace.cxx.

◆ remove() [1/2]

void OdeSpace::remove ( OdeGeom & geom)

Definition at line 78 of file odeSpace.cxx.

◆ remove() [2/2]

void OdeSpace::remove ( OdeSpace & space)

Definition at line 66 of file odeSpace.cxx.

◆ set_auto_collide_joint_group()

void OdeSpace::set_auto_collide_joint_group ( OdeJointGroup & joint_group)

Definition at line 112 of file odeSpace.cxx.

◆ set_auto_collide_world()

void OdeSpace::set_auto_collide_world ( OdeWorld & world)

Definition at line 107 of file odeSpace.cxx.

◆ set_category_bits()

void OdeSpace::set_category_bits ( const BitMask32 & bits)
inline

Definition at line 70 of file odeSpace.I.

◆ set_cleanup()

void OdeSpace::set_cleanup ( int mode)
inline

Definition at line 32 of file odeSpace.I.

◆ set_collide_bits()

void OdeSpace::set_collide_bits ( const BitMask32 & bits)
inline

Definition at line 75 of file odeSpace.I.

◆ set_collide_id() [1/2]

int OdeSpace::set_collide_id ( int collide_id,
dGeomID id )

Definition at line 243 of file odeSpace.cxx.

◆ set_collide_id() [2/2]

int OdeSpace::set_collide_id ( OdeGeom & geom,
int collide_id )

Definition at line 249 of file odeSpace.cxx.

◆ set_collision_event()

void OdeSpace::set_collision_event ( const std::string & event_name)
inline

Definition at line 105 of file odeSpace.I.

◆ set_surface_type() [1/2]

void OdeSpace::set_surface_type ( int surface_type,
dGeomID id )

Definition at line 216 of file odeSpace.cxx.

◆ set_surface_type() [2/2]

void OdeSpace::set_surface_type ( OdeGeom & geom,
int surface_type )

Definition at line 221 of file odeSpace.cxx.

◆ write()

void OdeSpace::write ( std::ostream & out = std::cout,
unsigned int indent = 0 ) const
virtual

Definition at line 97 of file odeSpace.cxx.

Friends And Related Symbol Documentation

◆ OdeGeom

friend class OdeGeom
friend

Definition at line 38 of file odeSpace.h.

Member Data Documentation

◆ _collision_event

std::string OdeSpace::_collision_event

Definition at line 111 of file odeSpace.h.

◆ _static_auto_collide_joint_group

dJointGroupID OdeSpace::_static_auto_collide_joint_group
static

Definition at line 109 of file odeSpace.h.

◆ _static_auto_collide_space

OdeSpace * OdeSpace::_static_auto_collide_space
static

Definition at line 108 of file odeSpace.h.

◆ _static_auto_collide_world

OdeWorld * OdeSpace::_static_auto_collide_world
static

Definition at line 107 of file odeSpace.h.

◆ contactCount

int OdeSpace::contactCount
static

Definition at line 110 of file odeSpace.h.


The documentation for this class was generated from the following files: