diff options
Diffstat (limited to '')
-rw-r--r-- | docs/doxygen/nel/a02293.html | 396 |
1 files changed, 396 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02293.html b/docs/doxygen/nel/a02293.html new file mode 100644 index 00000000..0ebd27d7 --- /dev/null +++ b/docs/doxygen/nel/a02293.html @@ -0,0 +1,396 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>NeL: TemplateNL3D::CBSPTree< T > class Reference</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.3.6 --> +<div class="qindex"> <form class="search" action="search.php" method="get"> +<a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div> +<h1>NL3D::CBSPTree< T > Class Template Reference</h1><code>#include <<a class="el" href="a05503.html">bsp_tree.h</a>></code> +<p> +<hr><a name="_details"></a><h2>Detailed Description</h2> +<h3>template<class T><br> + class NL3D::CBSPTree< T ></h3> + +class: <a class="el" href="a02293.html">CBSPTree</a>.<p> +A template <a class="el" href="a02293.html">CBSPTree</a>. +<p> + +<p> +Definition at line <a class="el" href="a05503.html#l00051">51</a> of file <a class="el" href="a05503.html">bsp_tree.h</a>.<table border=0 cellpadding=0 cellspacing=0> +<tr><td></td></tr> +<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02293.html#NL3D_1_1CBSPTreea0">CBSPTree</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor, use axes XZ. <a href="#NL3D_1_1CBSPTreea0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a10">sint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02293.html#NL3D_1_1CBSPTreea1">getNbNode</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>T </td><td class="memItemRight" valign=bottom><a class="el" href="a02293.html#NL3D_1_1CBSPTreea2">getSelection</a> (<a class="el" href="a04558.html#a10">sint32</a> i)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02293.html#NL3D_1_1CBSPTreea3">insert</a> (<a class="el" href="a03616.html">NLMISC::CTriangle</a> &tri, T &<a class="el" href="a04223.html#a658">value</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a10">sint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02293.html#NL3D_1_1CBSPTreea4">select</a> (<a class="el" href="a03128.html">CVector</a> &v1, <a class="el" href="a03128.html">CVector</a> &v2)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02293.html#NL3D_1_1CBSPTreea5">~CBSPTree</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">dtor. <a href="#NL3D_1_1CBSPTreea5"></a><br><br></td></tr> +<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02294.html">CBSPNode</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02293.html#NL3D_1_1CBSPTreer0">_Root</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< <a class="el" href="a02294.html">CBSPNode</a> * > </td><td class="memItemRight" valign=bottom><a class="el" href="a02293.html#NL3D_1_1CBSPTreer1">_Selection</a></td></tr> + +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NL3D_1_1CBSPTreea0" doxytag="NL3D::CBSPTree::CBSPTree" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a02293.html">NL3D::CBSPTree</a>< T >::<a class="el" href="a02293.html">CBSPTree</a> </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Default constructor, use axes XZ. +<p> + +<p> +Definition at line <a class="el" href="a05503.html#l00253">253</a> of file <a class="el" href="a05503.html">bsp_tree.h</a>. +<p> +References <a class="el" href="a05503.html#l00072">NL3D::CBSPTree< T >::_Selection</a>. +<p> +<div class="fragment"><pre>00253 : <a class="code" href="a02293.html#NL3D_1_1CBSPTreer0">_Root</a>(NULL) +00254 { +00255 <a class="code" href="a02293.html#NL3D_1_1CBSPTreer1">_Selection</a>.reserve( 64 ); +00256 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CBSPTreea5" doxytag="NL3D::CBSPTree::~CBSPTree" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a02293.html">NL3D::CBSPTree</a>< T >::~<a class="el" href="a02293.html">CBSPTree</a> </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +dtor. +<p> + +<p> +Definition at line <a class="el" href="a05503.html#l00258">258</a> of file <a class="el" href="a05503.html">bsp_tree.h</a>. +<p> +References <a class="el" href="a05503.html#l00243">NL3D::CBSPTree< T >::_Root</a>. +<p> +<div class="fragment"><pre>00259 { +00260 <span class="keywordflow">if</span>( <a class="code" href="a02293.html#NL3D_1_1CBSPTreer0">_Root</a> != NULL ) +00261 <span class="keyword">delete</span> <a class="code" href="a02293.html#NL3D_1_1CBSPTreer0">_Root</a>; +00262 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NL3D_1_1CBSPTreea1" doxytag="NL3D::CBSPTree::getNbNode" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a10">sint32</a> <a class="el" href="a02293.html">NL3D::CBSPTree</a>< T >::getNbNode </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05503.html#l00295">295</a> of file <a class="el" href="a05503.html">bsp_tree.h</a>. +<p> +References <a class="el" href="a05503.html#l00243">NL3D::CBSPTree< T >::_Root</a>, <a class="el" href="a05503.html#l00163">NL3D::CBSPTree< T >::CBSPNode::getNbNode()</a>, and <a class="el" href="a05981.html#l00099">sint32</a>. +<p> +<div class="fragment"><pre>00296 { +00297 <span class="keywordflow">return</span> <a class="code" href="a02293.html#NL3D_1_1CBSPTreer0">_Root</a>-><a class="code" href="a02294.html#NL3D_1_1CBSPTree_1_1CBSPNodea1">getNbNode</a>(); +00298 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CBSPTreea2" doxytag="NL3D::CBSPTree::getSelection" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> T <a class="el" href="a02293.html">NL3D::CBSPTree</a>< T >::getSelection </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>i</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05503.html#l00290">290</a> of file <a class="el" href="a05503.html">bsp_tree.h</a>. +<p> +References <a class="el" href="a05503.html#l00072">NL3D::CBSPTree< T >::_Selection</a>, and <a class="el" href="a05981.html#l00099">sint32</a>. +<p> +<div class="fragment"><pre>00291 { +00292 <span class="keywordflow">return</span> <a class="code" href="a02293.html#NL3D_1_1CBSPTreer1">_Selection</a>[i]->Value; +00293 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CBSPTreea3" doxytag="NL3D::CBSPTree::insert" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> void <a class="el" href="a02293.html">NL3D::CBSPTree</a>< T >::insert </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03616.html">NLMISC::CTriangle</a> & </td> + <td class="mdname" nowrap> <em>tri</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>T & </td> + <td class="mdname" nowrap> <em>value</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05503.html#l00270">270</a> of file <a class="el" href="a05503.html">bsp_tree.h</a>. +<p> +References <a class="el" href="a05503.html#l00243">NL3D::CBSPTree< T >::_Root</a>, and <a class="el" href="a05503.html#l00101">NL3D::CBSPTree< T >::CBSPNode::insert()</a>. +<p> +<div class="fragment"><pre>00271 { +00272 <span class="keywordflow">if</span>( <a class="code" href="a02293.html#NL3D_1_1CBSPTreer0">_Root</a> == NULL ) +00273 <a class="code" href="a02293.html#NL3D_1_1CBSPTreer0">_Root</a> = <span class="keyword">new</span> CBSPNode( tri, val ); +00274 <span class="keywordflow">else</span> +00275 <a class="code" href="a02293.html#NL3D_1_1CBSPTreer0">_Root</a>-><a class="code" href="a02294.html#NL3D_1_1CBSPTree_1_1CBSPNodea2">insert</a>( tri, val ); +00276 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CBSPTreea4" doxytag="NL3D::CBSPTree::select" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a10">sint32</a> <a class="el" href="a02293.html">NL3D::CBSPTree</a>< T >::select </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03128.html">CVector</a> & </td> + <td class="mdname" nowrap> <em>v1</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a03128.html">CVector</a> & </td> + <td class="mdname" nowrap> <em>v2</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05503.html#l00278">278</a> of file <a class="el" href="a05503.html">bsp_tree.h</a>. +<p> +References <a class="el" href="a05503.html#l00243">NL3D::CBSPTree< T >::_Root</a>, <a class="el" href="a05503.html#l00072">NL3D::CBSPTree< T >::_Selection</a>, <a class="el" href="a05503.html#l00174">NL3D::CBSPTree< T >::CBSPNode::select()</a>, and <a class="el" href="a05981.html#l00099">sint32</a>. +<p> +<div class="fragment"><pre>00279 { +00280 <a class="code" href="a02293.html#NL3D_1_1CBSPTreer1">_Selection</a>.clear(); +00281 <span class="keywordflow">if</span>( <a class="code" href="a02293.html#NL3D_1_1CBSPTreer0">_Root</a> != NULL ) +00282 { +00283 <a class="code" href="a02293.html#NL3D_1_1CBSPTreer0">_Root</a>-><a class="code" href="a02294.html#NL3D_1_1CBSPTree_1_1CBSPNodea3">select</a>( _Selection, v1, v2 ); +00284 <span class="keywordflow">return</span> <a class="code" href="a02293.html#NL3D_1_1CBSPTreer1">_Selection</a>.size(); +00285 } +00286 <span class="keywordflow">else</span> +00287 <span class="keywordflow">return</span> 0; +00288 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NL3D_1_1CBSPTreer0" doxytag="NL3D::CBSPTree::_Root" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a02294.html">CBSPNode</a>* <a class="el" href="a02293.html">NL3D::CBSPTree</a>< T >::<a class="el" href="a02293.html#NL3D_1_1CBSPTreer0">_Root</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05503.html#l00243">243</a> of file <a class="el" href="a05503.html">bsp_tree.h</a>. +<p> +Referenced by <a class="el" href="a05503.html#l00295">NL3D::CBSPTree< T >::getNbNode()</a>, <a class="el" href="a05503.html#l00270">NL3D::CBSPTree< T >::insert()</a>, <a class="el" href="a05503.html#l00278">NL3D::CBSPTree< T >::select()</a>, and <a class="el" href="a05503.html#l00258">NL3D::CBSPTree< T >::~CBSPTree()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CBSPTreer1" doxytag="NL3D::CBSPTree::_Selection" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" colspan="4"> +template<class T> </td> + </tr> + <tr> + <td class="md" nowrap valign="top"> std::vector<<a class="el" href="a02294.html">CBSPNode</a>*> <a class="el" href="a02293.html">NL3D::CBSPTree</a>< T >::<a class="el" href="a02293.html#NL3D_1_1CBSPTreer1">_Selection</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05503.html#l00072">72</a> of file <a class="el" href="a05503.html">bsp_tree.h</a>. +<p> +Referenced by <a class="el" href="a05503.html#l00253">NL3D::CBSPTree< T >::CBSPTree()</a>, <a class="el" href="a05503.html#l00290">NL3D::CBSPTree< T >::getSelection()</a>, and <a class="el" href="a05503.html#l00278">NL3D::CBSPTree< T >::select()</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following file:<ul> +<li><a class="el" href="a05503.html">bsp_tree.h</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:44:41 2004 for NeL by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border=0 > +</a>1.3.6 </small></address> +</body> +</html> |