cCollisionSpheresGenericShape Class Reference

cCollisionSpheresGenericShape is an abstract class for shape primitives (such as triangles or lines) which are surrounded by spheres for the collision detector. More...

#include <CCollisionSpheresGeometry.h>

Inheritance diagram for cCollisionSpheresGenericShape:

cCollisionSpheresLine cCollisionSpheresTri List of all members.

Public Member Functions

 cCollisionSpheresGenericShape ()
 Constructor of cCollisionSpheresGenericShape.
virtual const cVector3dgetCenter () const=0
 Return center.
virtual double getRadius () const=0
 Return radius.
virtual bool computeCollision (cCollisionSpheresGenericShape *a_other, cGenericObject *&a_colObject, cTriangle *&a_colTriangle, cVector3d &a_colPoint, double &a_colSquareDistance)=0
 Determine whether this primitive intersects the given primitive.
virtual cCollisionSpheresLeafgetSphere ()
 Return pointer to bounding sphere of this primitive shape.
virtual void setSphere (cCollisionSpheresLeaf *a_sphere)
 Set pointer for the bounding sphere of this primitive shape.
bool operator< (cCollisionSpheresGenericShape *a_other)
 Overloaded less than operator (for sorting).

Static Public Attributes

static int m_split = 0
 Axis on which to sort.

Private Attributes

cCollisionSpheresLeafm_sphere
 Pointer to the collision sphere surrounding the primitive.

Detailed Description

cCollisionSpheresGenericShape is an abstract class for shape primitives (such as triangles or lines) which are surrounded by spheres for the collision detector.


The documentation for this class was generated from the following files:
Generated on Mon Jun 11 09:41:46 2007 for CHAI 3D by  doxygen 1.5.2