#include <bsp_tree.h>
A template CBSPTree.
Definition at line 51 of file bsp_tree.h.
Public Member Functions | |
CBSPTree () | |
Default constructor, use axes XZ. | |
sint32 | getNbNode () |
T | getSelection (sint32 i) |
void | insert (NLMISC::CTriangle &tri, T &value) |
sint32 | select (CVector &v1, CVector &v2) |
~CBSPTree () | |
dtor. | |
Private Attributes | |
CBSPNode * | _Root |
std::vector< CBSPNode * > | _Selection |
|
Default constructor, use axes XZ.
Definition at line 253 of file bsp_tree.h. References NL3D::CBSPTree< T >::_Selection.
00253 : _Root(NULL) 00254 { 00255 _Selection.reserve( 64 ); 00256 } |
|
dtor.
Definition at line 258 of file bsp_tree.h. References NL3D::CBSPTree< T >::_Root.
|
|
Definition at line 295 of file bsp_tree.h. References NL3D::CBSPTree< T >::_Root, NL3D::CBSPTree< T >::CBSPNode::getNbNode(), and sint32.
|
|
Definition at line 290 of file bsp_tree.h. References NL3D::CBSPTree< T >::_Selection, and sint32.
00291 { 00292 return _Selection[i]->Value; 00293 } |
|
Definition at line 270 of file bsp_tree.h. References NL3D::CBSPTree< T >::_Root, and NL3D::CBSPTree< T >::CBSPNode::insert().
|
|
Definition at line 278 of file bsp_tree.h. References NL3D::CBSPTree< T >::_Root, NL3D::CBSPTree< T >::_Selection, NL3D::CBSPTree< T >::CBSPNode::select(), and sint32.
00279 { 00280 _Selection.clear(); 00281 if( _Root != NULL ) 00282 { 00283 _Root->select( _Selection, v1, v2 ); 00284 return _Selection.size(); 00285 } 00286 else 00287 return 0; 00288 } |
|
Definition at line 243 of file bsp_tree.h. Referenced by NL3D::CBSPTree< T >::getNbNode(), NL3D::CBSPTree< T >::insert(), NL3D::CBSPTree< T >::select(), and NL3D::CBSPTree< T >::~CBSPTree(). |
|
Definition at line 72 of file bsp_tree.h. Referenced by NL3D::CBSPTree< T >::CBSPTree(), NL3D::CBSPTree< T >::getSelection(), and NL3D::CBSPTree< T >::select(). |