ContactGeometryImpl Class Reference

#include <ContactGeometryImpl.h>

Inheritance diagram for ContactGeometryImpl:
HalfSpaceImpl SphereImpl TriangleMeshImpl

List of all members.

Public Member Functions

 ContactGeometryImpl (const std::string &type)
virtual ~ContactGeometryImpl ()
const std::string & getType () const
int getTypeIndex () const
virtual ContactGeometryImplclone () const =0
virtual Vec3 findNearestPoint (const Vec3 &position, bool &inside, UnitVec3 &normal) const =0
virtual bool intersectsRay (const Vec3 &origin, const UnitVec3 &direction, Real &distance, UnitVec3 &normal) const =0
virtual void getBoundingSphere (Vec3 &center, Real &radius) const =0
ContactGeometrygetMyHandle ()
void setMyHandle (ContactGeometry &h)
void clearMyHandle ()

Static Public Member Functions

static int getIndexForType (std::string type)

Protected Attributes

ContactGeometrymyHandle
const std::string & type
int typeIndex

Constructor & Destructor Documentation

ContactGeometryImpl ( const std::string &  type  ) 
virtual ~ContactGeometryImpl (  )  [inline, virtual]

Member Function Documentation

void clearMyHandle (  )  [inline]
virtual ContactGeometryImpl* clone (  )  const [pure virtual]

Implemented in HalfSpaceImpl, SphereImpl, and TriangleMeshImpl.

virtual Vec3 findNearestPoint ( const Vec3 position,
bool &  inside,
UnitVec3 normal 
) const [pure virtual]

Implemented in HalfSpaceImpl, SphereImpl, and TriangleMeshImpl.

virtual void getBoundingSphere ( Vec3 center,
Real &  radius 
) const [pure virtual]

Implemented in HalfSpaceImpl, SphereImpl, and TriangleMeshImpl.

static int getIndexForType ( std::string  type  )  [static]
ContactGeometry* getMyHandle (  )  [inline]
const std::string& getType (  )  const [inline]
int getTypeIndex (  )  const [inline]
virtual bool intersectsRay ( const Vec3 origin,
const UnitVec3 direction,
Real &  distance,
UnitVec3 normal 
) const [pure virtual]

Implemented in HalfSpaceImpl, SphereImpl, and TriangleMeshImpl.

void setMyHandle ( ContactGeometry h  )  [inline]

Member Data Documentation

ContactGeometry* myHandle [protected]
const std::string& type [protected]
int typeIndex [protected]

The documentation for this class was generated from the following file:

Generated on Wed Dec 30 11:05:14 2009 for SimTKcore by  doxygen 1.6.1