Debian Codegraph @

Visu/OpenDX/anime.net

raw
1 //
2 // time: Thu Jun 17 16:44:31 2004
3 //
4 // version: 3.2.0 (format), 4.3.0 (DX)
5 //
6 //
7 // MODULE main
8 //
9 // comment: A general purpose visual program for gridded, two-dimensional data has been used.
10 // comment:
11 // comment: The 2-dimensional surface is colored using a data-driven colormap editor (choose Open All Colormap Editors from the Windows menu of the Image window).
12 // comment:
13 // comment: If the data are scalar, then the colored surface is deformed using RubberSheet. If the data are position-dependent, contour lines are added.
14 // comment:
15 // comment: If the data are vector, then glyphs (arrows) are drawn at sampled points on the colored surface.
16 // comment:
17 // comment: If you would like to modify or use this visual program in the future, choose Open Visual Program Editor from the Windows menu, and then Save As from the File menu of the VPE.
18 // page assignment: scalar_viz order=2, windowed=0, showing=1
19 // workspace: width = 748, height = 642
20 // layout: snap = 0, width = 50, height = 20, align = NN
21 //
22 macro main(
23 ) -> (
24 ) {
25 //
26 // node ImportSpreadsheet[1]: x = 444, y = 15, inputs = 10, label = ImportSpreadsheet
27 // input[1]: defaulting = 0, visible = 1, type = 32, value = "anime.dxcont"
28 // input[10]: defaulting = 0, visible = 0, type = 1, value = 1
29 // page group: scalar_viz
30 //
31 main_ImportSpreadsheet_1_out_1,
32 main_ImportSpreadsheet_1_out_2 =
33 ImportSpreadsheet(
34 main_ImportSpreadsheet_1_in_1,
35 main_ImportSpreadsheet_1_in_2,
36 main_ImportSpreadsheet_1_in_3,
37 main_ImportSpreadsheet_1_in_4,
38 main_ImportSpreadsheet_1_in_5,
39 main_ImportSpreadsheet_1_in_6,
40 main_ImportSpreadsheet_1_in_7,
41 main_ImportSpreadsheet_1_in_8,
42 main_ImportSpreadsheet_1_in_9,
43 main_ImportSpreadsheet_1_in_10
44 ) [instance: 1, cache: 1];
45 //
46 // node Extract[3]: x = 408, y = 133, inputs = 2, label = Extract
47 // input[2]: defaulting = 0, visible = 1, type = 32, value = "fieldname"
48 // page group: scalar_viz
49 //
50 main_Extract_3_out_1 =
51 Extract(
52 main_ImportSpreadsheet_1_out_1,
53 main_Extract_3_in_2
54 ) [instance: 3, cache: 1];
55 //
56 // node Extract[1]: x = 473, y = 134, inputs = 2, label = Extract
57 // input[2]: defaulting = 0, visible = 1, type = 32, value = "jmin"
58 // page group: scalar_viz
59 //
60 main_Extract_1_out_1 =
61 Extract(
62 main_ImportSpreadsheet_1_out_1,
63 main_Extract_1_in_2
64 ) [instance: 1, cache: 1];
65 //
66 // node Extract[2]: x = 540, y = 133, inputs = 2, label = Extract
67 // input[2]: defaulting = 0, visible = 1, type = 32, value = "jmax"
68 // page group: scalar_viz
69 //
70 main_Extract_2_out_1 =
71 Extract(
72 main_ImportSpreadsheet_1_out_1,
73 main_Extract_2_in_2
74 ) [instance: 2, cache: 1];
75 //
76 // node Extract[5]: x = 618, y = 133, inputs = 2, label = Extract
77 // input[2]: defaulting = 0, visible = 1, type = 32, value = "jstep"
78 // page group: scalar_viz
79 //
80 main_Extract_5_out_1 =
81 Extract(
82 main_ImportSpreadsheet_1_out_1,
83 main_Extract_5_in_2
84 ) [instance: 5, cache: 1];
85 //
86 // node Sequencer[1]: x = 493, y = 237, inputs = 7, label = Sequencer
87 // input[1]: defaulting = 0, visible = 0, type = 32, value = "Sequencer_1"
88 // input[4]: defaulting = 1, visible = 1, type = 1, value = 2
89 // input[5]: defaulting = 1, visible = 1, type = 1, value = 100
90 // input[6]: defaulting = 1, visible = 1, type = 1, value = 10
91 // input[7]: defaulting = 0, visible = 0, type = 16777217, value = { 2 100 10 2 100 1 }
92 // page group: scalar_viz
93 // vcr[1]: min = 2, max = 100, beg = 2, end = 100, cur = 2, inc = 10, loop = off, step = off, pal = off
94 // window: position = (0.0143,0.3695), size = 0.2000x0.0762
95 //
96 main_Sequencer_1_in_3 = @frame;
97 main_Sequencer_1_out_1[cache: 2] =
98 Sequencer(
99 main_Sequencer_1_in_1,
100 main_Sequencer_1_in_2,
101 main_Sequencer_1_in_3,
102 main_Extract_1_out_1,
103 main_Extract_2_out_1,
104 main_Extract_5_out_1,
105 main_Sequencer_1_in_7
106 ) [instance: 1, cache: 1];
107 //
108 // node Format[1]: x = 216, y = 63, inputs = 4, label = Format
109 // input[1]: defaulting = 0, visible = 1, type = 32, value = "%s%04d%s"
110 // input[2]: defaulting = 1, visible = 1, type = 32, value = "hpp"
111 // input[3]: defaulting = 1, visible = 1, type = 16777245, value = NULL
112 // input[4]: defaulting = 0, visible = 1, type = 32, value = ".dxhead"
113 // page group: scalar_viz
114 //
115 main_Format_1_out_1 =
116 Format(
117 main_Format_1_in_1,
118 main_Extract_3_out_1,
119 main_Sequencer_1_out_1,
120 main_Format_1_in_4
121 ) [instance: 1, cache: 1];
122 //
123 // node Import[2]: x = 96, y = 82, inputs = 6, label = Import
124 // input[1]: defaulting = 1, visible = 1, type = 32, value = "/usr/lpp/dx/samples/data/southeastern_topo.dx"
125 // input[3]: defaulting = 0, visible = 1, type = 32, value = "general"
126 // page group: scalar_viz
127 //
128 main_Import_2_out_1 =
129 Import(
130 main_Format_1_out_1,
131 main_Import_2_in_2,
132 main_Import_2_in_3,
133 main_Import_2_in_4,
134 main_Import_2_in_5,
135 main_Import_2_in_6
136 ) [instance: 2, cache: 1];
137 //
138 // node Attribute[1]: x = 293, y = 258, inputs = 2, label = Attribute
139 // page group: scalar_viz
140 //
141 main_Attribute_1_out_1 =
142 Attribute(
143 main_Import_2_out_1,
144 main_Attribute_1_in_2
145 ) [instance: 1, cache: 1];
146 //
147 // node Caption[2]: x = 420, y = 454, inputs = 9, label = Caption
148 // page group: scalar_viz
149 //
150 main_Caption_2_out_1 =
151 Caption(
152 main_Attribute_1_out_1,
153 main_Caption_2_in_2,
154 main_Caption_2_in_3,
155 main_Caption_2_in_4,
156 main_Caption_2_in_5,
157 main_Caption_2_in_6,
158 main_Caption_2_in_7,
159 main_Caption_2_in_8,
160 main_Caption_2_in_9
161 ) [instance: 2, cache: 1];
162 //
163 // node Colormap[5]: x = 231, y = 163, inputs = 19, label = Colormap
164 // input[1]: defaulting = 0, visible = 0, type = 16777224, value = { [0.0 0.666667] [1.0 0.0] }
165 // input[2]: defaulting = 0, visible = 0, type = 16777224, value = { [0.0 1.0] [1.0 1.0] }
166 // input[3]: defaulting = 0, visible = 0, type = 16777224, value = { [0.0 1.0] [1.0 1.0] }
167 // input[4]: defaulting = 0, visible = 0, type = 16777224, value = { [0.0 1.0] [1.0 1.0] }
168 // input[5]: defaulting = 0, visible = 0, type = 32, value = "Colormap_5"
169 // input[7]: defaulting = 1, visible = 0, type = 5, value = -0.00013191599
170 // input[8]: defaulting = 1, visible = 0, type = 5, value = 0.000131953
171 // input[9]: defaulting = 1, visible = 0, type = 1, value = 20
172 // input[12]: defaulting = 0, visible = 0, type = 16777221, value = { -0.00013191599 0.000131953 }
173 // input[17]: defaulting = 0, visible = 0, type = 5, value = -0.00013191599
174 // input[18]: defaulting = 0, visible = 0, type = 5, value = 0.000131953
175 // page group: scalar_viz
176 // window: position = (0.4557,0.0324), size = 0.5364x0.3905
177 //
178 main_Colormap_5_out_1[cache: 2],
179 main_Colormap_5_out_2[cache: 2] =
180 Colormap(
181 main_Colormap_5_in_1,
182 main_Colormap_5_in_2,
183 main_Colormap_5_in_3,
184 main_Colormap_5_in_4,
185 main_Colormap_5_in_5,
186 main_Import_2_out_1,
187 main_Colormap_5_in_7,
188 main_Colormap_5_in_8,
189 main_Colormap_5_in_9,
190 main_Colormap_5_in_10,
191 main_Colormap_5_in_11,
192 main_Colormap_5_in_12,
193 main_Colormap_5_in_13,
194 main_Colormap_5_in_14,
195 main_Colormap_5_in_15,
196 main_Colormap_5_in_16,
197 main_Colormap_5_in_17,
198 main_Colormap_5_in_18,
199 main_Colormap_5_in_19
200 ) [instance: 5, cache: 1];
201 //
202 // node Color[5]: x = 140, y = 229, inputs = 5, label = Color
203 // page group: scalar_viz
204 //
205 main_Color_5_out_1 =
206 Color(
207 main_Import_2_out_1,
208 main_Colormap_5_out_1,
209 main_Color_5_in_3,
210 main_Color_5_in_4,
211 main_Color_5_in_5
212 ) [instance: 5, cache: 1];
213 //
214 // node Extract[4]: x = 694, y = 133, inputs = 2, label = Extract
215 // input[2]: defaulting = 0, visible = 1, type = 32, value = "ampli"
216 // page group: scalar_viz
217 //
218 main_Extract_4_out_1 =
219 Extract(
220 main_ImportSpreadsheet_1_out_1,
221 main_Extract_4_in_2
222 ) [instance: 4, cache: 1];
223 //
224 // node RubberSheet[1]: x = 149, y = 304, inputs = 4, label = RubberSheet
225 // input[2]: defaulting = 1, visible = 1, type = 5, value = 1000.0
226 // page group: scalar_viz
227 //
228 main_RubberSheet_1_out_1 =
229 RubberSheet(
230 main_Color_5_out_1,
231 main_Extract_4_out_1,
232 main_RubberSheet_1_in_3,
233 main_RubberSheet_1_in_4
234 ) [instance: 1, cache: 1];
235 //
236 // node Isosurface[1]: x = 267, y = 385, inputs = 6, label = Isosurface
237 // input[3]: defaulting = 0, visible = 1, type = 1, value = 15
238 // page group: scalar_viz
239 //
240 main_Isosurface_1_out_1 =
241 Isosurface(
242 main_RubberSheet_1_out_1,
243 main_Isosurface_1_in_2,
244 main_Isosurface_1_in_3,
245 main_Isosurface_1_in_4,
246 main_Isosurface_1_in_5,
247 main_Isosurface_1_in_6
248 ) [instance: 1, cache: 1];
249 //
250 // node Color[2]: x = 311, y = 454, inputs = 5, label = Color
251 // input[2]: defaulting = 0, visible = 1, type = 32, value = "black"
252 // page group: scalar_viz
253 //
254 main_Color_2_out_1 =
255 Color(
256 main_Isosurface_1_out_1,
257 main_Color_2_in_2,
258 main_Color_2_in_3,
259 main_Color_2_in_4,
260 main_Color_2_in_5
261 ) [instance: 2, cache: 1];
262 //
263 // node Collect[1]: x = 113, y = 417, inputs = 2, label = Collect
264 // page group: scalar_viz
265 //
266 main_Collect_1_out_1 =
267 Collect(
268 main_RubberSheet_1_out_1,
269 main_Color_2_out_1
270 ) [instance: 1, cache: 1];
271 //
272 // node ColorBar[1]: x = 2, y = 293, inputs = 16, label = ColorBar
273 // page group: scalar_viz
274 //
275 main_ColorBar_1_out_1 =
276 ColorBar(
277 main_Colormap_5_out_1,
278 main_ColorBar_1_in_2,
279 main_ColorBar_1_in_3,
280 main_ColorBar_1_in_4,
281 main_ColorBar_1_in_5,
282 main_ColorBar_1_in_6,
283 main_ColorBar_1_in_7,
284 main_ColorBar_1_in_8,
285 main_ColorBar_1_in_9,
286 main_ColorBar_1_in_10,
287 main_ColorBar_1_in_11,
288 main_ColorBar_1_in_12,
289 main_ColorBar_1_in_13,
290 main_ColorBar_1_in_14,
291 main_ColorBar_1_in_15,
292 main_ColorBar_1_in_16
293 ) [instance: 1, cache: 1];
294 //
295 // node Collect[2]: x = 16, y = 515, inputs = 2, label = Collect
296 // page group: scalar_viz
297 //
298 main_Collect_2_out_1 =
299 Collect(
300 main_ColorBar_1_out_1,
301 main_Collect_1_out_1
302 ) [instance: 2, cache: 1];
303 //
304 // node Collect[3]: x = 247, y = 553, inputs = 2, label = Collect
305 // page group: scalar_viz
306 //
307 main_Collect_3_out_1 =
308 Collect(
309 main_Collect_2_out_1,
310 main_Caption_2_out_1
311 ) [instance: 3, cache: 1];
312 //
313 // node Image[5]: x = 369, y = 580, inputs = 49, label = Image
314 // input[1]: defaulting = 0, visible = 0, type = 67108863, value = "Image_5"
315 // input[4]: defaulting = 0, visible = 0, type = 1, value = 1
316 // input[5]: defaulting = 0, visible = 0, type = 8, value = [-7.10804 22.8963 -17.5819]
317 // input[6]: defaulting = 0, visible = 0, type = 8, value = [11.4674 -26.2924 20.6071]
318 // input[7]: defaulting = 1, visible = 0, type = 5, value = 34.825
319 // input[8]: defaulting = 0, visible = 0, type = 1, value = 909
320 // input[9]: defaulting = 0, visible = 0, type = 5, value = 0.821232
321 // input[10]: defaulting = 0, visible = 0, type = 8, value = [0.175891 0.644275 0.744293]
322 // input[11]: defaulting = 0, visible = 0, type = 5, value = 30.0
323 // input[12]: defaulting = 0, visible = 0, type = 1, value = 1
324 // input[14]: defaulting = 0, visible = 0, type = 1, value = 1
325 // input[15]: defaulting = 1, visible = 0, type = 32, value = "none"
326 // input[16]: defaulting = 1, visible = 0, type = 32, value = "none"
327 // input[17]: defaulting = 0, visible = 0, type = 1, value = 1
328 // input[18]: defaulting = 0, visible = 0, type = 1, value = 1
329 // input[19]: defaulting = 0, visible = 0, type = 1, value = 1
330 // input[26]: defaulting = 0, visible = 0, type = 32, value = "miff"
331 // input[29]: defaulting = 0, visible = 0, type = 3, value = 1
332 // input[30]: defaulting = 1, visible = 0, type = 16777248, value = {"x", "", ""}
333 // input[31]: defaulting = 0, visible = 0, type = 1, value = 15
334 // input[32]: defaulting = 1, visible = 0, type = 16777224, value = {[-4 -4 -0.5] [4 4 0.5]}
335 // input[33]: defaulting = 0, visible = 0, type = 3, value = 1
336 // input[34]: defaulting = 0, visible = 0, type = 3, value = 1
337 // input[36]: defaulting = 0, visible = 0, type = 3, value = 0
338 // input[41]: defaulting = 0, visible = 0, type = 32, value = "navigate"
339 // page group: scalar_viz
340 // depth: value = 16
341 // window: position = (0.3157,0.0581), size = 0.6593x0.7505
342 // internal caching: 1
343 //
344 main_Image_5_out_1,
345 main_Image_5_out_2,
346 main_Image_5_out_3 =
347 Image(
348 main_Image_5_in_1,
349 main_Collect_3_out_1,
350 main_Image_5_in_3,
351 main_Image_5_in_4,
352 main_Image_5_in_5,
353 main_Image_5_in_6,
354 main_Image_5_in_7,
355 main_Image_5_in_8,
356 main_Image_5_in_9,
357 main_Image_5_in_10,
358 main_Image_5_in_11,
359 main_Image_5_in_12,
360 main_Image_5_in_13,
361 main_Image_5_in_14,
362 main_Image_5_in_15,
363 main_Image_5_in_16,
364 main_Image_5_in_17,
365 main_Image_5_in_18,
366 main_Image_5_in_19,
367 main_Image_5_in_20,
368 main_Image_5_in_21,
369 main_Image_5_in_22,
370 main_Image_5_in_23,
371 main_Image_5_in_24,
372 main_Image_5_in_25,
373 main_Image_5_in_26,
374 main_Image_5_in_27,
375 main_Image_5_in_28,
376 main_Image_5_in_29,
377 main_Image_5_in_30,
378 main_Image_5_in_31,
379 main_Image_5_in_32,
380 main_Image_5_in_33,
381 main_Image_5_in_34,
382 main_Image_5_in_35,
383 main_Image_5_in_36,
384 main_Image_5_in_37,
385 main_Image_5_in_38,
386 main_Image_5_in_39,
387 main_Image_5_in_40,
388 main_Image_5_in_41,
389 main_Image_5_in_42,
390 main_Image_5_in_43,
391 main_Image_5_in_44,
392 main_Image_5_in_45,
393 main_Image_5_in_46,
394 main_Image_5_in_47,
395 main_Image_5_in_48,
396 main_Image_5_in_49
397 ) [instance: 5, cache: 1];
398 // network: end of macro body
399 CacheScene(main_Image_5_in_1, main_Image_5_out_1, main_Image_5_out_2);
400 }
401 main_ImportSpreadsheet_1_in_1 = "anime.dxcont";
402 main_ImportSpreadsheet_1_in_2 = NULL;
403 main_ImportSpreadsheet_1_in_3 = NULL;
404 main_ImportSpreadsheet_1_in_4 = NULL;
405 main_ImportSpreadsheet_1_in_5 = NULL;
406 main_ImportSpreadsheet_1_in_6 = NULL;
407 main_ImportSpreadsheet_1_in_7 = NULL;
408 main_ImportSpreadsheet_1_in_8 = NULL;
409 main_ImportSpreadsheet_1_in_9 = NULL;
410 main_ImportSpreadsheet_1_in_10 = 1;
411 main_ImportSpreadsheet_1_out_1 = NULL;
412 main_Extract_3_in_2 = "fieldname";
413 main_Extract_3_out_1 = NULL;
414 main_Extract_1_in_2 = "jmin";
415 main_Extract_1_out_1 = NULL;
416 main_Extract_2_in_2 = "jmax";
417 main_Extract_2_out_1 = NULL;
418 main_Extract_5_in_2 = "jstep";
419 main_Extract_5_out_1 = NULL;
420 main_Sequencer_1_in_1 = "Sequencer_1";
421 main_Sequencer_1_in_2 = NULL;
422 main_Sequencer_1_in_3 = NULL;
423 main_Sequencer_1_in_7 = { 2 100 10 2 100 1 };
424 main_Sequencer_1_out_1 = NULL;
425
426 @startframe = 2;
427 @nextframe = @startframe;
428 @endframe = 100;
429 @deltaframe = 10;
430 main_Format_1_in_1 = "%s%04d%s";
431 main_Format_1_in_4 = ".dxhead";
432 main_Format_1_out_1 = NULL;
433 main_Import_2_in_2 = NULL;
434 main_Import_2_in_3 = "general";
435 main_Import_2_in_4 = NULL;
436 main_Import_2_in_5 = NULL;
437 main_Import_2_in_6 = NULL;
438 main_Import_2_out_1 = NULL;
439 main_Attribute_1_in_2 = NULL;
440 main_Attribute_1_out_1 = NULL;
441 main_Caption_2_in_2 = NULL;
442 main_Caption_2_in_3 = NULL;
443 main_Caption_2_in_4 = NULL;
444 main_Caption_2_in_5 = NULL;
445 main_Caption_2_in_6 = NULL;
446 main_Caption_2_in_7 = NULL;
447 main_Caption_2_in_8 = NULL;
448 main_Caption_2_in_9 = NULL;
449 main_Caption_2_out_1 = NULL;
450 main_Colormap_5_in_1 = { [0.0 0.666667] [1.0 0.0] };
451 main_Colormap_5_in_2 = { [0.0 1.0] [1.0 1.0] };
452 main_Colormap_5_in_3 = { [0.0 1.0] [1.0 1.0] };
453 main_Colormap_5_in_4 = { [0.0 1.0] [1.0 1.0] };
454 main_Colormap_5_in_5 = "Colormap_5";
455 main_Colormap_5_in_7 = NULL;
456 main_Colormap_5_in_8 = NULL;
457 main_Colormap_5_in_9 = NULL;
458 main_Colormap_5_in_10 = NULL;
459 main_Colormap_5_in_11 = NULL;
460 main_Colormap_5_in_12 = { -0.00013191599 0.000131953 };
461 main_Colormap_5_in_13 = NULL;
462 main_Colormap_5_in_14 = NULL;
463 main_Colormap_5_in_15 = NULL;
464 main_Colormap_5_in_16 = NULL;
465 main_Colormap_5_in_17 = -0.00013191599;
466 main_Colormap_5_in_18 = 0.000131953;
467 main_Colormap_5_in_19 = NULL;
468 main_Colormap_5_out_1 = NULL;
469 main_Color_5_in_3 = NULL;
470 main_Color_5_in_4 = NULL;
471 main_Color_5_in_5 = NULL;
472 main_Color_5_out_1 = NULL;
473 main_Extract_4_in_2 = "ampli";
474 main_Extract_4_out_1 = NULL;
475 main_RubberSheet_1_in_3 = NULL;
476 main_RubberSheet_1_in_4 = NULL;
477 main_RubberSheet_1_out_1 = NULL;
478 main_Isosurface_1_in_2 = NULL;
479 main_Isosurface_1_in_3 = 15;
480 main_Isosurface_1_in_4 = NULL;
481 main_Isosurface_1_in_5 = NULL;
482 main_Isosurface_1_in_6 = NULL;
483 main_Isosurface_1_out_1 = NULL;
484 main_Color_2_in_2 = "black";
485 main_Color_2_in_3 = NULL;
486 main_Color_2_in_4 = NULL;
487 main_Color_2_in_5 = NULL;
488 main_Color_2_out_1 = NULL;
489 main_Collect_1_out_1 = NULL;
490 main_ColorBar_1_in_2 = NULL;
491 main_ColorBar_1_in_3 = NULL;
492 main_ColorBar_1_in_4 = NULL;
493 main_ColorBar_1_in_5 = NULL;
494 main_ColorBar_1_in_6 = NULL;
495 main_ColorBar_1_in_7 = NULL;
496 main_ColorBar_1_in_8 = NULL;
497 main_ColorBar_1_in_9 = NULL;
498 main_ColorBar_1_in_10 = NULL;
499 main_ColorBar_1_in_11 = NULL;
500 main_ColorBar_1_in_12 = NULL;
501 main_ColorBar_1_in_13 = NULL;
502 main_ColorBar_1_in_14 = NULL;
503 main_ColorBar_1_in_15 = NULL;
504 main_ColorBar_1_in_16 = NULL;
505 main_ColorBar_1_out_1 = NULL;
506 main_Collect_2_out_1 = NULL;
507 main_Collect_3_out_1 = NULL;
508 macro Image(
509 id,
510 object,
511 where,
512 useVector,
513 to,
514 from,
515 width,
516 resolution,
517 aspect,
518 up,
519 viewAngle,
520 perspective,
521 options,
522 buttonState = 1,
523 buttonUpApprox = "none",
524 buttonDownApprox = "none",
525 buttonUpDensity = 1,
526 buttonDownDensity = 1,
527 renderMode = 0,
528 defaultCamera,
529 reset,
530 backgroundColor,
531 throttle,
532 RECenable = 0,
533 RECfile,
534 RECformat,
535 RECresolution,
536 RECaspect,
537 AAenable = 0,
538 AAlabels,
539 AAticks,
540 AAcorners,
541 AAframe,
542 AAadjust,
543 AAcursor,
544 AAgrid,
545 AAcolors,
546 AAannotation,
547 AAlabelscale,
548 AAfont,
549 interactionMode,
550 title,
551 AAxTickLocs,
552 AAyTickLocs,
553 AAzTickLocs,
554 AAxTickLabels,
555 AAyTickLabels,
556 AAzTickLabels,
557 webOptions) -> (
558 object,
559 camera,
560 where)
561 {
562 ImageMessage(
563 id,
564 backgroundColor,
565 throttle,
566 RECenable,
567 RECfile,
568 RECformat,
569 RECresolution,
570 RECaspect,
571 AAenable,
572 AAlabels,
573 AAticks,
574 AAcorners,
575 AAframe,
576 AAadjust,
577 AAcursor,
578 AAgrid,
579 AAcolors,
580 AAannotation,
581 AAlabelscale,
582 AAfont,
583 AAxTickLocs,
584 AAyTickLocs,
585 AAzTickLocs,
586 AAxTickLabels,
587 AAyTickLabels,
588 AAzTickLabels,
589 interactionMode,
590 title,
591 renderMode,
592 buttonUpApprox,
593 buttonDownApprox,
594 buttonUpDensity,
595 buttonDownDensity) [instance: 1, cache: 1];
596 autoCamera =
597 AutoCamera(
598 object,
599 "front",
600 object,
601 resolution,
602 aspect,
603 [0,1,0],
604 perspective,
605 viewAngle,
606 backgroundColor) [instance: 1, cache: 1];
607 realCamera =
608 Camera(
609 to,
610 from,
611 width,
612 resolution,
613 aspect,
614 up,
615 perspective,
616 viewAngle,
617 backgroundColor) [instance: 1, cache: 1];
618 coloredDefaultCamera =
619 UpdateCamera(defaultCamera,
620 background=backgroundColor) [instance: 1, cache: 1];
621 nullDefaultCamera =
622 Inquire(defaultCamera,
623 "is null + 1") [instance: 1, cache: 1];
624 resetCamera =
625 Switch(
626 nullDefaultCamera,
627 coloredDefaultCamera,
628 autoCamera) [instance: 1, cache: 1];
629 resetNull =
630 Inquire(
631 reset,
632 "is null + 1") [instance: 2, cache: 1];
633 reset =
634 Switch(
635 resetNull,
636 reset,
637 0) [instance: 2, cache: 1];
638 whichCamera =
639 Compute(
640 "($0 != 0 || $1 == 0) ? 1 : 2",
641 reset,
642 useVector) [instance: 1, cache: 1];
643 camera = Switch(
644 whichCamera,
645 resetCamera,
646 realCamera) [instance: 3, cache: 1];
647 AAobject =
648 AutoAxes(
649 object,
650 camera,
651 AAlabels,
652 AAticks,
653 AAcorners,
654 AAframe,
655 AAadjust,
656 AAcursor,
657 AAgrid,
658 AAcolors,
659 AAannotation,
660 AAlabelscale,
661 AAfont,
662 AAxTickLocs,
663 AAyTickLocs,
664 AAzTickLocs,
665 AAxTickLabels,
666 AAyTickLabels,
667 AAzTickLabels) [instance: 1, cache: 1];
668 switchAAenable = Compute("$0+1",
669 AAenable) [instance: 2, cache: 1];
670 object = Switch(
671 switchAAenable,
672 object,
673 AAobject) [instance:4, cache: 1];
674 SWapproximation_options =
675 Switch(
676 buttonState,
677 buttonUpApprox,
678 buttonDownApprox) [instance: 5, cache: 1];
679 SWdensity_options =
680 Switch(
681 buttonState,
682 buttonUpDensity,
683 buttonDownDensity) [instance: 6, cache: 1];
684 HWapproximation_options =
685 Format(
686 "%s,%s",
687 buttonDownApprox,
688 buttonUpApprox) [instance: 1, cache: 1];
689 HWdensity_options =
690 Format(
691 "%d,%d",
692 buttonDownDensity,
693 buttonUpDensity) [instance: 2, cache: 1];
694 switchRenderMode = Compute(
695 "$0+1",
696 renderMode) [instance: 3, cache: 1];
697 approximation_options = Switch(
698 switchRenderMode,
699 SWapproximation_options,
700 HWapproximation_options) [instance: 7, cache: 1];
701 density_options = Switch(
702 switchRenderMode,
703 SWdensity_options,
704 HWdensity_options) [instance: 8, cache: 1];
705 renderModeString = Switch(
706 switchRenderMode,
707 "software",
708 "hardware")[instance: 9, cache: 1];
709 object_tag = Inquire(
710 object,
711 "object tag")[instance: 3, cache: 1];
712 annoted_object =
713 Options(
714 object,
715 "send boxes",
716 0,
717 "cache",
718 1,
719 "object tag",
720 object_tag,
721 "ddcamera",
722 whichCamera,
723 "rendering approximation",
724 approximation_options,
725 "render every",
726 density_options,
727 "button state",
728 buttonState,
729 "rendering mode",
730 renderModeString) [instance: 1, cache: 1];
731 RECresNull =
732 Inquire(
733 RECresolution,
734 "is null + 1") [instance: 4, cache: 1];
735 ImageResolution =
736 Inquire(
737 camera,
738 "camera resolution") [instance: 5, cache: 1];
739 RECresolution =
740 Switch(
741 RECresNull,
742 RECresolution,
743 ImageResolution) [instance: 10, cache: 1];
744 RECaspectNull =
745 Inquire(
746 RECaspect,
747 "is null + 1") [instance: 6, cache: 1];
748 ImageAspect =
749 Inquire(
750 camera,
751 "camera aspect") [instance: 7, cache: 1];
752 RECaspect =
753 Switch(
754 RECaspectNull,
755 RECaspect,
756 ImageAspect) [instance: 11, cache: 1];
757 switchRECenable = Compute(
758 "$0 == 0 ? 1 : (($2 == $3) && ($4 == $5)) ? ($1 == 1 ? 2 : 3) : 4",
759 RECenable,
760 switchRenderMode,
761 RECresolution,
762 ImageResolution,
763 RECaspect,
764 ImageAspect) [instance: 4, cache: 1];
765 NoRECobject, RECNoRerenderObject, RECNoRerHW, RECRerenderObject = Route(switchRECenable, annoted_object);
766 Display(
767 NoRECobject,
768 camera,
769 where,
770 throttle) [instance: 1, cache: 1];
771 image =
772 Render(
773 RECNoRerenderObject,
774 camera) [instance: 1, cache: 1];
775 Display(
776 image,
777 NULL,
778 where,
779 throttle) [instance: 2, cache: 1];
780 WriteImage(
781 image,
782 RECfile,
783 RECformat) [instance: 1, cache: 1];
784 rec_where = Display(
785 RECNoRerHW,
786 camera,
787 where,
788 throttle) [instance: 1, cache: 0];
789 rec_image = ReadImageWindow(
790 rec_where) [instance: 1, cache: 1];
791 WriteImage(
792 rec_image,
793 RECfile,
794 RECformat) [instance: 1, cache: 1];
795 RECupdateCamera =
796 UpdateCamera(
797 camera,
798 resolution=RECresolution,
799 aspect=RECaspect) [instance: 2, cache: 1];
800 Display(
801 RECRerenderObject,
802 camera,
803 where,
804 throttle) [instance: 1, cache: 1];
805 RECRerenderObject =
806 ScaleScreen(
807 RECRerenderObject,
808 NULL,
809 RECresolution,
810 camera) [instance: 1, cache: 1];
811 image =
812 Render(
813 RECRerenderObject,
814 RECupdateCamera) [instance: 2, cache: 1];
815 WriteImage(
816 image,
817 RECfile,
818 RECformat) [instance: 2, cache: 1];
819 }
820 main_Image_5_in_1 = "Image_5";
821 main_Image_5_in_3 = "X16,,";
822 main_Image_5_in_4 = 1;
823 main_Image_5_in_5 = [-7.10804 22.8963 -17.5819];
824 main_Image_5_in_6 = [11.4674 -26.2924 20.6071];
825 main_Image_5_in_7 = NULL;
826 main_Image_5_in_8 = 909;
827 main_Image_5_in_9 = 0.821232;
828 main_Image_5_in_10 = [0.175891 0.644275 0.744293];
829 main_Image_5_in_11 = 30.0;
830 main_Image_5_in_12 = 1;
831 main_Image_5_in_13 = NULL;
832 main_Image_5_in_14 = 1;
833 main_Image_5_in_15 = NULL;
834 main_Image_5_in_16 = NULL;
835 main_Image_5_in_17 = 1;
836 main_Image_5_in_18 = 1;
837 main_Image_5_in_19 = 1;
838 main_Image_5_in_20 = NULL;
839 main_Image_5_in_21 = NULL;
840 main_Image_5_in_22 = NULL;
841 main_Image_5_in_23 = NULL;
842 main_Image_5_in_25 = NULL;
843 main_Image_5_in_26 = "miff";
844 main_Image_5_in_27 = NULL;
845 main_Image_5_in_28 = NULL;
846 main_Image_5_in_29 = 1;
847 main_Image_5_in_30 = NULL;
848 main_Image_5_in_31 = 15;
849 main_Image_5_in_32 = NULL;
850 main_Image_5_in_33 = 1;
851 main_Image_5_in_34 = 1;
852 main_Image_5_in_35 = NULL;
853 main_Image_5_in_36 = 0;
854 main_Image_5_in_37 = NULL;
855 main_Image_5_in_38 = NULL;
856 main_Image_5_in_39 = NULL;
857 main_Image_5_in_40 = NULL;
858 main_Image_5_in_41 = "navigate";
859 main_Image_5_in_42 = NULL;
860 main_Image_5_in_43 = NULL;
861 main_Image_5_in_44 = NULL;
862 main_Image_5_in_45 = NULL;
863 main_Image_5_in_46 = NULL;
864 main_Image_5_in_47 = NULL;
865 main_Image_5_in_48 = NULL;
866 main_Image_5_in_49 = NULL;
867 Executive("product version 4 3 0");
868 $sync
869
870 sequence main();
871 play;