GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Spectrum.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: vtkINRIA3D
4 Module: $Id: Spectrum.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_Spectrum_h_
52 #define _lut_Spectrum_h_
53 
54 static const int Spectrum[256 * 3] =
55  {
56  255,
57  250,
58  245,
59  240,
60  235,
61  230,
62  225,
63  220,
64  215,
65  210,
66  205,
67  200,
68  195,
69  190,
70  185,
71  180,
72  175,
73  170,
74  165,
75  160,
76  155,
77  150,
78  145,
79  140,
80  135,
81  130,
82  125,
83  120,
84  115,
85  110,
86  105,
87  100,
88  95,
89  90,
90  85,
91  80,
92  75,
93  70,
94  65,
95  60,
96  55,
97  50,
98  45,
99  40,
100  35,
101  30,
102  25,
103  20,
104  15,
105  10,
106  5,
107  0,
108  0,
109  0,
110  0,
111  0,
112  0,
113  0,
114  0,
115  0,
116  0,
117  0,
118  0,
119  0,
120  0,
121  0,
122  0,
123  0,
124  0,
125  0,
126  0,
127  0,
128  0,
129  0,
130  0,
131  0,
132  0,
133  0,
134  0,
135  0,
136  0,
137  0,
138  0,
139  0,
140  0,
141  0,
142  0,
143  0,
144  0,
145  0,
146  0,
147  0,
148  0,
149  0,
150  0,
151  0,
152  0,
153  0,
154  0,
155  0,
156  0,
157  0,
158  0,
159  0,
160  0,
161  0,
162  0,
163  0,
164  0,
165  0,
166  0,
167  0,
168  0,
169  0,
170  0,
171  0,
172  0,
173  0,
174  0,
175  0,
176  0,
177  0,
178  0,
179  0,
180  0,
181  0,
182  0,
183  0,
184  0,
185  0,
186  0,
187  0,
188  0,
189  0,
190  0,
191  0,
192  0,
193  0,
194  0,
195  0,
196  0,
197  0,
198  0,
199  0,
200  0,
201  0,
202  0,
203  0,
204  0,
205  0,
206  0,
207  0,
208  0,
209  0,
210  5,
211  10,
212  15,
213  20,
214  25,
215  30,
216  35,
217  40,
218  45,
219  50,
220  55,
221  60,
222  65,
223  70,
224  75,
225  80,
226  85,
227  90,
228  95,
229  100,
230  105,
231  110,
232  115,
233  120,
234  125,
235  130,
236  135,
237  140,
238  145,
239  150,
240  155,
241  160,
242  165,
243  170,
244  175,
245  180,
246  185,
247  190,
248  195,
249  200,
250  205,
251  210,
252  215,
253  220,
254  225,
255  230,
256  235,
257  240,
258  245,
259  250,
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  255,
312  0,
313  0,
314  0,
315  0,
316  0,
317  0,
318  0,
319  0,
320  0,
321  0,
322  0,
323  0,
324  0,
325  0,
326  0,
327  0,
328  0,
329  0,
330  0,
331  0,
332  0,
333  0,
334  0,
335  0,
336  0,
337  0,
338  0,
339  0,
340  0,
341  0,
342  0,
343  0,
344  0,
345  0,
346  0,
347  0,
348  0,
349  0,
350  0,
351  0,
352  0,
353  0,
354  0,
355  0,
356  0,
357  0,
358  0,
359  0,
360  0,
361  0,
362  0,
363  0,
364  5,
365  10,
366  15,
367  20,
368  25,
369  30,
370  35,
371  40,
372  45,
373  50,
374  55,
375  60,
376  65,
377  70,
378  75,
379  80,
380  85,
381  90,
382  95,
383  100,
384  105,
385  110,
386  115,
387  120,
388  125,
389  130,
390  135,
391  140,
392  145,
393  150,
394  155,
395  160,
396  165,
397  170,
398  175,
399  180,
400  185,
401  190,
402  195,
403  200,
404  205,
405  210,
406  215,
407  220,
408  225,
409  230,
410  235,
411  240,
412  245,
413  251,
414  255,
415  255,
416  255,
417  255,
418  255,
419  255,
420  255,
421  255,
422  255,
423  255,
424  255,
425  255,
426  255,
427  255,
428  255,
429  255,
430  255,
431  255,
432  255,
433  255,
434  255,
435  255,
436  255,
437  255,
438  255,
439  255,
440  255,
441  255,
442  255,
443  255,
444  255,
445  255,
446  255,
447  255,
448  255,
449  255,
450  255,
451  255,
452  255,
453  255,
454  255,
455  255,
456  255,
457  255,
458  255,
459  255,
460  255,
461  255,
462  255,
463  255,
464  255,
465  255,
466  255,
467  255,
468  255,
469  255,
470  255,
471  255,
472  255,
473  255,
474  255,
475  255,
476  255,
477  255,
478  255,
479  255,
480  255,
481  255,
482  255,
483  255,
484  255,
485  255,
486  255,
487  255,
488  255,
489  255,
490  255,
491  255,
492  255,
493  255,
494  255,
495  255,
496  255,
497  255,
498  255,
499  255,
500  255,
501  255,
502  255,
503  255,
504  255,
505  255,
506  255,
507  255,
508  255,
509  255,
510  255,
511  255,
512  255,
513  255,
514  255,
515  255,
516  255,
517  250,
518  245,
519  240,
520  235,
521  230,
522  225,
523  220,
524  215,
525  210,
526  205,
527  200,
528  195,
529  190,
530  185,
531  180,
532  175,
533  170,
534  165,
535  160,
536  155,
537  150,
538  145,
539  140,
540  135,
541  130,
542  125,
543  120,
544  115,
545  110,
546  105,
547  100,
548  95,
549  90,
550  85,
551  80,
552  75,
553  70,
554  65,
555  60,
556  55,
557  50,
558  45,
559  40,
560  35,
561  30,
562  25,
563  20,
564  15,
565  10,
566  5,
567  0,
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  255,
630  255,
631  255,
632  255,
633  255,
634  255,
635  255,
636  255,
637  255,
638  255,
639  255,
640  255,
641  255,
642  255,
643  255,
644  255,
645  255,
646  255,
647  255,
648  255,
649  255,
650  255,
651  255,
652  255,
653  255,
654  255,
655  255,
656  255,
657  255,
658  255,
659  255,
660  255,
661  255,
662  255,
663  255,
664  255,
665  255,
666  255,
667  255,
668  255,
669  255,
670  255,
671  250,
672  245,
673  240,
674  235,
675  230,
676  225,
677  220,
678  215,
679  210,
680  205,
681  200,
682  195,
683  190,
684  185,
685  180,
686  175,
687  170,
688  165,
689  160,
690  155,
691  150,
692  145,
693  140,
694  135,
695  130,
696  125,
697  120,
698  115,
699  110,
700  105,
701  100,
702  95,
703  90,
704  85,
705  80,
706  75,
707  70,
708  65,
709  60,
710  55,
711  50,
712  45,
713  40,
714  35,
715  30,
716  25,
717  20,
718  15,
719  10,
720  5,
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  0,
792  0,
793  0,
794  0,
795  0,
796  0,
797  0,
798  0,
799  0,
800  0,
801  0,
802  0,
803  0,
804  0,
805  0,
806  0,
807  0,
808  0,
809  0,
810  0,
811  0,
812  0,
813  0,
814  0,
815  0,
816  0,
817  0,
818  0,
819  0,
820  0,
821  0,
822  0,
823  0
824  };
825 
826 #endif
static const int Spectrum[256 *3]
Definition: Spectrum.h:54