OpenWalnut  1.4.0
Public Member Functions | Public Attributes
WKdTreeThread Class Reference

class to provide threaded computation of parts of the kd tree More...

#include <WKdTree.h>

+ Inheritance diagram for WKdTreeThread:

List of all members.

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

Detailed Description

class to provide threaded computation of parts of the kd tree

Definition at line 66 of file WKdTree.h.


Constructor & Destructor Documentation

WKdTreeThread::WKdTreeThread ( float *  pointArray,
std::vector< unsigned int > *  tree,
int  left,
int  right,
int  axis 
)

constructor

Parameters:
pointArray
treepointer to the tree
leftboundary of the part to compute
rightboundary of the part to compute
axisstarting axis

Definition at line 97 of file WKdTree.cpp.


Member Function Documentation

void WKdTreeThread::buildTree ( int  left,
int  right,
int  axis 
)

recursive function to compute a part of the kd tree

Parameters:
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.


Member Data Documentation

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().

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

stores a pointer to the tree

Definition at line 94 of file WKdTree.h.

Referenced by buildTree().


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