Bullet Collision Detection & Physics Library
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
btGImpactQuantizedBvh Class Reference

Structure for containing Boxes. More...

#include <btGImpactQuantizedBvh.h>

Collaboration diagram for btGImpactQuantizedBvh:
Collaboration graph
[legend]

Public Member Functions

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

Protected Member Functions

void refit ()
 

Protected Attributes

btQuantizedBvhTree m_box_tree
 
btPrimitiveManagerBasem_primitive_manager
 
void update ()
 node manager prototype functions More...
 
void buildSet ()
 this rebuild the entire set More...
 
bool boxQuery (const btAABB &box, btAlignedObjectArray< int > &collided_results) const
 returns the indices of the primitives in the m_primitive_manager More...
 
bool boxQueryTrans (const btAABB &box, const btTransform &transform, btAlignedObjectArray< int > &collided_results) const
 returns the indices of the primitives in the m_primitive_manager More...
 
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 More...
 
bool hasHierarchy () const
 tells if this set has hierarcht More...
 
bool isTrimesh () const
 tells if this set is a trimesh More...
 
int getNodeCount () const
 node count More...
 
bool isLeafNode (int nodeindex) const
 tells if the node is a leaf More...
 
int getNodeData (int nodeindex) const
 
void getNodeBound (int nodeindex, btAABB &bound) const
 
void setNodeBound (int nodeindex, const btAABB &bound)
 
int getLeftNode (int nodeindex) const
 
int getRightNode (int nodeindex) const
 
int getEscapeNodeIndex (int nodeindex) const
 
void getNodeTriangle (int nodeindex, btPrimitiveTriangle &triangle) const
 
const BT_QUANTIZED_BVH_NODEget_node_pointer (int index=0) const
 
static void find_collision (const btGImpactQuantizedBvh *boxset1, const btTransform &trans1, const btGImpactQuantizedBvh *boxset2, const btTransform &trans2, btPairSet &collision_pairs)
 

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.

Constructor & Destructor Documentation

btGImpactQuantizedBvh::btGImpactQuantizedBvh ( )
inline

this constructor doesn't build the tree. you must call buildSet

Definition at line 238 of file btGImpactQuantizedBvh.h.

btGImpactQuantizedBvh::btGImpactQuantizedBvh ( btPrimitiveManagerBase primitive_manager)
inline

this constructor doesn't build the tree. you must call buildSet

Definition at line 244 of file btGImpactQuantizedBvh.h.

Member Function Documentation

bool btGImpactQuantizedBvh::boxQuery ( const btAABB box,
btAlignedObjectArray< int > &  collided_results 
) const

returns the indices of the primitives in the m_primitive_manager

Definition at line 303 of file btGImpactQuantizedBvh.cpp.

bool btGImpactQuantizedBvh::boxQueryTrans ( const btAABB box,
const btTransform transform,
btAlignedObjectArray< int > &  collided_results 
) const
inline

returns the indices of the primitives in the m_primitive_manager

Definition at line 283 of file btGImpactQuantizedBvh.h.

void btGImpactQuantizedBvh::buildSet ( )

this rebuild the entire set

Definition at line 287 of file btGImpactQuantizedBvh.cpp.

void btGImpactQuantizedBvh::find_collision ( const btGImpactQuantizedBvh boxset1,
const btTransform trans1,
const btGImpactQuantizedBvh boxset2,
const btTransform trans2,
btPairSet collision_pairs 
)
static

Definition at line 504 of file btGImpactQuantizedBvh.cpp.

const BT_QUANTIZED_BVH_NODE* btGImpactQuantizedBvh::get_node_pointer ( int  index = 0) const
inline

Definition at line 357 of file btGImpactQuantizedBvh.h.

int btGImpactQuantizedBvh::getEscapeNodeIndex ( int  nodeindex) const
inline

Definition at line 346 of file btGImpactQuantizedBvh.h.

btAABB btGImpactQuantizedBvh::getGlobalBox ( ) const
inline

Definition at line 249 of file btGImpactQuantizedBvh.h.

int btGImpactQuantizedBvh::getLeftNode ( int  nodeindex) const
inline

Definition at line 336 of file btGImpactQuantizedBvh.h.

void btGImpactQuantizedBvh::getNodeBound ( int  nodeindex,
btAABB bound 
) const
inline

Definition at line 325 of file btGImpactQuantizedBvh.h.

int btGImpactQuantizedBvh::getNodeCount ( ) const
inline

node count

Definition at line 309 of file btGImpactQuantizedBvh.h.

int btGImpactQuantizedBvh::getNodeData ( int  nodeindex) const
inline

Definition at line 320 of file btGImpactQuantizedBvh.h.

void btGImpactQuantizedBvh::getNodeTriangle ( int  nodeindex,
btPrimitiveTriangle triangle 
) const
inline

Definition at line 351 of file btGImpactQuantizedBvh.h.

btPrimitiveManagerBase* btGImpactQuantizedBvh::getPrimitiveManager ( ) const
inline

Definition at line 261 of file btGImpactQuantizedBvh.h.

int btGImpactQuantizedBvh::getRightNode ( int  nodeindex) const
inline

Definition at line 341 of file btGImpactQuantizedBvh.h.

bool btGImpactQuantizedBvh::hasHierarchy ( ) const
inline

tells if this set has hierarcht

Definition at line 297 of file btGImpactQuantizedBvh.h.

bool btGImpactQuantizedBvh::isLeafNode ( int  nodeindex) const
inline

tells if the node is a leaf

Definition at line 315 of file btGImpactQuantizedBvh.h.

bool btGImpactQuantizedBvh::isTrimesh ( ) const
inline

tells if this set is a trimesh

Definition at line 303 of file btGImpactQuantizedBvh.h.

bool btGImpactQuantizedBvh::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

Definition at line 348 of file btGImpactQuantizedBvh.cpp.

void btGImpactQuantizedBvh::refit ( )
protected

Definition at line 247 of file btGImpactQuantizedBvh.cpp.

void btGImpactQuantizedBvh::setNodeBound ( int  nodeindex,
const btAABB bound 
)
inline

Definition at line 330 of file btGImpactQuantizedBvh.h.

void btGImpactQuantizedBvh::setPrimitiveManager ( btPrimitiveManagerBase primitive_manager)
inline

Definition at line 256 of file btGImpactQuantizedBvh.h.

void btGImpactQuantizedBvh::update ( )
inline

node manager prototype functions

this attemps to refit the box set.

Definition at line 271 of file btGImpactQuantizedBvh.h.

Member Data Documentation

btQuantizedBvhTree btGImpactQuantizedBvh::m_box_tree
protected

Definition at line 229 of file btGImpactQuantizedBvh.h.

btPrimitiveManagerBase* btGImpactQuantizedBvh::m_primitive_manager
protected

Definition at line 230 of file btGImpactQuantizedBvh.h.


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