VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtBvhCollisionObject Class Reference
Inheritance diagram for DtBvhCollisionObject:
Inheritance graph
[legend]

Public Member Functions

 DtBvhCollisionObject ()
 
void setCollisionShape (btCollisionShape *shape) override
 
bool buildBvh () override
 
bool enabled () const override
 
bool isBvhBuilt () const
 
boost::shared_ptr
< btCollisionShape > 
bulletCollisionShape () const override
 
unsigned int numberOfTriangles () const override
 
double radius () const override
 
DtSurface triangleSurface (unsigned int triangleIndex) const override
 
DynamicFeatures dynamicFeatures () const override
 
const btTransform & worldTransform () const override
 
- Public Member Functions inherited from DtCollisionObjectInterface
virtual ~DtCollisionObjectInterface ()
 

Protected Attributes

DtBvhTriangleMeshShape::Ptr myShape
 

Additional Inherited Members

- Public Types inherited from DtCollisionObjectInterface
typedef std::vector
< boost::shared_ptr
< makVrv::DtDynamicTerrainFeature > > 
DynamicFeatures
 

Constructor & Destructor Documentation

DtBvhCollisionObject::DtBvhCollisionObject ( )

Member Function Documentation

void DtBvhCollisionObject::setCollisionShape ( btCollisionShape *  shape)
override
bool DtBvhCollisionObject::buildBvh ( )
overridevirtual

Build the bvh with mutex locked. Call as many times as you like, will only build once.

Returns
True if building bvh was successful.

Implements DtCollisionObjectInterface.

bool DtBvhCollisionObject::enabled ( ) const
overridevirtual

Intersections will ignore this object if this returns false.

Implements DtCollisionObjectInterface.

Reimplemented in ConvertToBulletVisitor::DtSwitchableCollisionObject, and DtEntityTerrainGeometryHandle::CollisionObject.

bool DtBvhCollisionObject::isBvhBuilt ( ) const
virtual
boost::shared_ptr<btCollisionShape> DtBvhCollisionObject::bulletCollisionShape ( ) const
overridevirtual

Access the underlying bullet collision shape.

Implements DtCollisionObjectInterface.

unsigned int DtBvhCollisionObject::numberOfTriangles ( ) const
overridevirtual

Return number of triangles in this object (ignores instancing).

Implements DtCollisionObjectInterface.

double DtBvhCollisionObject::radius ( ) const
overridevirtual

Returns the maximum distance of all points from the origin of this object.

Implements DtCollisionObjectInterface.

DtSurface DtBvhCollisionObject::triangleSurface ( unsigned int  triangleIndex) const
overridevirtual

Return the surface of a triangle at a given index.

Implements DtCollisionObjectInterface.

DynamicFeatures DtBvhCollisionObject::dynamicFeatures ( ) const
overridevirtual

Return all the dynamic features which contain this object.

Implements DtCollisionObjectInterface.

Reimplemented in ConvertToBulletVisitor::DtCollisionObject.

const btTransform& DtBvhCollisionObject::worldTransform ( ) const
overridevirtual

Access the world transform of the collision object.

Implements DtCollisionObjectInterface.

Member Data Documentation

DtBvhTriangleMeshShape::Ptr DtBvhCollisionObject::myShape
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)