|
OpenWalnut
1.2.5
|
class to provide threaded computation of parts of the kd tree More...
#include <WKdTree.h>
Inheritance diagram for WKdTreeThread: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 Member Functions inherited from WThreadedRunner | |
| WThreadedRunner () | |
| Default constructor. | |
| virtual | ~WThreadedRunner () |
| Destructor. | |
| virtual void | run () |
| Run thread. | |
| void | run (THREADFUNCTION f) |
| Run thread. | |
| void | wait (bool requestFinish=false) |
| Wait for the thread to be finished. | |
| virtual void | requestStop () |
| This method's purpose is to request a stop without waiting for it. | |
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 | |
Additional Inherited Members | |
Public Types inherited from WThreadedRunner | |
| typedef boost::function< void(void) > | THREADFUNCTION |
| Type used for simple thread functions. | |
Protected Member Functions inherited from WThreadedRunner | |
| virtual void | notifyStop () |
| Gets called when the thread should be stopped. | |
| void | yield () const |
| Give remaining execution timeslice to another thread. | |
| void | sleep (const int32_t t) const |
| Sets thread asleep. | |
| void | msleep (const int32_t t) const |
| Sets thread asleep. | |
| void | waitForStop () |
| Let the thread sleep until a stop request was given. | |
Protected Attributes inherited from WThreadedRunner | |
| boost::thread | m_thread |
| Thread instance. | |
| WBoolFlag | m_shutdownFlag |
| Condition getting fired whenever the thread should quit. | |
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().
|
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.
| int WKdTreeThread::m_axis |
stores axis, since the threadMain method has no arguments
Definition at line 99 of file WKdTree.h.
Referenced by threadMain().
| int WKdTreeThread::m_left |
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().
| int WKdTreeThread::m_right |
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 |
1.8.1