ScummVM API documentation
dgCollisionBVH Class Reference
Inheritance diagram for dgCollisionBVH:
dgCollisionMesh dgAABBPolygonSoup dgCollision dgPolygonSoupDatabase

Classes

struct  dgBVHRay
 

Public Member Functions

 dgCollisionBVH (dgMemoryAllocator *const allocator)
 
 dgCollisionBVH (dgWorld *const world, dgDeserialize deserialization, void *const userData)
 
void BeginBuild ()
 
void AddFace (dgInt32 vertexCount, const dgFloat32 *const vertexPtr, dgInt32 strideInBytes, dgInt32 faceAttribute)
 
void EndBuild (dgInt32 optimize)
 
void SetCollisionRayCastCallback (dgCollisionBVHUserRayCastCallback rayCastCallback)
 
dgCollisionBVHUserRayCastCallback GetDebugRayCastCallback () const
 
void GetVertexListIndexList (const dgVector &p0, const dgVector &p1, dgGetVertexListIndexList &data) const
 
- Public Member Functions inherited from dgCollisionMesh
 dgCollisionMesh (dgMemoryAllocator *const allocator, dgCollisionID type)
 
 dgCollisionMesh (dgWorld *const world, dgDeserialize deserialization, void *const userData)
 
void SetCollisionCallback (dgCollisionMeshCollisionCallback debugCallback)
 
virtual void * GetUserData () const
 
virtual dgFloat32 GetVolume () const
 
virtual dgFloat32 GetBoxMinRadius () const
 
virtual dgFloat32 GetBoxMaxRadius () const
 
virtual void CalculateInertia (dgVector &inertia, dgVector &origin) const
 
dgCollisionMeshCollisionCallback GetDebugCollisionCallback () const
 
- Public Member Functions inherited from dgCollision
const dgMatrixGetOffsetMatrix () const
 
void SetOffsetMatrix (const dgMatrix &matrix)
 
dgCollisionID GetCollisionPrimityType () const
 
dgUnsigned32 SetUserDataID () const
 
void SetUserDataID (dgUnsigned32 userData)
 
dgInt32 IsType (RTTI type) const
 
virtual void SetUserData (void *const userData)
 
virtual bool IsEdgeIntersection () const
 
virtual void SerializeLow (dgSerialize callback, void *const userData) const
 
dgUnsigned32 GetSignature () const
 
virtual dgMatrix ModifierGetMatrix () const
 
virtual void ModifierSetMatrix (const dgMatrix &matrix)
 
virtual bool IsTriggerVolume () const
 
virtual void SetAsTriggerVolume (bool mode)
 
virtual void SetBreakImpulse (dgFloat32 force)
 
virtual dgFloat32 GetBreakImpulse () const
 
dgCollisionAddRef ()
 
virtual dgInt32 Release ()
 
dgInt32 GetRefCount () const
 
dgMemoryAllocatorGetAllocator () const
 
- Public Member Functions inherited from dgAABBPolygonSoup
dgInt32 GetIndexCount () const
 
dgInt32 * GetIndexPool () const
 
virtual void GetAABB (dgVector &p0, dgVector &p1) const
 
virtual void Deserialize (dgDeserialize callback, void *const userData)
 
- Public Member Functions inherited from dgPolygonSoupDatabase
dgFloat32 GetRadius () const
 
dgInt32 GetVertexCount () const
 
dgInt32 GetStrideInBytes () const
 
dgFloat32 * GetLocalVertexPool () const
 
dgUnsigned32 GetTagId (const dgInt32 *face) const
 
void SetTagId (const dgInt32 *face, dgUnsigned32 newID) const
 

Public Attributes

dgCollisionBVH::dgBVHRay DG_GCC_VECTOR_ALIGMENT
 
- Public Attributes inherited from dgCollisionMesh
DG_MSC_VECTOR_ALIGMENT class dgCollisionMesh::dgGetVertexListIndexList DG_GCC_VECTOR_ALIGMENT
 
dgCollisionMesh::dgCollisionConvexPolygon DG_GCC_VECTOR_ALIGMENT
 

Additional Inherited Members

- Public Types inherited from dgCollision
enum  RTTI {
  dgCollisionNull_RTTI = 1 << 0, dgCollisionBox_RTTI = 1 << 1, dgCollisionCone_RTTI = 1 << 2, dgCollisionSphere_RTTI = 1 << 3,
  dgCollisionEllipse_RTTI = 1 << 4, dgCollisionCapsule_RTTI = 1 << 5, dgCollisionCylinder_RTTI = 1 << 6, dgCollisionConvexHull_RTTI = 1 << 7,
  dgCollisionChamferCylinder_RTTI = 1 << 8, dgCollisionConvexModifier_RTTI = 1 << 9, dgCollisionConvexPolygon_RTTI = 1 << 10, dgConvexCollision_RTTI = 1 << 11,
  dgCollisionCompound_RTTI = 1 << 12, dgCollisionBVH_RTTI = 1 << 13, dgCollisionMesh_RTTI = 1 << 14, dgCollisionUserMesh_RTTI = 1 << 15,
  dgCollisionHeightField_RTTI = 1 << 16, dgCollisionScene_RTTI = 1 << 17, dgCollisionCompoundBreakable_RTTI = 1 << 18
}
 
- Static Public Member Functions inherited from dgCollision
static dgUnsigned32 Quantize (dgFloat32 value)
 
static dgUnsigned32 MakeCRC (void *buffer, int size)
 
- Protected Member Functions inherited from dgCollisionMesh
virtual void SetCollisionBBox (const dgVector &p0, const dgVector &p1)
 
- Protected Member Functions inherited from dgCollision
 dgCollision (dgMemoryAllocator *const allocator, dgUnsigned32 signature, const dgMatrix &matrix, dgCollisionID id)
 
 dgCollision (dgWorld *const world, dgDeserialize deserialization, void *const userData)
 
void SetSignature (dgInt32 signature)
 
- Protected Member Functions inherited from dgAABBPolygonSoup
void * GetRootNode () const
 
const void * GetBackNode (const void *const root) const
 
const void * GetFrontNode (const void *const root) const
 
void GetNodeAABB (const void *const root, dgVector &p0, dgVector &p1) const
 
void Create (const dgPolygonSoupDatabaseBuilder &builder, bool optimizedBuild)
 
virtual void ForAllSectors (const dgVector &min, const dgVector &max, dgAABBIntersectCallback callback, void *const context) const
 
virtual void ForAllSectorsSimd (const dgVector &min, const dgVector &max, dgAABBIntersectCallback callback, void *const context) const
 
virtual void ForAllSectorsRayHit (const dgFastRayTest &ray, dgRayIntersectCallback callback, void *const context) const
 
virtual void ForAllSectorsRayHitSimd (const dgFastRayTest &ray, dgRayIntersectCallback callback, void *const context) const
 
virtual dgVector ForAllSectorsSupportVectex (const dgVector &dir) const
 
dgFloat32 CalculateFaceMaxSize (dgTriplex *const vertex, dgInt32 indexCount, const dgInt32 *const indexArray) const
 
- Protected Member Functions inherited from dgPolygonSoupDatabase
 dgPolygonSoupDatabase (const char *name=NULL)
 
- Protected Attributes inherited from dgCollisionMesh
dgVector m_boxSize
 
dgVector m_boxOrigin
 
dgMemoryAllocatorm_allocator
 
dgCollisionMeshCollisionCallback m_debugCallback
 
dgCollisionConvexPolygonm_polygon [DG_MAXIMUN_THREADS]
 
- Protected Attributes inherited from dgCollision
dgMatrix m_offset
 
dgMemoryAllocatorm_allocator
 
dgInt32 m_rtti
 
dgInt32 m_refCount
 
dgUnsigned32 m_userDataID
 
dgUnsigned32 m_signature
 
dgCollisionID m_collsionId
 
- Protected Attributes inherited from dgPolygonSoupDatabase
dgInt32 m_vertexCount
 
dgInt32 m_strideInBytes
 
dgFloat32 * m_localVertex
 

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