vrsode::CollisionSpace Class Reference

A space is a non-placeable geom that can contain other geoms. More...

#include <CollisionSpace.h>

Inheritance diagram for vrsode::CollisionSpace:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 CollisionSpace (VRS::SO< CollisionSpace >)
 ctor.
virtual ~CollisionSpace ()
 dtor.
dSpaceID spaceId () const
 get space id.
void addChild (VRS::SO< CollisionBody >)
 add child.
void addChild (dGeomID)
 add child.

Protected Member Functions

void setSpaceId (dSpaceID)

Private Attributes

dSpaceID m_spaceId

Detailed Description

A space is a non-placeable geom that can contain other geoms.

Space objects exist to make collision detection go faster.

Definition at line 17 of file CollisionSpace.h.


Constructor & Destructor Documentation

vrsode::CollisionSpace::CollisionSpace ( VRS::SO< CollisionSpace  ) 

ctor.

Definition at line 7 of file CollisionSpace.cpp.

vrsode::CollisionSpace::~CollisionSpace (  )  [virtual]

dtor.

Definition at line 12 of file CollisionSpace.cpp.


Member Function Documentation

dSpaceID vrsode::CollisionSpace::spaceId (  )  const

get space id.

returns the space id used by ode to identify the object.

Definition at line 18 of file CollisionSpace.cpp.

References m_spaceId.

Referenced by vrsode::CollisionSpaceSimple::~CollisionSpaceSimple().

Here is the caller graph for this function:

void vrsode::CollisionSpace::addChild ( VRS::SO< CollisionBody  ) 

add child.

adds a collision body into this space.

Definition at line 30 of file CollisionSpace.cpp.

References m_spaceId.

void vrsode::CollisionSpace::addChild ( dGeomID   ) 

add child.

adds a ode geometry into this space.

Definition at line 36 of file CollisionSpace.cpp.

References m_spaceId.

void vrsode::CollisionSpace::setSpaceId ( dSpaceID   )  [protected]

Definition at line 24 of file CollisionSpace.cpp.

References m_spaceId.

Referenced by vrsode::CollisionSpaceSimple::CollisionSpaceSimple().

Here is the caller graph for this function:


Member Data Documentation

dSpaceID vrsode::CollisionSpace::m_spaceId [private]

Definition at line 19 of file CollisionSpace.h.

Referenced by addChild(), setSpaceId(), and spaceId().


The documentation for this class was generated from the following files:
Generated on Fri May 11 21:02:16 2007 for Random Racer by  doxygen 1.5.1