![]() |
OpenWalnut
1.5.0dev
|
An index for seed positions. More...
Collaboration diagram for wtracking::WThreadedTrackingFunction::IndexType:Public Member Functions | |
| IndexType () | |
| Construct an invalid index. More... | |
| IndexType (GridPtr grid, std::vector< int > const &v0, std::vector< int > const &v1, std::size_t seedPositions, std::size_t seedsPerPosition) | |
| Construct an index. More... | |
| IndexType & | operator++ () |
| Increase the index by one, effectively generating the next seed position. More... | |
| bool | done () |
| Check if there aren't any more seed positions. More... | |
| JobType | job () |
| Create a job from this index. More... | |
Private Attributes | |
| GridPtr | m_grid |
| a pointer to the grid More... | |
| bool | m_done |
| true, iff there are no more seeds More... | |
| boost::array< std::size_t, 4 > | m_pos |
| the position in the seed space More... | |
| boost::array< std::size_t, 4 > | m_min |
| the minimum position in the seed space More... | |
| boost::array< std::size_t, 4 > | m_max |
| the maximum position in the seed space More... | |
| double | m_offset |
| the relative (to the size of a voxel) distance between seeds More... | |
Friends | |
| class | ::WThreadedTrackingFunctionTest |
| Access for test class. More... | |
An index for seed positions.
Definition at line 232 of file WThreadedTrackingFunction.h.
| wtracking::WThreadedTrackingFunction::IndexType::IndexType | ( | ) |
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.
| grid | The grid. |
| v0 | A vector of starting voxel indices for every direction. |
| v1 | A vector of target voxel indices for every direction. |
| seedPositions | The number of seed positions in every direction per voxel. |
| seedsPerPosition | The number of fibers startet from every seed position. |
Definition at line 280 of file WThreadedTrackingFunction.cpp.
| bool wtracking::WThreadedTrackingFunction::IndexType::done | ( | ) |
Check if there aren't any more seed positions.
Definition at line 346 of file WThreadedTrackingFunction.cpp.
Referenced by WThreadedTrackingFunctionTest::testIndexIncrement().
Here is the caller graph for this function:| WThreadedTrackingFunction::JobType wtracking::WThreadedTrackingFunction::IndexType::job | ( | ) |
Create a job from this index.
Definition at line 351 of file WThreadedTrackingFunction.cpp.
References wtracking::WThreadedTrackingFunction::m_grid.
Referenced by WThreadedTrackingFunctionTest::testIndexToJob().
Here is the caller graph for this function:| WThreadedTrackingFunction::IndexType & wtracking::WThreadedTrackingFunction::IndexType::operator++ | ( | ) |
Increase the index by one, effectively generating the next seed position.
Definition at line 325 of file WThreadedTrackingFunction.cpp.
|
friend |
Access for test class.
Definition at line 234 of file WThreadedTrackingFunction.h.
|
private |
true, iff there are no more seeds
Definition at line 280 of file WThreadedTrackingFunction.h.
Referenced by WThreadedTrackingFunctionTest::testIndexInitialization().
|
private |
a pointer to the grid
Definition at line 277 of file WThreadedTrackingFunction.h.
Referenced by IndexType().
|
private |
the maximum position in the seed space
Definition at line 289 of file WThreadedTrackingFunction.h.
Referenced by IndexType(), and WThreadedTrackingFunctionTest::testIndexInitialization().
|
private |
the minimum position in the seed space
Definition at line 286 of file WThreadedTrackingFunction.h.
Referenced by IndexType(), and WThreadedTrackingFunctionTest::testIndexInitialization().
|
private |
the relative (to the size of a voxel) distance between seeds
Definition at line 292 of file WThreadedTrackingFunction.h.
Referenced by IndexType(), and WThreadedTrackingFunctionTest::testIndexInitialization().
|
private |
the position in the seed space
Definition at line 283 of file WThreadedTrackingFunction.h.
Referenced by IndexType(), and WThreadedTrackingFunctionTest::testIndexInitialization().