Public Types | Public Member Functions | Public Attributes | List of all members
fcl::detail::BVHShapeCollisionTraversalNode< BV, Shape > Class Template Reference

Traversal node for collision between BVH and shape. More...

#include <bvh_shape_collision_traversal_node.h>

Inheritance diagram for fcl::detail::BVHShapeCollisionTraversalNode< BV, Shape >:
Inheritance graph
[legend]

Public Types

using S = typename BV::S
 

Public Member Functions

 BVHShapeCollisionTraversalNode ()
 
bool BVTesting (int b1, int b2) const
 BV culling test in one BVTT node. More...
 
int getFirstLeftChild (int b) const
 Obtain the left child of BV node in the first BVH. More...
 
int getFirstRightChild (int b) const
 Obtain the right child of BV node in the first BVH. More...
 
bool isFirstNodeLeaf (int b) const
 Whether the BV node in the first BVH tree is leaf. More...
 
- Public Member Functions inherited from fcl::detail::CollisionTraversalNodeBase< BV::S >
virtual bool canStop () const
 Check whether the traversal can stop. More...
 
 CollisionTraversalNodeBase ()
 
void enableStatistics (bool enable)
 Whether store some statistics information during traversal. More...
 
virtual void leafTesting (int b1, int b2) const
 Leaf test between node b1 and b2, if they are both leafs. More...
 
virtual ~CollisionTraversalNodeBase ()
 
- Public Member Functions inherited from fcl::detail::TraversalNodeBase< BV::S >
virtual bool firstOverSecond (int b1, int b2) const
 Traverse the subtree of the node in the first tree first. More...
 
virtual int getSecondLeftChild (int b) const
 Get the left child of the node b in the second tree. More...
 
virtual int getSecondRightChild (int b) const
 Get the right child of the node b in the second tree. More...
 
virtual bool isSecondNodeLeaf (int b) const
 Whether b is a leaf node in the second BVH tree. More...
 
virtual void postprocess ()
 
virtual void preprocess ()
 
virtual ~TraversalNodeBase ()
 

Public Attributes

const BVHModel< BV > * model1
 
const Shape * model2
 
BV model2_bv
 
int num_bv_tests
 
int num_leaf_tests
 
S query_time_seconds
 
- Public Attributes inherited from fcl::detail::CollisionTraversalNodeBase< BV::S >
bool enable_statistics
 Whether stores statistics. More...
 
CollisionRequest< BV::S > request
 request setting for collision More...
 
CollisionResult< BV::S > * result
 collision result kept during the traversal iteration More...
 
- Public Attributes inherited from fcl::detail::TraversalNodeBase< BV::S >
Transform3< BV::S > tf1
 configuation of first object More...
 
Transform3< BV::S > tf2
 configuration of second object More...
 

Detailed Description

template<typename BV, typename Shape>
class fcl::detail::BVHShapeCollisionTraversalNode< BV, Shape >

Traversal node for collision between BVH and shape.

Definition at line 52 of file bvh_shape_collision_traversal_node.h.

Member Typedef Documentation

◆ S

template<typename BV , typename Shape >
using fcl::detail::BVHShapeCollisionTraversalNode< BV, Shape >::S = typename BV::S

Definition at line 57 of file bvh_shape_collision_traversal_node.h.

Constructor & Destructor Documentation

◆ BVHShapeCollisionTraversalNode()

template<typename Shape , typename BV >
fcl::detail::BVHShapeCollisionTraversalNode< Shape, BV >::BVHShapeCollisionTraversalNode

Definition at line 53 of file bvh_shape_collision_traversal_node-inl.h.

Member Function Documentation

◆ BVTesting()

template<typename Shape , typename BV >
bool fcl::detail::BVHShapeCollisionTraversalNode< Shape, BV >::BVTesting ( int  b1,
int  b2 
) const
virtual

BV culling test in one BVTT node.

Reimplemented from fcl::detail::CollisionTraversalNodeBase< BV::S >.

Definition at line 87 of file bvh_shape_collision_traversal_node-inl.h.

◆ getFirstLeftChild()

template<typename Shape , typename BV >
int fcl::detail::BVHShapeCollisionTraversalNode< Shape, BV >::getFirstLeftChild ( int  b) const
virtual

Obtain the left child of BV node in the first BVH.

Reimplemented from fcl::detail::TraversalNodeBase< BV::S >.

Definition at line 73 of file bvh_shape_collision_traversal_node-inl.h.

◆ getFirstRightChild()

template<typename Shape , typename BV >
int fcl::detail::BVHShapeCollisionTraversalNode< Shape, BV >::getFirstRightChild ( int  b) const
virtual

Obtain the right child of BV node in the first BVH.

Reimplemented from fcl::detail::TraversalNodeBase< BV::S >.

Definition at line 80 of file bvh_shape_collision_traversal_node-inl.h.

◆ isFirstNodeLeaf()

template<typename Shape , typename BV >
bool fcl::detail::BVHShapeCollisionTraversalNode< Shape, BV >::isFirstNodeLeaf ( int  b) const
virtual

Whether the BV node in the first BVH tree is leaf.

Reimplemented from fcl::detail::TraversalNodeBase< BV::S >.

Definition at line 66 of file bvh_shape_collision_traversal_node-inl.h.

Member Data Documentation

◆ model1

template<typename BV , typename Shape >
const BVHModel<BV>* fcl::detail::BVHShapeCollisionTraversalNode< BV, Shape >::model1

Definition at line 73 of file bvh_shape_collision_traversal_node.h.

◆ model2

template<typename BV , typename Shape >
const Shape* fcl::detail::BVHShapeCollisionTraversalNode< BV, Shape >::model2

Definition at line 74 of file bvh_shape_collision_traversal_node.h.

◆ model2_bv

template<typename BV , typename Shape >
BV fcl::detail::BVHShapeCollisionTraversalNode< BV, Shape >::model2_bv

Definition at line 75 of file bvh_shape_collision_traversal_node.h.

◆ num_bv_tests

template<typename BV , typename Shape >
int fcl::detail::BVHShapeCollisionTraversalNode< BV, Shape >::num_bv_tests
mutable

Definition at line 77 of file bvh_shape_collision_traversal_node.h.

◆ num_leaf_tests

template<typename BV , typename Shape >
int fcl::detail::BVHShapeCollisionTraversalNode< BV, Shape >::num_leaf_tests
mutable

Definition at line 78 of file bvh_shape_collision_traversal_node.h.

◆ query_time_seconds

template<typename BV , typename Shape >
S fcl::detail::BVHShapeCollisionTraversalNode< BV, Shape >::query_time_seconds
mutable

Definition at line 79 of file bvh_shape_collision_traversal_node.h.


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


fcl
Author(s):
autogenerated on Tue Dec 5 2023 03:40:50