GOFIGURE2
0.9.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
Code
ExternalCode
MegaVTK
vtkRenderingAddOn
lut
Flow.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: vtkINRIA3D
4
Module: $Id: Flow.h 477 2007-11-20 17:46:10Z filus $
5
Language: C++
6
Author: $Author: filus $
7
Date: $Date: 2007-11-20 12:46:10 -0500 (Tue, 20 Nov 2007) $
8
Version: $Revision: 477 $
9
10
Copyright (c) 2007 INRIA - Asclepios Project. All rights reserved.
11
12
This software is distributed WITHOUT ANY WARRANTY; without even
13
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14
PURPOSE. See the above copyright notices for more information.
15
16
=========================================================================*/
17
18
/*========================================================================
19
Copyright (c) INRIA - ASCLEPIOS Project (http://www-sop.inria.fr/asclepios).
20
All rights reserved.
21
22
Redistribution and use in source and binary forms, with or without
23
modification, are permitted provided that the following conditions are met:
24
25
* Redistributions of source code must retain the above copyright notice,
26
this list of conditions and the following disclaimer.
27
28
* Redistributions in binary form must reproduce the above copyright notice,
29
this list of conditions and the following disclaimer in the documentation
30
and/or other materials provided with the distribution.
31
32
* Neither the name of INRIA or ASCLEPIOS, nor the names of any contributors
33
may be used to endorse or promote products derived from this software
34
without specific prior written permission.
35
36
* Modified source versions must be plainly marked as such, and must not be
37
misrepresented as being the original software.
38
39
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS''
40
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
41
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
42
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR
43
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
44
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
45
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
46
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
47
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
48
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
49
=========================================================================*/
50
51
#ifndef _lut_Flow_h_
52
#define _lut_Flow_h_
53
54
static
const
int
Flow
[3 * 256] = {
55
32,
56
32,
57
32,
58
32,
59
31,
60
31,
61
31,
62
31,
63
31,
64
30,
65
30,
66
30,
67
30,
68
30,
69
29,
70
29,
71
29,
72
29,
73
29,
74
28,
75
28,
76
28,
77
28,
78
28,
79
27,
80
27,
81
27,
82
27,
83
27,
84
26,
85
26,
86
26,
87
26,
88
26,
89
25,
90
25,
91
25,
92
25,
93
25,
94
24,
95
24,
96
24,
97
24,
98
24,
99
23,
100
23,
101
23,
102
23,
103
23,
104
22,
105
22,
106
22,
107
22,
108
22,
109
21,
110
21,
111
21,
112
21,
113
21,
114
20,
115
20,
116
20,
117
20,
118
19,
119
19,
120
19,
121
19,
122
18,
123
18,
124
18,
125
17,
126
17,
127
17,
128
16,
129
16,
130
16,
131
16,
132
15,
133
15,
134
15,
135
14,
136
14,
137
14,
138
13,
139
13,
140
13,
141
13,
142
12,
143
12,
144
12,
145
11,
146
11,
147
11,
148
10,
149
10,
150
10,
151
10,
152
9,
153
9,
154
9,
155
8,
156
8,
157
8,
158
7,
159
7,
160
7,
161
7,
162
6,
163
6,
164
6,
165
5,
166
5,
167
5,
168
4,
169
4,
170
4,
171
4,
172
3,
173
3,
174
3,
175
2,
176
2,
177
2,
178
1,
179
1,
180
1,
181
1,
182
0,
183
0,
184
0,
185
4,
186
8,
187
12,
188
16,
189
20,
190
24,
191
28,
192
32,
193
36,
194
40,
195
45,
196
49,
197
53,
198
57,
199
61,
200
65,
201
69,
202
73,
203
77,
204
81,
205
85,
206
89,
207
93,
208
97,
209
101,
210
105,
211
109,
212
113,
213
117,
214
121,
215
125,
216
130,
217
134,
218
138,
219
142,
220
146,
221
150,
222
154,
223
158,
224
162,
225
166,
226
170,
227
174,
228
178,
229
182,
230
186,
231
190,
232
194,
233
198,
234
202,
235
206,
236
210,
237
215,
238
219,
239
223,
240
227,
241
231,
242
235,
243
239,
244
243,
245
247,
246
251,
247
255,
248
255,
249
255,
250
255,
251
255,
252
255,
253
255,
254
255,
255
255,
256
255,
257
255,
258
255,
259
255,
260
255,
261
255,
262
255,
263
255,
264
255,
265
255,
266
255,
267
255,
268
255,
269
255,
270
255,
271
255,
272
255,
273
255,
274
255,
275
255,
276
255,
277
255,
278
255,
279
255,
280
255,
281
255,
282
255,
283
255,
284
255,
285
255,
286
255,
287
255,
288
255,
289
255,
290
255,
291
255,
292
255,
293
255,
294
255,
295
255,
296
255,
297
255,
298
255,
299
255,
300
255,
301
255,
302
255,
303
255,
304
255,
305
255,
306
255,
307
255,
308
255,
309
255,
310
255,
311
200,
312
197,
313
194,
314
191,
315
188,
316
185,
317
182,
318
179,
319
176,
320
173,
321
170,
322
167,
323
164,
324
161,
325
158,
326
155,
327
152,
328
149,
329
146,
330
143,
331
140,
332
137,
333
134,
334
131,
335
128,
336
125,
337
122,
338
119,
339
116,
340
113,
341
110,
342
107,
343
104,
344
101,
345
98,
346
95,
347
92,
348
89,
349
86,
350
83,
351
80,
352
77,
353
74,
354
71,
355
68,
356
65,
357
62,
358
59,
359
56,
360
53,
361
50,
362
47,
363
44,
364
41,
365
38,
366
35,
367
32,
368
29,
369
26,
370
23,
371
20,
372
20,
373
20,
374
19,
375
19,
376
19,
377
19,
378
18,
379
18,
380
18,
381
17,
382
17,
383
17,
384
16,
385
16,
386
16,
387
16,
388
15,
389
15,
390
15,
391
14,
392
14,
393
14,
394
13,
395
13,
396
13,
397
13,
398
12,
399
12,
400
12,
401
11,
402
11,
403
11,
404
10,
405
10,
406
10,
407
10,
408
9,
409
9,
410
9,
411
8,
412
8,
413
8,
414
7,
415
7,
416
7,
417
7,
418
6,
419
6,
420
6,
421
5,
422
5,
423
5,
424
4,
425
4,
426
4,
427
4,
428
3,
429
3,
430
3,
431
2,
432
2,
433
2,
434
1,
435
1,
436
1,
437
1,
438
0,
439
0,
440
0,
441
0,
442
0,
443
0,
444
0,
445
0,
446
0,
447
0,
448
0,
449
0,
450
0,
451
0,
452
0,
453
0,
454
0,
455
0,
456
1,
457
1,
458
1,
459
1,
460
1,
461
1,
462
1,
463
1,
464
1,
465
1,
466
1,
467
1,
468
1,
469
1,
470
1,
471
1,
472
1,
473
1,
474
1,
475
1,
476
1,
477
1,
478
1,
479
1,
480
1,
481
1,
482
1,
483
1,
484
1,
485
1,
486
1,
487
1,
488
2,
489
2,
490
2,
491
2,
492
2,
493
2,
494
2,
495
2,
496
2,
497
2,
498
2,
499
2,
500
2,
501
2,
502
2,
503
2,
504
6,
505
10,
506
14,
507
18,
508
22,
509
26,
510
30,
511
34,
512
38,
513
42,
514
46,
515
50,
516
54,
517
58,
518
62,
519
66,
520
70,
521
74,
522
78,
523
82,
524
86,
525
90,
526
94,
527
98,
528
102,
529
106,
530
110,
531
114,
532
118,
533
122,
534
126,
535
130,
536
134,
537
138,
538
142,
539
146,
540
150,
541
154,
542
158,
543
162,
544
166,
545
170,
546
174,
547
178,
548
182,
549
186,
550
190,
551
194,
552
198,
553
202,
554
206,
555
210,
556
214,
557
218,
558
222,
559
226,
560
230,
561
234,
562
238,
563
242,
564
246,
565
250,
566
255,
567
255,
568
255,
569
255,
570
255,
571
255,
572
255,
573
255,
574
255,
575
255,
576
255,
577
255,
578
255,
579
255,
580
255,
581
255,
582
255,
583
255,
584
255,
585
255,
586
255,
587
255,
588
255,
589
255,
590
255,
591
255,
592
255,
593
255,
594
255,
595
255,
596
255,
597
255,
598
255,
599
255,
600
255,
601
255,
602
255,
603
255,
604
255,
605
255,
606
255,
607
255,
608
255,
609
255,
610
255,
611
255,
612
255,
613
255,
614
255,
615
255,
616
255,
617
255,
618
255,
619
255,
620
255,
621
255,
622
255,
623
255,
624
255,
625
255,
626
255,
627
255,
628
255,
629
251,
630
247,
631
244,
632
240,
633
236,
634
232,
635
228,
636
225,
637
221,
638
217,
639
213,
640
209,
641
206,
642
202,
643
198,
644
194,
645
190,
646
186,
647
183,
648
179,
649
175,
650
171,
651
167,
652
164,
653
160,
654
156,
655
152,
656
148,
657
145,
658
141,
659
137,
660
133,
661
129,
662
126,
663
122,
664
118,
665
114,
666
110,
667
107,
668
103,
669
99,
670
95,
671
91,
672
88,
673
84,
674
80,
675
76,
676
72,
677
69,
678
65,
679
61,
680
57,
681
53,
682
49,
683
46,
684
42,
685
38,
686
34,
687
30,
688
27,
689
23,
690
19,
691
15,
692
11,
693
8,
694
4,
695
0,
696
0,
697
0,
698
0,
699
0,
700
0,
701
0,
702
0,
703
0,
704
0,
705
0,
706
0,
707
0,
708
0,
709
0,
710
0,
711
0,
712
0,
713
0,
714
0,
715
0,
716
0,
717
0,
718
0,
719
0,
720
0,
721
0,
722
0,
723
0,
724
0,
725
0,
726
0,
727
0,
728
0,
729
0,
730
0,
731
0,
732
0,
733
0,
734
0,
735
0,
736
0,
737
0,
738
0,
739
0,
740
0,
741
0,
742
0,
743
0,
744
0,
745
0,
746
0,
747
0,
748
0,
749
0,
750
0,
751
0,
752
0,
753
0,
754
0,
755
0,
756
0,
757
0,
758
0,
759
0,
760
0,
761
0,
762
0,
763
0,
764
0,
765
0,
766
0,
767
0,
768
0,
769
0,
770
0,
771
0,
772
0,
773
0,
774
0,
775
0,
776
0,
777
0,
778
0,
779
0,
780
0,
781
0,
782
0,
783
0,
784
0,
785
0,
786
0,
787
0,
788
0,
789
0,
790
0,
791
8,
792
16,
793
24,
794
32,
795
40,
796
48,
797
56,
798
64,
799
72,
800
80,
801
88,
802
96,
803
104,
804
112,
805
120,
806
128,
807
136,
808
144,
809
152,
810
160,
811
168,
812
176,
813
184,
814
192,
815
200,
816
208,
817
216,
818
224,
819
232,
820
240,
821
248,
822
255
823
};
824
825
#endif
Flow
static const int Flow[3 *256]
Definition:
Flow.h:54
Generated on Fri Dec 13 2013 08:25:45 for GOFIGURE2 by
1.8.5