source: OGRE/trunk/ogrenew/Docs/api/html/classOgre_1_1Octree.html @ 657

Revision 657, 28.3 KB checked in by mattausch, 18 years ago (diff)

added ogre dependencies and patched ogre sources

Line 
1<html>
2<head>
3<title>Ogre::Octree class Reference - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
4<link type="text/css" rel="stylesheet" href="style.css">
5</head>
6
7<body>
8<!-- Generated by Doxygen 1.3.6 -->
9<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
10<h1>Ogre::Octree Class Reference</h1><a class="el" href="classOgre_1_1Octree.html">Octree</a> datastructure for managing scene nodes. 
11<a href="#_details">More...</a>
12<p>
13<code>#include &lt;<a class="el" href="OgreOctree_8h-source.html">OgreOctree.h</a>&gt;</code>
14<p>
15<a href="classOgre_1_1Octree-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
16<tr><td></td></tr>
17<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
18<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Octree.html#Ogre_1_1Octreea0">Octree</a> (<a class="el" href="classOgre_1_1Octree.html">Octree</a> *p)</td></tr>
19
20<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Octree.html#Ogre_1_1Octreea1">~Octree</a> ()</td></tr>
21
22<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Octree.html#Ogre_1_1Octreea2">_addNode</a> (<a class="el" href="classOgre_1_1OctreeNode.html">OctreeNode</a> *)</td></tr>
23
24<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds an <a class="el" href="classOgre_1_1Octree.html">Octree</a> scene node to this octree level.  <a href="#Ogre_1_1Octreea2"></a><br><br></td></tr>
25<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Octree.html#Ogre_1_1Octreea3">_removeNode</a> (<a class="el" href="classOgre_1_1OctreeNode.html">OctreeNode</a> *)</td></tr>
26
27<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Removes an <a class="el" href="classOgre_1_1Octree.html">Octree</a> scene node to this octree level.  <a href="#Ogre_1_1Octreea3"></a><br><br></td></tr>
28<tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Octree.html#Ogre_1_1Octreea4">numNodes</a> ()</td></tr>
29
30<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the number of scene nodes attached to this octree.  <a href="#Ogre_1_1Octreea4"></a><br><br></td></tr>
31<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1WireBoundingBox.html">WireBoundingBox</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Octree.html#Ogre_1_1Octreea5">getWireBoundingBox</a> ()</td></tr>
32
33<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creats the wire frame bounding box for this octant.  <a href="#Ogre_1_1Octreea5"></a><br><br></td></tr>
34<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Octree.html#Ogre_1_1Octreea6">_isTwiceSize</a> (<a class="el" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a> &amp;box)</td></tr>
35
36<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Determines if this octree is twice as big as the given box.  <a href="#Ogre_1_1Octreea6"></a><br><br></td></tr>
37<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Octree.html#Ogre_1_1Octreea7">_getChildIndexes</a> (<a class="el" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a> &amp;, int *x, int *y, int *z)</td></tr>
38
39<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the appropriate indexes for the child of this octree into which the box will fit.  <a href="#Ogre_1_1Octreea7"></a><br><br></td></tr>
40<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Octree.html#Ogre_1_1Octreea8">_getCullBounds</a> (<a class="el" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a> *)</td></tr>
41
42<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates the <a class="el" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a> used for culling this octree.  <a href="#Ogre_1_1Octreea8"></a><br><br></td></tr>
43<tr><td colspan=2><br><h2>Public Attributes</h2></td></tr>
44<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Octree.html#Ogre_1_1Octreeo0">mBox</a></td></tr>
45
46<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The bounding box of the octree.  <a href="#Ogre_1_1Octreeo0"></a><br><br></td></tr>
47<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1WireBoundingBox.html">WireBoundingBox</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Octree.html#Ogre_1_1Octreeo1">mWireBoundingBox</a></td></tr>
48
49<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Vector3.html">Vector3</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Octree.html#Ogre_1_1Octreeo2">mHalfSize</a></td></tr>
50
51<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Vector containing the dimensions of this octree / 2.  <a href="#Ogre_1_1Octreeo2"></a><br><br></td></tr>
52<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Octree.html">Octree</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Octree.html#Ogre_1_1Octreeo3">mChildren</a> [2][2][2]</td></tr>
53
54<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">3D array of children of this octree.  <a href="#Ogre_1_1Octreeo3"></a><br><br></td></tr>
55<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a557">NodeList</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Octree.html#Ogre_1_1Octreeo4">mNodes</a></td></tr>
56
57<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Public list of SceneNodes attached to this particular octree.  <a href="#Ogre_1_1Octreeo4"></a><br><br></td></tr>
58<tr><td colspan=2><br><h2>Protected Member Functions</h2></td></tr>
59<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Octree.html#Ogre_1_1Octreeb0">_ref</a> ()</td></tr>
60
61<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Increments the overall node count of this octree and all it's parents.  <a href="#Ogre_1_1Octreeb0"></a><br><br></td></tr>
62<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Octree.html#Ogre_1_1Octreeb1">_unref</a> ()</td></tr>
63
64<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Decrements the overall node count of this octree and all it's parents.  <a href="#Ogre_1_1Octreeb1"></a><br><br></td></tr>
65<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr>
66<tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Octree.html#Ogre_1_1Octreep0">mNumNodes</a></td></tr>
67
68<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">number of SceneNodes in this octree and all it's children.  <a href="#Ogre_1_1Octreep0"></a><br><br></td></tr>
69<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classOgre_1_1Octree.html">Octree</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classOgre_1_1Octree.html#Ogre_1_1Octreep1">mParent</a></td></tr>
70
71<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">parent octree  <a href="#Ogre_1_1Octreep1"></a><br><br></td></tr>
72</table>
73<hr><a name="_details"></a><h2>Detailed Description</h2>
74<a class="el" href="classOgre_1_1Octree.html">Octree</a> datastructure for managing scene nodes.
75<p>
76<dl compact><dt><b>Remarks:</b></dt><dd>This is a loose octree implementation, meaning that each octant child of the octree actually overlaps it's siblings by a factor of .5. This guarantees that any thing that is half the size of the parent will fit completely into a child, with no splitting necessary. </dd></dl>
77
78<p>
79
80<p>
81Definition at line <a class="el" href="OgreOctree_8h-source.html#l00059">59</a> of file <a class="el" href="OgreOctree_8h-source.html">OgreOctree.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
82<a class="anchor" name="Ogre_1_1Octreea0" doxytag="Ogre::Octree::Octree" ></a><p>
83<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
84  <tr>
85    <td class="mdRow">
86      <table cellpadding="0" cellspacing="0" border="0">
87        <tr>
88          <td class="md" nowrap valign="top"> Ogre::Octree::Octree </td>
89          <td class="md" valign="top">(&nbsp;</td>
90          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1Octree.html">Octree</a> *&nbsp;</td>
91          <td class="mdname1" valign="top" nowrap> <em>p</em>          </td>
92          <td class="md" valign="top">&nbsp;)&nbsp;</td>
93          <td class="md" nowrap></td>
94        </tr>
95
96      </table>
97    </td>
98  </tr>
99</table>
100<table cellspacing=5 cellpadding=0 border=0>
101  <tr>
102    <td>
103      &nbsp;
104    </td>
105    <td>
106
107<p>
108    </td>
109  </tr>
110</table>
111<a class="anchor" name="Ogre_1_1Octreea1" doxytag="Ogre::Octree::~Octree" ></a><p>
112<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
113  <tr>
114    <td class="mdRow">
115      <table cellpadding="0" cellspacing="0" border="0">
116        <tr>
117          <td class="md" nowrap valign="top"> Ogre::Octree::~<a class="el" href="classOgre_1_1Octree.html">Octree</a> </td>
118          <td class="md" valign="top">(&nbsp;</td>
119          <td class="mdname1" valign="top" nowrap>          </td>
120          <td class="md" valign="top">&nbsp;)&nbsp;</td>
121          <td class="md" nowrap></td>
122        </tr>
123
124      </table>
125    </td>
126  </tr>
127</table>
128<table cellspacing=5 cellpadding=0 border=0>
129  <tr>
130    <td>
131      &nbsp;
132    </td>
133    <td>
134
135<p>
136    </td>
137  </tr>
138</table>
139<hr><h2>Member Function Documentation</h2>
140<a class="anchor" name="Ogre_1_1Octreea2" doxytag="Ogre::Octree::_addNode" ></a><p>
141<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
142  <tr>
143    <td class="mdRow">
144      <table cellpadding="0" cellspacing="0" border="0">
145        <tr>
146          <td class="md" nowrap valign="top"> void Ogre::Octree::_addNode </td>
147          <td class="md" valign="top">(&nbsp;</td>
148          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1OctreeNode.html">OctreeNode</a> *&nbsp;</td>
149          <td class="mdname1" valign="top" nowrap>          </td>
150          <td class="md" valign="top">&nbsp;)&nbsp;</td>
151          <td class="md" nowrap></td>
152        </tr>
153
154      </table>
155    </td>
156  </tr>
157</table>
158<table cellspacing=5 cellpadding=0 border=0>
159  <tr>
160    <td>
161      &nbsp;
162    </td>
163    <td>
164
165<p>
166Adds an <a class="el" href="classOgre_1_1Octree.html">Octree</a> scene node to this octree level.
167<p>
168<dl compact><dt><b>Remarks:</b></dt><dd>This is called by the <a class="el" href="classOgre_1_1OctreeSceneManager.html">OctreeSceneManager</a> after it has determined the correct <a class="el" href="classOgre_1_1Octree.html">Octree</a> to insert the node into. </dd></dl>
169    </td>
170  </tr>
171</table>
172<a class="anchor" name="Ogre_1_1Octreea7" doxytag="Ogre::Octree::_getChildIndexes" ></a><p>
173<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
174  <tr>
175    <td class="mdRow">
176      <table cellpadding="0" cellspacing="0" border="0">
177        <tr>
178          <td class="md" nowrap valign="top"> void Ogre::Octree::_getChildIndexes </td>
179          <td class="md" valign="top">(&nbsp;</td>
180          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a> &amp;&nbsp;</td>
181          <td class="mdname" nowrap>, </td>
182        </tr>
183        <tr>
184          <td class="md" nowrap align="right"></td>
185          <td></td>
186          <td class="md" nowrap>int *&nbsp;</td>
187          <td class="mdname" nowrap> <em>x</em>, </td>
188        </tr>
189        <tr>
190          <td class="md" nowrap align="right"></td>
191          <td></td>
192          <td class="md" nowrap>int *&nbsp;</td>
193          <td class="mdname" nowrap> <em>y</em>, </td>
194        </tr>
195        <tr>
196          <td class="md" nowrap align="right"></td>
197          <td></td>
198          <td class="md" nowrap>int *&nbsp;</td>
199          <td class="mdname" nowrap> <em>z</em></td>
200        </tr>
201        <tr>
202          <td></td>
203          <td class="md">)&nbsp;</td>
204          <td class="md" colspan="2"></td>
205        </tr>
206
207      </table>
208    </td>
209  </tr>
210</table>
211<table cellspacing=5 cellpadding=0 border=0>
212  <tr>
213    <td>
214      &nbsp;
215    </td>
216    <td>
217
218<p>
219Returns the appropriate indexes for the child of this octree into which the box will fit.
220<p>
221<dl compact><dt><b>Remarks:</b></dt><dd>This is used by the OCtreeSceneManager to determine which child to traverse next when finding the appropriate octree to insert the box. Since it is a loose octree, only the center of the box is checked to determine the octant. </dd></dl>
222    </td>
223  </tr>
224</table>
225<a class="anchor" name="Ogre_1_1Octreea8" doxytag="Ogre::Octree::_getCullBounds" ></a><p>
226<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
227  <tr>
228    <td class="mdRow">
229      <table cellpadding="0" cellspacing="0" border="0">
230        <tr>
231          <td class="md" nowrap valign="top"> void Ogre::Octree::_getCullBounds </td>
232          <td class="md" valign="top">(&nbsp;</td>
233          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a> *&nbsp;</td>
234          <td class="mdname1" valign="top" nowrap>          </td>
235          <td class="md" valign="top">&nbsp;)&nbsp;</td>
236          <td class="md" nowrap></td>
237        </tr>
238
239      </table>
240    </td>
241  </tr>
242</table>
243<table cellspacing=5 cellpadding=0 border=0>
244  <tr>
245    <td>
246      &nbsp;
247    </td>
248    <td>
249
250<p>
251Creates the <a class="el" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a> used for culling this octree.
252<p>
253<dl compact><dt><b>Remarks:</b></dt><dd>Since it's a loose octree, the culling bounds can be different than the actual bounds of the octree. </dd></dl>
254    </td>
255  </tr>
256</table>
257<a class="anchor" name="Ogre_1_1Octreea6" doxytag="Ogre::Octree::_isTwiceSize" ></a><p>
258<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
259  <tr>
260    <td class="mdRow">
261      <table cellpadding="0" cellspacing="0" border="0">
262        <tr>
263          <td class="md" nowrap valign="top"> bool Ogre::Octree::_isTwiceSize </td>
264          <td class="md" valign="top">(&nbsp;</td>
265          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a> &amp;&nbsp;</td>
266          <td class="mdname1" valign="top" nowrap> <em>box</em>          </td>
267          <td class="md" valign="top">&nbsp;)&nbsp;</td>
268          <td class="md" nowrap></td>
269        </tr>
270
271      </table>
272    </td>
273  </tr>
274</table>
275<table cellspacing=5 cellpadding=0 border=0>
276  <tr>
277    <td>
278      &nbsp;
279    </td>
280    <td>
281
282<p>
283Determines if this octree is twice as big as the given box.
284<p>
285<dl compact><dt><b>Remarks:</b></dt><dd>This method is used by the <a class="el" href="classOgre_1_1OctreeSceneManager.html">OctreeSceneManager</a> to determine if the given box will fit into a child of this octree. </dd></dl>
286    </td>
287  </tr>
288</table>
289<a class="anchor" name="Ogre_1_1Octreeb0" doxytag="Ogre::Octree::_ref" ></a><p>
290<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
291  <tr>
292    <td class="mdRow">
293      <table cellpadding="0" cellspacing="0" border="0">
294        <tr>
295          <td class="md" nowrap valign="top"> void Ogre::Octree::_ref </td>
296          <td class="md" valign="top">(&nbsp;</td>
297          <td class="mdname1" valign="top" nowrap>          </td>
298          <td class="md" valign="top">&nbsp;)&nbsp;</td>
299          <td class="md" nowrap><code> [protected]</code></td>
300        </tr>
301
302      </table>
303    </td>
304  </tr>
305</table>
306<table cellspacing=5 cellpadding=0 border=0>
307  <tr>
308    <td>
309      &nbsp;
310    </td>
311    <td>
312
313<p>
314Increments the overall node count of this octree and all it's parents.
315<p>
316
317<p>
318Definition at line <a class="el" href="OgreOctree_8h-source.html#l00135">135</a> of file <a class="el" href="OgreOctree_8h-source.html">OgreOctree.h</a>.    </td>
319  </tr>
320</table>
321<a class="anchor" name="Ogre_1_1Octreea3" doxytag="Ogre::Octree::_removeNode" ></a><p>
322<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
323  <tr>
324    <td class="mdRow">
325      <table cellpadding="0" cellspacing="0" border="0">
326        <tr>
327          <td class="md" nowrap valign="top"> void Ogre::Octree::_removeNode </td>
328          <td class="md" valign="top">(&nbsp;</td>
329          <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1OctreeNode.html">OctreeNode</a> *&nbsp;</td>
330          <td class="mdname1" valign="top" nowrap>          </td>
331          <td class="md" valign="top">&nbsp;)&nbsp;</td>
332          <td class="md" nowrap></td>
333        </tr>
334
335      </table>
336    </td>
337  </tr>
338</table>
339<table cellspacing=5 cellpadding=0 border=0>
340  <tr>
341    <td>
342      &nbsp;
343    </td>
344    <td>
345
346<p>
347Removes an <a class="el" href="classOgre_1_1Octree.html">Octree</a> scene node to this octree level.
348<p>
349    </td>
350  </tr>
351</table>
352<a class="anchor" name="Ogre_1_1Octreeb1" doxytag="Ogre::Octree::_unref" ></a><p>
353<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
354  <tr>
355    <td class="mdRow">
356      <table cellpadding="0" cellspacing="0" border="0">
357        <tr>
358          <td class="md" nowrap valign="top"> void Ogre::Octree::_unref </td>
359          <td class="md" valign="top">(&nbsp;</td>
360          <td class="mdname1" valign="top" nowrap>          </td>
361          <td class="md" valign="top">&nbsp;)&nbsp;</td>
362          <td class="md" nowrap><code> [protected]</code></td>
363        </tr>
364
365      </table>
366    </td>
367  </tr>
368</table>
369<table cellspacing=5 cellpadding=0 border=0>
370  <tr>
371    <td>
372      &nbsp;
373    </td>
374    <td>
375
376<p>
377Decrements the overall node count of this octree and all it's parents.
378<p>
379
380<p>
381Definition at line <a class="el" href="OgreOctree_8h-source.html#l00144">144</a> of file <a class="el" href="OgreOctree_8h-source.html">OgreOctree.h</a>.    </td>
382  </tr>
383</table>
384<a class="anchor" name="Ogre_1_1Octreea5" doxytag="Ogre::Octree::getWireBoundingBox" ></a><p>
385<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
386  <tr>
387    <td class="mdRow">
388      <table cellpadding="0" cellspacing="0" border="0">
389        <tr>
390          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1WireBoundingBox.html">WireBoundingBox</a>* Ogre::Octree::getWireBoundingBox </td>
391          <td class="md" valign="top">(&nbsp;</td>
392          <td class="mdname1" valign="top" nowrap>          </td>
393          <td class="md" valign="top">&nbsp;)&nbsp;</td>
394          <td class="md" nowrap></td>
395        </tr>
396
397      </table>
398    </td>
399  </tr>
400</table>
401<table cellspacing=5 cellpadding=0 border=0>
402  <tr>
403    <td>
404      &nbsp;
405    </td>
406    <td>
407
408<p>
409Creats the wire frame bounding box for this octant.
410<p>
411    </td>
412  </tr>
413</table>
414<a class="anchor" name="Ogre_1_1Octreea4" doxytag="Ogre::Octree::numNodes" ></a><p>
415<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
416  <tr>
417    <td class="mdRow">
418      <table cellpadding="0" cellspacing="0" border="0">
419        <tr>
420          <td class="md" nowrap valign="top"> int Ogre::Octree::numNodes </td>
421          <td class="md" valign="top">(&nbsp;</td>
422          <td class="mdname1" valign="top" nowrap>          </td>
423          <td class="md" valign="top">&nbsp;)&nbsp;</td>
424          <td class="md" nowrap></td>
425        </tr>
426
427      </table>
428    </td>
429  </tr>
430</table>
431<table cellspacing=5 cellpadding=0 border=0>
432  <tr>
433    <td>
434      &nbsp;
435    </td>
436    <td>
437
438<p>
439Returns the number of scene nodes attached to this octree.
440<p>
441
442<p>
443Definition at line <a class="el" href="OgreOctree_8h-source.html#l00078">78</a> of file <a class="el" href="OgreOctree_8h-source.html">OgreOctree.h</a>.    </td>
444  </tr>
445</table>
446<hr><h2>Member Data Documentation</h2>
447<a class="anchor" name="Ogre_1_1Octreeo0" doxytag="Ogre::Octree::mBox" ></a><p>
448<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
449  <tr>
450    <td class="mdRow">
451      <table cellpadding="0" cellspacing="0" border="0">
452        <tr>
453          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a> <a class="el" href="classOgre_1_1Octree.html#Ogre_1_1Octreeo0">Ogre::Octree::mBox</a>
454      </table>
455    </td>
456  </tr>
457</table>
458<table cellspacing=5 cellpadding=0 border=0>
459  <tr>
460    <td>
461      &nbsp;
462    </td>
463    <td>
464
465<p>
466The bounding box of the octree.
467<p>
468<dl compact><dt><b>Remarks:</b></dt><dd>This is used for octant index determination and rendering, but not culling </dd></dl>
469
470<p>
471Definition at line <a class="el" href="OgreOctree_8h-source.html#l00087">87</a> of file <a class="el" href="OgreOctree_8h-source.html">OgreOctree.h</a>.    </td>
472  </tr>
473</table>
474<a class="anchor" name="Ogre_1_1Octreeo3" doxytag="Ogre::Octree::mChildren" ></a><p>
475<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
476  <tr>
477    <td class="mdRow">
478      <table cellpadding="0" cellspacing="0" border="0">
479        <tr>
480          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Octree.html">Octree</a>* <a class="el" href="classOgre_1_1Octree.html#Ogre_1_1Octreeo3">Ogre::Octree::mChildren</a>[ 2 ][ 2 ][ 2 ]
481      </table>
482    </td>
483  </tr>
484</table>
485<table cellspacing=5 cellpadding=0 border=0>
486  <tr>
487    <td>
488      &nbsp;
489    </td>
490    <td>
491
492<p>
4933D array of children of this octree.
494<p>
495<dl compact><dt><b>Remarks:</b></dt><dd>Children are dynamically created as needed when nodes are inserted in the <a class="el" href="classOgre_1_1Octree.html">Octree</a>. If, later, the all the nodes are removed from the child, it is still kept arround. </dd></dl>
496
497<p>
498Definition at line <a class="el" href="OgreOctree_8h-source.html#l00103">103</a> of file <a class="el" href="OgreOctree_8h-source.html">OgreOctree.h</a>.    </td>
499  </tr>
500</table>
501<a class="anchor" name="Ogre_1_1Octreeo2" doxytag="Ogre::Octree::mHalfSize" ></a><p>
502<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
503  <tr>
504    <td class="mdRow">
505      <table cellpadding="0" cellspacing="0" border="0">
506        <tr>
507          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Vector3.html">Vector3</a> <a class="el" href="classOgre_1_1Octree.html#Ogre_1_1Octreeo2">Ogre::Octree::mHalfSize</a>
508      </table>
509    </td>
510  </tr>
511</table>
512<table cellspacing=5 cellpadding=0 border=0>
513  <tr>
514    <td>
515      &nbsp;
516    </td>
517    <td>
518
519<p>
520Vector containing the dimensions of this octree / 2.
521<p>
522
523<p>
524Definition at line <a class="el" href="OgreOctree_8h-source.html#l00096">96</a> of file <a class="el" href="OgreOctree_8h-source.html">OgreOctree.h</a>.    </td>
525  </tr>
526</table>
527<a class="anchor" name="Ogre_1_1Octreeo4" doxytag="Ogre::Octree::mNodes" ></a><p>
528<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
529  <tr>
530    <td class="mdRow">
531      <table cellpadding="0" cellspacing="0" border="0">
532        <tr>
533          <td class="md" nowrap valign="top"> <a class="el" href="namespaceOgre.html#a557">NodeList</a> <a class="el" href="classOgre_1_1Octree.html#Ogre_1_1Octreeo4">Ogre::Octree::mNodes</a>
534      </table>
535    </td>
536  </tr>
537</table>
538<table cellspacing=5 cellpadding=0 border=0>
539  <tr>
540    <td>
541      &nbsp;
542    </td>
543    <td>
544
545<p>
546Public list of SceneNodes attached to this particular octree.
547<p>
548
549<p>
550Definition at line <a class="el" href="OgreOctree_8h-source.html#l00129">129</a> of file <a class="el" href="OgreOctree_8h-source.html">OgreOctree.h</a>.    </td>
551  </tr>
552</table>
553<a class="anchor" name="Ogre_1_1Octreep0" doxytag="Ogre::Octree::mNumNodes" ></a><p>
554<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
555  <tr>
556    <td class="mdRow">
557      <table cellpadding="0" cellspacing="0" border="0">
558        <tr>
559          <td class="md" nowrap valign="top"> int <a class="el" href="classOgre_1_1Octree.html#Ogre_1_1Octreep0">Ogre::Octree::mNumNodes</a><code> [protected]</code>
560      </table>
561    </td>
562  </tr>
563</table>
564<table cellspacing=5 cellpadding=0 border=0>
565  <tr>
566    <td>
567      &nbsp;
568    </td>
569    <td>
570
571<p>
572number of SceneNodes in this octree and all it's children.
573<p>
574
575<p>
576Definition at line <a class="el" href="OgreOctree_8h-source.html#l00152">152</a> of file <a class="el" href="OgreOctree_8h-source.html">OgreOctree.h</a>.    </td>
577  </tr>
578</table>
579<a class="anchor" name="Ogre_1_1Octreep1" doxytag="Ogre::Octree::mParent" ></a><p>
580<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
581  <tr>
582    <td class="mdRow">
583      <table cellpadding="0" cellspacing="0" border="0">
584        <tr>
585          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1Octree.html">Octree</a>* <a class="el" href="classOgre_1_1Octree.html#Ogre_1_1Octreep1">Ogre::Octree::mParent</a><code> [protected]</code>
586      </table>
587    </td>
588  </tr>
589</table>
590<table cellspacing=5 cellpadding=0 border=0>
591  <tr>
592    <td>
593      &nbsp;
594    </td>
595    <td>
596
597<p>
598parent octree
599<p>
600
601<p>
602Definition at line <a class="el" href="OgreOctree_8h-source.html#l00155">155</a> of file <a class="el" href="OgreOctree_8h-source.html">OgreOctree.h</a>.    </td>
603  </tr>
604</table>
605<a class="anchor" name="Ogre_1_1Octreeo1" doxytag="Ogre::Octree::mWireBoundingBox" ></a><p>
606<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
607  <tr>
608    <td class="mdRow">
609      <table cellpadding="0" cellspacing="0" border="0">
610        <tr>
611          <td class="md" nowrap valign="top"> <a class="el" href="classOgre_1_1WireBoundingBox.html">WireBoundingBox</a>* <a class="el" href="classOgre_1_1Octree.html#Ogre_1_1Octreeo1">Ogre::Octree::mWireBoundingBox</a>
612      </table>
613    </td>
614  </tr>
615</table>
616<table cellspacing=5 cellpadding=0 border=0>
617  <tr>
618    <td>
619      &nbsp;
620    </td>
621    <td>
622
623<p>
624
625<p>
626Definition at line <a class="el" href="OgreOctree_8h-source.html#l00088">88</a> of file <a class="el" href="OgreOctree_8h-source.html">OgreOctree.h</a>.    </td>
627  </tr>
628</table>
629<hr>The documentation for this class was generated from the following file:<ul>
630<li><a class="el" href="OgreOctree_8h-source.html">OgreOctree.h</a></ul>
631<hr>
632<p>
633Copyright &copy; 2000-2005 by The OGRE Team<br />
634<!--Creative Commons License--><a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/"><img alt="Creative Commons License" border="0" src="http://creativecommons.org/images/public/somerights20.png"/></a><br/>
635This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/">Creative Commons Attribution-ShareAlike 2.5 License</a>.<br/>
636                <!--/Creative Commons License--><!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
637                <Work rdf:about="">
638                        <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" />
639        <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" />
640                </Work>
641                <License rdf:about="http://creativecommons.org/licenses/by-sa/2.5/"><permits rdf:resource="http://web.resource.org/cc/Reproduction"/><permits rdf:resource="http://web.resource.org/cc/Distribution"/><requires rdf:resource="http://web.resource.org/cc/Notice"/><requires rdf:resource="http://web.resource.org/cc/Attribution"/><permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/><requires rdf:resource="http://web.resource.org/cc/ShareAlike"/></License></rdf:RDF> -->
642
643Last modified Sun Feb 12 13:05:47 2006
644</p>
645</body>
646</html>
Note: See TracBrowser for help on using the repository browser.