Logo Search packages:      
Sourcecode: blender version File versions  Download package

btGImpactQuantizedBvh Class Reference

#include <btGImpactQuantizedBvh.h>

List of all members.


Detailed Description

Structure for containing Boxes.

This class offers an structure for managing a box tree of primitives. Requires a Primitive prototype (like btPrimitiveManagerBase )

Definition at line 226 of file btGImpactQuantizedBvh.h.

bool boxQuery (const btAABB &box, btAlignedObjectArray< int > &collided_results) const
 returns the indices of the primitives in the m_primitive_manager
SIMD_FORCE_INLINE bool boxQueryTrans (const btAABB &box, const btTransform &transform, btAlignedObjectArray< int > &collided_results) const
 returns the indices of the primitives in the m_primitive_manager
void buildSet ()
 this rebuild the entire set
SIMD_FORCE_INLINE const
BT_QUANTIZED_BVH_NODE * 
get_node_pointer (int index=0) const
SIMD_FORCE_INLINE int getEscapeNodeIndex (int nodeindex) const
SIMD_FORCE_INLINE int getLeftNode (int nodeindex) const
SIMD_FORCE_INLINE void getNodeBound (int nodeindex, btAABB &bound) const
SIMD_FORCE_INLINE int getNodeCount () const
 node count
SIMD_FORCE_INLINE int getNodeData (int nodeindex) const
SIMD_FORCE_INLINE void getNodeTriangle (int nodeindex, btPrimitiveTriangle &triangle) const
SIMD_FORCE_INLINE int getRightNode (int nodeindex) const
SIMD_FORCE_INLINE bool hasHierarchy () const
 tells if this set has hierarcht
SIMD_FORCE_INLINE bool isLeafNode (int nodeindex) const
 tells if the node is a leaf
SIMD_FORCE_INLINE bool isTrimesh () const
 tells if this set is a trimesh
bool rayQuery (const btVector3 &ray_dir, const btVector3 &ray_origin, btAlignedObjectArray< int > &collided_results) const
 returns the indices of the primitives in the m_primitive_manager
SIMD_FORCE_INLINE void setNodeBound (int nodeindex, const btAABB &bound)
SIMD_FORCE_INLINE void update ()
 this attemps to refit the box set.
static void find_collision (btGImpactQuantizedBvh *boxset1, const btTransform &trans1, btGImpactQuantizedBvh *boxset2, const btTransform &trans2, btPairSet &collision_pairs)
static float getAverageTreeCollisionTime ()

Public Member Functions

 btGImpactQuantizedBvh (btPrimitiveManagerBase *primitive_manager)
 this constructor doesn't build the tree. you must call buildSet
 btGImpactQuantizedBvh ()
 this constructor doesn't build the tree. you must call buildSet
SIMD_FORCE_INLINE btAABB getGlobalBox () const
SIMD_FORCE_INLINE
btPrimitiveManagerBase
getPrimitiveManager () const
SIMD_FORCE_INLINE void setPrimitiveManager (btPrimitiveManagerBase *primitive_manager)

Protected Member Functions

void refit ()

Protected Attributes

btQuantizedBvhTree m_box_tree
btPrimitiveManagerBasem_primitive_manager

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

Generated by  Doxygen 1.6.0   Back to index