Debian Codegraph @

tools/visualization/opendx/potacc.net

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