aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a03684.html
blob: 1dd3c9f9dfb63e42927abc2db32ead2d0bec7c72 (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
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
<!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::CVegetableSortBlock 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::CVegetableSortBlock Class Reference</h1><code>#include &lt;<a class="el" href="a06705.html">vegetable_sort_block.h</a>&gt;</code>
<p>
<p>Inheritance diagram for NL3D::CVegetableSortBlock:
<p><center><img src="a03684.png" usemap="#NL3D::CVegetableSortBlock_map" border="0" alt=""></center>
<map name="NL3D::CVegetableSortBlock_map">
<area href="a02718.html" alt="NL3D::CTessNodeList" shape="rect" coords="0,0,170,24">
</map>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A block of vegetable instance groups. <a class="el" href="a03684.html">CVegetableSortBlock</a> are sorted in Z order. NB: for speed and convenience, only the RdrPass NL3D_VEGETABLE_RDRPASS_UNLIT_2SIDED_ZSORT is sorted. A block have a number of quadrants (8). Each quadrant has an array of triangles to render. Internal to VegetableManager. Just an Handle for public. <dl compact><dt><b>Author:</b></dt><dd>Lionel Berenguier <p>
Nevrax France </dd></dl>
<dl compact><dt><b>Date:</b></dt><dd>2001 </dd></dl>

<p>

<p>
Definition at line <a class="el" href="a06705.html#l00056">56</a> of file <a class="el" href="a06705.html">vegetable_sort_block.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="a03684.html#NL3D_1_1CVegetableSortBlocka0">CVegetableSortBlock</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor.  <a href="#NL3D_1_1CVegetableSortBlocka0"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a03128.html">CVector</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03684.html#NL3D_1_1CVegetableSortBlocka1">getCenter</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03684.html#NL3D_1_1CVegetableSortBlocka2">updateSortBlock</a> (<a class="el" href="a03680.html">CVegetableManager</a> &amp;vegetManager)</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="a02718.html">CTessNodeList</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02718.html#NL3D_1_1CVegetableSortBlocko0">Next</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02718.html">CTessNodeList</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02718.html#NL3D_1_1CVegetableSortBlocko1">Prec</a></td></tr>

<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03684.html#NL3D_1_1CVegetableSortBlockr0">_Dirty</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03064.html">CTessList</a>&lt; <a class="el" href="a03674.html">CVegetableInstanceGroup</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03684.html#NL3D_1_1CVegetableSortBlockr1">_InstanceGroupList</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03673.html">CVegetableClipBlock</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03684.html#NL3D_1_1CVegetableSortBlockr2">_Owner</a></td></tr>

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

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

<tr><td colspan="2"><div class="groupHeader">Fast sorting.</div></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="a03684.html#NL3D_1_1CVegetableSortBlockz1134_0">_Center</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">center of the sort block.  <a href="#NL3D_1_1CVegetableSortBlockz1134_0"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03684.html#NL3D_1_1CVegetableSortBlockz1134_1">_NIndices</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">number of indeices= numTriangles*3.  <a href="#NL3D_1_1CVegetableSortBlockz1134_1"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03684.html#NL3D_1_1CVegetableSortBlockz1134_2">_NTriangles</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">number of triangles.  <a href="#NL3D_1_1CVegetableSortBlockz1134_2"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03684.html#NL3D_1_1CVegetableSortBlockz1134_3">_QuadrantId</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">current quadrant used. computed at each render.  <a href="#NL3D_1_1CVegetableSortBlockz1134_3"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03684.html#NL3D_1_1CVegetableSortBlockz1134_4">_Radius</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">approximate Radius of the sort block.  <a href="#NL3D_1_1CVegetableSortBlockz1134_4"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03000.html">NLMISC::CObjectVector</a>&lt; <a class="el" href="a04558.html#a11">uint32</a>,<br>
 false &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03684.html#NL3D_1_1CVegetableSortBlockz1134_5">_SortedTriangleArray</a></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="a03684.html#NL3D_1_1CVegetableSortBlockz1134_6">_SortedTriangleIndices</a> [NL3D_VEGETABLE_NUM_QUADRANT]</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">start ptr.  <a href="#NL3D_1_1CVegetableSortBlockz1134_6"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03684.html#NL3D_1_1CVegetableSortBlockz1134_7">_SortKey</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Positive value used for sort. (square of distance to viewer + threshold). temp computed at each render().  <a href="#NL3D_1_1CVegetableSortBlockz1134_7"></a><br><br></td></tr>
<tr><td colspan=2><br><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>class&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03684.html#NL3D_1_1CVegetableSortBlockn0">CSortVSB</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>class&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03684.html#NL3D_1_1CVegetableSortBlockn1">CVegetableBlendLayerModel</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>class&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03684.html#NL3D_1_1CVegetableSortBlockn2">CVegetableClipBlock</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>class&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03684.html#NL3D_1_1CVegetableSortBlockn3">CVegetableManager</a></td></tr>

</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="NL3D_1_1CVegetableSortBlocka0" doxytag="NL3D::CVegetableSortBlock::CVegetableSortBlock" ></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::CVegetableSortBlock::CVegetableSortBlock </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>
Constructor. 
<p>

<p>
Definition at line <a class="el" href="a06704.html#l00046">46</a> of file <a class="el" href="a06704.html">vegetable_sort_block.cpp</a>.
<p>
References <a class="el" href="a06705.html#l00113">_NIndices</a>, <a class="el" href="a06705.html#l00111">_NTriangles</a>, <a class="el" href="a06705.html#l00091">_UnderWater</a>, and <a class="el" href="a06705.html#l00122">ZSortHardMode</a>.
<p>
<div class="fragment"><pre>00047 {
00048         <a class="code" href="a03684.html#NL3D_1_1CVegetableSortBlockr4">ZSortHardMode</a>= <span class="keyword">true</span>;
00049         <a class="code" href="a03684.html#NL3D_1_1CVegetableSortBlockz1134_2">_NTriangles</a>= 0;
00050         <a class="code" href="a03684.html#NL3D_1_1CVegetableSortBlockz1134_1">_NIndices</a>= 0;
00051         <a class="code" href="a03684.html#NL3D_1_1CVegetableSortBlockr0">_Dirty</a>= <span class="keyword">false</span>;
00052         <a class="code" href="a03684.html#NL3D_1_1CVegetableSortBlockr3">_UnderWater</a>= <span class="keyword">false</span>;
00053 }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="NL3D_1_1CVegetableSortBlocka1" doxytag="NL3D::CVegetableSortBlock::getCenter" ></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"> const <a class="el" href="a03128.html">CVector</a>&amp; NL3D::CVegetableSortBlock::getCenter </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> const<code> [inline]</code></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="a06705.html#l00064">64</a> of file <a class="el" href="a06705.html">vegetable_sort_block.h</a>.
<p>
<div class="fragment"><pre>00064 {<span class="keywordflow">return</span> <a class="code" href="a03684.html#NL3D_1_1CVegetableSortBlockz1134_0">_Center</a>;}
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CVegetableSortBlocka2" doxytag="NL3D::CVegetableSortBlock::updateSortBlock" ></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::CVegetableSortBlock::updateSortBlock </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a03680.html">CVegetableManager</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>vegetManager</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>
After adding some instance to any instance group of a sorted block, you must recall this method NB: <a class="el" href="a03680.html#NL3D_1_1CVegetableManagerz1112_0">CVegetableManager::addInstance()</a> and <a class="el" href="a03680.html#NL3D_1_1CVegetableManagerz1110_4">CVegetableManager::deleteIg()</a> flag this SB as Dirty, when needed only. if !Dirty, <a class="el" href="a03684.html#NL3D_1_1CVegetableSortBlocka2">updateSortBlock()</a> is a no-op. /see <a class="el" href="a03680.html#NL3D_1_1CVegetableManagerz1112_0">CVegetableManager::addInstance()</a> <a class="el" href="a03680.html#NL3D_1_1CVegetableManagerz1110_4">CVegetableManager::deleteIg()</a> Warning! Use OptFastFloor()! So call must be enclosed with a OptFastFloorBegin()/OptFastFloorEnd().
<p>
Definition at line <a class="el" href="a06704.html#l00074">74</a> of file <a class="el" href="a06704.html">vegetable_sort_block.cpp</a>.
<p>
References <a class="el" href="a06705.html#l00118">_InstanceGroupList</a>, <a class="el" href="a06705.html#l00113">_NIndices</a>, <a class="el" href="a06705.html#l00111">_NTriangles</a>, <a class="el" href="a06695.html#l00138">NL3D::CVegetableInstanceGroup::_RdrPass</a>, <a class="el" href="a06705.html#l00107">_SortedTriangleArray</a>, <a class="el" href="a06705.html#l00109">_SortedTriangleIndices</a>, <a class="el" href="a06695.html#l00144">NL3D::CVegetableInstanceGroup::_TriangleQuadrantOrders</a>, <a class="el" href="a06496.html#l00071">NL3D::CTessList&lt; CVegetableInstanceGroup &gt;::begin()</a>, <a class="el" href="a06116.html#l00124">NLMISC::CObjectVector&lt; uint32, false &gt;::clear()</a>, <a class="el" href="a06704.html#l00065">NL3D::CSortTri::Dist</a>, <a class="el" href="a06116.html#l00195">NLMISC::CObjectVector&lt; uint32, false &gt;::getPtr()</a>, <a class="el" href="a05788.html#l00056">H_AUTO</a>, <a class="el" href="a06496.html#l00044">NL3D::CTessNodeList::Next</a>, <a class="el" href="a06693.html#l00057">NL3D_VEGETABLE_NUM_QUADRANT</a>, <a class="el" href="a06693.html#l00042">NL3D_VEGETABLE_RDRPASS_UNLIT_2SIDED_ZSORT</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a06695.html#l00120">NL3D::CVegetableInstanceGroup::CVegetableRdrPass::NTriangles</a>, <a class="el" href="a06116.html#l00142">NLMISC::CObjectVector&lt; uint32, false &gt;::resize()</a>, <a class="el" href="a06695.html#l00114">NL3D::CVegetableInstanceGroup::CVegetableRdrPass::TriangleIndices</a>, <a class="el" href="a06704.html#l00061">NL3D::CSortTri::TriIndex</a>, <a class="el" href="a05981.html#l00105">uint</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
<p>
Referenced by <a class="el" href="a05876.html#l00155">NL3D::CLandscapeVegetableBlock::update()</a>.
<p>
<div class="fragment"><pre>00075 {
00076         <a class="code" href="a04365.html#a4">H_AUTO</a>( NL3D_Vegetable_Update_SortBlock );
00077 
00078         <span class="comment">// if nothing to update (ie instance added/deleted do not impact me).</span>
00079         <span class="keywordflow">if</span>(!<a class="code" href="a03684.html#NL3D_1_1CVegetableSortBlockr0">_Dirty</a>)
00080         {
00081                 <span class="comment">// nothing to do.</span>
00082                 <span class="keywordflow">return</span>;
00083         }
00084         <span class="keywordflow">else</span>
00085         {
00086                 <span class="comment">// Ok clean me now.</span>
00087                 <a class="code" href="a03684.html#NL3D_1_1CVegetableSortBlockr0">_Dirty</a>= <span class="keyword">false</span>;
00088         }
00089 
00090         <span class="comment">// compute number of triangles.</span>
00091         <a class="code" href="a03684.html#NL3D_1_1CVegetableSortBlockz1134_2">_NTriangles</a>= 0;
00092         CVegetableInstanceGroup         *ptrIg= <a class="code" href="a03684.html#NL3D_1_1CVegetableSortBlockr1">_InstanceGroupList</a>.begin();
00093         <span class="keywordflow">while</span>(ptrIg)
00094         {
00095                 <span class="comment">// add only zsort rdrPass triangles.</span>
00096                 <a class="code" href="a03684.html#NL3D_1_1CVegetableSortBlockz1134_2">_NTriangles</a>+= ptrIg-&gt;_RdrPass[<a class="code" href="a05270.html#a5">NL3D_VEGETABLE_RDRPASS_UNLIT_2SIDED_ZSORT</a>].NTriangles;
00097 
00098                 <span class="comment">// next Ig in the SortBlock</span>
00099                 ptrIg= (CVegetableInstanceGroup*)(ptrIg-&gt;Next);
00100         }
00101         <span class="comment">// compute number of indices</span>
00102         <a class="code" href="a03684.html#NL3D_1_1CVegetableSortBlockz1134_1">_NIndices</a>= <a class="code" href="a03684.html#NL3D_1_1CVegetableSortBlockz1134_2">_NTriangles</a>*3;
00103 
00104 
00105         <span class="comment">// if no triangles, clear and go</span>
00106         <span class="keywordflow">if</span>(_NTriangles == 0)
00107         {
00108                 <span class="comment">// reset the array of indices.</span>
00109                 <a class="code" href="a03684.html#NL3D_1_1CVegetableSortBlockz1134_5">_SortedTriangleArray</a>.<a class="code" href="a03000.html#NLMISC_1_1CObjectVectorz1982_0">clear</a>();
00110                 <span class="comment">// bye</span>
00111                 <span class="keywordflow">return</span>;
00112         }
00113         <span class="keywordflow">else</span>
00114         {
00115                 <span class="comment">// else, re-allocate the array</span>
00116                 <a class="code" href="a03684.html#NL3D_1_1CVegetableSortBlockz1134_5">_SortedTriangleArray</a>.<a class="code" href="a03000.html#NLMISC_1_1CObjectVectorz1982_1">resize</a>(_NIndices * NL3D_VEGETABLE_NUM_QUADRANT);
00117         }
00118 
00119         <span class="comment">// resize an array for sorting.</span>
00120         <a class="code" href="a04199.html#a6">nlassert</a>(_NTriangles &lt; 65536);
00121         <span class="keyword">static</span>  std::vector&lt;CSortTri&gt;   triSort;
00122         <span class="keyword">static</span>  std::vector&lt;uint32&gt;             triIndices;
00123         <span class="comment">// don't use resize because fill with default values. size() is the capacity here.</span>
00124         <span class="keywordflow">if</span>(triSort.size()&lt;_NTriangles)
00125         {
00126                 triSort.resize(_NTriangles);
00127                 triIndices.resize(_NIndices);
00128         }
00129 
00130         <span class="comment">// fill indices with all ig info.</span>
00131         <span class="comment">//-------------</span>
00132         {
00133                 <a class="code" href="a04558.html#a11">uint32</a>          *triIdxPtr= &amp;triIndices[0];
00134                 <span class="comment">// for all igs in the sortBlock.</span>
00135                 ptrIg= <a class="code" href="a03684.html#NL3D_1_1CVegetableSortBlockr1">_InstanceGroupList</a>.begin();
00136                 <span class="keywordflow">while</span>(ptrIg)
00137                 {
00138                         CVegetableInstanceGroup::CVegetableRdrPass      &amp;vegetRdrPass= ptrIg-&gt;_RdrPass[<a class="code" href="a05270.html#a5">NL3D_VEGETABLE_RDRPASS_UNLIT_2SIDED_ZSORT</a>];
00139                         <a class="code" href="a04558.html#a11">uint32</a>          *triSrcPtr= vegetRdrPass.TriangleIndices.getPtr();
00140 
00141                         <span class="comment">// add only zsort rdrPass triangles.</span>
00142                         <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> i=0; i&lt;vegetRdrPass.NTriangles; i++)
00143                         {
00144                                 <span class="comment">// fill the triangle indices.</span>
00145                                 *(triIdxPtr++)= *(triSrcPtr++);
00146                                 *(triIdxPtr++)= *(triSrcPtr++);
00147                                 *(triIdxPtr++)= *(triSrcPtr++);
00148                         }
00149 
00150                         <span class="comment">// next Ig in the SortBlock</span>
00151                         ptrIg= (CVegetableInstanceGroup*)(ptrIg-&gt;Next);
00152                 }
00153         }
00154 
00155         <span class="comment">// Sort for all quadrants</span>
00156         <span class="comment">//-------------</span>
00157         <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> quadrant=0; quadrant&lt;<a class="code" href="a05270.html#a10">NL3D_VEGETABLE_NUM_QUADRANT</a>; quadrant++)
00158         {
00159                 <span class="comment">// ReFill SortTris with Start Data</span>
00160                 <span class="comment">//-------------</span>
00161                 CSortTri        *triPtr= &amp;triSort[0];
00162                 <a class="code" href="a04558.html#a15">uint</a>            triId= 0;
00163                 <span class="comment">// for all igs in the sortBlock.</span>
00164                 ptrIg= <a class="code" href="a03684.html#NL3D_1_1CVegetableSortBlockr1">_InstanceGroupList</a>.begin();
00165                 <span class="keywordflow">while</span>(ptrIg)
00166                 {
00167                         CVegetableInstanceGroup::CVegetableRdrPass      &amp;vegetRdrPass= ptrIg-&gt;_RdrPass[<a class="code" href="a05270.html#a5">NL3D_VEGETABLE_RDRPASS_UNLIT_2SIDED_ZSORT</a>];
00168 
00169                         <span class="comment">// add only zsort rdrPass triangles.</span>
00170                         <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> i=0; i&lt;vegetRdrPass.NTriangles; i++, triPtr++, triId++)
00171                         {
00172                                 <span class="comment">// QSort.</span>
00173                                 triPtr-&gt;Dist = ptrIg-&gt;_TriangleQuadrantOrders[quadrant][i];
00174 
00175                                 <span class="comment">// copy tri info</span>
00176                                 triPtr-&gt;TriIndex= triId;
00177                         }
00178 
00179                         <span class="comment">// next Ig in the SortBlock</span>
00180                         ptrIg= (CVegetableInstanceGroup*)(ptrIg-&gt;Next);
00181                 }
00182 
00183                 <span class="comment">// sort the array according to distance</span>
00184                 <span class="comment">//-------------</span>
00185                 <span class="comment">// QSort.</span>
00186                 sort(triSort.begin(), triSort.begin()+_NTriangles);
00187 
00188 
00189                 <span class="comment">// Fill result.</span>
00190                 <span class="comment">//-------------</span>
00191                 <span class="comment">// init quadrant ptr.</span>
00192                 <a class="code" href="a03684.html#NL3D_1_1CVegetableSortBlockz1134_6">_SortedTriangleIndices</a>[quadrant]= <a class="code" href="a03684.html#NL3D_1_1CVegetableSortBlockz1134_5">_SortedTriangleArray</a>.<a class="code" href="a03000.html#NLMISC_1_1CObjectVectorz1984_1">getPtr</a>() + quadrant * <a class="code" href="a03684.html#NL3D_1_1CVegetableSortBlockz1134_1">_NIndices</a>;
00193 
00194                 <span class="comment">// fill the indices.</span>
00195                 <a class="code" href="a04558.html#a11">uint32</a>  *pIdx= <a class="code" href="a03684.html#NL3D_1_1CVegetableSortBlockz1134_6">_SortedTriangleIndices</a>[quadrant];
00196                 <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> i=0; i&lt;_NTriangles; i++)
00197                 {
00198                         <a class="code" href="a04558.html#a11">uint32</a>  idTriIdx= triSort[i].TriIndex * 3;
00199                         *(pIdx++)= triIndices[idTriIdx+0];
00200                         *(pIdx++)= triIndices[idTriIdx+1];
00201                         *(pIdx++)= triIndices[idTriIdx+2];
00202                 }
00203         }
00204 }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Friends And Related Function Documentation</h2>
<a class="anchor" name="NL3D_1_1CVegetableSortBlockn0" doxytag="NL3D::CVegetableSortBlock::CSortVSB" ></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"> friend class <a class="el" href="a03412.html">CSortVSB</a><code> [friend]</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="a06705.html#l00078">78</a> of file <a class="el" href="a06705.html">vegetable_sort_block.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CVegetableSortBlockn1" doxytag="NL3D::CVegetableSortBlock::CVegetableBlendLayerModel" ></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"> friend class <a class="el" href="a03672.html">CVegetableBlendLayerModel</a><code> [friend]</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="a06705.html#l00080">80</a> of file <a class="el" href="a06705.html">vegetable_sort_block.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CVegetableSortBlockn2" doxytag="NL3D::CVegetableSortBlock::CVegetableClipBlock" ></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"> friend class <a class="el" href="a03673.html">CVegetableClipBlock</a><code> [friend]</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="a06705.html#l00079">79</a> of file <a class="el" href="a06705.html">vegetable_sort_block.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CVegetableSortBlockn3" doxytag="NL3D::CVegetableSortBlock::CVegetableManager" ></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"> friend class <a class="el" href="a03680.html">CVegetableManager</a><code> [friend]</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="a06705.html#l00077">77</a> of file <a class="el" href="a06705.html">vegetable_sort_block.h</a>.    </td>
  </tr>
</table>
<hr><h2>Field Documentation</h2>
<a class="anchor" name="NL3D_1_1CVegetableSortBlockz1134_0" doxytag="NL3D::CVegetableSortBlock::_Center" ></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="a03684.html#NL3D_1_1CVegetableSortBlockz1134_0">NL3D::CVegetableSortBlock::_Center</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
center of the sort block. 
<p>

<p>
Definition at line <a class="el" href="a06705.html#l00096">96</a> of file <a class="el" href="a06705.html">vegetable_sort_block.h</a>.
<p>
Referenced by <a class="el" href="a06698.html#l01036">NL3D::CVegetableManager::addInstance()</a>, <a class="el" href="a06698.html#l00637">NL3D::CVegetableManager::createSortBlock()</a>, and <a class="el" href="a06698.html#l01713">NL3D::CVegetableManager::render()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CVegetableSortBlockr0" doxytag="NL3D::CVegetableSortBlock::_Dirty" ></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="a03684.html#NL3D_1_1CVegetableSortBlockr0">NL3D::CVegetableSortBlock::_Dirty</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="a06705.html#l00088">88</a> of file <a class="el" href="a06705.html">vegetable_sort_block.h</a>.
<p>
Referenced by <a class="el" href="a06698.html#l01036">NL3D::CVegetableManager::addInstance()</a>, and <a class="el" href="a06698.html#l00706">NL3D::CVegetableManager::deleteIg()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CVegetableSortBlockr1" doxytag="NL3D::CVegetableSortBlock::_InstanceGroupList" ></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="a03064.html">CTessList</a>&lt;<a class="el" href="a03674.html">CVegetableInstanceGroup</a>&gt; <a class="el" href="a03684.html#NL3D_1_1CVegetableSortBlockr1">NL3D::CVegetableSortBlock::_InstanceGroupList</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="a06705.html#l00118">118</a> of file <a class="el" href="a06705.html">vegetable_sort_block.h</a>.
<p>
Referenced by <a class="el" href="a06698.html#l01036">NL3D::CVegetableManager::addInstance()</a>, <a class="el" href="a06698.html#l00672">NL3D::CVegetableManager::createIg()</a>, <a class="el" href="a06698.html#l00706">NL3D::CVegetableManager::deleteIg()</a>, <a class="el" href="a06698.html#l00655">NL3D::CVegetableManager::deleteSortBlock()</a>, <a class="el" href="a06698.html#l01713">NL3D::CVegetableManager::render()</a>, and <a class="el" href="a06704.html#l00074">updateSortBlock()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CVegetableSortBlockz1134_1" doxytag="NL3D::CVegetableSortBlock::_NIndices" ></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#a15">uint</a> <a class="el" href="a03684.html#NL3D_1_1CVegetableSortBlockz1134_1">NL3D::CVegetableSortBlock::_NIndices</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
number of indeices= numTriangles*3. 
<p>

<p>
Definition at line <a class="el" href="a06705.html#l00113">113</a> of file <a class="el" href="a06705.html">vegetable_sort_block.h</a>.
<p>
Referenced by <a class="el" href="a06704.html#l00046">CVegetableSortBlock()</a>, and <a class="el" href="a06704.html#l00074">updateSortBlock()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CVegetableSortBlockz1134_2" doxytag="NL3D::CVegetableSortBlock::_NTriangles" ></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#a15">uint</a> <a class="el" href="a03684.html#NL3D_1_1CVegetableSortBlockz1134_2">NL3D::CVegetableSortBlock::_NTriangles</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
number of triangles. 
<p>

<p>
Definition at line <a class="el" href="a06705.html#l00111">111</a> of file <a class="el" href="a06705.html">vegetable_sort_block.h</a>.
<p>
Referenced by <a class="el" href="a06704.html#l00046">CVegetableSortBlock()</a>, <a class="el" href="a06698.html#l01713">NL3D::CVegetableManager::render()</a>, <a class="el" href="a06688.html#l00077">NL3D::CVegetableBlendLayerModel::render()</a>, and <a class="el" href="a06704.html#l00074">updateSortBlock()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CVegetableSortBlockr2" doxytag="NL3D::CVegetableSortBlock::_Owner" ></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="a03673.html">CVegetableClipBlock</a>* <a class="el" href="a03684.html#NL3D_1_1CVegetableSortBlockr2">NL3D::CVegetableSortBlock::_Owner</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="a06705.html#l00084">84</a> of file <a class="el" href="a06705.html">vegetable_sort_block.h</a>.
<p>
Referenced by <a class="el" href="a06698.html#l00672">NL3D::CVegetableManager::createIg()</a>, <a class="el" href="a06698.html#l00637">NL3D::CVegetableManager::createSortBlock()</a>, and <a class="el" href="a06698.html#l00655">NL3D::CVegetableManager::deleteSortBlock()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CVegetableSortBlockz1134_3" doxytag="NL3D::CVegetableSortBlock::_QuadrantId" ></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#a15">uint</a> <a class="el" href="a03684.html#NL3D_1_1CVegetableSortBlockz1134_3">NL3D::CVegetableSortBlock::_QuadrantId</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
current quadrant used. computed at each render. 
<p>

<p>
Definition at line <a class="el" href="a06705.html#l00103">103</a> of file <a class="el" href="a06705.html">vegetable_sort_block.h</a>.
<p>
Referenced by <a class="el" href="a06698.html#l01713">NL3D::CVegetableManager::render()</a>, and <a class="el" href="a06688.html#l00077">NL3D::CVegetableBlendLayerModel::render()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CVegetableSortBlockz1134_4" doxytag="NL3D::CVegetableSortBlock::_Radius" ></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="a03684.html#NL3D_1_1CVegetableSortBlockz1134_4">NL3D::CVegetableSortBlock::_Radius</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
approximate Radius of the sort block. 
<p>

<p>
Definition at line <a class="el" href="a06705.html#l00098">98</a> of file <a class="el" href="a06705.html">vegetable_sort_block.h</a>.
<p>
Referenced by <a class="el" href="a06698.html#l01036">NL3D::CVegetableManager::addInstance()</a>, <a class="el" href="a06698.html#l00637">NL3D::CVegetableManager::createSortBlock()</a>, and <a class="el" href="a06698.html#l01713">NL3D::CVegetableManager::render()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CVegetableSortBlockz1134_5" doxytag="NL3D::CVegetableSortBlock::_SortedTriangleArray" ></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="a03000.html">NLMISC::CObjectVector</a>&lt;<a class="el" href="a04558.html#a11">uint32</a>, false&gt; <a class="el" href="a03684.html#NL3D_1_1CVegetableSortBlockz1134_5">NL3D::CVegetableSortBlock::_SortedTriangleArray</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Quadrants. the big array of indices, for the NL3D_VEGETABLE_NUM_QUADRANT quadrants. 
<p>
Definition at line <a class="el" href="a06705.html#l00107">107</a> of file <a class="el" href="a06705.html">vegetable_sort_block.h</a>.
<p>
Referenced by <a class="el" href="a06704.html#l00074">updateSortBlock()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CVegetableSortBlockz1134_6" doxytag="NL3D::CVegetableSortBlock::_SortedTriangleIndices" ></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="a03684.html#NL3D_1_1CVegetableSortBlockz1134_6">NL3D::CVegetableSortBlock::_SortedTriangleIndices</a>[NL3D_VEGETABLE_NUM_QUADRANT]<code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
start ptr. 
<p>

<p>
Definition at line <a class="el" href="a06705.html#l00109">109</a> of file <a class="el" href="a06705.html">vegetable_sort_block.h</a>.
<p>
Referenced by <a class="el" href="a06688.html#l00077">NL3D::CVegetableBlendLayerModel::render()</a>, and <a class="el" href="a06704.html#l00074">updateSortBlock()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CVegetableSortBlockz1134_7" doxytag="NL3D::CVegetableSortBlock::_SortKey" ></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="a03684.html#NL3D_1_1CVegetableSortBlockz1134_7">NL3D::CVegetableSortBlock::_SortKey</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Positive value used for sort. (square of distance to viewer + threshold). temp computed at each render(). 
<p>

<p>
Definition at line <a class="el" href="a06705.html#l00101">101</a> of file <a class="el" href="a06705.html">vegetable_sort_block.h</a>.
<p>
Referenced by <a class="el" href="a06698.html#l01655">NL3D::CSortVSB::operator&lt;()</a>, and <a class="el" href="a06698.html#l01713">NL3D::CVegetableManager::render()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CVegetableSortBlockr3" doxytag="NL3D::CVegetableSortBlock::_UnderWater" ></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="a03684.html#NL3D_1_1CVegetableSortBlockr3">NL3D::CVegetableSortBlock::_UnderWater</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="a06705.html#l00091">91</a> of file <a class="el" href="a06705.html">vegetable_sort_block.h</a>.
<p>
Referenced by <a class="el" href="a06698.html#l01036">NL3D::CVegetableManager::addInstance()</a>, <a class="el" href="a06704.html#l00046">CVegetableSortBlock()</a>, and <a class="el" href="a06698.html#l01713">NL3D::CVegetableManager::render()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CVegetableSortBlocko0" doxytag="NL3D::CVegetableSortBlock::Next" ></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="a02718.html">CTessNodeList</a>* <a class="el" href="a02718.html#NL3D_1_1CVegetableSortBlocko0">NL3D::CTessNodeList::Next</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="a06496.html#l00044">44</a> of file <a class="el" href="a06496.html">tess_list.h</a>.
<p>
Referenced by <a class="el" href="a06698.html#l01036">NL3D::CVegetableManager::addInstance()</a>, <a class="el" href="a05862.html#l03489">NL3D::CLandscape::computeDynamicLighting()</a>, <a class="el" href="a06161.html#l01329">NL3D::CPatch::computeGeomorphAlphaFar1VertexListVB()</a>, <a class="el" href="a06161.html#l01311">NL3D::CPatch::computeGeomorphFar0VertexListVB()</a>, <a class="el" href="a06161.html#l01359">NL3D::CPatch::computeGeomorphTileVertexListVB()</a>, <a class="el" href="a06161.html#l01298">NL3D::CPatch::computeGeomorphVertexList()</a>, <a class="el" href="a06161.html#l00893">NL3D::CPatch::debugAllocationMarkIndicesFarList()</a>, <a class="el" href="a06161.html#l00904">NL3D::CPatch::debugAllocationMarkIndicesNearList()</a>, <a class="el" href="a06161.html#l01609">NL3D::CPatch::fillFar0DLMUvOnlyVertexListVB()</a>, <a class="el" href="a06161.html#l01161">NL3D::CPatch::fillFar0VertexListVB()</a>, <a class="el" href="a06161.html#l01664">NL3D::CPatch::fillFar1DLMUvOnlyVertexListVB()</a>, <a class="el" href="a06161.html#l01173">NL3D::CPatch::fillFar1VertexListVB()</a>, <a class="el" href="a06161.html#l01185">NL3D::CPatch::fillTileVertexListVB()</a>, <a class="el" href="a05862.html#l03583">NL3D::CLandscape::getDynamicLightingMemoryLoad()</a>, <a class="el" href="a06491.html#l00177">NL3D::CTessBlock::refillFaceVectorFar0()</a>, <a class="el" href="a06491.html#l00223">NL3D::CTessBlock::refillFaceVectorFar1()</a>, <a class="el" href="a06491.html#l00267">NL3D::CTessBlock::refillFaceVectorTile()</a>, <a class="el" href="a05862.html#l00605">NL3D::CLandscape::refine()</a>, <a class="el" href="a06698.html#l01713">NL3D::CVegetableManager::render()</a>, <a class="el" href="a05862.html#l00939">NL3D::CLandscape::render()</a>, <a class="el" href="a06161.html#l00744">NL3D::CPatch::updateFar0VBAlloc()</a>, <a class="el" href="a06161.html#l00759">NL3D::CPatch::updateFar1VBAlloc()</a>, <a class="el" href="a06704.html#l00074">updateSortBlock()</a>, and <a class="el" href="a06161.html#l00774">NL3D::CPatch::updateTileVBAlloc()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CVegetableSortBlocko1" doxytag="NL3D::CVegetableSortBlock::Prec" ></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="a02718.html">CTessNodeList</a>* <a class="el" href="a02718.html#NL3D_1_1CVegetableSortBlocko1">NL3D::CTessNodeList::Prec</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="a06496.html#l00043">43</a> of file <a class="el" href="a06496.html">tess_list.h</a>.
<p>
Referenced by <a class="el" href="a06496.html#l00046">NL3D::CTessNodeList::CTessNodeList()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CVegetableSortBlockr4" doxytag="NL3D::CVegetableSortBlock::ZSortHardMode" ></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="a03684.html#NL3D_1_1CVegetableSortBlockr4">NL3D::CVegetableSortBlock::ZSortHardMode</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="a06705.html#l00122">122</a> of file <a class="el" href="a06705.html">vegetable_sort_block.h</a>.
<p>
Referenced by <a class="el" href="a06698.html#l01036">NL3D::CVegetableManager::addInstance()</a>, <a class="el" href="a06698.html#l00672">NL3D::CVegetableManager::createIg()</a>, <a class="el" href="a06704.html#l00046">CVegetableSortBlock()</a>, and <a class="el" href="a06688.html#l00077">NL3D::CVegetableBlendLayerModel::render()</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a06705.html">vegetable_sort_block.h</a><li><a class="el" href="a06704.html">vegetable_sort_block.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 08:22:39 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>