CollisionAlgorithmContainerVsShape Class Reference

#include <rimCollisionAlgorithmContainerVsShape.h>

Inheritance diagram for CollisionAlgorithmContainerVsShape:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 CollisionAlgorithmContainerVsShape ()
 CollisionAlgorithmContainerVsShape (CollisionAlgorithmDispatcher *newDispatcher, const CollisionShapeType &shapeType)
 CollisionAlgorithmContainerVsShape (const CollisionAlgorithmContainerVsShape &other)
CollisionAlgorithmContainerVsShapeoperator= (const CollisionAlgorithmContainerVsShape &other)
virtual void testForCollisions (CollisionResultSet &result)
 Iterate through all cached pairs and add all colliding pairs to the result set.
virtual bool testForCollisions (const CollisionPair &pair, CollisionManifold *manifold)
 Test for collisions between two shape instances immediately.
virtual
CollisionAlgorithmContainerVsShape
clone () const
 Construct a copy of this algorithm and return a pointer to it.
virtual const CollisionShapeTypegetShapeType1 () const
 Get a reference to the type of the first shape type this algorithm tests.
virtual const CollisionShapeTypegetShapeType2 () const
 Get a reference to the type of the second shape type this algorithm tests.

Private Attributes

CollisionAlgorithmDispatcherdispatcher
CollisionShapeType type2

Static Private Attributes

static const CollisionShapeType type1 = "Container"


Constructor & Destructor Documentation

CollisionAlgorithmContainerVsShape::CollisionAlgorithmContainerVsShape (  )  [inline]

CollisionAlgorithmContainerVsShape::CollisionAlgorithmContainerVsShape ( CollisionAlgorithmDispatcher newDispatcher,
const CollisionShapeType shapeType 
) [inline]

CollisionAlgorithmContainerVsShape::CollisionAlgorithmContainerVsShape ( const CollisionAlgorithmContainerVsShape other  )  [inline]


Member Function Documentation

CollisionAlgorithmContainerVsShape& CollisionAlgorithmContainerVsShape::operator= ( const CollisionAlgorithmContainerVsShape other  )  [inline]

void CollisionAlgorithmContainerVsShape::testForCollisions ( CollisionResultSet result  )  [virtual]

Iterate through all cached pairs and add all colliding pairs to the result set.

Implements CollisionAlgorithm.

bool CollisionAlgorithmContainerVsShape::testForCollisions ( const CollisionPair pair,
CollisionManifold manifold 
) [virtual]

Test for collisions between two shape instances immediately.

If the manifold parameter is equal to NULL, then no contact information is stored. Otherwise, the contact points of the colliding shapes are added to the object pointed to by the manifold parameter if there are any. The method returns a boolean value indicating whether or not the shapes are colliding.

Parameters:
shape1 - the shape to test for collisions versus the second shape.
shape2 - the shape to test for collisions versus the first shape.
Returns:
whether or not the shapes are colliding.

Implements CollisionAlgorithm.

virtual CollisionAlgorithmContainerVsShape* CollisionAlgorithmContainerVsShape::clone (  )  const [inline, virtual]

Construct a copy of this algorithm and return a pointer to it.

Implements CollisionAlgorithm.

virtual const CollisionShapeType& CollisionAlgorithmContainerVsShape::getShapeType1 (  )  const [inline, virtual]

Get a reference to the type of the first shape type this algorithm tests.

Implements CollisionAlgorithm.

virtual const CollisionShapeType& CollisionAlgorithmContainerVsShape::getShapeType2 (  )  const [inline, virtual]

Get a reference to the type of the second shape type this algorithm tests.

Implements CollisionAlgorithm.


Member Data Documentation

CollisionAlgorithmDispatcher* CollisionAlgorithmContainerVsShape::dispatcher [private]

CollisionShapeType CollisionAlgorithmContainerVsShape::type2 [private]

RIM_PHYSICS_NAMESPACE_START const CollisionShapeType CollisionAlgorithmContainerVsShape::type1 = "Container" [static, private]


The documentation for this class was generated from the following files:
Generated on Tue Aug 26 00:03:18 2008 for Rim Physics by  doxygen 1.5.4