All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
fcl::ShapeBVHDistanceTraversalNode< S, BV > Class Template Reference

Traversal node for distance computation between shape and BVH. More...

#include <hpp/fcl/traversal/traversal_node_bvh_shape.h>

Inheritance diagram for fcl::ShapeBVHDistanceTraversalNode< S, BV >:
Collaboration diagram for fcl::ShapeBVHDistanceTraversalNode< S, BV >:

Public Member Functions

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

Public Attributes

const S * model1
 
const BVHModel< BV > * model2
 
BV model1_bv
 
int num_bv_tests
 
int num_leaf_tests
 
FCL_REAL query_time_seconds
 
- Public Attributes inherited from fcl::DistanceTraversalNodeBase
DistanceRequest request
 request setting for distance More...
 
DistanceResultresult
 distance result kept during the traversal iteration More...
 
bool enable_statistics
 Whether stores statistics. More...
 
- Public Attributes inherited from fcl::TraversalNodeBase
Transform3f tf1
 configuation of first object More...
 
Transform3f tf2
 configuration of second object More...
 

Detailed Description

template<typename S, typename BV>
class fcl::ShapeBVHDistanceTraversalNode< S, BV >

Traversal node for distance computation between shape and BVH.

Constructor & Destructor Documentation

template<typename S, typename BV>
fcl::ShapeBVHDistanceTraversalNode< S, BV >::ShapeBVHDistanceTraversalNode ( )
inline

Member Function Documentation

template<typename S, typename BV>
int fcl::ShapeBVHDistanceTraversalNode< S, BV >::getSecondLeftChild ( int  b) const
inlinevirtual

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

Reimplemented from fcl::TraversalNodeBase.

template<typename S, typename BV>
int fcl::ShapeBVHDistanceTraversalNode< S, BV >::getSecondRightChild ( int  b) const
inlinevirtual

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

Reimplemented from fcl::TraversalNodeBase.

template<typename S, typename BV>
bool fcl::ShapeBVHDistanceTraversalNode< S, BV >::isSecondNodeLeaf ( int  b) const
inlinevirtual

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

Reimplemented from fcl::TraversalNodeBase.

Member Data Documentation

template<typename S, typename BV>
int fcl::ShapeBVHDistanceTraversalNode< S, BV >::num_leaf_tests
mutable
template<typename S, typename BV>
FCL_REAL fcl::ShapeBVHDistanceTraversalNode< S, BV >::query_time_seconds
mutable