aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a03065.html
blob: 85bb7d521e5e6ba181b75524ca4b9505d50f8d7f (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
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
<!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::CPatchDLMPointLight 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::CPatchDLMPointLight Class Reference</h1><code>#include &lt;<a class="el" href="a06164.html">patchdlm_context.h</a>&gt;</code>
<p>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A PointLight for Dynamic LightMap (DLM) context for a patch. It contains precomputed values. <dl compact><dt><b>Author:</b></dt><dd>Lionel Berenguier <p>
Nevrax France </dd></dl>
<dl compact><dt><b>Date:</b></dt><dd>2002 </dd></dl>

<p>

<p>
Definition at line <a class="el" href="a06164.html#l00055">55</a> of file <a class="el" href="a06164.html">patchdlm_context.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>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighta0">compile</a> (const <a class="el" href="a03091.html">CPointLight</a> &amp;pl, <a class="el" href="a03337.html">NLMISC::CRGBA</a> landDiffMat, float maxAttEnd=30.f)</td></tr>

<tr><td colspan=2><br><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto0">AttMax</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto1">AttMin</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto2">B</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02156.html">NLMISC::CAABBox</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto3">BBox</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02291.html">NLMISC::CBSphere</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto4">BSphere</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto5">CosMax</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto6">CosMin</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03128.html">CVector</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto7">Dir</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto8">G</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto9">IsSpot</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto10">OOAttDelta</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto11">OOCosDelta</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03128.html">CVector</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto12">Pos</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto13">R</a></td></tr>

</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="NL3D_1_1CPatchDLMPointLighta0" doxytag="NL3D::CPatchDLMPointLight::compile" ></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::CPatchDLMPointLight::compile </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="a03091.html">CPointLight</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>pl</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a03337.html">NLMISC::CRGBA</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>landDiffMat</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>float&nbsp;</td>
          <td class="mdname" nowrap> <em>maxAttEnd</em> = 30.f</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></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="a06163.html#l00052">52</a> of file <a class="el" href="a06163.html">patchdlm_context.cpp</a>.
<p>
References <a class="el" href="a06164.html#l00073">AttMax</a>, <a class="el" href="a06164.html#l00075">AttMin</a>, <a class="el" href="a06340.html#l00338">NLMISC::CRGBA::B</a>, <a class="el" href="a05505.html#l00048">NLMISC::CBSphere::Center</a>, <a class="el" href="a06164.html#l00067">CosMax</a>, <a class="el" href="a06164.html#l00069">CosMin</a>, <a class="el" href="a06164.html#l00065">Dir</a>, <a class="el" href="a06340.html#l00336">NLMISC::CRGBA::G</a>, <a class="el" href="a06164.html#l00059">G</a>, <a class="el" href="a06180.html#l00141">NL3D::CPointLight::getAttenuationBegin()</a>, <a class="el" href="a06180.html#l00143">NL3D::CPointLight::getAttenuationEnd()</a>, <a class="el" href="a06180.html#l00131">NL3D::CPointLight::getDiffuse()</a>, <a class="el" href="a06180.html#l00116">NL3D::CPointLight::getPosition()</a>, <a class="el" href="a06180.html#l00151">NL3D::CPointLight::getSpotAngleBegin()</a>, <a class="el" href="a06180.html#l00153">NL3D::CPointLight::getSpotAngleEnd()</a>, <a class="el" href="a06180.html#l00161">NL3D::CPointLight::getSpotDirection()</a>, <a class="el" href="a06179.html#l00138">NL3D::CPointLight::getType()</a>, <a class="el" href="a06164.html#l00061">IsSpot</a>, <a class="el" href="a05484.html#l00038">min</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a06164.html#l00077">OOAttDelta</a>, <a class="el" href="a06164.html#l00071">OOCosDelta</a>, <a class="el" href="a06340.html#l00334">NLMISC::CRGBA::R</a>, <a class="el" href="a06164.html#l00059">R</a>, <a class="el" href="a05505.html#l00049">NLMISC::CBSphere::Radius</a>, <a class="el" href="a05385.html#l00066">NLMISC::CAABBox::setCenter()</a>, <a class="el" href="a05385.html#l00067">NLMISC::CAABBox::setHalfSize()</a>, and <a class="el" href="a05587.html#l00107">NLMISC::sqr()</a>.
<p>
<div class="fragment"><pre>00053 {
00054         <a class="code" href="a04199.html#a6">nlassert</a>(maxAttEnd&gt;0);
00055 
00056         <span class="comment">// copy color</span>
00057         <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto13">R</a>= (<span class="keywordtype">float</span>) (( pl.getDiffuse().R*(landDiffMat.<a class="code" href="a03337.html#NLMISC_1_1CRGBAo3">R</a>+1) ) &gt;&gt;8);
00058         <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto8">G</a>= (<span class="keywordtype">float</span>) (( pl.getDiffuse().G*(landDiffMat.<a class="code" href="a03337.html#NLMISC_1_1CRGBAo2">G</a>+1) ) &gt;&gt;8);
00059         <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto2">B</a>= (<span class="keywordtype">float</span>) (( pl.getDiffuse().B*(landDiffMat.<a class="code" href="a03337.html#NLMISC_1_1CRGBAo1">B</a>+1) ) &gt;&gt;8);
00060         <span class="comment">// Copy Spot/Pos/Dir.</span>
00061         <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto9">IsSpot</a>= pl.getType() == CPointLight::SpotLight;
00062         <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto12">Pos</a>= pl.getPosition();
00063         <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto7">Dir</a>= pl.getSpotDirection();
00064         
00065         <span class="comment">// compute spot params</span>
00066         <span class="keywordflow">if</span>(<a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto9">IsSpot</a>)
00067         {
00068                 <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto5">CosMax</a>= cosf(pl.getSpotAngleBegin());
00069                 <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto6">CosMin</a>= cosf(pl.getSpotAngleEnd());
00070         }
00071         <span class="keywordflow">else</span>
00072         {
00073                 <span class="comment">// with tesse Values, we have always (cosSpot-CosMin) * OOCosDelta &gt; 1.0f</span>
00074                 <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto5">CosMax</a>= -1;
00075                 <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto6">CosMin</a>= -2;
00076         }
00077         <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto11">OOCosDelta</a>= 1.f / (<a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto5">CosMax</a>-<a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto6">CosMin</a>);
00078 
00079         <span class="comment">// compute att params</span>
00080         <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto0">AttMax</a>= pl.getAttenuationEnd();
00081         <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto1">AttMin</a>= pl.getAttenuationBegin();
00082         <span class="comment">// infinite pointLight?</span>
00083         <span class="keywordflow">if</span>(<a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto0">AttMax</a>==0)
00084         {
00085                 <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto0">AttMax</a>= maxAttEnd;
00086                 <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto1">AttMin</a>= maxAttEnd*0.99f;
00087         }
00088         <span class="comment">// To big pointLigt?</span>
00089         <span class="keywordflow">else</span> <span class="keywordflow">if</span>(<a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto0">AttMax</a>&gt;maxAttEnd)
00090         {
00091                 <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto0">AttMax</a>= maxAttEnd;
00092                 <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto1">AttMin</a>= <a class="code" href="a04061.html#a0">min</a>(AttMin, maxAttEnd*0.99f);
00093         }
00094         <span class="comment">// compile distance</span>
00095         <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto10">OOAttDelta</a>= 1.f / (<a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto1">AttMin</a>-<a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto0">AttMax</a>);
00096 
00097 
00098         <span class="comment">// Compute bounding sphere.</span>
00099         <span class="comment">// If not a spot or if angleMin&gt;Pi/2</span>
00100         <span class="keywordflow">if</span>(!<a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto9">IsSpot</a> || <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto6">CosMin</a>&lt;0)
00101         {
00102                 <span class="comment">// Take sphere of pointlight sphere</span>
00103                 <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto4">BSphere</a>.<a class="code" href="a02291.html#NLMISC_1_1CBSphereo0">Center</a>= <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto12">Pos</a>;
00104                 <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto4">BSphere</a>.<a class="code" href="a02291.html#NLMISC_1_1CBSphereo1">Radius</a>= <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto0">AttMax</a>;
00105                 <span class="comment">// The bbox englobe the sphere.</span>
00106                 <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto3">BBox</a>.<a class="code" href="a02156.html#NLMISC_1_1CAABBoxz1902_1">setCenter</a>(Pos);
00107                 <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto3">BBox</a>.<a class="code" href="a02156.html#NLMISC_1_1CAABBoxz1902_2">setHalfSize</a>(CVector(AttMax, AttMax, AttMax));
00108         }
00109         <span class="keywordflow">else</span>
00110         {
00111                 <span class="comment">// Compute BSphere.</span>
00112                 <span class="comment">//==============</span>
00113 
00114                 <span class="comment">// compute sinus of AngleMin</span>
00115                 <span class="keywordtype">float</span>   sinMin= sqrtf(1-<a class="code" href="a05378.html#a373">sqr</a>(CosMin));
00116 
00117                 <span class="comment">// Test 2 centers: Center of radius along Dir: Pos+Dir*AttMax/2, and intersection of end cone with line (Pos,Dir)</span>
00118                 <span class="comment">// Don't know why but I think they are sufficiently good :)</span>
00119                 <span class="comment">// See below for computing of those centers.</span>
00120 
00121                 <span class="comment">/* compute radius of each sphere by taking max of 3 distances: distance to spotLight center, distance</span>
00122 <span class="comment">                        to spotLight forward extremity, and distance to spotLight circle interstion Cone/Sphere. (named DCCS)</span>
00123 <span class="comment">                        NB: Do the compute with radius=1 at first, then multiply later.</span>
00124 <span class="comment">                */</span>
00125                 <span class="keywordtype">float</span>   radius1= 0.5f;          <span class="comment">// =max(0.5, 0.5); max distance to spot center and extremity center :)</span>
00126                 <span class="comment">// for distance DCCS, this is the hypothenuse of (cosMin-0.5) + sinMin.</span>
00127                 <span class="keywordtype">float</span>   dccs= sqrtf( <a class="code" href="a05378.html#a373">sqr</a>(CosMin-0.5f) + <a class="code" href="a05378.html#a373">sqr</a>(sinMin));
00128                 <span class="comment">// take the bigger.</span>
00129                 radius1= max(radius1, dccs );
00130 
00131                 <span class="comment">// Same reasoning for center2.</span>
00132                 <span class="keywordtype">float</span>   radius2= max(CosMin, 1-CosMin); <span class="comment">// max distance to spot center and extremity center :)</span>
00133                 <span class="comment">// for distance DCCS, it is simply sinMin!!</span>
00134                 dccs= sinMin;
00135                 <span class="comment">// take the bigger.</span>
00136                 radius2= max(radius2, dccs );
00137 
00138 
00139                 <span class="comment">// Then take the center which gives the smaller sphere</span>
00140                 <span class="keywordflow">if</span>(radius1&lt;radius2)
00141                 {
00142                         <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto4">BSphere</a>.<a class="code" href="a02291.html#NLMISC_1_1CBSphereo0">Center</a>= <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto12">Pos</a> + (<a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto7">Dir</a>*0.5f*<a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto0">AttMax</a>);
00143                         <span class="comment">// radius1 E [0,1], must take real size.</span>
00144                         <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto4">BSphere</a>.<a class="code" href="a02291.html#NLMISC_1_1CBSphereo1">Radius</a>= radius1 * <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto0">AttMax</a>;
00145                 }
00146                 <span class="keywordflow">else</span>
00147                 {
00148                         <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto4">BSphere</a>.<a class="code" href="a02291.html#NLMISC_1_1CBSphereo0">Center</a>= <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto12">Pos</a> + (<a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto7">Dir</a>*<a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto6">CosMin</a>*<a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto0">AttMax</a>);
00149                         <span class="comment">// radius2 E [0,1], must take real size.</span>
00150                         <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto4">BSphere</a>.<a class="code" href="a02291.html#NLMISC_1_1CBSphereo1">Radius</a>= radius2 * <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto0">AttMax</a>;
00151                 }
00152 
00153 
00154                 <span class="comment">// Compute BBox.</span>
00155                 <span class="comment">//==============</span>
00156                 
00157                 <span class="comment">// just take bbox of the sphere, even if not optimal.</span>
00158                 <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto3">BBox</a>.<a class="code" href="a02156.html#NLMISC_1_1CAABBoxz1902_1">setCenter</a>(<a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto4">BSphere</a>.<a class="code" href="a02291.html#NLMISC_1_1CBSphereo0">Center</a>);
00159                 <span class="keywordtype">float</span>   rad= <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto4">BSphere</a>.<a class="code" href="a02291.html#NLMISC_1_1CBSphereo1">Radius</a>;
00160                 <a class="code" href="a03065.html#NL3D_1_1CPatchDLMPointLighto3">BBox</a>.<a class="code" href="a02156.html#NLMISC_1_1CAABBoxz1902_2">setHalfSize</a>( CVector(rad, rad, rad) );
00161         }
00162 }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Field Documentation</h2>
<a class="anchor" name="NL3D_1_1CPatchDLMPointLighto0" doxytag="NL3D::CPatchDLMPointLight::AttMax" ></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"> float <a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto0">NL3D::CPatchDLMPointLight::AttMax</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="a06164.html#l00073">73</a> of file <a class="el" href="a06164.html">patchdlm_context.h</a>.
<p>
Referenced by <a class="el" href="a06163.html#l00648">NL3D::CPatchDLMContext::addPointLightInfluence()</a>, and <a class="el" href="a06163.html#l00052">compile()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CPatchDLMPointLighto1" doxytag="NL3D::CPatchDLMPointLight::AttMin" ></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"> float <a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto1">NL3D::CPatchDLMPointLight::AttMin</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="a06164.html#l00075">75</a> of file <a class="el" href="a06164.html">patchdlm_context.h</a>.
<p>
Referenced by <a class="el" href="a06163.html#l00052">compile()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CPatchDLMPointLighto2" doxytag="NL3D::CPatchDLMPointLight::B" ></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"> float <a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto2">NL3D::CPatchDLMPointLight::B</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="a06164.html#l00059">59</a> of file <a class="el" href="a06164.html">patchdlm_context.h</a>.
<p>
Referenced by <a class="el" href="a06163.html#l00648">NL3D::CPatchDLMContext::addPointLightInfluence()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CPatchDLMPointLighto3" doxytag="NL3D::CPatchDLMPointLight::BBox" ></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="a02156.html">NLMISC::CAABBox</a> <a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto3">NL3D::CPatchDLMPointLight::BBox</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="a06164.html#l00084">84</a> of file <a class="el" href="a06164.html">patchdlm_context.h</a>.
<p>
Referenced by <a class="el" href="a05862.html#l03489">NL3D::CLandscape::computeDynamicLighting()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CPatchDLMPointLighto4" doxytag="NL3D::CPatchDLMPointLight::BSphere" ></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="a02291.html">NLMISC::CBSphere</a> <a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto4">NL3D::CPatchDLMPointLight::BSphere</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="a06164.html#l00081">81</a> of file <a class="el" href="a06164.html">patchdlm_context.h</a>.
<p>
Referenced by <a class="el" href="a06163.html#l00648">NL3D::CPatchDLMContext::addPointLightInfluence()</a>, and <a class="el" href="a05862.html#l03489">NL3D::CLandscape::computeDynamicLighting()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CPatchDLMPointLighto5" doxytag="NL3D::CPatchDLMPointLight::CosMax" ></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"> float <a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto5">NL3D::CPatchDLMPointLight::CosMax</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="a06164.html#l00067">67</a> of file <a class="el" href="a06164.html">patchdlm_context.h</a>.
<p>
Referenced by <a class="el" href="a06163.html#l00052">compile()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CPatchDLMPointLighto6" doxytag="NL3D::CPatchDLMPointLight::CosMin" ></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"> float <a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto6">NL3D::CPatchDLMPointLight::CosMin</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="a06164.html#l00069">69</a> of file <a class="el" href="a06164.html">patchdlm_context.h</a>.
<p>
Referenced by <a class="el" href="a06163.html#l00648">NL3D::CPatchDLMContext::addPointLightInfluence()</a>, and <a class="el" href="a06163.html#l00052">compile()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CPatchDLMPointLighto7" doxytag="NL3D::CPatchDLMPointLight::Dir" ></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="a03128.html">CVector</a> <a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto7">NL3D::CPatchDLMPointLight::Dir</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="a06164.html#l00065">65</a> of file <a class="el" href="a06164.html">patchdlm_context.h</a>.
<p>
Referenced by <a class="el" href="a06163.html#l00648">NL3D::CPatchDLMContext::addPointLightInfluence()</a>, and <a class="el" href="a06163.html#l00052">compile()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CPatchDLMPointLighto8" doxytag="NL3D::CPatchDLMPointLight::G" ></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"> float <a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto8">NL3D::CPatchDLMPointLight::G</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="a06164.html#l00059">59</a> of file <a class="el" href="a06164.html">patchdlm_context.h</a>.
<p>
Referenced by <a class="el" href="a06163.html#l00648">NL3D::CPatchDLMContext::addPointLightInfluence()</a>, and <a class="el" href="a06163.html#l00052">compile()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CPatchDLMPointLighto9" doxytag="NL3D::CPatchDLMPointLight::IsSpot" ></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="a03065.html#NL3D_1_1CPatchDLMPointLighto9">NL3D::CPatchDLMPointLight::IsSpot</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="a06164.html#l00061">61</a> of file <a class="el" href="a06164.html">patchdlm_context.h</a>.
<p>
Referenced by <a class="el" href="a06163.html#l00648">NL3D::CPatchDLMContext::addPointLightInfluence()</a>, and <a class="el" href="a06163.html#l00052">compile()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CPatchDLMPointLighto10" doxytag="NL3D::CPatchDLMPointLight::OOAttDelta" ></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"> float <a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto10">NL3D::CPatchDLMPointLight::OOAttDelta</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="a06164.html#l00077">77</a> of file <a class="el" href="a06164.html">patchdlm_context.h</a>.
<p>
Referenced by <a class="el" href="a06163.html#l00648">NL3D::CPatchDLMContext::addPointLightInfluence()</a>, and <a class="el" href="a06163.html#l00052">compile()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CPatchDLMPointLighto11" doxytag="NL3D::CPatchDLMPointLight::OOCosDelta" ></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"> float <a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto11">NL3D::CPatchDLMPointLight::OOCosDelta</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="a06164.html#l00071">71</a> of file <a class="el" href="a06164.html">patchdlm_context.h</a>.
<p>
Referenced by <a class="el" href="a06163.html#l00648">NL3D::CPatchDLMContext::addPointLightInfluence()</a>, and <a class="el" href="a06163.html#l00052">compile()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CPatchDLMPointLighto12" doxytag="NL3D::CPatchDLMPointLight::Pos" ></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="a03128.html">CVector</a> <a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto12">NL3D::CPatchDLMPointLight::Pos</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="a06164.html#l00063">63</a> of file <a class="el" href="a06164.html">patchdlm_context.h</a>.
<p>
Referenced by <a class="el" href="a06163.html#l00648">NL3D::CPatchDLMContext::addPointLightInfluence()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CPatchDLMPointLighto13" doxytag="NL3D::CPatchDLMPointLight::R" ></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"> float <a class="el" href="a03065.html#NL3D_1_1CPatchDLMPointLighto13">NL3D::CPatchDLMPointLight::R</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="a06164.html#l00059">59</a> of file <a class="el" href="a06164.html">patchdlm_context.h</a>.
<p>
Referenced by <a class="el" href="a06163.html#l00648">NL3D::CPatchDLMContext::addPointLightInfluence()</a>, and <a class="el" href="a06163.html#l00052">compile()</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a06164.html">patchdlm_context.h</a><li><a class="el" href="a06163.html">patchdlm_context.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 07:00:59 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>