#include <ContactGeometryImpl.h>
Public Member Functions | |
ContactGeometryImpl (const std::string &type) | |
virtual | ~ContactGeometryImpl () |
const std::string & | getType () const |
int | getTypeIndex () const |
virtual ContactGeometryImpl * | clone () 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 |
ContactGeometry * | getMyHandle () |
void | setMyHandle (ContactGeometry &h) |
void | clearMyHandle () |
Static Public Member Functions | |
static int | getIndexForType (std::string type) |
Protected Attributes | |
ContactGeometry * | myHandle |
const std::string & | type |
int | typeIndex |
ContactGeometryImpl | ( | const std::string & | type | ) |
virtual ~ContactGeometryImpl | ( | ) | [inline, virtual] |
const std::string& getType | ( | ) | const [inline] |
int getTypeIndex | ( | ) | const [inline] |
static int getIndexForType | ( | std::string | type | ) | [static] |
virtual ContactGeometryImpl* clone | ( | ) | const [pure virtual] |
Implemented in ContactGeometry::HalfSpaceImpl, ContactGeometry::SphereImpl, and ContactGeometry::TriangleMeshImpl.
virtual Vec3 findNearestPoint | ( | const Vec3 & | position, | |
bool & | inside, | |||
UnitVec3 & | normal | |||
) | const [pure virtual] |
Implemented in ContactGeometry::HalfSpaceImpl, ContactGeometry::SphereImpl, and ContactGeometry::TriangleMeshImpl.
virtual bool intersectsRay | ( | const Vec3 & | origin, | |
const UnitVec3 & | direction, | |||
Real & | distance, | |||
UnitVec3 & | normal | |||
) | const [pure virtual] |
Implemented in ContactGeometry::HalfSpaceImpl, ContactGeometry::SphereImpl, and ContactGeometry::TriangleMeshImpl.
ContactGeometry* getMyHandle | ( | ) | [inline] |
void setMyHandle | ( | ContactGeometry & | h | ) | [inline] |
void clearMyHandle | ( | ) | [inline] |
ContactGeometry* myHandle [protected] |
const std::string& type [protected] |
int typeIndex [protected] |