Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

oxygen::RecorderHandler Class Reference

CollisionHandler that accumulates collision information of the Collider it belongs to. More...

#include <recorderhandler.h>

Inheritance diagram for oxygen::RecorderHandler:

Inheritance graph
[legend]
Collaboration diagram for oxygen::RecorderHandler:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::set< boost::weak_ptr<
Collider > > 
TCollisionSet
typedef std::list< boost::weak_ptr<
Node > > 
TParentList

Public Member Functions

 RecorderHandler ()
virtual ~RecorderHandler ()
virtual void HandleCollision (boost::shared_ptr< Collider > collidee, dContact &contact)
 stores the collidee into the internal CollisionSet
void Clear ()
 removes all stored collisions from the recorder
void GetParentsSupportingClass (const std::string &name, TParentList &list)
 constructs a list of nodes that are parent nodes of the stored collidee nodes and are an instance of or are derived from the given class.

Protected Attributes

TCollisionSet mCollisionSet

Detailed Description

CollisionHandler that accumulates collision information of the Collider it belongs to.

It is the resonsibility of the user to reset the recorder.

Definition at line 34 of file recorderhandler.h.


Member Typedef Documentation

typedef std::set<boost::weak_ptr<Collider> > oxygen::RecorderHandler::TCollisionSet
 

Definition at line 37 of file recorderhandler.h.

typedef std::list<boost::weak_ptr<Node> > oxygen::RecorderHandler::TParentList
 

Definition at line 38 of file recorderhandler.h.


Constructor & Destructor Documentation

oxygen::RecorderHandler::RecorderHandler  )  [inline]
 

Definition at line 41 of file recorderhandler.h.

virtual oxygen::RecorderHandler::~RecorderHandler  )  [inline, virtual]
 

Definition at line 42 of file recorderhandler.h.


Member Function Documentation

void RecorderHandler::Clear  ) 
 

removes all stored collisions from the recorder

Definition at line 36 of file recorderhandler.cpp.

References mCollisionSet.

void RecorderHandler::GetParentsSupportingClass const std::string &  name,
TParentList list
 

constructs a list of nodes that are parent nodes of the stored collidee nodes and are an instance of or are derived from the given class.

Parameters:
name is the name of the class the parent nodes must support
list is the list that receives the parent nodes

Definition at line 43 of file recorderhandler.cpp.

void RecorderHandler::HandleCollision boost::shared_ptr< Collider collidee,
dContact &  contact
[virtual]
 

stores the collidee into the internal CollisionSet

Parameters:
collidee is the geom ID of the colliders collision partner
holds the contact points between the two affected geoms as returned from the ODE dCollide function

Implements oxygen::CollisionHandler.

Definition at line 30 of file recorderhandler.cpp.


Member Data Documentation

TCollisionSet oxygen::RecorderHandler::mCollisionSet [protected]
 

Definition at line 70 of file recorderhandler.h.

Referenced by Clear().


The documentation for this class was generated from the following files:
Generated on Thu Apr 6 15:46:27 2006 for rcssserver3d by  doxygen 1.4.4