aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a02717.html
blob: 8557d2b176567a6247fbeb427b78b54de9a8ddb7 (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
<!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::CLandscapeVegetableBlock 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::CLandscapeVegetableBlock Class Reference</h1><code>#include &lt;<a class="el" href="a05877.html">landscape_vegetable_block.h</a>&gt;</code>
<p>
<p>Inheritance diagram for NL3D::CLandscapeVegetableBlock:
<p><center><img src="a02717.png" usemap="#NL3D::CLandscapeVegetableBlock_map" border="0" alt=""></center>
<map name="NL3D::CLandscapeVegetableBlock_map">
<area href="a02718.html" alt="NL3D::CTessNodeList" shape="rect" coords="0,0,209,24">
</map>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A block of vegetable IG (one IG per distance type). NB: there is one <a class="el" href="a02717.html">CLandscapeVegetableBlock</a> per landscape TessBlock. <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="a05877.html#l00063">63</a> of file <a class="el" href="a05877.html">landscape_vegetable_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="a02717.html#NL3D_1_1CLandscapeVegetableBlocka0">CLandscapeVegetableBlock</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor.  <a href="#NL3D_1_1CLandscapeVegetableBlocka0"></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="a02717.html#NL3D_1_1CLandscapeVegetableBlocka1">init</a> (const <a class="el" href="a03128.html">CVector</a> &amp;center, <a class="el" href="a03680.html">CVegetableManager</a> *vegetManager, <a class="el" href="a03673.html">CVegetableClipBlock</a> *vegetableClipBlock, <a class="el" href="a03057.html">CPatch</a> *patch, <a class="el" href="a04558.html#a15">uint</a> ts, <a class="el" href="a04558.html#a15">uint</a> tt, <a class="el" href="a03064.html">CTessList</a>&lt; <a class="el" href="a02717.html">CLandscapeVegetableBlock</a> &gt; &amp;<a class="el" href="a03889.html">list</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">build the vegetable block, create sortBlocks, and append to list.  <a href="#NL3D_1_1CLandscapeVegetableBlocka1"></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="a02717.html#NL3D_1_1CLandscapeVegetableBlocka2">release</a> (<a class="el" href="a03680.html">CVegetableManager</a> *vegeManager, <a class="el" href="a03064.html">CTessList</a>&lt; <a class="el" href="a02717.html">CLandscapeVegetableBlock</a> &gt; &amp;<a class="el" href="a03889.html">list</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">release all IGs, reset the Vegetable block and remove from list. call before destruction.  <a href="#NL3D_1_1CLandscapeVegetableBlocka2"></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="a02717.html#NL3D_1_1CLandscapeVegetableBlocka3">update</a> (const <a class="el" href="a03128.html">CVector</a> &amp;viewCenter, <a class="el" href="a03680.html">CVegetableManager</a> *vegeManager)</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 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="a02717.html#NL3D_1_1CLandscapeVegetableBlockd0">createVegetableIGForDistType</a> (<a class="el" href="a04558.html#a15">uint</a> i, <a class="el" href="a03680.html">CVegetableManager</a> *vegeManager, <a class="el" href="a02719.html">CLandscapeVegetableBlockCreateContext</a> &amp;vbCreateCtx)</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="a03128.html">CVector</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr0">_Center</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The center of this object, to compute distance.  <a href="#NL3D_1_1CLandscapeVegetableBlockr0"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a7">uint8</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr1">_CurDistType</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The current distance type. 0 means all IG are created. NL3D_VEGETABLE_BLOCK_NUMDIST means none.  <a href="#NL3D_1_1CLandscapeVegetableBlockr1"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03057.html">CPatch</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr2">_Patch</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Which patch owns this block.  <a href="#NL3D_1_1CLandscapeVegetableBlockr2"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a7">uint8</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr3">_Ts</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Coordinate of the lower-left tile. 2x2 tile vegetables are generated.  <a href="#NL3D_1_1CLandscapeVegetableBlockr3"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a7">uint8</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr4">_Tt</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Coordinate of the lower-left tile. 2x2 tile vegetables are generated.  <a href="#NL3D_1_1CLandscapeVegetableBlockr4"></a><br><br></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="a02717.html#NL3D_1_1CLandscapeVegetableBlockr5">_VegetableClipBlock</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">To which VegetableClipBlock we must add vegetables IGs.  <a href="#NL3D_1_1CLandscapeVegetableBlockr5"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03674.html">CVegetableInstanceGroup</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr6">_VegetableIG</a> [NL3D_TESSBLOCK_TILESIZE][NL3D_VEGETABLE_BLOCK_NUMDIST]</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03684.html">CVegetableSortBlock</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr7">_VegetableSortBlock</a> [NL3D_TESSBLOCK_TILESIZE]</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The sortBlocks generated by this vegetable block, one for each tilematerial.  <a href="#NL3D_1_1CLandscapeVegetableBlockr7"></a><br><br></td></tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="NL3D_1_1CLandscapeVegetableBlocka0" doxytag="NL3D::CLandscapeVegetableBlock::CLandscapeVegetableBlock" ></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::CLandscapeVegetableBlock::CLandscapeVegetableBlock </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="a05876.html#l00071">71</a> of file <a class="el" href="a05876.html">landscape_vegetable_block.cpp</a>.
<p>
References <a class="el" href="a05877.html#l00098">_CurDistType</a>, <a class="el" href="a05877.html#l00092">_VegetableClipBlock</a>, <a class="el" href="a05877.html#l00107">_VegetableIG</a>, <a class="el" href="a05877.html#l00102">_VegetableSortBlock</a>, <a class="el" href="a06492.html#l00045">NL3D_TESSBLOCK_TILESIZE</a>, <a class="el" href="a06693.html#l00050">NL3D_VEGETABLE_BLOCK_NUMDIST</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
<p>
<div class="fragment"><pre>00072 {
00073         <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr5">_VegetableClipBlock</a>= NULL;
00074         <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr1">_CurDistType</a>= <a class="code" href="a05270.html#a7">NL3D_VEGETABLE_BLOCK_NUMDIST</a>;
00075 
00076         <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> j=0;j&lt;<a class="code" href="a05069.html#a1">NL3D_TESSBLOCK_TILESIZE</a>;j++)
00077         {
00078                 <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr7">_VegetableSortBlock</a>[j]= NULL;
00079                 <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> i=0;i&lt;<a class="code" href="a05270.html#a7">NL3D_VEGETABLE_BLOCK_NUMDIST</a>;i++)
00080                 {
00081                         <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr6">_VegetableIG</a>[j][i]= NULL;
00082                 }
00083         }
00084 }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="NL3D_1_1CLandscapeVegetableBlockd0" doxytag="NL3D::CLandscapeVegetableBlock::createVegetableIGForDistType" ></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::CLandscapeVegetableBlock::createVegetableIGForDistType </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="mdname" nowrap> <em>i</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a03680.html">CVegetableManager</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>vegeManager</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a02719.html">CLandscapeVegetableBlockCreateContext</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>vbCreateCtx</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [private]</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="a05876.html#l00227">227</a> of file <a class="el" href="a05876.html">landscape_vegetable_block.cpp</a>.
<p>
References <a class="el" href="a05877.html#l00094">_Patch</a>, <a class="el" href="a05877.html#l00096">_Ts</a>, <a class="el" href="a05877.html#l00096">_Tt</a>, <a class="el" href="a05877.html#l00107">_VegetableIG</a>, <a class="el" href="a05877.html#l00102">_VegetableSortBlock</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="a06162.html#l00050">NL3D::CPatch::generateTileVegetable()</a>, <a class="el" href="a06492.html#l00045">NL3D_TESSBLOCK_TILESIZE</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05981.html#l00104">sint</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
<p>
Referenced by <a class="el" href="a05876.html#l00155">update()</a>.
<p>
<div class="fragment"><pre>00229 {
00230         <span class="comment">// check</span>
00231         <a class="code" href="a04199.html#a6">nlassert</a>(NL3D_TESSBLOCK_TILESIZE==4);
00232         <a class="code" href="a04199.html#a6">nlassert</a>(_VegetableIG[0][i]==NULL);
00233         <a class="code" href="a04199.html#a6">nlassert</a>(_VegetableIG[1][i]==NULL);
00234         <a class="code" href="a04199.html#a6">nlassert</a>(_VegetableIG[2][i]==NULL);
00235         <a class="code" href="a04199.html#a6">nlassert</a>(_VegetableIG[3][i]==NULL);
00236 
00237         <span class="comment">// Create vegetables instances per tile_material.</span>
00238         <a class="code" href="a04558.html#a14">sint</a>    tms,tmt;
00239         <span class="comment">// for all tiles</span>
00240         <a class="code" href="a04199.html#a6">nlassert</a>(NL3D_TESSBLOCK_TILESIZE==4);
00241         <span class="keywordflow">for</span>(tmt= <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr4">_Tt</a>; tmt&lt;_Tt+2; tmt++)
00242         {
00243                 <span class="keywordflow">for</span>(tms= <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr3">_Ts</a>; tms&lt;_Ts+2; tms++)
00244                 {
00245                         <a class="code" href="a04558.html#a15">uint</a>    tileId= tms-_Ts + (tmt-_Tt)*2;
00246 
00247                         <span class="comment">// create the instance group in the good sortBlock</span>
00248                         CVegetableInstanceGroup         *vegetIg= vegeManager-&gt;createIg(_VegetableSortBlock[tileId]);
00249                         <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr6">_VegetableIG</a>[tileId][i]= vegetIg;
00250 
00251                         <span class="comment">// generate </span>
00252                         <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr2">_Patch</a>-&gt;generateTileVegetable(vegetIg, i, tms, tmt, vbCreateCtx);
00253 
00254                         <span class="comment">// If the ig is empty, delete him. This optimize rendering because no unusefull ig are </span>
00255                         <span class="comment">// tested for rendering. This speed up some 1/10 of ms...</span>
00256                         <span class="keywordflow">if</span>(vegetIg-&gt;isEmpty())
00257                         {
00258                                 vegeManager-&gt;deleteIg(vegetIg);
00259                                 <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr6">_VegetableIG</a>[tileId][i]= NULL;
00260                         }
00261 
00262                         <span class="comment">// NB: vegtable SortBlock is updated in CLandscapeVegetableBlock::update() after</span>
00263                 }
00264         }
00265 
00266 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CLandscapeVegetableBlocka1" doxytag="NL3D::CLandscapeVegetableBlock::init" ></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::CLandscapeVegetableBlock::init </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="a03128.html">CVector</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>center</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a03680.html">CVegetableManager</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>vegetManager</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a03673.html">CVegetableClipBlock</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>vegetableClipBlock</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a03057.html">CPatch</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>patch</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>ts</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>tt</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a03064.html">CTessList</a>&lt; <a class="el" href="a02717.html">CLandscapeVegetableBlock</a> &gt; &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>list</em></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>
build the vegetable block, create sortBlocks, and append to list. 
<p>

<p>
Definition at line <a class="el" href="a05876.html#l00089">89</a> of file <a class="el" href="a05876.html">landscape_vegetable_block.cpp</a>.
<p>
References <a class="el" href="a05877.html#l00094">_Patch</a>, <a class="el" href="a05877.html#l00096">_Ts</a>, <a class="el" href="a05877.html#l00096">_Tt</a>, <a class="el" href="a05877.html#l00092">_VegetableClipBlock</a>, <a class="el" href="a05877.html#l00102">_VegetableSortBlock</a>, <a class="el" href="a06496.html#l00073">NL3D::CTessList&lt; T &gt;::append()</a>, <a class="el" href="a06698.html#l00637">NL3D::CVegetableManager::createSortBlock()</a>, <a class="el" href="a05478.html#l00105">NL3D::CBezierPatch::eval()</a>, <a class="el" href="a06156.html#l00392">NL3D::CPatch::getOrderS()</a>, <a class="el" href="a06156.html#l00393">NL3D::CPatch::getOrderT()</a>, <a class="el" href="a05867.html#l00074">NL3D_PATCH_TILE_RADIUS</a>, <a class="el" href="a06492.html#l00045">NL3D_TESSBLOCK_TILESIZE</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05646.html#l00977">s</a>, <a class="el" href="a05981.html#l00104">sint</a>, <a class="el" href="a05646.html#l00985">t</a>, <a class="el" href="a05981.html#l00105">uint</a>, and <a class="el" href="a06155.html#l00182">NL3D::CPatch::unpackIntoCache()</a>.
<p>
Referenced by <a class="el" href="a06162.html#l00294">NL3D::CPatch::createVegetableBlock()</a>.
<p>
<div class="fragment"><pre>00091 {
00092         <a class="code" href="a04199.html#a6">nlassert</a>(patch);
00093         <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr0">_Center</a>= center;
00094         <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr5">_VegetableClipBlock</a>= vegetableClipBlock;
00095         <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr2">_Patch</a>= patch;
00096         <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr3">_Ts</a>= ts;
00097         <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr4">_Tt</a>= tt;
00098 
00099         <span class="comment">// Create the Vegetable SortBlocks</span>
00100         <a class="code" href="a04558.html#a14">sint</a>    tms,tmt;
00101         <span class="comment">// for all tiles</span>
00102         <a class="code" href="a04199.html#a6">nlassert</a>(NL3D_TESSBLOCK_TILESIZE==4);
00103         <span class="keywordflow">for</span>(tmt= <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr4">_Tt</a>; tmt&lt;_Tt+2; tmt++)
00104         {
00105                 <span class="keywordflow">for</span>(tms= <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr3">_Ts</a>; tms&lt;_Ts+2; tms++)
00106                 {
00107                         <span class="comment">// compute approximate center of the tile.</span>
00108                         <span class="keywordtype">float</span>   <a class="code" href="a04223.html#a626">s</a>= (tms + 0.5f) / <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr2">_Patch</a>-&gt;getOrderS();
00109                         <span class="keywordtype">float</span>   <a class="code" href="a04223.html#a627">t</a>= (tmt + 0.5f) / <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr2">_Patch</a>-&gt;getOrderT();
00110                         CBezierPatch    *bpatch= <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr2">_Patch</a>-&gt;unpackIntoCache();
00111                         CVector center= bpatch-&gt;eval(s, t);
00112 
00113                         <span class="comment">// create the sortBlock. NB: very approximate SortBlock radius....</span>
00114                         <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr7">_VegetableSortBlock</a>[(tmt-_Tt)*2 + (tms-_Ts)]= vegetManager-&gt;createSortBlock(_VegetableClipBlock, center, NL3D_PATCH_TILE_RADIUS);
00115                 }
00116         }
00117 
00118         <span class="comment">// append to list.</span>
00119         vblist.append(<span class="keyword">this</span>);
00120 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CLandscapeVegetableBlocka2" doxytag="NL3D::CLandscapeVegetableBlock::release" ></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::CLandscapeVegetableBlock::release </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a03680.html">CVegetableManager</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>vegeManager</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a03064.html">CTessList</a>&lt; <a class="el" href="a02717.html">CLandscapeVegetableBlock</a> &gt; &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>list</em></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>
release all IGs, reset the Vegetable block and remove from list. call before destruction. 
<p>

<p>
Definition at line <a class="el" href="a05876.html#l00124">124</a> of file <a class="el" href="a05876.html">landscape_vegetable_block.cpp</a>.
<p>
References <a class="el" href="a05877.html#l00098">_CurDistType</a>, <a class="el" href="a05877.html#l00107">_VegetableIG</a>, <a class="el" href="a05877.html#l00102">_VegetableSortBlock</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="a06492.html#l00045">NL3D_TESSBLOCK_TILESIZE</a>, <a class="el" href="a06693.html#l00050">NL3D_VEGETABLE_BLOCK_NUMDIST</a>, <a class="el" href="a06496.html#l00087">NL3D::CTessList&lt; T &gt;::remove()</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
<p>
<div class="fragment"><pre>00125 {
00126         <span class="comment">// release all Igs, and all Sbs.</span>
00127         <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> j=0;j&lt;<a class="code" href="a05069.html#a1">NL3D_TESSBLOCK_TILESIZE</a>;j++)
00128         {
00129                 <span class="comment">// release IGs first.</span>
00130                 <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> i=0;i&lt;<a class="code" href="a05270.html#a7">NL3D_VEGETABLE_BLOCK_NUMDIST</a>;i++)
00131                 {
00132                         <span class="keywordflow">if</span>(<a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr6">_VegetableIG</a>[j][i])
00133                         {
00134                                 vegeManager-&gt;deleteIg(_VegetableIG[j][i]);
00135                                 <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr6">_VegetableIG</a>[j][i]= NULL;
00136                         }
00137                 }
00138 
00139                 <span class="comment">// release SB</span>
00140                 <span class="keywordflow">if</span>(<a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr7">_VegetableSortBlock</a>[j])
00141                 {
00142                         vegeManager-&gt;deleteSortBlock(_VegetableSortBlock[j]);
00143                         <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr7">_VegetableSortBlock</a>[j]= NULL;
00144                 }
00145         }
00146 
00147         <span class="comment">// reset state.</span>
00148         <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr1">_CurDistType</a>= <a class="code" href="a05270.html#a7">NL3D_VEGETABLE_BLOCK_NUMDIST</a>;
00149 
00150         <span class="comment">// remove from list.</span>
00151         vblist.remove(<span class="keyword">this</span>);
00152 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CLandscapeVegetableBlocka3" doxytag="NL3D::CLandscapeVegetableBlock::update" ></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::CLandscapeVegetableBlock::update </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="a03128.html">CVector</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>viewCenter</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a03680.html">CVegetableManager</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>vegeManager</em></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>
update state of the vegetableBlock. If distance type change, then create / delete any wanted Ig. Warning! IG creation Use OptFastFloor()! So call must be enclosed with a OptFastFloorBegin()/OptFastFloorEnd().
<p>
Definition at line <a class="el" href="a05876.html#l00155">155</a> of file <a class="el" href="a05876.html">landscape_vegetable_block.cpp</a>.
<p>
References <a class="el" href="a05877.html#l00098">_CurDistType</a>, <a class="el" href="a05877.html#l00094">_Patch</a>, <a class="el" href="a05877.html#l00096">_Ts</a>, <a class="el" href="a05877.html#l00096">_Tt</a>, <a class="el" href="a05877.html#l00107">_VegetableIG</a>, <a class="el" href="a05877.html#l00102">_VegetableSortBlock</a>, <a class="el" href="a05876.html#l00227">createVegetableIGForDistType()</a>, <a class="el" href="a06698.html#l00706">NL3D::CVegetableManager::deleteIg()</a>, <a class="el" href="a05876.html#l00284">NL3D::CLandscapeVegetableBlockCreateContext::init()</a>, <a class="el" href="a06492.html#l00045">NL3D_TESSBLOCK_TILESIZE</a>, <a class="el" href="a05981.html#l00105">uint</a>, and <a class="el" href="a06704.html#l00074">NL3D::CVegetableSortBlock::updateSortBlock()</a>.
<p>
Referenced by <a class="el" href="a05862.html#l00605">NL3D::CLandscape::refine()</a>.
<p>
<div class="fragment"><pre>00156 {
00157         <span class="keywordtype">float</span>   sqrDist= (viewCenter-<a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr0">_Center</a>).sqrnorm();
00158 
00159         <span class="comment">// compute new distance type. Incremental mode.</span>
00160         <a class="code" href="a04558.html#a15">uint</a>    newDistType= <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr1">_CurDistType</a>;
00161         <span class="keywordflow">while</span>(sqrDist&lt;CLVBSqrDistLUT::Array[newDistType])
00162         {
00163                 newDistType--;
00164         }
00165         <span class="keywordflow">while</span>(newDistType&lt;NL3D_VEGETABLE_BLOCK_NUMDIST &amp;&amp; sqrDist&gt;CLVBSqrDistLUT::Array[newDistType+1])
00166         {
00167                 newDistType++;
00168         }
00169         <span class="comment">/*</span>
00170 <span class="comment">                NB: to test but may be better than </span>
00171 <span class="comment">                        newDistType= floor()(delta.norm() / NL3D_VEGETABLE_BLOCK_ELTDIST);</span>
00172 <span class="comment">        */</span>
00173 
00174 
00175         <span class="comment">// Change of distance type??</span>
00176         <span class="keywordflow">if</span>(newDistType!=_CurDistType)
00177         {
00178                 <span class="comment">// Erase or create IGs.</span>
00179                 <span class="keywordflow">if</span>(newDistType&gt;_CurDistType)
00180                 {
00181                         <span class="comment">// For all tiles</span>
00182                         <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> j=0;j&lt;<a class="code" href="a05069.html#a1">NL3D_TESSBLOCK_TILESIZE</a>;j++)
00183                         {
00184                                 <span class="comment">// Erase no more needed Igs.</span>
00185                                 <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> i=_CurDistType; i&lt;newDistType; i++)
00186                                 {
00187                                         <span class="keywordflow">if</span>(<a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr6">_VegetableIG</a>[j][i])
00188                                         {
00189                                                 vegeManager-&gt;deleteIg(_VegetableIG[j][i]);
00190                                                 <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr6">_VegetableIG</a>[j][i]= NULL;
00191                                         }
00192                                 }
00193 
00194                                 <span class="comment">// update the sort block for this tile</span>
00195                                 <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr7">_VegetableSortBlock</a>[j]-&gt;updateSortBlock(*vegeManager);
00196                         }
00197                 }
00198                 <span class="keywordflow">else</span>
00199                 {
00200                         <span class="comment">// Create a context for creation.</span>
00201                         CLandscapeVegetableBlockCreateContext   ctx;
00202                         ctx.init(_Patch, _Ts, _Tt);
00203 
00204                         <span class="comment">// create new Igs, for all tiles</span>
00205                         <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> i=newDistType; i&lt;_CurDistType; i++)
00206                         {
00207                                 <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockd0">createVegetableIGForDistType</a>(i, vegeManager, ctx);
00208                         }
00209 
00210                         <span class="comment">// For all tiles</span>
00211                         <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> j=0;j&lt;<a class="code" href="a05069.html#a1">NL3D_TESSBLOCK_TILESIZE</a>;j++)
00212                         {
00213                                 <span class="comment">// update the sort block for this tile</span>
00214                                 <a class="code" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr7">_VegetableSortBlock</a>[j]-&gt;updateSortBlock(*vegeManager);
00215                         }
00216                 }
00217 
00218                 <span class="comment">// copy new dist type.</span>
00219                 _CurDistType= newDistType;
00220         }
00221 
00222 
00223 }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Field Documentation</h2>
<a class="anchor" name="NL3D_1_1CLandscapeVegetableBlockr0" doxytag="NL3D::CLandscapeVegetableBlock::_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="a02717.html#NL3D_1_1CLandscapeVegetableBlockr0">NL3D::CLandscapeVegetableBlock::_Center</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The center of this object, to compute distance. 
<p>

<p>
Definition at line <a class="el" href="a05877.html#l00090">90</a> of file <a class="el" href="a05877.html">landscape_vegetable_block.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CLandscapeVegetableBlockr1" doxytag="NL3D::CLandscapeVegetableBlock::_CurDistType" ></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#a7">uint8</a> <a class="el" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr1">NL3D::CLandscapeVegetableBlock::_CurDistType</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The current distance type. 0 means all IG are created. NL3D_VEGETABLE_BLOCK_NUMDIST means none. 
<p>

<p>
Definition at line <a class="el" href="a05877.html#l00098">98</a> of file <a class="el" href="a05877.html">landscape_vegetable_block.h</a>.
<p>
Referenced by <a class="el" href="a05876.html#l00071">CLandscapeVegetableBlock()</a>, <a class="el" href="a05876.html#l00124">release()</a>, and <a class="el" href="a05876.html#l00155">update()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CLandscapeVegetableBlockr2" doxytag="NL3D::CLandscapeVegetableBlock::_Patch" ></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="a03057.html">CPatch</a>* <a class="el" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr2">NL3D::CLandscapeVegetableBlock::_Patch</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Which patch owns this block. 
<p>

<p>
Definition at line <a class="el" href="a05877.html#l00094">94</a> of file <a class="el" href="a05877.html">landscape_vegetable_block.h</a>.
<p>
Referenced by <a class="el" href="a05876.html#l00227">createVegetableIGForDistType()</a>, <a class="el" href="a05876.html#l00089">init()</a>, and <a class="el" href="a05876.html#l00155">update()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CLandscapeVegetableBlockr3" doxytag="NL3D::CLandscapeVegetableBlock::_Ts" ></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#a7">uint8</a> <a class="el" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr3">NL3D::CLandscapeVegetableBlock::_Ts</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Coordinate of the lower-left tile. 2x2 tile vegetables are generated. 
<p>

<p>
Definition at line <a class="el" href="a05877.html#l00096">96</a> of file <a class="el" href="a05877.html">landscape_vegetable_block.h</a>.
<p>
Referenced by <a class="el" href="a05876.html#l00227">createVegetableIGForDistType()</a>, <a class="el" href="a05876.html#l00089">init()</a>, and <a class="el" href="a05876.html#l00155">update()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CLandscapeVegetableBlockr4" doxytag="NL3D::CLandscapeVegetableBlock::_Tt" ></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#a7">uint8</a> <a class="el" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr4">NL3D::CLandscapeVegetableBlock::_Tt</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Coordinate of the lower-left tile. 2x2 tile vegetables are generated. 
<p>

<p>
Definition at line <a class="el" href="a05877.html#l00096">96</a> of file <a class="el" href="a05877.html">landscape_vegetable_block.h</a>.
<p>
Referenced by <a class="el" href="a05876.html#l00227">createVegetableIGForDistType()</a>, <a class="el" href="a05876.html#l00089">init()</a>, and <a class="el" href="a05876.html#l00155">update()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CLandscapeVegetableBlockr5" doxytag="NL3D::CLandscapeVegetableBlock::_VegetableClipBlock" ></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="a02717.html#NL3D_1_1CLandscapeVegetableBlockr5">NL3D::CLandscapeVegetableBlock::_VegetableClipBlock</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
To which VegetableClipBlock we must add vegetables IGs. 
<p>

<p>
Definition at line <a class="el" href="a05877.html#l00092">92</a> of file <a class="el" href="a05877.html">landscape_vegetable_block.h</a>.
<p>
Referenced by <a class="el" href="a05876.html#l00071">CLandscapeVegetableBlock()</a>, and <a class="el" href="a05876.html#l00089">init()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CLandscapeVegetableBlockr6" doxytag="NL3D::CLandscapeVegetableBlock::_VegetableIG" ></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="a03674.html">CVegetableInstanceGroup</a>* <a class="el" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr6">NL3D::CLandscapeVegetableBlock::_VegetableIG</a>[NL3D_TESSBLOCK_TILESIZE][NL3D_VEGETABLE_BLOCK_NUMDIST]<code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The instance groups generated by this vegetable block, one for each distance type. and one per each tilematerial 
<p>
Definition at line <a class="el" href="a05877.html#l00107">107</a> of file <a class="el" href="a05877.html">landscape_vegetable_block.h</a>.
<p>
Referenced by <a class="el" href="a05876.html#l00071">CLandscapeVegetableBlock()</a>, <a class="el" href="a05876.html#l00227">createVegetableIGForDistType()</a>, <a class="el" href="a05876.html#l00124">release()</a>, and <a class="el" href="a05876.html#l00155">update()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CLandscapeVegetableBlockr7" doxytag="NL3D::CLandscapeVegetableBlock::_VegetableSortBlock" ></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="a03684.html">CVegetableSortBlock</a>* <a class="el" href="a02717.html#NL3D_1_1CLandscapeVegetableBlockr7">NL3D::CLandscapeVegetableBlock::_VegetableSortBlock</a>[NL3D_TESSBLOCK_TILESIZE]<code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The sortBlocks generated by this vegetable block, one for each tilematerial. 
<p>

<p>
Definition at line <a class="el" href="a05877.html#l00102">102</a> of file <a class="el" href="a05877.html">landscape_vegetable_block.h</a>.
<p>
Referenced by <a class="el" href="a05876.html#l00071">CLandscapeVegetableBlock()</a>, <a class="el" href="a05876.html#l00227">createVegetableIGForDistType()</a>, <a class="el" href="a05876.html#l00089">init()</a>, <a class="el" href="a05876.html#l00124">release()</a>, and <a class="el" href="a05876.html#l00155">update()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CVegetableSortBlocko0" doxytag="NL3D::CLandscapeVegetableBlock::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">NL3D::CVegetableSortBlock::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::CLandscapeVegetableBlock::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>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a05877.html">landscape_vegetable_block.h</a><li><a class="el" href="a05876.html">landscape_vegetable_block.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:49:17 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>