rcrt::KDNode< T > Class Template Reference

#include <SAHKDtree.hpp>

Collaboration diagram for rcrt::KDNode< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 K ()
 ~KDNode ()

Public Attributes

bool leaf
bool empty
KDNode< T > * children [2]
Axis splitAxis
float plane
std::vector< T * > * prim


Detailed Description

template<class T>
class rcrt::KDNode< T >

Node class for KD tree

Definition at line 51 of file SAHKDtree.hpp.


Constructor & Destructor Documentation

template<class T>
rcrt::KDNode< T >::~KDNode (  )  [inline]

Definition at line 59 of file SAHKDtree.hpp.


Member Function Documentation

template<class T>
rcrt::KDNode< T >::K (  )  [inline]


Member Data Documentation

template<class T>
bool rcrt::KDNode< T >::leaf

Definition at line 65 of file SAHKDtree.hpp.

Referenced by rcrt::SAHKDtree< rcrt::Triangle >::buildLeaf(), rcrt::SAHKDtree< rcrt::Triangle >::buildNode(), and rcrt::SAHKDtree< rcrt::Triangle >::intersectNode().

template<class T>
bool rcrt::KDNode< T >::empty

Definition at line 65 of file SAHKDtree.hpp.

Referenced by rcrt::SAHKDtree< rcrt::Triangle >::buildLeaf(), rcrt::SAHKDtree< rcrt::Triangle >::buildNode(), and rcrt::SAHKDtree< rcrt::Triangle >::intersectNode().

template<class T>
KDNode<T>* rcrt::KDNode< T >::children[2]

Definition at line 66 of file SAHKDtree.hpp.

Referenced by rcrt::SAHKDtree< rcrt::Triangle >::buildNode(), rcrt::SAHKDtree< rcrt::Triangle >::intersectNode(), and rcrt::KDNode< rcrt::Triangle >::~KDNode().

template<class T>
Axis rcrt::KDNode< T >::splitAxis

Definition at line 67 of file SAHKDtree.hpp.

Referenced by rcrt::SAHKDtree< rcrt::Triangle >::buildNode(), and rcrt::SAHKDtree< rcrt::Triangle >::intersectNode().

template<class T>
float rcrt::KDNode< T >::plane

Definition at line 68 of file SAHKDtree.hpp.

Referenced by rcrt::SAHKDtree< rcrt::Triangle >::buildNode(), and rcrt::SAHKDtree< rcrt::Triangle >::intersectNode().

template<class T>
std::vector<T*>* rcrt::KDNode< T >::prim

Definition at line 69 of file SAHKDtree.hpp.

Referenced by rcrt::SAHKDtree< rcrt::Triangle >::buildLeaf(), rcrt::SAHKDtree< rcrt::Triangle >::intersectNode(), and rcrt::KDNode< rcrt::Triangle >::~KDNode().


The documentation for this class was generated from the following file:
Generated on Thu Jan 31 19:33:15 2008 for RenderingCompetitionRayTracer by  doxygen 1.5.3