Physsim::PenaltyRestingContact Class Reference

Handles resting contact using a penalty method (i.e., springs and dampers that correct interpenetration). More...

#include <PenaltyRestingContact.h>

Inheritance diagram for Physsim::PenaltyRestingContact:

Physsim::RestingContactMethod Physsim::Base List of all members.

Public Member Functions

virtual void clone (BasePtr &cloned, bimap< BasePtr, BasePtr > *obj_map=NULL) const
 Clones this object.
virtual void load_state (BaseConstPtr object, bimap< BasePtr, BasePtr > *correspondence=NULL)
 Loads the state of this object.
virtual void save_state (BasePtr object, bimap< BasePtr, BasePtr > *correspondence=NULL) const
 Saves the state of this object.
virtual void process_resting_contacts (const std::list< ContactPtr > &contacts)
 Processes all resting contacts.
virtual void load_from_xml (XMLTreeConstPtr node, std::map< std::string, BasePtr > &id_map)
 Implements Base::load_from_xml().
virtual void save_to_xml (XMLTreePtr node, std::list< BaseConstPtr > &shared_objects) const
 Implements Base::save_to_xml().
virtual bool is_global_method () const
 Indicates that this is not a global method.

Detailed Description

Handles resting contact using a penalty method (i.e., springs and dampers that correct interpenetration).


Member Function Documentation

void PenaltyRestingContact::load_state ( BaseConstPtr  object,
bimap< BasePtr, BasePtr > *  correspondence = NULL 
) [virtual]

Loads the state of this object.

The underlying penalty resting contact method must have identical structure.

Reimplemented from Physsim::Base.

void PenaltyRestingContact::save_state ( BasePtr  object,
bimap< BasePtr, BasePtr > *  correspondence = NULL 
) const [virtual]

Saves the state of this object.

The underlying penalty resting contact method must have identical structure.

Reimplemented from Physsim::Base.

void PenaltyRestingContact::process_resting_contacts ( const std::list< ContactPtr > &  contacts  )  [virtual]

Processes all resting contacts.

Parameters:
contacts a set of contacts that have been determined to be resting (i.e., the relative normal velocity between the two bodies is less than zero and greater than some tolerance -epsilon.
simulator a pointer to the ContactSimulator that called this method

Implements Physsim::RestingContactMethod.


The documentation for this class was generated from the following files:
Generated on Wed Oct 24 14:54:23 2007 for Physsim by  doxygen 1.5.1