OpenWalnut  1.5.0dev
Public Member Functions | List of all members
WBoundingBoxTest Class Reference

Unit tests for the WBoundingBox wrapper to osg::BoundingBox. More...

#include <WBoundingBox_test.h>

+ Inheritance diagram for WBoundingBoxTest:
+ Collaboration diagram for WBoundingBoxTest:

Public Member Functions

void testForwardingFunctions (void)
 The private subclassing from osg::BoundingBoxImpl makes many member functions private. More...
 
void testMinimalDistanceBetweenTwoBB (void)
 The minimal distance between two bounding boxes is the minimal distance overall vertices of the first bb to every vertex in the second bb. More...
 
void testCommutativeIntervalDistance (void)
 The distance should not depend on the order in which the boxes are given. More...
 
void testBoundingBoxComputation (void)
 Expanding a bounding box by points should update the both corner positions. More...
 

Detailed Description

Unit tests for the WBoundingBox wrapper to osg::BoundingBox.

Definition at line 39 of file WBoundingBox_test.h.

Member Function Documentation

◆ testBoundingBoxComputation()

void WBoundingBoxTest::testBoundingBoxComputation ( void  )
inline

Expanding a bounding box by points should update the both corner positions.

Definition at line 84 of file WBoundingBox_test.h.

References wlimits::DBL_EPS, and WBoundingBoxImpl< VT >::expandBy().

+ Here is the call graph for this function:

◆ testCommutativeIntervalDistance()

void WBoundingBoxTest::testCommutativeIntervalDistance ( void  )
inline

The distance should not depend on the order in which the boxes are given.

Definition at line 73 of file WBoundingBox_test.h.

References wlimits::DBL_EPS, and WBoundingBoxImpl< VT >::minDistance().

+ Here is the call graph for this function:

◆ testForwardingFunctions()

void WBoundingBoxTest::testForwardingFunctions ( void  )
inline

The private subclassing from osg::BoundingBoxImpl makes many member functions private.

The using directive again will publish those members selectively. This is tested in this test.

Definition at line 46 of file WBoundingBox_test.h.

References WBoundingBoxImpl< VT >::expandBy(), WBoundingBoxImpl< VT >::intersects(), and WBoundingBoxImpl< VT >::reset().

+ Here is the call graph for this function:

◆ testMinimalDistanceBetweenTwoBB()

void WBoundingBoxTest::testMinimalDistanceBetweenTwoBB ( void  )
inline

The minimal distance between two bounding boxes is the minimal distance overall vertices of the first bb to every vertex in the second bb.

Definition at line 63 of file WBoundingBox_test.h.

References wlimits::DBL_EPS, and WBoundingBoxImpl< VT >::minDistance().

+ Here is the call graph for this function:

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