![]() |
A default calculation, it does nothing and can be used as a placeholder. More...
#include <SurgSim/Collision/DefaultContactCalculation.h>
Public Member Functions | |
DefaultContactCalculation (bool doAssert=false) | |
Constructor. More... | |
virtual | ~DefaultContactCalculation () |
Destructor. More... | |
virtual std::pair< int, int > | getShapeTypes () override |
Function that returns the shapes between which this class performs collision detection. More... | |
![]() | |
ContactCalculation () | |
Constructor. More... | |
virtual | ~ContactCalculation () |
Destructor. More... | |
void | calculateContact (std::shared_ptr< CollisionPair > pair) |
Function that handles asymmetric pair and calls the actual contact calculation routine of the sub class. More... | |
Private Member Functions | |
virtual void | doCalculateContact (std::shared_ptr< CollisionPair > pair) override |
Calculate the actual contact between two shapes of the given CollisionPair. More... | |
Private Attributes | |
bool | m_doAssert |
A default calculation, it does nothing and can be used as a placeholder.
|
explicit |
Constructor.
doAssert | If set the calculation will throw an exception if it is executed, this can be used to detect cases where a contact calculation is being called on a pair that should be implemented |
|
virtual |
Destructor.
|
overrideprivatevirtual |
Calculate the actual contact between two shapes of the given CollisionPair.
pair | The symmetric pair that is under consideration. |
Implements SurgSim::Collision::ContactCalculation.
|
overridevirtual |
Function that returns the shapes between which this class performs collision detection.
Implements SurgSim::Collision::ContactCalculation.
|
private |