Public Types | Public Member Functions | Static Public Member Functions | Public Attributes

OpenTissue::obb_tree::CollisionPolicy< bvh_type_, obb_tree_types_ > Class Template Reference

#include <obb_tree_collision_policy.h>

List of all members.

Public Types

typedef obb_tree_types_ obb_tree_types
typedef
obb_tree_types::coordsys_type 
coordsys_type
typedef
obb_tree_types::vector3_type 
vector3_type
typedef
obb_tree_types::time_stamp_type 
time_stamp_type
typedef bvh_type_ bvh_type
typedef bvh_type::volume_type volume_type
typedef bvh_type::bv_ptr bv_ptr
typedef bvh_type::annotated_bv_ptr annotated_bv_ptr
typedef bvh_type::annotated_bv_type annotated_bv_type
typedef bvh_type::geometry_type face_ptr_type

Public Member Functions

 CollisionPolicy ()
template<typename result_container >
void reset (result_container &results)
bool overlap (coordsys_type const &A2B, bv_ptr bvA, bv_ptr bvB)
template<typename result_container >
bool report (coordsys_type const &A2B, bv_ptr bvA, bv_ptr bvB, result_container &results)

Static Public Member Functions

static time_stamp_type get_next_time_stamp ()

Public Attributes

time_stamp_type m_query
 Time stamp of collision query. Used to see if cached bounding volumes are valid.

template<typename bvh_type_, typename obb_tree_types_>
class OpenTissue::obb_tree::CollisionPolicy< bvh_type_, obb_tree_types_ >


Member Typedef Documentation

template<typename bvh_type_ , typename obb_tree_types_ >
typedef bvh_type::annotated_bv_ptr OpenTissue::obb_tree::CollisionPolicy< bvh_type_, obb_tree_types_ >::annotated_bv_ptr
template<typename bvh_type_ , typename obb_tree_types_ >
typedef bvh_type::annotated_bv_type OpenTissue::obb_tree::CollisionPolicy< bvh_type_, obb_tree_types_ >::annotated_bv_type
template<typename bvh_type_ , typename obb_tree_types_ >
typedef bvh_type::bv_ptr OpenTissue::obb_tree::CollisionPolicy< bvh_type_, obb_tree_types_ >::bv_ptr
template<typename bvh_type_ , typename obb_tree_types_ >
typedef bvh_type_ OpenTissue::obb_tree::CollisionPolicy< bvh_type_, obb_tree_types_ >::bvh_type
template<typename bvh_type_ , typename obb_tree_types_ >
typedef obb_tree_types::coordsys_type OpenTissue::obb_tree::CollisionPolicy< bvh_type_, obb_tree_types_ >::coordsys_type
template<typename bvh_type_ , typename obb_tree_types_ >
typedef bvh_type::geometry_type OpenTissue::obb_tree::CollisionPolicy< bvh_type_, obb_tree_types_ >::face_ptr_type
template<typename bvh_type_ , typename obb_tree_types_ >
typedef obb_tree_types_ OpenTissue::obb_tree::CollisionPolicy< bvh_type_, obb_tree_types_ >::obb_tree_types
template<typename bvh_type_ , typename obb_tree_types_ >
typedef obb_tree_types::time_stamp_type OpenTissue::obb_tree::CollisionPolicy< bvh_type_, obb_tree_types_ >::time_stamp_type
template<typename bvh_type_ , typename obb_tree_types_ >
typedef obb_tree_types::vector3_type OpenTissue::obb_tree::CollisionPolicy< bvh_type_, obb_tree_types_ >::vector3_type
template<typename bvh_type_ , typename obb_tree_types_ >
typedef bvh_type::volume_type OpenTissue::obb_tree::CollisionPolicy< bvh_type_, obb_tree_types_ >::volume_type

Constructor & Destructor Documentation

template<typename bvh_type_ , typename obb_tree_types_ >
OpenTissue::obb_tree::CollisionPolicy< bvh_type_, obb_tree_types_ >::CollisionPolicy (  )  [inline]

Member Function Documentation

template<typename bvh_type_ , typename obb_tree_types_ >
static time_stamp_type OpenTissue::obb_tree::CollisionPolicy< bvh_type_, obb_tree_types_ >::get_next_time_stamp (  )  [inline, static]

Get Next Time Stamp. This methods computes a new global unique time stamp. It should be invoked by caller whenever a new time-stamp is wanted. Notice this implementation technique keeps everything in headers only!

Returns:
The new time stamp.
template<typename bvh_type_ , typename obb_tree_types_ >
bool OpenTissue::obb_tree::CollisionPolicy< bvh_type_, obb_tree_types_ >::overlap ( coordsys_type const &  A2B,
bv_ptr  bvA,
bv_ptr  bvB 
) [inline]
template<typename bvh_type_ , typename obb_tree_types_ >
template<typename result_container >
bool OpenTissue::obb_tree::CollisionPolicy< bvh_type_, obb_tree_types_ >::report ( coordsys_type const &  A2B,
bv_ptr  bvA,
bv_ptr  bvB,
result_container &  results 
) [inline]
template<typename bvh_type_ , typename obb_tree_types_ >
template<typename result_container >
void OpenTissue::obb_tree::CollisionPolicy< bvh_type_, obb_tree_types_ >::reset ( result_container &  results  )  [inline]

Member Data Documentation

template<typename bvh_type_ , typename obb_tree_types_ >
time_stamp_type OpenTissue::obb_tree::CollisionPolicy< bvh_type_, obb_tree_types_ >::m_query

Time stamp of collision query. Used to see if cached bounding volumes are valid.


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