Public Member Functions | Public Attributes | List of all members
hpp::fcl::OcTreeDistanceTraversalNode< NarrowPhaseSolver > Class Template Reference

Traversal node for octree distance. More...

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

Inheritance diagram for hpp::fcl::OcTreeDistanceTraversalNode< NarrowPhaseSolver >:
[legend]
Collaboration diagram for hpp::fcl::OcTreeDistanceTraversalNode< NarrowPhaseSolver >:
[legend]

Public Member Functions

 OcTreeDistanceTraversalNode ()
 
FCL_REAL BVTesting (int, int) const
 BV test between b1 and b2. More...
 
bool BVTesting (int, int, FCL_REAL &) const
 
void leafTesting (int, int) const
 Leaf test between node b1 and b2, if they are both leafs. More...
 
- Public Member Functions inherited from hpp::fcl::DistanceTraversalNodeBase
 DistanceTraversalNodeBase ()
 
virtual ~DistanceTraversalNodeBase ()
 
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 hpp::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 isSecondNodeLeaf (int b) const
 Whether b is a leaf node in the second 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...
 
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...
 

Public Attributes

const OcTreemodel1
 
const OcTreemodel2
 
const OcTreeSolver< NarrowPhaseSolver > * otsolver
 
- Public Attributes inherited from hpp::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 hpp::fcl::TraversalNodeBase
Transform3f tf1
 configuation of first object More...
 
Transform3f tf2
 configuration of second object More...
 

Detailed Description

template<typename NarrowPhaseSolver>
class hpp::fcl::OcTreeDistanceTraversalNode< NarrowPhaseSolver >

Traversal node for octree distance.

Constructor & Destructor Documentation

template<typename NarrowPhaseSolver >
hpp::fcl::OcTreeDistanceTraversalNode< NarrowPhaseSolver >::OcTreeDistanceTraversalNode ( )
inline

Member Function Documentation

template<typename NarrowPhaseSolver >
FCL_REAL hpp::fcl::OcTreeDistanceTraversalNode< NarrowPhaseSolver >::BVTesting ( int  b1,
int  b2 
) const
inlinevirtual

BV test between b1 and b2.

Returns
a lower bound of the distance between the two BV.
Note
except for OBB, this method returns the distance.

Reimplemented from hpp::fcl::DistanceTraversalNodeBase.

template<typename NarrowPhaseSolver >
bool hpp::fcl::OcTreeDistanceTraversalNode< NarrowPhaseSolver >::BVTesting ( int  ,
int  ,
FCL_REAL  
) const
inline
template<typename NarrowPhaseSolver >
void hpp::fcl::OcTreeDistanceTraversalNode< NarrowPhaseSolver >::leafTesting ( int  b1,
int  b2 
) const
inlinevirtual

Leaf test between node b1 and b2, if they are both leafs.

Implements hpp::fcl::DistanceTraversalNodeBase.

Member Data Documentation

template<typename NarrowPhaseSolver >
const OcTree* hpp::fcl::OcTreeDistanceTraversalNode< NarrowPhaseSolver >::model1
template<typename NarrowPhaseSolver >
const OcTree* hpp::fcl::OcTreeDistanceTraversalNode< NarrowPhaseSolver >::model2
template<typename NarrowPhaseSolver >
const OcTreeSolver<NarrowPhaseSolver>* hpp::fcl::OcTreeDistanceTraversalNode< NarrowPhaseSolver >::otsolver