aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a02753.html
blob: 39709bb30e5f23db084d2f84ad581298eaf3bb14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
<!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: NL3D::CLightTrav 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&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">Data&nbsp;Structures</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">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a>  | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
<h1>NL3D::CLightTrav Class Reference</h1><code>#include &lt;<a class="el" href="a05898.html">light_trav.h</a>&gt;</code>
<p>
<p>Inheritance diagram for NL3D::CLightTrav:
<p><center><img src="a02753.png" usemap="#NL3D::CLightTrav_map" border="0" alt=""></center>
<map name="NL3D::CLightTrav_map">
<area href="a02214.html" alt="NL3D::CTraversal" shape="rect" coords="0,0,113,24">
</map>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The light traversal. The purpose of this traversal is to compute lighting on lightable objects.<p>
Lightable objects can be <a class="el" href="a02316.html">CTransform</a> only.<p>
NB: see <a class="el" href="a03348.html">CScene</a> for 3d conventions (orthonormal basis...) <dl compact><dt><b>Author:</b></dt><dd>Lionel Berenguier <p>
Nevrax France </dd></dl>
<dl compact><dt><b>Date:</b></dt><dd>2000 </dd></dl>

<p>

<p>
Definition at line <a class="el" href="a05898.html#l00060">60</a> of file <a class="el" href="a05898.html">light_trav.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>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02753.html#NL3D_1_1CLightTrava0">CLightTrav</a> (bool bSmallScene)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor.  <a href="#NL3D_1_1CLightTrava0"></a><br><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">LightingList. Filled during clip traversal.</div></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02753.html#NL3D_1_1CLightTravz322_0">addLightedModel</a> (<a class="el" href="a02316.html">CTransform</a> *m)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add a model to the list of lighted models. <b>DOESN'T</b> <b>CHECK</b> if already inserted.  <a href="#NL3D_1_1CLightTravz322_0"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02753.html#NL3D_1_1CLightTravz322_1">clearLightedList</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Clear the list of lighted models.  <a href="#NL3D_1_1CLightTravz322_1"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02753.html#NL3D_1_1CLightTravz322_2">reserveLightedList</a> (<a class="el" href="a04558.html#a15">uint</a> numModels)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add a model to the list of lighted models. <b>DOESN'T</b> <b>CHECK</b> if already inserted.  <a href="#NL3D_1_1CLightTravz322_2"></a><br><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">LightingList. Add a PointLightModel to the list.</div></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02753.html#NL3D_1_1CLightTravz324_0">addPointLightModel</a> (<a class="el" href="a03093.html">CPointLightModel</a> *pl)</td></tr>

<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02753.html#NL3D_1_1CLightTravz320_0">traverse</a> ()</td></tr>

<tr><td colspan=2><br><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02747.html">CLightingManager</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02753.html#NL3D_1_1CLightTravo0">LightingManager</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The lightingManager, where objects/lights are inserted, and modelContributions are computed.  <a href="#NL3D_1_1CLightTravo0"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02753.html#NL3D_1_1CLightTravo1">LightingSystemEnabled</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03348.html">CScene</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02214.html#NL3D_1_1CTraversalo0">Scene</a></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="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02753.html#NL3D_1_1CLightTravr0">_CurrentNumVisibleModels</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02518.html">CFastPtrList</a>&lt; <a class="el" href="a03093.html">CPointLightModel</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02753.html#NL3D_1_1CLightTravr1">_DynamicLightList</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector&lt; <a class="el" href="a02316.html">CTransform</a> * &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02753.html#NL3D_1_1CLightTravr2">_LightedList</a></td></tr>

</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="NL3D_1_1CLightTrava0" doxytag="NL3D::CLightTrav::CLightTrav" ></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" nowrap valign="top"> NL3D::CLightTrav::CLightTrav </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">bool&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>bSmallScene</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Constructor. 
<p>

<p>
Definition at line <a class="el" href="a05897.html#l00045">45</a> of file <a class="el" href="a05897.html">light_trav.cpp</a>.
<p>
References <a class="el" href="a05898.html#l00104">_LightedList</a>, and <a class="el" href="a05898.html#l00094">LightingSystemEnabled</a>.
<p>
<div class="fragment"><pre>00045                                        : <a class="code" href="a02753.html#NL3D_1_1CLightTravo0">LightingManager</a>(bSmallScene)
00046 {
00047         <a class="code" href="a02753.html#NL3D_1_1CLightTravr2">_LightedList</a>.resize(1024);
00048         <a class="code" href="a02753.html#NL3D_1_1CLightTravr0">_CurrentNumVisibleModels</a>= 0;
00049 
00050         <a class="code" href="a02753.html#NL3D_1_1CLightTravo1">LightingSystemEnabled</a>= <span class="keyword">false</span>;
00051 }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="NL3D_1_1CLightTravz322_0" doxytag="NL3D::CLightTrav::addLightedModel" ></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" nowrap valign="top"> void NL3D::CLightTrav::addLightedModel </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a02316.html">CTransform</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>m</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Add a model to the list of lighted models. <b>DOESN'T</b> <b>CHECK</b> if already inserted. 
<p>

<p>
Definition at line <a class="el" href="a05898.html#l00077">77</a> of file <a class="el" href="a05898.html">light_trav.h</a>.
<p>
References <a class="el" href="a05898.html#l00104">_LightedList</a>.
<p>
Referenced by <a class="el" href="a05555.html#l00532">NL3D::CClipTrav::clipSkeletonShadowMaps()</a>, and <a class="el" href="a06568.html#l00806">NL3D::CTransform::traverseClip()</a>.
<p>
<div class="fragment"><pre>00078         {
00079                 <a class="code" href="a02753.html#NL3D_1_1CLightTravr2">_LightedList</a>[<a class="code" href="a02753.html#NL3D_1_1CLightTravr0">_CurrentNumVisibleModels</a>]= m;
00080                 <a class="code" href="a02753.html#NL3D_1_1CLightTravr0">_CurrentNumVisibleModels</a>++;
00081         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CLightTravz324_0" doxytag="NL3D::CLightTrav::addPointLightModel" ></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" nowrap valign="top"> void NL3D::CLightTrav::addPointLightModel </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a03093.html">CPointLightModel</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>pl</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05897.html#l00061">61</a> of file <a class="el" href="a05897.html">light_trav.cpp</a>.
<p>
References <a class="el" href="a05898.html#l00108">_DynamicLightList</a>, <a class="el" href="a06183.html#l00120">NL3D::CPointLightModel::_PointLightNode</a>, and <a class="el" href="a05705.html#l00128">NL3D::CFastPtrList&lt; CPointLightModel &gt;::insert()</a>.
<p>
Referenced by <a class="el" href="a06182.html#l00059">NL3D::CPointLightModel::initModel()</a>.
<p>
<div class="fragment"><pre>00062 {
00063         <a class="code" href="a02753.html#NL3D_1_1CLightTravr1">_DynamicLightList</a>.insert(pl, &amp;pl-&gt;_PointLightNode);
00064 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CLightTravz322_1" doxytag="NL3D::CLightTrav::clearLightedList" ></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" nowrap valign="top"> void NL3D::CLightTrav::clearLightedList </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Clear the list of lighted models. 
<p>

<p>
Definition at line <a class="el" href="a05897.html#l00054">54</a> of file <a class="el" href="a05897.html">light_trav.cpp</a>.
<p>
Referenced by <a class="el" href="a05555.html#l00120">NL3D::CClipTrav::traverse()</a>.
<p>
<div class="fragment"><pre>00055 {
00056         <a class="code" href="a02753.html#NL3D_1_1CLightTravr0">_CurrentNumVisibleModels</a>= 0;
00057 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CLightTravz322_2" doxytag="NL3D::CLightTrav::reserveLightedList" ></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" nowrap valign="top"> void NL3D::CLightTrav::reserveLightedList </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>numModels</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Add a model to the list of lighted models. <b>DOESN'T</b> <b>CHECK</b> if already inserted. 
<p>

<p>
Definition at line <a class="el" href="a05897.html#l00124">124</a> of file <a class="el" href="a05897.html">light_trav.cpp</a>.
<p>
References <a class="el" href="a05898.html#l00104">_LightedList</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
<p>
Referenced by <a class="el" href="a06348.html#l01004">NL3D::CScene::createModel()</a>.
<p>
<div class="fragment"><pre>00125 {
00126         <span class="comment">// enlarge only.</span>
00127         <span class="keywordflow">if</span>(numModels&gt;<a class="code" href="a02753.html#NL3D_1_1CLightTravr2">_LightedList</a>.size())
00128                 <a class="code" href="a02753.html#NL3D_1_1CLightTravr2">_LightedList</a>.resize(numModels);
00129 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CLightTravz320_0" doxytag="NL3D::CLightTrav::traverse" ></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" nowrap valign="top"> void NL3D::CLightTrav::traverse </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05897.html#l00068">68</a> of file <a class="el" href="a05897.html">light_trav.cpp</a>.
<p>
References <a class="el" href="a05898.html#l00108">_DynamicLightList</a>, <a class="el" href="a05898.html#l00104">_LightedList</a>, <a class="el" href="a05705.html#l00133">NL3D::CFastPtrList&lt; CPointLightModel &gt;::begin()</a>, <a class="el" href="a05901.html#l00137">NL3D::CLightingManager::clearDynamicLights()</a>, <a class="el" href="a05788.html#l00056">H_AUTO</a>, <a class="el" href="a05898.html#l00097">LightingManager</a>, <a class="el" href="a05898.html#l00094">LightingSystemEnabled</a>, <a class="el" href="a05705.html#l00135">NL3D::CFastPtrList&lt; CPointLightModel &gt;::size()</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
<p>
Referenced by <a class="el" href="a06348.html#l00300">NL3D::CScene::render()</a>.
<p>
<div class="fragment"><pre>00069 {
00070         <a class="code" href="a04365.html#a4">H_AUTO</a>( NL3D_TravLight );
00071 
00072         <a class="code" href="a04558.html#a15">uint</a> i;
00073 
00074 
00075         <span class="comment">// If lighting System disabled, skip</span>
00076         <span class="keywordflow">if</span>(!<a class="code" href="a02753.html#NL3D_1_1CLightTravo1">LightingSystemEnabled</a>)
00077                 <span class="keywordflow">return</span>;
00078 
00079         <span class="comment">/* for each visible lightable transform, reset them only if they have MergedPointLight.</span>
00080 <span class="comment">                NB: dynamic objetcs don't need it because already done in traverseHRC() </span>
00081 <span class="comment">                (but don't worry, reset state is flagged, so resetLighting() no op...)</span>
00082 <span class="comment">                This is important only for static object (freezeHRC()).</span>
00083 <span class="comment">                Why? because we are not sure the MergedPointLight does not represent moving DynamicPointLights.</span>
00084 <span class="comment">                Actually, it surely does. Because most of the static light setup return&lt;=2 lights, and MaxLightContribution </span>
00085 <span class="comment">                is typically==3. So any additional light may surely be a dynamic one.</span>
00086 <span class="comment">                NB: this may not be usefull since dynamicLights resetLighting() of all models in range. But this is important</span>
00087 <span class="comment">                when the dynamic light leave the model quiclky! (because don't dirt the model).</span>
00088 <span class="comment">                NB: this is also usefull only if there is no dynamic light but the ones merged in MergedPointLight. </span>
00089 <span class="comment">                Because dynamic always reset their old attached models (see below). This still can arise if for example </span>
00090 <span class="comment">                _MaxLightContribution=2 and there is a FrozenStaticLightSetup of 2 lights....</span>
00091 <span class="comment">        */</span>
00092         <span class="keywordflow">for</span>(i=0; i&lt;<a class="code" href="a02753.html#NL3D_1_1CLightTravr0">_CurrentNumVisibleModels</a>; i++ )
00093         {
00094                 <span class="comment">// if the model has a MergedPointLight, reset him (NB: already done for dynamics models) </span>
00095                 <span class="keywordflow">if</span>(<a class="code" href="a02753.html#NL3D_1_1CLightTravr2">_LightedList</a>[i]-&gt;useMergedPointLight())
00096                 {
00097                         <a class="code" href="a02753.html#NL3D_1_1CLightTravr2">_LightedList</a>[i]-&gt;resetLighting();
00098                 }
00099         }
00100 
00101 
00102         <span class="comment">// clear the quadGrid of dynamicLights</span>
00103         <a class="code" href="a02753.html#NL3D_1_1CLightTravo0">LightingManager</a>.clearDynamicLights();
00104 
00105         <span class="comment">// for each lightModel, process her: recompute position, resetLightedModels(), and append to the quadGrid.</span>
00106         CPointLightModel        **pLight= <a class="code" href="a02753.html#NL3D_1_1CLightTravr1">_DynamicLightList</a>.begin();
00107         <a class="code" href="a04558.html#a15">uint</a>    numPls= <a class="code" href="a02753.html#NL3D_1_1CLightTravr1">_DynamicLightList</a>.size();
00108         <span class="keywordflow">for</span>(;numPls&gt;0;numPls--, pLight++)
00109         {
00110                 (*pLight)-&gt;traverseLight();
00111         }
00112 
00113         <span class="comment">// for each visible lightable transform</span>
00114         <span class="keywordflow">for</span>(i=0; i&lt;_CurrentNumVisibleModels; i++ )
00115         {
00116                 <span class="comment">// traverse(), to recompute light contribution (if needed).</span>
00117                 <a class="code" href="a02753.html#NL3D_1_1CLightTravr2">_LightedList</a>[i]-&gt;traverseLight();
00118         }
00119 
00120 }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Field Documentation</h2>
<a class="anchor" name="NL3D_1_1CLightTravr0" doxytag="NL3D::CLightTrav::_CurrentNumVisibleModels" ></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" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a02753.html#NL3D_1_1CLightTravr0">NL3D::CLightTrav::_CurrentNumVisibleModels</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05898.html#l00105">105</a> of file <a class="el" href="a05898.html">light_trav.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CLightTravr1" doxytag="NL3D::CLightTrav::_DynamicLightList" ></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" nowrap valign="top"> <a class="el" href="a02518.html">CFastPtrList</a>&lt;<a class="el" href="a03093.html">CPointLightModel</a>&gt; <a class="el" href="a02753.html#NL3D_1_1CLightTravr1">NL3D::CLightTrav::_DynamicLightList</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05898.html#l00108">108</a> of file <a class="el" href="a05898.html">light_trav.h</a>.
<p>
Referenced by <a class="el" href="a05897.html#l00061">addPointLightModel()</a>, and <a class="el" href="a05897.html#l00068">traverse()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CLightTravr2" doxytag="NL3D::CLightTrav::_LightedList" ></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" nowrap valign="top"> std::vector&lt;<a class="el" href="a02316.html">CTransform</a>*&gt; <a class="el" href="a02753.html#NL3D_1_1CLightTravr2">NL3D::CLightTrav::_LightedList</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05898.html#l00104">104</a> of file <a class="el" href="a05898.html">light_trav.h</a>.
<p>
Referenced by <a class="el" href="a05898.html#l00077">addLightedModel()</a>, <a class="el" href="a05897.html#l00045">CLightTrav()</a>, <a class="el" href="a05897.html#l00124">reserveLightedList()</a>, and <a class="el" href="a05897.html#l00068">traverse()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CLightTravo0" doxytag="NL3D::CLightTrav::LightingManager" ></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" nowrap valign="top"> <a class="el" href="a02747.html">CLightingManager</a> <a class="el" href="a02753.html#NL3D_1_1CLightTravo0">NL3D::CLightTrav::LightingManager</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The lightingManager, where objects/lights are inserted, and modelContributions are computed. 
<p>

<p>
Definition at line <a class="el" href="a05898.html#l00097">97</a> of file <a class="el" href="a05898.html">light_trav.h</a>.
<p>
Referenced by <a class="el" href="a05870.html#l00143">NL3D::CLandscapeModel::clipAndRenderLandscape()</a>, <a class="el" href="a06348.html#l00903">NL3D::CScene::getLightTransitionThreshold()</a>, <a class="el" href="a06348.html#l00894">NL3D::CScene::getMaxLightContribution()</a>, <a class="el" href="a06348.html#l00899">NL3D::CScene::setLightTransitionThreshold()</a>, <a class="el" href="a06348.html#l00890">NL3D::CScene::setMaxLightContribution()</a>, <a class="el" href="a05897.html#l00068">traverse()</a>, <a class="el" href="a06568.html#l01080">NL3D::CTransform::traverseLight()</a>, <a class="el" href="a06182.html#l00084">NL3D::CPointLightModel::traverseLight()</a>, <a class="el" href="a06568.html#l00406">NL3D::CTransform::unfreezeHRC()</a>, <a class="el" href="a06568.html#l00450">NL3D::CTransform::update()</a>, and <a class="el" href="a06568.html#l00143">NL3D::CTransform::~CTransform()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CLightTravo1" doxytag="NL3D::CLightTrav::LightingSystemEnabled" ></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" nowrap valign="top"> bool <a class="el" href="a02753.html#NL3D_1_1CLightTravo1">NL3D::CLightTrav::LightingSystemEnabled</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05898.html#l00094">94</a> of file <a class="el" href="a05898.html">light_trav.h</a>.
<p>
Referenced by <a class="el" href="a05897.html#l00045">CLightTrav()</a>, <a class="el" href="a06348.html#l00833">NL3D::CScene::enableLightingSystem()</a>, and <a class="el" href="a05897.html#l00068">traverse()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTraversalo0" doxytag="NL3D::CLightTrav::Scene" ></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" nowrap valign="top"> <a class="el" href="a03348.html">CScene</a>* <a class="el" href="a02214.html#NL3D_1_1CTraversalo0">NL3D::CTraversal::Scene</a><code> [inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a06583.html#l00055">55</a> of file <a class="el" href="a06583.html">trav_scene.h</a>.
<p>
Referenced by <a class="el" href="a06348.html#l00134">NL3D::CScene::CScene()</a>, <a class="el" href="a06011.html#l01288">NL3D::CMeshMRMSkinnedGeom::profileSceneRender()</a>, <a class="el" href="a06005.html#l02600">NL3D::CMeshMRMGeom::profileSceneRender()</a>, and <a class="el" href="a05989.html#l01932">NL3D::CMeshGeom::profileSceneRender()</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a05898.html">light_trav.h</a><li><a class="el" href="a05897.html">light_trav.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:49:33 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>