CD_Solid Class Reference

#include <collisiondetectors/CD_Solid.h>

Inherits CD_BasicStyle, and CD_LinearContinuous.

Inheritance diagram for CD_Solid:

Inheritance graph
[legend]
Collaboration diagram for CD_Solid:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CD_Solid (Universe &universe)
 CD_Solid (const CD_Solid &right)
virtual ~CD_Solid ()
virtual CollisionDetectorBaseClone () const
virtual bool IsInterfering (const Configuration &config)
bool AddEntityToSolid (const Entity *entity)
int AddMeshToSolid (const Mesh &mesh)
void SetCollidingPairs () const
virtual void ActivateFrames (const unsigned int frame1, const unsigned int frame2)
virtual void DeactivateFrames (const unsigned int frame1, const unsigned int frame2)

Static Public Member Functions

static unsigned int GetNewIndex ()

Protected Member Functions

int AddCylinderToSolid (const MPK_Cylinder *cylinder)
void MarkIndexEntityRelationship (int index, const Entity *entity)

Protected Attributes

std::vector< const Mesh * > meshes

Private Attributes

std::vector< unsigned int > indexes
std::vector< std::set< unsigned
int > > 
frameSolid
int collisionDetectorID
std::vector< void * > shapeIDs

Static Private Attributes

static std::set< unsigned
int > 
allIndexesGlobal
static unsigned int firstUnusedIndex = 0
static int activeCollisionDetector = -1
static int maxCollisionDetector = -1
static int currentCollisionDetectorID = -1

Detailed Description

Definition at line 54 of file CD_Solid.h.


Constructor & Destructor Documentation

CD_Solid::CD_Solid Universe universe  ) 
 

Definition at line 72 of file CD_Solid.cpp.

References AddEntityToSolid(), CollisionDetectorBase::allGeometryUsed, CD_BasicStyle::entities, maxCollisionDetector, and CD_BasicStyle::theFrameManager.

Referenced by Clone().

Here is the call graph for this function:

CD_Solid::CD_Solid const CD_Solid right  ) 
 

Definition at line 97 of file CD_Solid.cpp.

CD_Solid::~CD_Solid  )  [virtual]
 

Definition at line 114 of file CD_Solid.cpp.


Member Function Documentation

void CD_Solid::ActivateFrames const unsigned int  frame1,
const unsigned int  frame2
[virtual]
 

Reimplemented from CD_BasicStyle.

Definition at line 358 of file CD_Solid.cpp.

int CD_Solid::AddCylinderToSolid const MPK_Cylinder cylinder  )  [protected]
 

Definition at line 419 of file CD_Solid.cpp.

bool CD_Solid::AddEntityToSolid const Entity entity  ) 
 

Definition at line 199 of file CD_Solid.cpp.

References AddMeshToSolid(), and ObjectGroup::Size().

Referenced by CD_Solid().

Here is the call graph for this function:

int CD_Solid::AddMeshToSolid const Mesh mesh  ) 
 

Definition at line 264 of file CD_Solid.cpp.

Referenced by AddEntityToSolid().

CollisionDetectorBase * CD_Solid::Clone  )  const [virtual]
 

Implements CD_BasicStyle.

Definition at line 144 of file CD_Solid.cpp.

References CD_Solid().

Here is the call graph for this function:

void CD_Solid::DeactivateFrames const unsigned int  frame1,
const unsigned int  frame2
[virtual]
 

Reimplemented from CD_BasicStyle.

Definition at line 391 of file CD_Solid.cpp.

unsigned int CD_Solid::GetNewIndex  )  [static]
 

Definition at line 349 of file CD_Solid.cpp.

References firstUnusedIndex.

bool CD_Solid::IsInterfering const Configuration config  )  [virtual]
 

Implements CD_Bool.

Definition at line 154 of file CD_Solid.cpp.

void CD_Solid::MarkIndexEntityRelationship int  index,
const Entity entity
[protected]
 

Definition at line 435 of file CD_Solid.cpp.

References allIndexesGlobal, Entity::BaseFrame(), firstUnusedIndex, frameSolid, and indexes.

Here is the call graph for this function:

void CD_Solid::SetCollidingPairs  )  const
 

Definition at line 308 of file CD_Solid.cpp.


Member Data Documentation

int CD_Solid::activeCollisionDetector = -1 [static, private]
 

Definition at line 145 of file CD_Solid.h.

std::set< unsigned int > CD_Solid::allIndexesGlobal [static, private]
 

Definition at line 125 of file CD_Solid.h.

Referenced by MarkIndexEntityRelationship().

int CD_Solid::collisionDetectorID [private]
 

Definition at line 155 of file CD_Solid.h.

int CD_Solid::currentCollisionDetectorID = -1 [static, private]
 

Definition at line 160 of file CD_Solid.h.

unsigned int CD_Solid::firstUnusedIndex = 0 [static, private]
 

Definition at line 135 of file CD_Solid.h.

Referenced by GetNewIndex(), and MarkIndexEntityRelationship().

std::vector< std::set< unsigned int > > CD_Solid::frameSolid [private]
 

Definition at line 140 of file CD_Solid.h.

Referenced by MarkIndexEntityRelationship().

std::vector< unsigned int> CD_Solid::indexes [private]
 

Definition at line 130 of file CD_Solid.h.

Referenced by MarkIndexEntityRelationship().

int CD_Solid::maxCollisionDetector = -1 [static, private]
 

Definition at line 150 of file CD_Solid.h.

Referenced by CD_Solid().

std::vector< const Mesh* > CD_Solid::meshes [protected]
 

Definition at line 111 of file CD_Solid.h.

std::vector< void*> CD_Solid::shapeIDs [private]
 

Definition at line 165 of file CD_Solid.h.


The documentation for this class was generated from the following files:
Generated on Sat Apr 1 21:45:28 2006 for Motion Planning Kernel by  doxygen 1.4.6-NO