Debian Codegraph @

tools/visualization/opendx/multipot.net

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