OpenWalnut  1.4.0
Public Member Functions
WBoundingBoxTest Class Reference

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

#include <WBoundingBox_test.h>

+ Inheritance diagram for WBoundingBoxTest:

List of all members.

Public Member Functions

void testForwardingFunctions (void)
 The private subclassing from osg::BoundingBoxImpl makes many member functions private.
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.
void testCommutativeIntervalDistance (void)
 The distance should not depend on the order in which the boxes are given.
void testBoundingBoxComputation (void)
 Expanding a bounding box by points should update the both corner positions.

Detailed Description

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

Definition at line 39 of file WBoundingBox_test.h.


Member Function Documentation

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().

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().

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().

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().


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