OpenWalnut
1.4.0
|
class to provide threaded computation of parts of the kd tree More...
#include <WKdTree.h>
Public Member Functions | |
WKdTreeThread (float *pointArray, std::vector< unsigned int > *tree, int left, int right, int axis) | |
constructor | |
void | buildTree (int left, int right, int axis) |
recursive function to compute a part of the kd tree | |
virtual void | threadMain () |
entry for the run command | |
Public Attributes | |
std::vector< unsigned int > * | m_tree |
stores a pointer to the tree | |
float * | m_pointArray |
stores a pointer to the vertex array | |
int | m_left |
stores left boundary, since the threadMain method has no arguments | |
int | m_right |
stores left boundary, since the threadMain method has no arguments | |
int | m_axis |
stores axis, since the threadMain method has no arguments |
class to provide threaded computation of parts of the kd tree
WKdTreeThread::WKdTreeThread | ( | float * | pointArray, |
std::vector< unsigned int > * | tree, | ||
int | left, | ||
int | right, | ||
int | axis | ||
) |
constructor
pointArray | |
tree | pointer to the tree |
left | boundary of the part to compute |
right | boundary of the part to compute |
axis | starting axis |
Definition at line 97 of file WKdTree.cpp.
void WKdTreeThread::buildTree | ( | int | left, |
int | right, | ||
int | axis | ||
) |
recursive function to compute a part of the kd tree
left | |
right | |
axis |
Definition at line 108 of file WKdTree.cpp.
References m_pointArray, and m_tree.
Referenced by threadMain().
void WKdTreeThread::threadMain | ( | ) | [virtual] |
entry for the run command
Reimplemented from WThreadedRunner.
Definition at line 102 of file WKdTree.cpp.
References buildTree(), wlog::debug(), m_axis, m_left, and m_right.
stores axis, since the threadMain method has no arguments
Definition at line 99 of file WKdTree.h.
Referenced by threadMain().
stores left boundary, since the threadMain method has no arguments
Definition at line 97 of file WKdTree.h.
Referenced by threadMain().
float* WKdTreeThread::m_pointArray |
stores a pointer to the vertex array
Definition at line 95 of file WKdTree.h.
Referenced by buildTree().
stores left boundary, since the threadMain method has no arguments
Definition at line 98 of file WKdTree.h.
Referenced by threadMain().
std::vector< unsigned int >* WKdTreeThread::m_tree |