OpenWalnut
1.5.0dev
|
Test the utility functions for tracking. More...
#include <WThreadedTrackingFunction_test.h>
Public Member Functions | |
void | setUp () |
Setup logger and other stuff for each test. More... | |
void | testBoundary () |
Test if positions with a distance less then TRACKING_EPS from a boundary are determined correctly by onBoundary(). More... | |
void | testGetDistanceToBoundary () |
Check if getDistanceToBoundary() returns the correct distance. More... | |
void | testFollowToNextVoxel () |
Test if followToNextVoxel() returns a valid (inside the grid) position in the next voxel (and not on any boundary). More... | |
Private Types | |
typedef WTrackingUtilityTest | This |
an abbreviation More... | |
Private Member Functions | |
WVector3d | simpleDirFunc (wtracking::WTrackingUtility::DataSetPtr, wtracking::WTrackingUtility::JobType const &) |
A simple direction calculation function. More... | |
std::shared_ptr< WDataSetSingle > | buildTestData (WVector3d data) |
Build a test dataset. More... | |
Test the utility functions for tracking.
Definition at line 41 of file WThreadedTrackingFunction_test.h.
|
private |
an abbreviation
Definition at line 44 of file WThreadedTrackingFunction_test.h.
|
inlineprivate |
Build a test dataset.
data | The vector for every voxel. |
Definition at line 214 of file WThreadedTrackingFunction_test.h.
References WMatrixFixed< ValueT, Rows, Cols, ValueStoreT >::at(), and WMatrix< T >::makeIdentity().
Referenced by testBoundary(), testFollowToNextVoxel(), and testGetDistanceToBoundary().
|
inline |
Setup logger and other stuff for each test.
Definition at line 50 of file WThreadedTrackingFunction_test.h.
References WLogger::startup().
|
inlineprivate |
A simple direction calculation function.
Definition at line 200 of file WThreadedTrackingFunction_test.h.
Referenced by testFollowToNextVoxel().
|
inline |
Test if positions with a distance less then TRACKING_EPS from a boundary are determined correctly by onBoundary().
Definition at line 59 of file WThreadedTrackingFunction_test.h.
References buildTestData(), and wtracking::WTrackingUtility::onBoundary().
|
inline |
Test if followToNextVoxel() returns a valid (inside the grid) position in the next voxel (and not on any boundary).
Definition at line 163 of file WThreadedTrackingFunction_test.h.
References buildTestData(), wlimits::FLT_EPS, wtracking::WTrackingUtility::followToNextVoxel(), wtracking::WTrackingUtility::onBoundary(), and simpleDirFunc().
|
inline |
Check if getDistanceToBoundary() returns the correct distance.
Definition at line 125 of file WThreadedTrackingFunction_test.h.
References buildTestData(), wtracking::WTrackingUtility::getDistanceToBoundary(), and wtracking::WTrackingUtility::onBoundary().