/[escript]/trunk/cusplibrary/cusp/opengl/spy/colormaps.h
ViewVC logotype

Annotation of /trunk/cusplibrary/cusp/opengl/spy/colormaps.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4955 - (hide annotations)
Tue May 20 04:33:15 2014 UTC (6 years, 4 months ago) by caltinay
Original Path: branches/diaplayground/cusplibrary/cusp/opengl/spy/colormaps.h
File MIME type: text/plain
File size: 6390 byte(s)
added pristine copy of cusplibrary (apache license) to be used by ripley.

1 caltinay 4955 /*
2     * Copyright 2008-2013 Steven Dalton
3     *
4     * Licensed under the Apache License, Version 2.0 (the "License");
5     * you may not use this file except in compliance with the License.
6     * You may obtain a copy of the License at
7     *
8     * http://www.apache.org/licenses/LICENSE-2.0
9     *
10     * Unless required by applicable law or agreed to in writing, software
11     * distributed under the License is distributed on an "AS IS" BASIS,
12     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     * See the License for the specific language governing permissions and
14     * limitations under the License.
15     */
16    
17     #pragma once
18    
19     namespace cusp
20     {
21     namespace opengl
22     {
23     namespace spy
24     {
25    
26     #ifdef _WIN32
27     #if _MSC_VER >= 0
28     // disable the trunctation warning
29     #pragma warning ( push )
30     #pragma warning ( disable : 4305 )
31     #endif // _MSC_VER >= 0
32     #endif
33    
34     float rainbow_color_map[64][3] =
35     {
36     {0,0,0.5625},
37     {0,0,0.625},
38     {0,0,0.6875},
39     {0,0,0.75},
40     {0,0,0.8125},
41     {0,0,0.875},
42     {0,0,0.9375},
43     {0,0,1},
44     {0,0.0625,1},
45     {0,0.125,1},
46     {0,0.1875,1},
47     {0,0.25,1},
48     {0,0.3125,1},
49     {0,0.375,1},
50     {0,0.4375,1},
51     {0,0.5,1},
52     {0,0.5625,1},
53     {0,0.625,1},
54     {0,0.6875,1},
55     {0,0.75,1},
56     {0,0.8125,1},
57     {0,0.875,1},
58     {0,0.9375,1},
59     {0,1,1},
60     {0.0625,1,0.9375},
61     {0.125,1,0.875},
62     {0.1875,1,0.8125},
63     {0.25,1,0.75},
64     {0.3125,1,0.6875},
65     {0.375,1,0.625},
66     {0.4375,1,0.5625},
67     {0.5,1,0.5},
68     {0.5625,1,0.4375},
69     {0.625,1,0.375},
70     {0.6875,1,0.3125},
71     {0.75,1,0.25},
72     {0.8125,1,0.1875},
73     {0.875,1,0.125},
74     {0.9375,1,0.0625},
75     {1,1,0},
76     {1,0.9375,0},
77     {1,0.875,0},
78     {1,0.8125,0},
79     {1,0.75,0},
80     {1,0.6875,0},
81     {1,0.625,0},
82     {1,0.5625,0},
83     {1,0.5,0},
84     {1,0.4375,0},
85     {1,0.375,0},
86     {1,0.3125,0},
87     {1,0.25,0},
88     {1,0.1875,0},
89     {1,0.125,0},
90     {1,0.0625,0},
91     {1,0,0},
92     {0.9375,0,0},
93     {0.875,0,0},
94     {0.8125,0,0},
95     {0.75,0,0},
96     {0.6875,0,0},
97     {0.625,0,0},
98     {0.5625,0,0},
99     {0.5,0,0}
100     };
101    
102     float bone_color_map[64][3] =
103     {
104     {0,0,0.0052},
105     {0.0139,0.0139,0.0243},
106     {0.0278,0.0278,0.0434},
107     {0.0417,0.0417,0.0625},
108     {0.0556,0.0556,0.0816},
109     {0.0694,0.0694,0.1007},
110     {0.0833,0.0833,0.1198},
111     {0.0972,0.0972,0.1389},
112     {0.1111,0.1111,0.158},
113     {0.125,0.125,0.1771},
114     {0.1389,0.1389,0.1962},
115     {0.1528,0.1528,0.2153},
116     {0.1667,0.1667,0.2344},
117     {0.1806,0.1806,0.2535},
118     {0.1944,0.1944,0.2726},
119     {0.2083,0.2083,0.2917},
120     {0.2222,0.2222,0.3108},
121     {0.2361,0.2361,0.3299},
122     {0.25,0.25,0.349},
123     {0.2639,0.2639,0.3681},
124     {0.2778,0.2778,0.3872},
125     {0.2917,0.2917,0.4062},
126     {0.3056,0.3056,0.4253},
127     {0.3194,0.3194,0.4444},
128     {0.3333,0.3385,0.4583},
129     {0.3472,0.3576,0.4722},
130     {0.3611,0.3767,0.4861},
131     {0.375,0.3958,0.5},
132     {0.3889,0.4149,0.5139},
133     {0.4028,0.434,0.5278},
134     {0.4167,0.4531,0.5417},
135     {0.4306,0.4722,0.5556},
136     {0.4444,0.4913,0.5694},
137     {0.4583,0.5104,0.5833},
138     {0.4722,0.5295,0.5972},
139     {0.4861,0.5486,0.6111},
140     {0.5,0.5677,0.625},
141     {0.5139,0.5868,0.6389},
142     {0.5278,0.6059,0.6528},
143     {0.5417,0.625,0.6667},
144     {0.5556,0.6441,0.6806},
145     {0.5694,0.6632,0.6944},
146     {0.5833,0.6823,0.7083},
147     {0.5972,0.7014,0.7222},
148     {0.6111,0.7205,0.7361},
149     {0.625,0.7396,0.75},
150     {0.6389,0.7587,0.7639},
151     {0.6528,0.7778,0.7778},
152     {0.6745,0.7917,0.7917},
153     {0.6962,0.8056,0.8056},
154     {0.7179,0.8194,0.8194},
155     {0.7396,0.8333,0.8333},
156     {0.7613,0.8472,0.8472},
157     {0.783,0.8611,0.8611},
158     {0.8047,0.875,0.875},
159     {0.8264,0.8889,0.8889},
160     {0.8481,0.9028,0.9028},
161     {0.8698,0.9167,0.9167},
162     {0.8915,0.9306,0.9306},
163     {0.9132,0.9444,0.9444},
164     {0.9349,0.9583,0.9583},
165     {0.9566,0.9722,0.9722},
166     {0.9783,0.9861,0.9861},
167     {1,1,1}
168     };
169    
170     float spring_color_map[64][3] =
171     {
172     {1.000000 ,0.000000 ,1.000000 },
173     {1.000000 ,0.015873 ,0.984127 },
174     {1.000000 ,0.031746 ,0.968254 },
175     {1.000000 ,0.047619 ,0.952381 },
176     {1.000000 ,0.063492 ,0.936508 },
177     {1.000000 ,0.079365 ,0.920635 },
178     {1.000000 ,0.095238 ,0.904762 },
179     {1.000000 ,0.111111 ,0.888889 },
180     {1.000000 ,0.126984 ,0.873016 },
181     {1.000000 ,0.142857 ,0.857143 },
182     {1.000000 ,0.158730 ,0.841270 },
183     {1.000000 ,0.174603 ,0.825397 },
184     {1.000000 ,0.190476 ,0.809524 },
185     {1.000000 ,0.206349 ,0.793651 },
186     {1.000000 ,0.222222 ,0.777778 },
187     {1.000000 ,0.238095 ,0.761905 },
188     {1.000000 ,0.253968 ,0.746032 },
189     {1.000000 ,0.269841 ,0.730159 },
190     {1.000000 ,0.285714 ,0.714286 },
191     {1.000000 ,0.301587 ,0.698413 },
192     {1.000000 ,0.317460 ,0.682540 },
193     {1.000000 ,0.333333 ,0.666667 },
194     {1.000000 ,0.349206 ,0.650794 },
195     {1.000000 ,0.365079 ,0.634921 },
196     {1.000000 ,0.380952 ,0.619048 },
197     {1.000000 ,0.396825 ,0.603175 },
198     {1.000000 ,0.412698 ,0.587302 },
199     {1.000000 ,0.428571 ,0.571429 },
200     {1.000000 ,0.444444 ,0.555556 },
201     {1.000000 ,0.460317 ,0.539683 },
202     {1.000000 ,0.476190 ,0.523810 },
203     {1.000000 ,0.492063 ,0.507937 },
204     {1.000000 ,0.507937 ,0.492063 },
205     {1.000000 ,0.523810 ,0.476190 },
206     {1.000000 ,0.539683 ,0.460317 },
207     {1.000000 ,0.555556 ,0.444444 },
208     {1.000000 ,0.571429 ,0.428571 },
209     {1.000000 ,0.587302 ,0.412698 },
210     {1.000000 ,0.603175 ,0.396825 },
211     {1.000000 ,0.619048 ,0.380952 },
212     {1.000000 ,0.634921 ,0.365079 },
213     {1.000000 ,0.650794 ,0.349206 },
214     {1.000000 ,0.666667 ,0.333333 },
215     {1.000000 ,0.682540 ,0.317460 },
216     {1.000000 ,0.698413 ,0.301587 },
217     {1.000000 ,0.714286 ,0.285714 },
218     {1.000000 ,0.730159 ,0.269841 },
219     {1.000000 ,0.746032 ,0.253968 },
220     {1.000000 ,0.761905 ,0.238095 },
221     {1.000000 ,0.777778 ,0.222222 },
222     {1.000000 ,0.793651 ,0.206349 },
223     {1.000000 ,0.809524 ,0.190476 },
224     {1.000000 ,0.825397 ,0.174603 },
225     {1.000000 ,0.841270 ,0.158730 },
226     {1.000000 ,0.857143 ,0.142857 },
227     {1.000000 ,0.873016 ,0.126984 },
228     {1.000000 ,0.888889 ,0.111111 },
229     {1.000000 ,0.904762 ,0.095238 },
230     {1.000000 ,0.920635 ,0.079365 },
231     {1.000000 ,0.936508 ,0.063492 },
232     {1.000000 ,0.952381 ,0.047619 },
233     {1.000000 ,0.968254 ,0.031746 },
234     {1.000000 ,0.984127 ,0.015873 },
235     {1.000000 ,1.000000 ,0.000000 },
236     };
237    
238     #ifdef _WIN32
239     #if _MSC_VER >= 0
240     // enable the trunction warning
241     #pragma warning ( pop )
242     #endif // _MSC_VER >= 0
243     #endif
244    
245     } // end spy
246     } // end opengl
247     } // end cusp

  ViewVC Help
Powered by ViewVC 1.1.26