OpenWalnut  1.4.0
Public Member Functions | Private Types | Private Member Functions | Private Attributes
WThreadedTrackingFunctionTest Class Reference

Test the WThreadedTrackingFunction class. More...

#include <WThreadedTrackingFunction_test.h>

+ Inheritance diagram for WThreadedTrackingFunctionTest:

List of all members.

Public Member Functions

void testIndexInitialization ()
 Test if everything gets initialized correctly.
void testIndexIncrement ()
 Test if indices (seed positions) iteration works.
void testIndexToJob ()
 Test if the right jobs get created from seeds.
void testInstantiation ()
 Test if everything gets initialized correctly.
void testGetJob ()
 Test if the correct amount of jobs gets created.
void testCompute ()
 Test if fibers with the right number of points get created.

Private Types

typedef
WThreadedTrackingFunctionTest 
This
 a handy abbreviation

Private Member Functions

boost::shared_ptr< WDataSetSinglebuildTestData (WVector3d data, int n)
 Build a test dataset.
WVector3d dirFunc (wtracking::WThreadedTrackingFunction::DataSetPtr, wtracking::WThreadedTrackingFunction::JobType const &j, WVector3d d)
 The direction computation function.
void fibVis (std::vector< WVector3d > const &)
 The fiber visitor.
void pntVis (WVector3d const &)
 The point visitor.

Private Attributes

WSharedObject< std::size_t > m_points
 the number of points found

Detailed Description

Test the WThreadedTrackingFunction class.

Definition at line 258 of file WThreadedTrackingFunction_test.h.


Member Typedef Documentation

a handy abbreviation

Definition at line 261 of file WThreadedTrackingFunction_test.h.


Member Function Documentation

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

Build a test dataset.

Parameters:
dataThe vector for every voxel.
nThe number of grid position in every direction.
Returns:
The dataset.

Definition at line 577 of file WThreadedTrackingFunction_test.h.

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

Referenced by testCompute(), testGetJob(), testIndexIncrement(), testIndexInitialization(), testIndexToJob(), and testInstantiation().

The direction computation function.

Simply returns the parameter vector.

Parameters:
jThe current job.
dThe direction to return.
Returns:
d

Definition at line 625 of file WThreadedTrackingFunction_test.h.

Referenced by testCompute(), testGetJob(), and testInstantiation().

void WThreadedTrackingFunctionTest::fibVis ( std::vector< WVector3d > const &  ) [inline, private]

The fiber visitor.

Does nothing.

Definition at line 642 of file WThreadedTrackingFunction_test.h.

Referenced by testCompute(), testGetJob(), and testInstantiation().

void WThreadedTrackingFunctionTest::pntVis ( WVector3d const &  ) [inline, private]

The point visitor.

Counts the number of points found.

Definition at line 649 of file WThreadedTrackingFunction_test.h.

References WSharedObject< T >::getWriteTicket(), and m_points.

Referenced by testCompute(), testGetJob(), and testInstantiation().

Test if indices (seed positions) iteration works.

Definition at line 343 of file WThreadedTrackingFunction_test.h.

References buildTestData(), and wtracking::WThreadedTrackingFunction::IndexType::done().

Test if the right jobs get created from seeds.

Definition at line 410 of file WThreadedTrackingFunction_test.h.

References buildTestData(), and wtracking::WThreadedTrackingFunction::IndexType::job().

Test if everything gets initialized correctly.

Definition at line 495 of file WThreadedTrackingFunction_test.h.

References buildTestData(), dirFunc(), fibVis(), wtracking::WTrackingUtility::followToNextVoxel(), and pntVis().


Member Data Documentation

the number of points found

Definition at line 655 of file WThreadedTrackingFunction_test.h.

Referenced by pntVis(), and testCompute().


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