Debian Codegraph @

tools/visualization/opendx/pot.net

raw
1 //
2 // time: Thu May 24 10:01:50 2001
3 //
4 // version: 3.1.2 (format), 4.1.0 (DX)
5 //
6 //
7 // MODULE main
8 //
9 // comment: This is a simple program for viewing electrostatic potential and molecular accessibility isocontours from data in OpenDX format. It was hacked from the General Purpose Visualization package provided with the OpenDX software.
10 // comment:
11 // comment: The potential data file should store the data in scalar format, preferably with units of (kT/e). The default isosurface for the potential data is determined by OpenDx. The surface data file should store the data in scalar format with values of 1.0 outside the biomolecule and values of 0.0 inside the biomolecule. The default isosurface for the surface is 0.5.
12 // comment:
13 // comment: Written by Nathan Baker, last modified 02/07/01.
14 // page assignment: image order=5, windowed=0, showing=1
15 // page assignment: import_pot order=3, windowed=0, showing=0
16 // page assignment: iso_pot order=4, windowed=0, showing=0
17 // page assignment: map_plane order=2, windowed=0, showing=0
18 // workspace: width = 491, height = 525
19 // layout: snap = 0, width = 50, height = 50, align = NN
20 //
21 macro main(
22 ) -> (
23 ) {
24 //
25 // node FileSelector[1]: x = 22, y = 24, inputs = 0, label = FileSelector
26 // output[1]: visible = 1, type = 32, value = "/home/nbaker/coding/manifold/work/membrane/popcx9fhdt300/potential-0.dx"
27 // output[2]: visible = 1, type = 32, value = "potential-0.dx"
28 // page group: import_pot
29 //
30 //
31 // node String[1]: x = 416, y = 39, inputs = 0, label = String
32 // output[1]: visible = 1, type = 32, value = "dx"
33 // page group: import_pot
34 //
35 //
36 // node Import[1]: x = 234, y = 215, inputs = 6, label = Import
37 // input[1]: defaulting = 1, visible = 1, type = 32, value = "/usr/lpp/dx/samples/data/southeastern_topo.dx"
38 // page group: import_pot
39 //
40 main_Import_1_out_1 =
41 Import(
42 main_FileSelector_1_out_1,
43 main_Import_1_in_2,
44 main_String_1_out_1,
45 main_Import_1_in_4,
46 main_Import_1_in_5,
47 main_Import_1_in_6
48 ) [instance: 1, cache: 1];
49 //
50 // node Transmitter[1]: x = 205, y = 355, inputs = 1, label = imported_pot
51 // page group: import_pot
52 //
53 imported_pot = main_Import_1_out_1;
54 //
55 // node Receiver[1]: x = 153, y = 11, inputs = 1, label = imported_pot
56 // page group: iso_pot
57 //
58 main_Receiver_1_out_1[cache: 0] = imported_pot;
59 //
60 // node Reset[1]: x = 161, y = 135, inputs = 6, label = Reset
61 // input[1]: defaulting = 0, visible = 0, type = 32, value = "main_Reset_1_out_1"
62 // input[2]: defaulting = 0, visible = 0, type = 29, value = 0
63 // input[3]: defaulting = 0, visible = 0, type = 3, value = 0
64 // input[4]: defaulting = 1, visible = 0, type = 29, value = 1
65 // input[5]: defaulting = 1, visible = 0, type = 29, value = 0
66 // output[1]: visible = 1, type = 29, value = 0
67 // page group: iso_pot
68 // toggle : 0
69 //
70 //
71 // node Scalar[3]: x = 94, y = 132, inputs = 11, label = Scalar
72 // input[1]: defaulting = 0, visible = 0, type = 32, value = "Scalar_3"
73 // input[3]: defaulting = 0, visible = 0, type = 5, value = -1.0
74 // input[4]: defaulting = 1, visible = 1, type = 3, value = 0
75 // input[5]: defaulting = 1, visible = 0, type = 5, value = -199.38541
76 // input[6]: defaulting = 1, visible = 0, type = 5, value = 327.0892
77 // input[7]: defaulting = 1, visible = 0, type = 5, value = 1.0
78 // input[9]: defaulting = 1, visible = 0, type = 1, value = 1
79 // output[1]: visible = 1, type = 5, value = -1.0
80 // page group: iso_pot
81 //
82 main_Scalar_3_out_1[cache: 2] =
83 Scalar(
84 main_Scalar_3_in_1,
85 main_Receiver_1_out_1,
86 main_Scalar_3_in_3,
87 main_Reset_1_out_1,
88 main_Scalar_3_in_5,
89 main_Scalar_3_in_6,
90 main_Scalar_3_in_7,
91 main_Scalar_3_in_8,
92 main_Scalar_3_in_9,
93 main_Scalar_3_in_10,
94 main_Scalar_3_in_11
95 ) [instance: 3, cache: 1];
96 //
97 // node Isosurface[2]: x = 4, y = 131, inputs = 6, label = Isosurface
98 // input[3]: defaulting = 0, visible = 1, type = 1, value = 1
99 // page group: iso_pot
100 //
101 main_Isosurface_2_out_1 =
102 Isosurface(
103 main_Receiver_1_out_1,
104 main_Scalar_3_out_1,
105 main_Isosurface_2_in_3,
106 main_Isosurface_2_in_4,
107 main_Isosurface_2_in_5,
108 main_Isosurface_2_in_6
109 ) [instance: 2, cache: 1];
110 //
111 // node Color[5]: x = 29, y = 287, inputs = 5, label = Red
112 // input[2]: defaulting = 0, visible = 1, type = 32, value = "red"
113 // input[3]: defaulting = 0, visible = 1, type = 5, value = 1.0
114 // page group: iso_pot
115 //
116 main_Color_5_out_1 =
117 Color(
118 main_Isosurface_2_out_1,
119 main_Color_5_in_2,
120 main_Color_5_in_3,
121 main_Color_5_in_4,
122 main_Color_5_in_5
123 ) [instance: 5, cache: 1];
124 //
125 // node Reset[5]: x = 439, y = 123, inputs = 6, label = Reset
126 // input[1]: defaulting = 0, visible = 0, type = 32, value = "main_Reset_5_out_1"
127 // input[2]: defaulting = 0, visible = 0, type = 29, value = 0
128 // input[3]: defaulting = 0, visible = 0, type = 3, value = 0
129 // input[4]: defaulting = 1, visible = 0, type = 29, value = 1
130 // input[5]: defaulting = 1, visible = 0, type = 29, value = 0
131 // output[1]: visible = 1, type = 29, value = 0
132 // page group: iso_pot
133 // toggle : 0
134 //
135 //
136 // node Scalar[4]: x = 376, y = 126, inputs = 11, label = Scalar
137 // input[1]: defaulting = 0, visible = 0, type = 32, value = "Scalar_4"
138 // input[3]: defaulting = 0, visible = 0, type = 5, value = 1.0
139 // input[4]: defaulting = 1, visible = 1, type = 3, value = 0
140 // input[5]: defaulting = 1, visible = 0, type = 5, value = -199.38541
141 // input[6]: defaulting = 1, visible = 0, type = 5, value = 327.0892
142 // input[7]: defaulting = 1, visible = 0, type = 5, value = 1.0
143 // input[9]: defaulting = 1, visible = 0, type = 1, value = 1
144 // output[1]: visible = 1, type = 5, value = 1.0
145 // page group: iso_pot
146 //
147 main_Scalar_4_out_1[cache: 2] =
148 Scalar(
149 main_Scalar_4_in_1,
150 main_Receiver_1_out_1,
151 main_Scalar_4_in_3,
152 main_Reset_5_out_1,
153 main_Scalar_4_in_5,
154 main_Scalar_4_in_6,
155 main_Scalar_4_in_7,
156 main_Scalar_4_in_8,
157 main_Scalar_4_in_9,
158 main_Scalar_4_in_10,
159 main_Scalar_4_in_11
160 ) [instance: 4, cache: 1];
161 //
162 // node Isosurface[3]: x = 282, y = 127, inputs = 6, label = Isosurface
163 // input[3]: defaulting = 0, visible = 1, type = 1, value = 1
164 // page group: iso_pot
165 //
166 main_Isosurface_3_out_1 =
167 Isosurface(
168 main_Receiver_1_out_1,
169 main_Scalar_4_out_1,
170 main_Isosurface_3_in_3,
171 main_Isosurface_3_in_4,
172 main_Isosurface_3_in_5,
173 main_Isosurface_3_in_6
174 ) [instance: 3, cache: 1];
175 //
176 // node Color[6]: x = 283, y = 287, inputs = 5, label = Blue
177 // input[2]: defaulting = 0, visible = 1, type = 32, value = "blue"
178 // input[3]: defaulting = 0, visible = 1, type = 5, value = 1.0
179 // page group: iso_pot
180 //
181 main_Color_6_out_1 =
182 Color(
183 main_Isosurface_3_out_1,
184 main_Color_6_in_2,
185 main_Color_6_in_3,
186 main_Color_6_in_4,
187 main_Color_6_in_5
188 ) [instance: 6, cache: 1];
189 //
190 // node Collect[3]: x = 175, y = 383, inputs = 2, label = Collect
191 // page group: iso_pot
192 //
193 main_Collect_3_out_1 =
194 Collect(
195 main_Color_5_out_1,
196 main_Color_6_out_1
197 ) [instance: 3, cache: 1];
198 //
199 // node Transmitter[2]: x = 179, y = 493, inputs = 1, label = isoed_pot
200 // page group: iso_pot
201 //
202 isoed_pot = main_Collect_3_out_1;
203 //
204 // node Receiver[3]: x = 32, y = 15, inputs = 1, label = isoed_pot
205 // page group: image
206 //
207 main_Receiver_3_out_1[cache: 0] = isoed_pot;
208 //
209 // node Collect[2]: x = 229, y = 230, inputs = 2, label = Collect
210 // page group: image
211 //
212 main_Collect_2_out_1 =
213 Collect(
214 main_Receiver_3_out_1,
215 main_Collect_2_in_2
216 ) [instance: 2, cache: 1];
217 //
218 // node AutoCamera[1]: x = 75, y = 435, inputs = 9, label = AutoCamera
219 // input[2]: defaulting = 0, visible = 1, type = 32, value = "off-diagonal"
220 // page group: image
221 //
222 main_AutoCamera_1_out_1 =
223 AutoCamera(
224 main_Collect_2_out_1,
225 main_AutoCamera_1_in_2,
226 main_AutoCamera_1_in_3,
227 main_AutoCamera_1_in_4,
228 main_AutoCamera_1_in_5,
229 main_AutoCamera_1_in_6,
230 main_AutoCamera_1_in_7,
231 main_AutoCamera_1_in_8,
232 main_AutoCamera_1_in_9
233 ) [instance: 1, cache: 1];
234 //
235 // node ClipPlane[1]: x = 22, y = 240, inputs = 3, label = ClipPlane
236 // page group: image
237 //
238 main_ClipPlane_1_out_1 =
239 ClipPlane(
240 main_ClipPlane_1_in_1,
241 main_ClipPlane_1_in_2,
242 main_ClipPlane_1_in_3
243 ) [instance: 1, cache: 1];
244 //
245 // node Receiver[4]: x = 296, y = 18, inputs = 1, label = imported_pot
246 // page group: map_plane
247 //
248 main_Receiver_4_out_1[cache: 0] = imported_pot;
249 //
250 // node MapToPlane[1]: x = 446, y = 97, inputs = 3, label = MapToPlane
251 // input[2]: defaulting = 1, visible = 1, type = 8, value = [112 37 180]
252 // input[3]: defaulting = 0, visible = 1, type = 8, value = [0 0 1]
253 // page group: map_plane
254 //
255 main_MapToPlane_1_out_1 =
256 MapToPlane(
257 main_Receiver_4_out_1,
258 main_MapToPlane_1_in_2,
259 main_MapToPlane_1_in_3
260 ) [instance: 1, cache: 1];
261 //
262 // node Colormap[3]: x = 307, y = 177, inputs = 19, label = Colormap
263 // input[1]: defaulting = 0, visible = 0, type = 16777224, value = { [0.48397436 1.0] [0.51602564 0.65263158] }
264 // input[2]: defaulting = 0, visible = 0, type = 16777224, value = { [0.0 1.0] [1.0 1.0] }
265 // input[3]: defaulting = 0, visible = 0, type = 16777224, value = { [0.0 1.0] [1.0 1.0] }
266 // input[4]: defaulting = 0, visible = 0, type = 16777224, value = { [0.0 1.0] [1.0 1.0] }
267 // input[5]: defaulting = 0, visible = 0, type = 32, value = "Colormap_3"
268 // input[7]: defaulting = 1, visible = 0, type = 5, value = -200.0
269 // input[8]: defaulting = 1, visible = 0, type = 5, value = 200.0
270 // input[9]: defaulting = 1, visible = 0, type = 1, value = 20
271 // input[12]: defaulting = 0, visible = 0, type = 16777221, value = { -200.0 200.0 }
272 // input[17]: defaulting = 0, visible = 0, type = 5, value = -199.38541
273 // input[18]: defaulting = 0, visible = 0, type = 5, value = 327.0892
274 // page group: map_plane
275 // window: position = (0.1766,0.1982), size = 0.5078x0.4395
276 //
277 main_Colormap_3_out_1[cache: 2],
278 main_Colormap_3_out_2[cache: 2] =
279 Colormap(
280 main_Colormap_3_in_1,
281 main_Colormap_3_in_2,
282 main_Colormap_3_in_3,
283 main_Colormap_3_in_4,
284 main_Colormap_3_in_5,
285 main_Receiver_4_out_1,
286 main_Colormap_3_in_7,
287 main_Colormap_3_in_8,
288 main_Colormap_3_in_9,
289 main_Colormap_3_in_10,
290 main_Colormap_3_in_11,
291 main_Colormap_3_in_12,
292 main_Colormap_3_in_13,
293 main_Colormap_3_in_14,
294 main_Colormap_3_in_15,
295 main_Colormap_3_in_16,
296 main_Colormap_3_in_17,
297 main_Colormap_3_in_18,
298 main_Colormap_3_in_19
299 ) [instance: 3, cache: 1];
300 //
301 // node Color[7]: x = 421, y = 264, inputs = 5, label = Color
302 // page group: map_plane
303 //
304 main_Color_7_out_1 =
305 Color(
306 main_MapToPlane_1_out_1,
307 main_Colormap_3_out_1,
308 main_Color_7_in_3,
309 main_Color_7_in_4,
310 main_Color_7_in_5
311 ) [instance: 7, cache: 1];
312 //
313 // node MapToPlane[2]: x = 289, y = 98, inputs = 3, label = MapToPlane
314 // input[2]: defaulting = 1, visible = 1, type = 8, value = [112 37 180]
315 // input[3]: defaulting = 0, visible = 1, type = 8, value = [1 0 0]
316 // page group: map_plane
317 //
318 main_MapToPlane_2_out_1 =
319 MapToPlane(
320 main_Receiver_4_out_1,
321 main_MapToPlane_2_in_2,
322 main_MapToPlane_2_in_3
323 ) [instance: 2, cache: 1];
324 //
325 // node Color[8]: x = 303, y = 261, inputs = 5, label = Color
326 // page group: map_plane
327 //
328 main_Color_8_out_1 =
329 Color(
330 main_MapToPlane_2_out_1,
331 main_Colormap_3_out_1,
332 main_Color_8_in_3,
333 main_Color_8_in_4,
334 main_Color_8_in_5
335 ) [instance: 8, cache: 1];
336 //
337 // node Collect[4]: x = 433, y = 342, inputs = 2, label = Collect
338 // page group: map_plane
339 //
340 main_Collect_4_out_1 =
341 Collect(
342 main_Color_7_out_1,
343 main_Color_8_out_1
344 ) [instance: 4, cache: 1];
345 //
346 // node MapToPlane[3]: x = 185, y = 102, inputs = 3, label = MapToPlane
347 // input[2]: defaulting = 1, visible = 1, type = 8, value = [112 37 180]
348 // input[3]: defaulting = 0, visible = 1, type = 8, value = [0 1 0]
349 // page group: map_plane
350 //
351 main_MapToPlane_3_out_1 =
352 MapToPlane(
353 main_Receiver_4_out_1,
354 main_MapToPlane_3_in_2,
355 main_MapToPlane_3_in_3
356 ) [instance: 3, cache: 1];
357 //
358 // node Color[9]: x = 203, y = 259, inputs = 5, label = Color
359 // page group: map_plane
360 //
361 main_Color_9_out_1 =
362 Color(
363 main_MapToPlane_3_out_1,
364 main_Colormap_3_out_1,
365 main_Color_9_in_3,
366 main_Color_9_in_4,
367 main_Color_9_in_5
368 ) [instance: 9, cache: 1];
369 //
370 // node Collect[5]: x = 283, y = 454, inputs = 2, label = Collect
371 // page group: map_plane
372 //
373 main_Collect_5_out_1 =
374 Collect(
375 main_Color_9_out_1,
376 main_Collect_4_out_1
377 ) [instance: 5, cache: 1];
378 //
379 // node Reset[4]: x = 445, y = 463, inputs = 6, label = Reset
380 // input[1]: defaulting = 0, visible = 0, type = 32, value = "main_Reset_4_out_1"
381 // input[2]: defaulting = 0, visible = 0, type = 29, value = 0
382 // input[3]: defaulting = 0, visible = 0, type = 3, value = 0
383 // input[4]: defaulting = 1, visible = 0, type = 29, value = 1
384 // input[5]: defaulting = 1, visible = 0, type = 29, value = 0
385 // output[1]: visible = 1, type = 29, value = 0
386 // page group: image
387 // toggle : 0
388 //
389 //
390 // node Image[5]: x = 221, y = 371, inputs = 49, label = Image
391 // input[1]: defaulting = 0, visible = 0, type = 67108863, value = "Image_5"
392 // input[4]: defaulting = 0, visible = 0, type = 1, value = 1
393 // input[5]: defaulting = 0, visible = 0, type = 8, value = [127.645 37.245 121.76]
394 // input[6]: defaulting = 0, visible = 0, type = 8, value = [125.853 125.347 1251.27]
395 // input[7]: defaulting = 0, visible = 0, type = 5, value = 613.112
396 // input[8]: defaulting = 0, visible = 0, type = 1, value = 940
397 // input[9]: defaulting = 0, visible = 0, type = 5, value = 0.777
398 // input[10]: defaulting = 0, visible = 0, type = 8, value = [-0.0491375 0.995761 -0.077747]
399 // input[11]: defaulting = 1, visible = 0, type = 5, value = 30.2815
400 // input[12]: defaulting = 0, visible = 0, type = 1, value = 0
401 // input[14]: defaulting = 0, visible = 0, type = 1, value = 1
402 // input[15]: defaulting = 1, visible = 0, type = 32, value = "none"
403 // input[16]: defaulting = 1, visible = 0, type = 32, value = "none"
404 // input[17]: defaulting = 1, visible = 0, type = 1, value = 1
405 // input[18]: defaulting = 1, visible = 0, type = 1, value = 1
406 // input[19]: defaulting = 0, visible = 0, type = 1, value = 0
407 // input[20]: visible = 1
408 // input[21]: visible = 1
409 // input[29]: defaulting = 1, visible = 0, type = 3, value = 0
410 // input[41]: defaulting = 0, visible = 0, type = 32, value = "rotate"
411 // input[42]: defaulting = 0, visible = 0, type = 32, value = "Gridded_3D_1var_notseries"
412 // page group: image
413 // title: value = Gridded_3D_1var_notseries
414 // depth: value = 24
415 // window: position = (0.1586,0.0781), size = 0.7453x0.7559
416 // internal caching: 1
417 //
418 main_Image_5_out_1,
419 main_Image_5_out_2,
420 main_Image_5_out_3 =
421 Image(
422 main_Image_5_in_1,
423 main_Collect_2_out_1,
424 main_Image_5_in_3,
425 main_Image_5_in_4,
426 main_Image_5_in_5,
427 main_Image_5_in_6,
428 main_Image_5_in_7,
429 main_Image_5_in_8,
430 main_Image_5_in_9,
431 main_Image_5_in_10,
432 main_Image_5_in_11,
433 main_Image_5_in_12,
434 main_Image_5_in_13,
435 main_Image_5_in_14,
436 main_Image_5_in_15,
437 main_Image_5_in_16,
438 main_Image_5_in_17,
439 main_Image_5_in_18,
440 main_Image_5_in_19,
441 main_AutoCamera_1_out_1,
442 main_Reset_4_out_1,
443 main_Image_5_in_22,
444 main_Image_5_in_23,
445 main_Image_5_in_24,
446 main_Image_5_in_25,
447 main_Image_5_in_26,
448 main_Image_5_in_27,
449 main_Image_5_in_28,
450 main_Image_5_in_29,
451 main_Image_5_in_30,
452 main_Image_5_in_31,
453 main_Image_5_in_32,
454 main_Image_5_in_33,
455 main_Image_5_in_34,
456 main_Image_5_in_35,
457 main_Image_5_in_36,
458 main_Image_5_in_37,
459 main_Image_5_in_38,
460 main_Image_5_in_39,
461 main_Image_5_in_40,
462 main_Image_5_in_41,
463 main_Image_5_in_42,
464 main_Image_5_in_43,
465 main_Image_5_in_44,
466 main_Image_5_in_45,
467 main_Image_5_in_46,
468 main_Image_5_in_47,
469 main_Image_5_in_48,
470 main_Image_5_in_49
471 ) [instance: 5, cache: 1];
472 //
473 // node Transmitter[4]: x = 292, y = 554, inputs = 1, label = mapped
474 // page group: map_plane
475 //
476 mapped = main_Collect_5_out_1;
477 //
478 // node Receiver[5]: x = 353, y = 17, inputs = 1, label = mapped
479 // page group: image
480 //
481 main_Receiver_5_out_1[cache: 0] = mapped;
482 // network: end of macro body
483 CacheScene(main_Image_5_in_1, main_Image_5_out_1, main_Image_5_out_2);
484 }
485 main_FileSelector_1_out_1 = "/home/nbaker/coding/manifold/work/membrane/popcx9fhdt300/potential-0.dx";
486 main_String_1_out_1 = "dx";
487 main_Import_1_in_2 = NULL;
488 main_Import_1_in_4 = NULL;
489 main_Import_1_in_5 = NULL;
490 main_Import_1_in_6 = NULL;
491 main_Import_1_out_1 = NULL;
492 main_Transmitter_1_out_1 = NULL;
493 main_Receiver_1_out_1 = NULL;
494 main_Reset_1_in_1 = "main_Reset_1_out_1";
495 main_Reset_1_in_2 = 0;
496 main_Reset_1_in_3 = 0;
497 main_Reset_1_in_4 = NULL;
498 main_Reset_1_in_5 = NULL;
499 main_Reset_1_in_6 = NULL;
500 main_Reset_1_out_1 = 0;
501 main_Scalar_3_in_1 = "Scalar_3";
502 main_Scalar_3_in_3 = -1.0;
503 main_Scalar_3_in_5 = NULL;
504 main_Scalar_3_in_6 = NULL;
505 main_Scalar_3_in_7 = NULL;
506 main_Scalar_3_in_8 = NULL;
507 main_Scalar_3_in_9 = NULL;
508 main_Scalar_3_in_10 = NULL;
509 main_Scalar_3_in_11 = NULL;
510 main_Scalar_3_out_1 = -1.0;
511 main_Isosurface_2_in_3 = 1;
512 main_Isosurface_2_in_4 = NULL;
513 main_Isosurface_2_in_5 = NULL;
514 main_Isosurface_2_in_6 = NULL;
515 main_Isosurface_2_out_1 = NULL;
516 main_Color_5_in_2 = "red";
517 main_Color_5_in_3 = 1.0;
518 main_Color_5_in_4 = NULL;
519 main_Color_5_in_5 = NULL;
520 main_Color_5_out_1 = NULL;
521 main_Reset_5_in_1 = "main_Reset_5_out_1";
522 main_Reset_5_in_2 = 0;
523 main_Reset_5_in_3 = 0;
524 main_Reset_5_in_4 = NULL;
525 main_Reset_5_in_5 = NULL;
526 main_Reset_5_in_6 = NULL;
527 main_Reset_5_out_1 = 0;
528 main_Scalar_4_in_1 = "Scalar_4";
529 main_Scalar_4_in_3 = 1.0;
530 main_Scalar_4_in_5 = NULL;
531 main_Scalar_4_in_6 = NULL;
532 main_Scalar_4_in_7 = NULL;
533 main_Scalar_4_in_8 = NULL;
534 main_Scalar_4_in_9 = NULL;
535 main_Scalar_4_in_10 = NULL;
536 main_Scalar_4_in_11 = NULL;
537 main_Scalar_4_out_1 = 1.0;
538 main_Isosurface_3_in_3 = 1;
539 main_Isosurface_3_in_4 = NULL;
540 main_Isosurface_3_in_5 = NULL;
541 main_Isosurface_3_in_6 = NULL;
542 main_Isosurface_3_out_1 = NULL;
543 main_Color_6_in_2 = "blue";
544 main_Color_6_in_3 = 1.0;
545 main_Color_6_in_4 = NULL;
546 main_Color_6_in_5 = NULL;
547 main_Color_6_out_1 = NULL;
548 main_Collect_3_out_1 = NULL;
549 main_Transmitter_2_out_1 = NULL;
550 main_Receiver_3_out_1 = NULL;
551 main_Collect_2_in_2 = NULL;
552 main_Collect_2_out_1 = NULL;
553 main_AutoCamera_1_in_2 = "off-diagonal";
554 main_AutoCamera_1_in_3 = NULL;
555 main_AutoCamera_1_in_4 = NULL;
556 main_AutoCamera_1_in_5 = NULL;
557 main_AutoCamera_1_in_6 = NULL;
558 main_AutoCamera_1_in_7 = NULL;
559 main_AutoCamera_1_in_8 = NULL;
560 main_AutoCamera_1_in_9 = NULL;
561 main_AutoCamera_1_out_1 = NULL;
562 main_ClipPlane_1_in_1 = NULL;
563 main_ClipPlane_1_in_2 = NULL;
564 main_ClipPlane_1_in_3 = NULL;
565 main_Receiver_4_out_1 = NULL;
566 main_MapToPlane_1_in_2 = NULL;
567 main_MapToPlane_1_in_3 = [0 0 1];
568 main_MapToPlane_1_out_1 = NULL;
569 main_Colormap_3_in_1 = { [0.48397436 1.0] [0.51602564 0.65263158] };
570 main_Colormap_3_in_2 = { [0.0 1.0] [1.0 1.0] };
571 main_Colormap_3_in_3 = { [0.0 1.0] [1.0 1.0] };
572 main_Colormap_3_in_4 = { [0.0 1.0] [1.0 1.0] };
573 main_Colormap_3_in_5 = "Colormap_3";
574 main_Colormap_3_in_7 = NULL;
575 main_Colormap_3_in_8 = NULL;
576 main_Colormap_3_in_9 = NULL;
577 main_Colormap_3_in_10 = NULL;
578 main_Colormap_3_in_11 = NULL;
579 main_Colormap_3_in_12 = { -200.0 200.0 };
580 main_Colormap_3_in_13 = NULL;
581 main_Colormap_3_in_14 = NULL;
582 main_Colormap_3_in_15 = NULL;
583 main_Colormap_3_in_16 = NULL;
584 main_Colormap_3_in_17 = -199.38541;
585 main_Colormap_3_in_18 = 327.0892;
586 main_Colormap_3_in_19 = NULL;
587 main_Colormap_3_out_1 = NULL;
588 main_Color_7_in_3 = NULL;
589 main_Color_7_in_4 = NULL;
590 main_Color_7_in_5 = NULL;
591 main_Color_7_out_1 = NULL;
592 main_MapToPlane_2_in_2 = NULL;
593 main_MapToPlane_2_in_3 = [1 0 0];
594 main_MapToPlane_2_out_1 = NULL;
595 main_Color_8_in_3 = NULL;
596 main_Color_8_in_4 = NULL;
597 main_Color_8_in_5 = NULL;
598 main_Color_8_out_1 = NULL;
599 main_Collect_4_out_1 = NULL;
600 main_MapToPlane_3_in_2 = NULL;
601 main_MapToPlane_3_in_3 = [0 1 0];
602 main_MapToPlane_3_out_1 = NULL;
603 main_Color_9_in_3 = NULL;
604 main_Color_9_in_4 = NULL;
605 main_Color_9_in_5 = NULL;
606 main_Color_9_out_1 = NULL;
607 main_Collect_5_out_1 = NULL;
608 main_Reset_4_in_1 = "main_Reset_4_out_1";
609 main_Reset_4_in_2 = 0;
610 main_Reset_4_in_3 = 0;
611 main_Reset_4_in_4 = NULL;
612 main_Reset_4_in_5 = NULL;
613 main_Reset_4_in_6 = NULL;
614 main_Reset_4_out_1 = 0;
615 macro Image(
616 id,
617 object,
618 where,
619 useVector,
620 to,
621 from,
622 width,
623 resolution,
624 aspect,
625 up,
626 viewAngle,
627 perspective,
628 options,
629 buttonState = 1,
630 buttonUpApprox = "none",
631 buttonDownApprox = "none",
632 buttonUpDensity = 1,
633 buttonDownDensity = 1,
634 renderMode = 0,
635 defaultCamera,
636 reset,
637 backgroundColor,
638 throttle,
639 RECenable = 0,
640 RECfile,
641 RECformat,
642 RECresolution,
643 RECaspect,
644 AAenable = 0,
645 AAlabels,
646 AAticks,
647 AAcorners,
648 AAframe,
649 AAadjust,
650 AAcursor,
651 AAgrid,
652 AAcolors,
653 AAannotation,
654 AAlabelscale,
655 AAfont,
656 interactionMode,
657 title,
658 AAxTickLocs,
659 AAyTickLocs,
660 AAzTickLocs,
661 AAxTickLabels,
662 AAyTickLabels,
663 AAzTickLabels,
664 webOptions) -> (
665 object,
666 camera,
667 where)
668 {
669 ImageMessage(
670 id,
671 backgroundColor,
672 throttle,
673 RECenable,
674 RECfile,
675 RECformat,
676 RECresolution,
677 RECaspect,
678 AAenable,
679 AAlabels,
680 AAticks,
681 AAcorners,
682 AAframe,
683 AAadjust,
684 AAcursor,
685 AAgrid,
686 AAcolors,
687 AAannotation,
688 AAlabelscale,
689 AAfont,
690 AAxTickLocs,
691 AAyTickLocs,
692 AAzTickLocs,
693 AAxTickLabels,
694 AAyTickLabels,
695 AAzTickLabels,
696 interactionMode,
697 title,
698 renderMode,
699 buttonUpApprox,
700 buttonDownApprox,
701 buttonUpDensity,
702 buttonDownDensity) [instance: 1, cache: 1];
703 autoCamera =
704 AutoCamera(
705 object,
706 "front",
707 object,
708 resolution,
709 aspect,
710 [0,1,0],
711 perspective,
712 viewAngle,
713 backgroundColor) [instance: 1, cache: 1];
714 realCamera =
715 Camera(
716 to,
717 from,
718 width,
719 resolution,
720 aspect,
721 up,
722 perspective,
723 viewAngle,
724 backgroundColor) [instance: 1, cache: 1];
725 coloredDefaultCamera =
726 UpdateCamera(defaultCamera,
727 background=backgroundColor) [instance: 1, cache: 1];
728 nullDefaultCamera =
729 Inquire(defaultCamera,
730 "is null + 1") [instance: 1, cache: 1];
731 resetCamera =
732 Switch(
733 nullDefaultCamera,
734 coloredDefaultCamera,
735 autoCamera) [instance: 1, cache: 1];
736 resetNull =
737 Inquire(
738 reset,
739 "is null + 1") [instance: 2, cache: 1];
740 reset =
741 Switch(
742 resetNull,
743 reset,
744 0) [instance: 2, cache: 1];
745 whichCamera =
746 Compute(
747 "($0 != 0 || $1 == 0) ? 1 : 2",
748 reset,
749 useVector) [instance: 1, cache: 1];
750 camera = Switch(
751 whichCamera,
752 resetCamera,
753 realCamera) [instance: 3, cache: 1];
754 AAobject =
755 AutoAxes(
756 object,
757 camera,
758 AAlabels,
759 AAticks,
760 AAcorners,
761 AAframe,
762 AAadjust,
763 AAcursor,
764 AAgrid,
765 AAcolors,
766 AAannotation,
767 AAlabelscale,
768 AAfont,
769 AAxTickLocs,
770 AAyTickLocs,
771 AAzTickLocs,
772 AAxTickLabels,
773 AAyTickLabels,
774 AAzTickLabels) [instance: 1, cache: 1];
775 switchAAenable = Compute("$0+1",
776 AAenable) [instance: 2, cache: 1];
777 object = Switch(
778 switchAAenable,
779 object,
780 AAobject) [instance:4, cache: 1];
781 SWapproximation_options =
782 Switch(
783 buttonState,
784 buttonUpApprox,
785 buttonDownApprox) [instance: 5, cache: 1];
786 SWdensity_options =
787 Switch(
788 buttonState,
789 buttonUpDensity,
790 buttonDownDensity) [instance: 6, cache: 1];
791 HWapproximation_options =
792 Format(
793 "%s,%s",
794 buttonDownApprox,
795 buttonUpApprox) [instance: 1, cache: 1];
796 HWdensity_options =
797 Format(
798 "%d,%d",
799 buttonDownDensity,
800 buttonUpDensity) [instance: 2, cache: 1];
801 switchRenderMode = Compute(
802 "$0+1",
803 renderMode) [instance: 3, cache: 1];
804 approximation_options = Switch(
805 switchRenderMode,
806 SWapproximation_options,
807 HWapproximation_options) [instance: 7, cache: 1];
808 density_options = Switch(
809 switchRenderMode,
810 SWdensity_options,
811 HWdensity_options) [instance: 8, cache: 1];
812 renderModeString = Switch(
813 switchRenderMode,
814 "software",
815 "hardware")[instance: 9, cache: 1];
816 object_tag = Inquire(
817 object,
818 "object tag")[instance: 3, cache: 1];
819 annoted_object =
820 Options(
821 object,
822 "send boxes",
823 0,
824 "cache",
825 1,
826 "object tag",
827 object_tag,
828 "ddcamera",
829 whichCamera,
830 "rendering approximation",
831 approximation_options,
832 "render every",
833 density_options,
834 "button state",
835 buttonState,
836 "rendering mode",
837 renderModeString) [instance: 1, cache: 1];
838 RECresNull =
839 Inquire(
840 RECresolution,
841 "is null + 1") [instance: 4, cache: 1];
842 ImageResolution =
843 Inquire(
844 camera,
845 "camera resolution") [instance: 5, cache: 1];
846 RECresolution =
847 Switch(
848 RECresNull,
849 RECresolution,
850 ImageResolution) [instance: 10, cache: 1];
851 RECaspectNull =
852 Inquire(
853 RECaspect,
854 "is null + 1") [instance: 6, cache: 1];
855 ImageAspect =
856 Inquire(
857 camera,
858 "camera aspect") [instance: 7, cache: 1];
859 RECaspect =
860 Switch(
861 RECaspectNull,
862 RECaspect,
863 ImageAspect) [instance: 11, cache: 1];
864 switchRECenable = Compute(
865 "$0 == 0 ? 1 : (($2 == $3) && ($4 == $5)) ? ($1 == 1 ? 2 : 3) : 4",
866 RECenable,
867 switchRenderMode,
868 RECresolution,
869 ImageResolution,
870 RECaspect,
871 ImageAspect) [instance: 4, cache: 1];
872 NoRECobject, RECNoRerenderObject, RECNoRerHW, RECRerenderObject = Route(switchRECenable, annoted_object);
873 Display(
874 NoRECobject,
875 camera,
876 where,
877 throttle) [instance: 1, cache: 1];
878 image =
879 Render(
880 RECNoRerenderObject,
881 camera) [instance: 1, cache: 1];
882 Display(
883 image,
884 NULL,
885 where,
886 throttle) [instance: 2, cache: 1];
887 WriteImage(
888 image,
889 RECfile,
890 RECformat) [instance: 1, cache: 1];
891 rec_where = Display(
892 RECNoRerHW,
893 camera,
894 where,
895 throttle) [instance: 1, cache: 0];
896 rec_image = ReadImageWindow(
897 rec_where) [instance: 1, cache: 1];
898 WriteImage(
899 rec_image,
900 RECfile,
901 RECformat) [instance: 1, cache: 1];
902 RECupdateCamera =
903 UpdateCamera(
904 camera,
905 resolution=RECresolution,
906 aspect=RECaspect) [instance: 2, cache: 1];
907 Display(
908 RECRerenderObject,
909 camera,
910 where,
911 throttle) [instance: 1, cache: 1];
912 RECRerenderObject =
913 ScaleScreen(
914 RECRerenderObject,
915 NULL,
916 RECresolution,
917 camera) [instance: 1, cache: 1];
918 image =
919 Render(
920 RECRerenderObject,
921 RECupdateCamera) [instance: 2, cache: 1];
922 WriteImage(
923 image,
924 RECfile,
925 RECformat) [instance: 2, cache: 1];
926 }
927 main_Image_5_in_1 = "Image_5";
928 main_Image_5_in_3 = "X24,,Gridded_3D_1var_notseries";
929 main_Image_5_in_4 = 1;
930 main_Image_5_in_5 = [127.645 37.245 121.76];
931 main_Image_5_in_6 = [125.853 125.347 1251.27];
932 main_Image_5_in_7 = 613.112;
933 main_Image_5_in_8 = 940;
934 main_Image_5_in_9 = 0.777;
935 main_Image_5_in_10 = [-0.0491375 0.995761 -0.077747];
936 main_Image_5_in_11 = NULL;
937 main_Image_5_in_12 = 0;
938 main_Image_5_in_13 = NULL;
939 main_Image_5_in_14 = 1;
940 main_Image_5_in_15 = NULL;
941 main_Image_5_in_16 = NULL;
942 main_Image_5_in_17 = NULL;
943 main_Image_5_in_18 = NULL;
944 main_Image_5_in_19 = 0;
945 main_Image_5_in_22 = NULL;
946 main_Image_5_in_23 = NULL;
947 main_Image_5_in_25 = NULL;
948 main_Image_5_in_26 = NULL;
949 main_Image_5_in_27 = NULL;
950 main_Image_5_in_28 = NULL;
951 main_Image_5_in_29 = NULL;
952 main_Image_5_in_30 = NULL;
953 main_Image_5_in_31 = NULL;
954 main_Image_5_in_32 = NULL;
955 main_Image_5_in_33 = NULL;
956 main_Image_5_in_34 = NULL;
957 main_Image_5_in_35 = NULL;
958 main_Image_5_in_36 = NULL;
959 main_Image_5_in_37 = NULL;
960 main_Image_5_in_38 = NULL;
961 main_Image_5_in_39 = NULL;
962 main_Image_5_in_40 = NULL;
963 main_Image_5_in_41 = "rotate";
964 main_Image_5_in_42 = "Gridded_3D_1var_notseries";
965 main_Image_5_in_43 = NULL;
966 main_Image_5_in_44 = NULL;
967 main_Image_5_in_45 = NULL;
968 main_Image_5_in_46 = NULL;
969 main_Image_5_in_47 = NULL;
970 main_Image_5_in_48 = NULL;
971 main_Image_5_in_49 = NULL;
972 main_Transmitter_4_out_1 = NULL;
973 Executive("product version 4 1 0");
974 $sync
975 main();