OpenWalnut  1.4.0
Public Member Functions | Private Attributes | Friends
wtracking::WThreadedTrackingFunction::IndexType Class Reference

An index for seed positions. More...

List of all members.

Public Member Functions

 IndexType ()
 Construct an invalid index.
 IndexType (GridPtr grid, std::vector< int > const &v0, std::vector< int > const &v1, std::size_t seedPositions, std::size_t seedsPerPosition)
 Construct an index.
IndexTypeoperator++ ()
 Increase the index by one, effectively generating the next seed position.
bool done ()
 Check if there aren't any more seed positions.
JobType job ()
 Create a job from this index.

Private Attributes

GridPtr m_grid
 a pointer to the grid
bool m_done
 true, iff there are no more seeds
boost::array< std::size_t, 4 > m_pos
 the position in the seed space
boost::array< std::size_t, 4 > m_min
 the minimum position in the seed space
boost::array< std::size_t, 4 > m_max
 the maximum position in the seed space
double m_offset
 the relative (to the size of a voxel) distance between seeds

Friends

class ::WThreadedTrackingFunctionTest

Detailed Description

An index for seed positions.

Definition at line 233 of file WThreadedTrackingFunction.h.


Constructor & Destructor Documentation

Construct an invalid index.

Definition at line 274 of file WThreadedTrackingFunction.cpp.

wtracking::WThreadedTrackingFunction::IndexType::IndexType ( GridPtr  grid,
std::vector< int > const &  v0,
std::vector< int > const &  v1,
std::size_t  seedPositions,
std::size_t  seedsPerPosition 
)

Construct an index.

Parameters:
gridThe grid.
v0A vector of starting voxel indices for every direction.
v1A vector of target voxel indices for every direction.
seedPositionsThe number of seed positions in every direction per voxel.
seedsPerPositionThe number of fibers startet from every seed position.

Definition at line 280 of file WThreadedTrackingFunction.cpp.

References m_grid, m_max, m_min, m_offset, and m_pos.


Member Function Documentation

Check if there aren't any more seed positions.

Returns:
true, iff there aren't any more seed positions.

Definition at line 346 of file WThreadedTrackingFunction.cpp.

Referenced by WThreadedTrackingFunctionTest::testIndexIncrement().

Create a job from this index.

Returns:
The job that is the current position.

Definition at line 351 of file WThreadedTrackingFunction.cpp.

References wtracking::WThreadedTrackingFunction::m_grid.

Referenced by WThreadedTrackingFunctionTest::testIndexToJob().

WThreadedTrackingFunction::IndexType & wtracking::WThreadedTrackingFunction::IndexType::operator++ ( )

Increase the index by one, effectively generating the next seed position.

Returns:
*this

Definition at line 325 of file WThreadedTrackingFunction.cpp.


Member Data Documentation

true, iff there are no more seeds

Definition at line 281 of file WThreadedTrackingFunction.h.

Referenced by WThreadedTrackingFunctionTest::testIndexInitialization().

a pointer to the grid

Definition at line 278 of file WThreadedTrackingFunction.h.

Referenced by IndexType().

boost::array< std::size_t, 4 > wtracking::WThreadedTrackingFunction::IndexType::m_max [private]

the maximum position in the seed space

Definition at line 290 of file WThreadedTrackingFunction.h.

Referenced by IndexType(), and WThreadedTrackingFunctionTest::testIndexInitialization().

boost::array< std::size_t, 4 > wtracking::WThreadedTrackingFunction::IndexType::m_min [private]

the minimum position in the seed space

Definition at line 287 of file WThreadedTrackingFunction.h.

Referenced by IndexType(), and WThreadedTrackingFunctionTest::testIndexInitialization().

the relative (to the size of a voxel) distance between seeds

Definition at line 293 of file WThreadedTrackingFunction.h.

Referenced by IndexType(), and WThreadedTrackingFunctionTest::testIndexInitialization().

boost::array< std::size_t, 4 > wtracking::WThreadedTrackingFunction::IndexType::m_pos [private]

the position in the seed space

Definition at line 284 of file WThreadedTrackingFunction.h.

Referenced by IndexType(), and WThreadedTrackingFunctionTest::testIndexInitialization().


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