OpenWalnut  1.4.0
Public Member Functions | Private Types | Private Member Functions
WTrackingUtilityTest Class Reference

Test the utility functions for tracking. More...

#include <WThreadedTrackingFunction_test.h>

+ Inheritance diagram for WTrackingUtilityTest:

List of all members.

Public Member Functions

void setUp ()
 Setup logger and other stuff for each test.
void testBoundary ()
 Test if positions with a distance less then TRACKING_EPS from a boundary are determined correctly by onBoundary().
void testGetDistanceToBoundary ()
 Check if getDistanceToBoundary() returns the correct distance.
void testFollowToNextVoxel ()
 Test if followToNextVoxel() returns a valid (inside the grid) position in the next voxel (and not on any boundary).

Private Types

typedef WTrackingUtilityTest This
 an abbreviation

Private Member Functions

WVector3d simpleDirFunc (wtracking::WTrackingUtility::DataSetPtr, wtracking::WTrackingUtility::JobType const &)
 A simple direction calculation function.
boost::shared_ptr< WDataSetSinglebuildTestData (WVector3d data)
 Build a test dataset.

Detailed Description

Test the utility functions for tracking.

Definition at line 40 of file WThreadedTrackingFunction_test.h.


Member Typedef Documentation

an abbreviation

Definition at line 43 of file WThreadedTrackingFunction_test.h.


Member Function Documentation

boost::shared_ptr< WDataSetSingle > WTrackingUtilityTest::buildTestData ( WVector3d  data) [inline, private]

Build a test dataset.

Parameters:
dataThe vector for every voxel.
Returns:
the test dataset

Definition at line 210 of file WThreadedTrackingFunction_test.h.

References WMatrixFixed< ValueT, Rows, Cols, ValueStoreT >::at(), and WMatrix< T >::makeIdentity().

Referenced by testBoundary(), testFollowToNextVoxel(), and testGetDistanceToBoundary().

void WTrackingUtilityTest::setUp ( void  ) [inline]

Setup logger and other stuff for each test.

Definition at line 49 of file WThreadedTrackingFunction_test.h.

References WLogger::startup().

A simple direction calculation function.

Returns:
A direction.

Definition at line 196 of file WThreadedTrackingFunction_test.h.

Referenced by testFollowToNextVoxel().

Test if positions with a distance less then TRACKING_EPS from a boundary are determined correctly by onBoundary().

Definition at line 58 of file WThreadedTrackingFunction_test.h.

References buildTestData(), and wtracking::WTrackingUtility::onBoundary().

Test if followToNextVoxel() returns a valid (inside the grid) position in the next voxel (and not on any boundary).

Definition at line 162 of file WThreadedTrackingFunction_test.h.

References buildTestData(), wlimits::FLT_EPS, wtracking::WTrackingUtility::followToNextVoxel(), wtracking::WTrackingUtility::onBoundary(), and simpleDirFunc().

Check if getDistanceToBoundary() returns the correct distance.

Definition at line 124 of file WThreadedTrackingFunction_test.h.

References buildTestData(), wtracking::WTrackingUtility::getDistanceToBoundary(), and wtracking::WTrackingUtility::onBoundary().


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