10635
|
1 // |
|
2 // time: Fri Jan 4 17:10:29 2008 |
|
3 // |
|
4 // version: 3.2.0 (format), 4.4.4 (DX) |
|
5 // |
|
6 // |
|
7 // MODULE main |
|
8 // workspace: width = 968, height = 946 |
|
9 // layout: snap = 1, width = 10, height = 10, align = CC |
|
10 // |
|
11 macro main( |
|
12 ) -> ( |
|
13 ) { |
|
14 // |
|
15 // node CollectMultiGrid[5]: x = 45, y = 424, inputs = 4, label = CollectMultiGrid |
|
16 // |
|
17 main_CollectMultiGrid_5_out_1 = |
|
18 CollectMultiGrid( |
|
19 main_CollectMultiGrid_5_in_1, |
|
20 main_CollectMultiGrid_5_in_2, |
|
21 main_CollectMultiGrid_5_in_3, |
|
22 main_CollectMultiGrid_5_in_4 |
|
23 ) [instance: 5, cache: 1]; |
|
24 // |
|
25 // node StringList[1]: x = 178, y = 34, inputs = 0, label = StringList |
|
26 // output[1]: visible = 1, type = 16777248, value = { "FILELIST" } |
|
27 // |
|
28 // |
|
29 // node ForEachMember[1]: x = 155, y = 124, inputs = 1, label = ForEachMember |
|
30 // |
|
31 main_ForEachMember_1_out_1, |
|
32 main_ForEachMember_1_out_2, |
|
33 main_ForEachMember_1_out_3 = |
|
34 ForEachMember( |
|
35 main_StringList_1_out_1 |
|
36 ) [instance: 1, cache: 1]; |
|
37 // |
|
38 // node Import[2]: x = 169, y = 224, inputs = 6, label = Import |
|
39 // |
|
40 main_Import_2_out_1 = |
|
41 Import( |
|
42 main_ForEachMember_1_out_1, |
|
43 main_Import_2_in_2, |
|
44 main_Import_2_in_3, |
|
45 main_Import_2_in_4, |
|
46 main_Import_2_in_5, |
|
47 main_Import_2_in_6 |
|
48 ) [instance: 2, cache: 1]; |
|
49 // |
|
50 // node ShowConnections[4]: x = 139, y = 324, inputs = 1, label = ShowConnections |
|
51 // |
|
52 main_ShowConnections_4_out_1 = |
|
53 ShowConnections( |
|
54 main_Import_2_out_1 |
|
55 ) [instance: 4, cache: 1]; |
|
56 // |
|
57 // node StringList[2]: x = 368, y = 34, inputs = 0, label = StringList |
|
58 // output[1]: visible = 1, type = 16777248, value = { "COLORLIST" } |
|
59 // |
|
60 // |
|
61 // node ForEachMember[2]: x = 345, y = 124, inputs = 1, label = ForEachMember |
|
62 // |
|
63 main_ForEachMember_2_out_1, |
|
64 main_ForEachMember_2_out_2, |
|
65 main_ForEachMember_2_out_3 = |
|
66 ForEachMember( |
|
67 main_StringList_2_out_1 |
|
68 ) [instance: 2, cache: 1]; |
|
69 // |
|
70 // node Color[3]: x = 179, y = 404, inputs = 5, label = Color |
|
71 // input[3]: defaulting = 0, visible = 1, type = 5, value = .3 |
|
72 // |
|
73 main_Color_3_out_1 = |
|
74 Color( |
|
75 main_ShowConnections_4_out_1, |
|
76 main_ForEachMember_2_out_1, |
|
77 main_Color_3_in_3, |
|
78 main_Color_3_in_4, |
|
79 main_Color_3_in_5 |
|
80 ) [instance: 3, cache: 1]; |
|
81 // |
|
82 // node GetLocal[4]: x = 322, y = 404, inputs = 3, label = GetLocal |
|
83 // |
|
84 main_GetLocal_4_out_1, |
|
85 main_GetLocal_4_out_2 = |
|
86 GetLocal( |
|
87 main_GetLocal_4_in_1, |
|
88 main_GetLocal_4_in_2, |
|
89 main_GetLocal_4_in_3 |
|
90 ) [instance: 4, cache: 1]; |
|
91 // |
|
92 // node Append[1]: x = 185, y = 504, inputs = 5, label = Append |
|
93 // |
|
94 main_Append_1_out_1 = |
|
95 Append( |
|
96 main_CollectMultiGrid_5_out_1, |
|
97 main_Color_3_out_1, |
|
98 main_Append_1_in_3, |
|
99 main_GetLocal_4_out_1, |
|
100 main_Append_1_in_5 |
|
101 ) [instance: 1, cache: 1]; |
|
102 // |
|
103 // node CollectMultiGrid[4]: x = 615, y = 454, inputs = 4, label = CollectMultiGrid |
|
104 // |
|
105 main_CollectMultiGrid_4_out_1 = |
|
106 CollectMultiGrid( |
|
107 main_CollectMultiGrid_4_in_1, |
|
108 main_CollectMultiGrid_4_in_2, |
|
109 main_CollectMultiGrid_4_in_3, |
|
110 main_CollectMultiGrid_4_in_4 |
|
111 ) [instance: 4, cache: 1]; |
|
112 // |
|
113 // node GetLocal[5]: x = 872, y = 394, inputs = 3, label = GetLocal |
|
114 // |
|
115 main_GetLocal_5_out_1, |
|
116 main_GetLocal_5_out_2 = |
|
117 GetLocal( |
|
118 main_GetLocal_5_in_1, |
|
119 main_GetLocal_5_in_2, |
|
120 main_GetLocal_5_in_3 |
|
121 ) [instance: 5, cache: 1]; |
|
122 // |
|
123 // node Append[2]: x = 765, y = 514, inputs = 5, label = Append |
|
124 // |
|
125 main_Append_2_out_1 = |
|
126 Append( |
|
127 main_CollectMultiGrid_4_out_1, |
|
128 main_Import_2_out_1, |
|
129 main_Append_2_in_3, |
|
130 main_GetLocal_5_out_1, |
|
131 main_Append_2_in_5 |
|
132 ) [instance: 2, cache: 1]; |
|
133 // |
|
134 // node AutoColor[2]: x = 736, y = 604, inputs = 10, label = AutoColor |
|
135 // input[8]: visible = 1 |
|
136 // |
|
137 main_AutoColor_2_out_1, |
|
138 main_AutoColor_2_out_2 = |
|
139 AutoColor( |
|
140 main_Append_2_out_1, |
|
141 main_AutoColor_2_in_2, |
|
142 main_AutoColor_2_in_3, |
|
143 main_AutoColor_2_in_4, |
|
144 main_AutoColor_2_in_5, |
|
145 main_AutoColor_2_in_6, |
|
146 main_AutoColor_2_in_7, |
|
147 main_AutoColor_2_in_8, |
|
148 main_AutoColor_2_in_9, |
|
149 main_AutoColor_2_in_10 |
|
150 ) [instance: 2, cache: 1]; |
|
151 // |
|
152 // node RubberSheet[1]: x = 176, y = 624, inputs = 4, label = RubberSheet |
|
153 // |
|
154 main_RubberSheet_1_out_1 = |
|
155 RubberSheet( |
|
156 main_Append_1_out_1, |
|
157 main_RubberSheet_1_in_2, |
|
158 main_RubberSheet_1_in_3, |
|
159 main_RubberSheet_1_in_4 |
|
160 ) [instance: 1, cache: 1]; |
|
161 // |
|
162 // node Shade[1]: x = 599, y = 654, inputs = 8, label = Shade |
|
163 // input[2]: defaulting = 0, visible = 1, type = 3, value = 1 |
|
164 // input[3]: defaulting = 0, visible = 1, type = 32, value = "smooth" |
|
165 // |
|
166 main_Shade_1_out_1 = |
|
167 Shade( |
|
168 main_AutoColor_2_out_1, |
|
169 main_Shade_1_in_2, |
|
170 main_Shade_1_in_3, |
|
171 main_Shade_1_in_4, |
|
172 main_Shade_1_in_5, |
|
173 main_Shade_1_in_6, |
|
174 main_Shade_1_in_7, |
|
175 main_Shade_1_in_8 |
|
176 ) [instance: 1, cache: 1]; |
|
177 // |
|
178 // node RubberSheet[2]: x = 526, y = 734, inputs = 4, label = RubberSheet |
|
179 // |
|
180 main_RubberSheet_2_out_1 = |
|
181 RubberSheet( |
|
182 main_Shade_1_out_1, |
|
183 main_RubberSheet_2_in_2, |
|
184 main_RubberSheet_2_in_3, |
|
185 main_RubberSheet_2_in_4 |
|
186 ) [instance: 2, cache: 1]; |
|
187 // |
|
188 // node ColorBar[1]: x = 755, y = 734, inputs = 16, label = ColorBar |
|
189 // input[4]: defaulting = 0, visible = 1, type = 3, value = 1 |
|
190 // |
|
191 main_ColorBar_1_out_1 = |
|
192 ColorBar( |
|
193 main_AutoColor_2_out_2, |
|
194 main_ColorBar_1_in_2, |
|
195 main_ColorBar_1_in_3, |
|
196 main_ColorBar_1_in_4, |
|
197 main_ColorBar_1_in_5, |
|
198 main_ColorBar_1_in_6, |
|
199 main_ColorBar_1_in_7, |
|
200 main_ColorBar_1_in_8, |
|
201 main_ColorBar_1_in_9, |
|
202 main_ColorBar_1_in_10, |
|
203 main_ColorBar_1_in_11, |
|
204 main_ColorBar_1_in_12, |
|
205 main_ColorBar_1_in_13, |
|
206 main_ColorBar_1_in_14, |
|
207 main_ColorBar_1_in_15, |
|
208 main_ColorBar_1_in_16 |
|
209 ) [instance: 1, cache: 1]; |
|
210 // |
|
211 // node Collect[1]: x = 349, y = 774, inputs = 3, label = Collect |
|
212 // |
|
213 main_Collect_1_out_1 = |
|
214 Collect( |
|
215 main_RubberSheet_1_out_1, |
|
216 main_RubberSheet_2_out_1, |
|
217 main_ColorBar_1_out_1 |
|
218 ) [instance: 1, cache: 1]; |
|
219 // |
|
220 // node Image[5]: x = 339, y = 884, inputs = 49, label = Image |
|
221 // input[1]: defaulting = 0, visible = 0, type = 32, value = "Image_5" |
|
222 // input[4]: defaulting = 0, visible = 0, type = 1, value = 0 |
|
223 // input[14]: defaulting = 0, visible = 0, type = 1, value = 1 |
|
224 // input[19]: defaulting = 0, visible = 0, type = 3, value = 0 |
|
225 // depth: value = 24 |
|
226 // internal caching: 1 |
|
227 // |
|
228 main_Image_5_out_1, |
|
229 main_Image_5_out_2, |
|
230 main_Image_5_out_3 = |
|
231 Image( |
|
232 main_Image_5_in_1, |
|
233 main_Collect_1_out_1, |
|
234 main_Image_5_in_3, |
|
235 main_Image_5_in_4, |
|
236 main_Image_5_in_5, |
|
237 main_Image_5_in_6, |
|
238 main_Image_5_in_7, |
|
239 main_Image_5_in_8, |
|
240 main_Image_5_in_9, |
|
241 main_Image_5_in_10, |
|
242 main_Image_5_in_11, |
|
243 main_Image_5_in_12, |
|
244 main_Image_5_in_13, |
|
245 main_Image_5_in_14, |
|
246 main_Image_5_in_15, |
|
247 main_Image_5_in_16, |
|
248 main_Image_5_in_17, |
|
249 main_Image_5_in_18, |
|
250 main_Image_5_in_19, |
|
251 main_Image_5_in_20, |
|
252 main_Image_5_in_21, |
|
253 main_Image_5_in_22, |
|
254 main_Image_5_in_23, |
|
255 main_Image_5_in_24, |
|
256 main_Image_5_in_25, |
|
257 main_Image_5_in_26, |
|
258 main_Image_5_in_27, |
|
259 main_Image_5_in_28, |
|
260 main_Image_5_in_29, |
|
261 main_Image_5_in_30, |
|
262 main_Image_5_in_31, |
|
263 main_Image_5_in_32, |
|
264 main_Image_5_in_33, |
|
265 main_Image_5_in_34, |
|
266 main_Image_5_in_35, |
|
267 main_Image_5_in_36, |
|
268 main_Image_5_in_37, |
|
269 main_Image_5_in_38, |
|
270 main_Image_5_in_39, |
|
271 main_Image_5_in_40, |
|
272 main_Image_5_in_41, |
|
273 main_Image_5_in_42, |
|
274 main_Image_5_in_43, |
|
275 main_Image_5_in_44, |
|
276 main_Image_5_in_45, |
|
277 main_Image_5_in_46, |
|
278 main_Image_5_in_47, |
|
279 main_Image_5_in_48, |
|
280 main_Image_5_in_49 |
|
281 ) [instance: 5, cache: 1]; |
|
282 // |
|
283 // node SetLocal[4]: x = 322, y = 514, inputs = 3, label = SetLocal |
|
284 // |
|
285 SetLocal( |
|
286 main_Append_1_out_1, |
|
287 main_GetLocal_4_out_2, |
|
288 main_SetLocal_4_in_3 |
|
289 ) [instance: 4, cache: 1]; |
|
290 // |
|
291 // node SetLocal[5]: x = 902, y = 514, inputs = 3, label = SetLocal |
|
292 // |
|
293 SetLocal( |
|
294 main_Append_2_out_1, |
|
295 main_GetLocal_5_out_2, |
|
296 main_SetLocal_5_in_3 |
|
297 ) [instance: 5, cache: 1]; |
|
298 // network: end of macro body |
|
299 CacheScene(main_Image_5_in_1, main_Image_5_out_1, main_Image_5_out_2); |
|
300 } |
|
301 main_CollectMultiGrid_5_in_1 = NULL; |
|
302 main_CollectMultiGrid_5_in_2 = NULL; |
|
303 main_CollectMultiGrid_5_in_3 = NULL; |
|
304 main_CollectMultiGrid_5_in_4 = NULL; |
|
305 main_CollectMultiGrid_5_out_1 = NULL; |
|
306 main_StringList_1_out_1 = { "FILELIST" }; |
|
307 main_ForEachMember_1_out_1 = NULL; |
|
308 main_Import_2_in_2 = NULL; |
|
309 main_Import_2_in_3 = NULL; |
|
310 main_Import_2_in_4 = NULL; |
|
311 main_Import_2_in_5 = NULL; |
|
312 main_Import_2_in_6 = NULL; |
|
313 main_Import_2_out_1 = NULL; |
|
314 main_ShowConnections_4_out_1 = NULL; |
|
315 main_StringList_2_out_1 = { "COLORLIST" }; |
|
316 main_ForEachMember_2_out_1 = NULL; |
|
317 main_Color_3_in_3 = .3; |
|
318 main_Color_3_in_4 = NULL; |
|
319 main_Color_3_in_5 = NULL; |
|
320 main_Color_3_out_1 = NULL; |
|
321 main_GetLocal_4_in_1 = NULL; |
|
322 main_GetLocal_4_in_2 = NULL; |
|
323 main_GetLocal_4_in_3 = NULL; |
|
324 main_GetLocal_4_out_1 = NULL; |
|
325 main_GetLocal_4_out_2 = NULL; |
|
326 main_Append_1_in_3 = NULL; |
|
327 main_Append_1_in_5 = NULL; |
|
328 main_Append_1_out_1 = NULL; |
|
329 main_CollectMultiGrid_4_in_1 = NULL; |
|
330 main_CollectMultiGrid_4_in_2 = NULL; |
|
331 main_CollectMultiGrid_4_in_3 = NULL; |
|
332 main_CollectMultiGrid_4_in_4 = NULL; |
|
333 main_CollectMultiGrid_4_out_1 = NULL; |
|
334 main_GetLocal_5_in_1 = NULL; |
|
335 main_GetLocal_5_in_2 = NULL; |
|
336 main_GetLocal_5_in_3 = NULL; |
|
337 main_GetLocal_5_out_1 = NULL; |
|
338 main_GetLocal_5_out_2 = NULL; |
|
339 main_Append_2_in_3 = NULL; |
|
340 main_Append_2_in_5 = NULL; |
|
341 main_Append_2_out_1 = NULL; |
|
342 main_AutoColor_2_in_2 = NULL; |
|
343 main_AutoColor_2_in_3 = NULL; |
|
344 main_AutoColor_2_in_4 = NULL; |
|
345 main_AutoColor_2_in_5 = NULL; |
|
346 main_AutoColor_2_in_6 = NULL; |
|
347 main_AutoColor_2_in_7 = NULL; |
|
348 main_AutoColor_2_in_8 = NULL; |
|
349 main_AutoColor_2_in_9 = NULL; |
|
350 main_AutoColor_2_in_10 = NULL; |
|
351 main_AutoColor_2_out_1 = NULL; |
|
352 main_AutoColor_2_out_2 = NULL; |
|
353 main_RubberSheet_1_in_2 = NULL; |
|
354 main_RubberSheet_1_in_3 = NULL; |
|
355 main_RubberSheet_1_in_4 = NULL; |
|
356 main_RubberSheet_1_out_1 = NULL; |
|
357 main_Shade_1_in_2 = 1; |
|
358 main_Shade_1_in_3 = "smooth"; |
|
359 main_Shade_1_in_4 = NULL; |
|
360 main_Shade_1_in_5 = NULL; |
|
361 main_Shade_1_in_6 = NULL; |
|
362 main_Shade_1_in_7 = NULL; |
|
363 main_Shade_1_in_8 = NULL; |
|
364 main_Shade_1_out_1 = NULL; |
|
365 main_RubberSheet_2_in_2 = NULL; |
|
366 main_RubberSheet_2_in_3 = NULL; |
|
367 main_RubberSheet_2_in_4 = NULL; |
|
368 main_RubberSheet_2_out_1 = NULL; |
|
369 main_ColorBar_1_in_2 = NULL; |
|
370 main_ColorBar_1_in_3 = NULL; |
|
371 main_ColorBar_1_in_4 = 1; |
|
372 main_ColorBar_1_in_5 = NULL; |
|
373 main_ColorBar_1_in_6 = NULL; |
|
374 main_ColorBar_1_in_7 = NULL; |
|
375 main_ColorBar_1_in_8 = NULL; |
|
376 main_ColorBar_1_in_9 = NULL; |
|
377 main_ColorBar_1_in_10 = NULL; |
|
378 main_ColorBar_1_in_11 = NULL; |
|
379 main_ColorBar_1_in_12 = NULL; |
|
380 main_ColorBar_1_in_13 = NULL; |
|
381 main_ColorBar_1_in_14 = NULL; |
|
382 main_ColorBar_1_in_15 = NULL; |
|
383 main_ColorBar_1_in_16 = NULL; |
|
384 main_ColorBar_1_out_1 = NULL; |
|
385 main_Collect_1_out_1 = NULL; |
|
386 macro Image( |
|
387 id, |
|
388 object, |
|
389 where, |
|
390 useVector, |
|
391 to, |
|
392 from, |
|
393 width, |
|
394 resolution, |
|
395 aspect, |
|
396 up, |
|
397 viewAngle, |
|
398 perspective, |
|
399 options, |
|
400 buttonState = 1, |
|
401 buttonUpApprox = "none", |
|
402 buttonDownApprox = "none", |
|
403 buttonUpDensity = 1, |
|
404 buttonDownDensity = 1, |
|
405 renderMode = 0, |
|
406 defaultCamera, |
|
407 reset, |
|
408 backgroundColor, |
|
409 throttle, |
|
410 RECenable = 0, |
|
411 RECfile, |
|
412 RECformat, |
|
413 RECresolution, |
|
414 RECaspect, |
|
415 AAenable = 0, |
|
416 AAlabels, |
|
417 AAticks, |
|
418 AAcorners, |
|
419 AAframe, |
|
420 AAadjust, |
|
421 AAcursor, |
|
422 AAgrid, |
|
423 AAcolors, |
|
424 AAannotation, |
|
425 AAlabelscale, |
|
426 AAfont, |
|
427 interactionMode, |
|
428 title, |
|
429 AAxTickLocs, |
|
430 AAyTickLocs, |
|
431 AAzTickLocs, |
|
432 AAxTickLabels, |
|
433 AAyTickLabels, |
|
434 AAzTickLabels, |
|
435 webOptions) -> ( |
|
436 object, |
|
437 camera, |
|
438 where) |
|
439 { |
|
440 ImageMessage( |
|
441 id, |
|
442 backgroundColor, |
|
443 throttle, |
|
444 RECenable, |
|
445 RECfile, |
|
446 RECformat, |
|
447 RECresolution, |
|
448 RECaspect, |
|
449 AAenable, |
|
450 AAlabels, |
|
451 AAticks, |
|
452 AAcorners, |
|
453 AAframe, |
|
454 AAadjust, |
|
455 AAcursor, |
|
456 AAgrid, |
|
457 AAcolors, |
|
458 AAannotation, |
|
459 AAlabelscale, |
|
460 AAfont, |
|
461 AAxTickLocs, |
|
462 AAyTickLocs, |
|
463 AAzTickLocs, |
|
464 AAxTickLabels, |
|
465 AAyTickLabels, |
|
466 AAzTickLabels, |
|
467 interactionMode, |
|
468 title, |
|
469 renderMode, |
|
470 buttonUpApprox, |
|
471 buttonDownApprox, |
|
472 buttonUpDensity, |
|
473 buttonDownDensity) [instance: 1, cache: 1]; |
|
474 autoCamera = |
|
475 AutoCamera( |
|
476 object, |
|
477 "front", |
|
478 object, |
|
479 resolution, |
|
480 aspect, |
|
481 [0,1,0], |
|
482 perspective, |
|
483 viewAngle, |
|
484 backgroundColor) [instance: 1, cache: 1]; |
|
485 realCamera = |
|
486 Camera( |
|
487 to, |
|
488 from, |
|
489 width, |
|
490 resolution, |
|
491 aspect, |
|
492 up, |
|
493 perspective, |
|
494 viewAngle, |
|
495 backgroundColor) [instance: 1, cache: 1]; |
|
496 coloredDefaultCamera = |
|
497 UpdateCamera(defaultCamera, |
|
498 background=backgroundColor) [instance: 1, cache: 1]; |
|
499 nullDefaultCamera = |
|
500 Inquire(defaultCamera, |
|
501 "is null + 1") [instance: 1, cache: 1]; |
|
502 resetCamera = |
|
503 Switch( |
|
504 nullDefaultCamera, |
|
505 coloredDefaultCamera, |
|
506 autoCamera) [instance: 1, cache: 1]; |
|
507 resetNull = |
|
508 Inquire( |
|
509 reset, |
|
510 "is null + 1") [instance: 2, cache: 1]; |
|
511 reset = |
|
512 Switch( |
|
513 resetNull, |
|
514 reset, |
|
515 0) [instance: 2, cache: 1]; |
|
516 whichCamera = |
|
517 Compute( |
|
518 "($0 != 0 || $1 == 0) ? 1 : 2", |
|
519 reset, |
|
520 useVector) [instance: 1, cache: 1]; |
|
521 camera = Switch( |
|
522 whichCamera, |
|
523 resetCamera, |
|
524 realCamera) [instance: 3, cache: 1]; |
|
525 AAobject = |
|
526 AutoAxes( |
|
527 object, |
|
528 camera, |
|
529 AAlabels, |
|
530 AAticks, |
|
531 AAcorners, |
|
532 AAframe, |
|
533 AAadjust, |
|
534 AAcursor, |
|
535 AAgrid, |
|
536 AAcolors, |
|
537 AAannotation, |
|
538 AAlabelscale, |
|
539 AAfont, |
|
540 AAxTickLocs, |
|
541 AAyTickLocs, |
|
542 AAzTickLocs, |
|
543 AAxTickLabels, |
|
544 AAyTickLabels, |
|
545 AAzTickLabels) [instance: 1, cache: 1]; |
|
546 switchAAenable = Compute("$0+1", |
|
547 AAenable) [instance: 2, cache: 1]; |
|
548 object = Switch( |
|
549 switchAAenable, |
|
550 object, |
|
551 AAobject) [instance:4, cache: 1]; |
|
552 SWapproximation_options = |
|
553 Switch( |
|
554 buttonState, |
|
555 buttonUpApprox, |
|
556 buttonDownApprox) [instance: 5, cache: 1]; |
|
557 SWdensity_options = |
|
558 Switch( |
|
559 buttonState, |
|
560 buttonUpDensity, |
|
561 buttonDownDensity) [instance: 6, cache: 1]; |
|
562 HWapproximation_options = |
|
563 Format( |
|
564 "%s,%s", |
|
565 buttonDownApprox, |
|
566 buttonUpApprox) [instance: 1, cache: 1]; |
|
567 HWdensity_options = |
|
568 Format( |
|
569 "%d,%d", |
|
570 buttonDownDensity, |
|
571 buttonUpDensity) [instance: 2, cache: 1]; |
|
572 switchRenderMode = Compute( |
|
573 "$0+1", |
|
574 renderMode) [instance: 3, cache: 1]; |
|
575 approximation_options = Switch( |
|
576 switchRenderMode, |
|
577 SWapproximation_options, |
|
578 HWapproximation_options) [instance: 7, cache: 1]; |
|
579 density_options = Switch( |
|
580 switchRenderMode, |
|
581 SWdensity_options, |
|
582 HWdensity_options) [instance: 8, cache: 1]; |
|
583 renderModeString = Switch( |
|
584 switchRenderMode, |
|
585 "software", |
|
586 "hardware")[instance: 9, cache: 1]; |
|
587 object_tag = Inquire( |
|
588 object, |
|
589 "object tag")[instance: 3, cache: 1]; |
|
590 annoted_object = |
|
591 Options( |
|
592 object, |
|
593 "send boxes", |
|
594 0, |
|
595 "cache", |
|
596 1, |
|
597 "object tag", |
|
598 object_tag, |
|
599 "ddcamera", |
|
600 whichCamera, |
|
601 "rendering approximation", |
|
602 approximation_options, |
|
603 "render every", |
|
604 density_options, |
|
605 "button state", |
|
606 buttonState, |
|
607 "rendering mode", |
|
608 renderModeString) [instance: 1, cache: 1]; |
|
609 RECresNull = |
|
610 Inquire( |
|
611 RECresolution, |
|
612 "is null + 1") [instance: 4, cache: 1]; |
|
613 ImageResolution = |
|
614 Inquire( |
|
615 camera, |
|
616 "camera resolution") [instance: 5, cache: 1]; |
|
617 RECresolution = |
|
618 Switch( |
|
619 RECresNull, |
|
620 RECresolution, |
|
621 ImageResolution) [instance: 10, cache: 1]; |
|
622 RECaspectNull = |
|
623 Inquire( |
|
624 RECaspect, |
|
625 "is null + 1") [instance: 6, cache: 1]; |
|
626 ImageAspect = |
|
627 Inquire( |
|
628 camera, |
|
629 "camera aspect") [instance: 7, cache: 1]; |
|
630 RECaspect = |
|
631 Switch( |
|
632 RECaspectNull, |
|
633 RECaspect, |
|
634 ImageAspect) [instance: 11, cache: 1]; |
|
635 switchRECenable = Compute( |
|
636 "$0 == 0 ? 1 : (($2 == $3) && ($4 == $5)) ? ($1 == 1 ? 2 : 3) : 4", |
|
637 RECenable, |
|
638 switchRenderMode, |
|
639 RECresolution, |
|
640 ImageResolution, |
|
641 RECaspect, |
|
642 ImageAspect) [instance: 4, cache: 1]; |
|
643 NoRECobject, RECNoRerenderObject, RECNoRerHW, RECRerenderObject = Route(switchRECenable, annoted_object); |
|
644 Display( |
|
645 NoRECobject, |
|
646 camera, |
|
647 where, |
|
648 throttle) [instance: 1, cache: 1]; |
|
649 image = |
|
650 Render( |
|
651 RECNoRerenderObject, |
|
652 camera) [instance: 1, cache: 1]; |
|
653 Display( |
|
654 image, |
|
655 NULL, |
|
656 where, |
|
657 throttle) [instance: 2, cache: 1]; |
|
658 WriteImage( |
|
659 image, |
|
660 RECfile, |
|
661 RECformat) [instance: 1, cache: 1]; |
|
662 rec_where = Display( |
|
663 RECNoRerHW, |
|
664 camera, |
|
665 where, |
|
666 throttle) [instance: 1, cache: 0]; |
|
667 rec_image = ReadImageWindow( |
|
668 rec_where) [instance: 1, cache: 1]; |
|
669 WriteImage( |
|
670 rec_image, |
|
671 RECfile, |
|
672 RECformat) [instance: 1, cache: 1]; |
|
673 RECupdateCamera = |
|
674 UpdateCamera( |
|
675 camera, |
|
676 resolution=RECresolution, |
|
677 aspect=RECaspect) [instance: 2, cache: 1]; |
|
678 Display( |
|
679 RECRerenderObject, |
|
680 camera, |
|
681 where, |
|
682 throttle) [instance: 1, cache: 1]; |
|
683 RECRerenderObject = |
|
684 ScaleScreen( |
|
685 RECRerenderObject, |
|
686 NULL, |
|
687 RECresolution, |
|
688 camera) [instance: 1, cache: 1]; |
|
689 image = |
|
690 Render( |
|
691 RECRerenderObject, |
|
692 RECupdateCamera) [instance: 2, cache: 1]; |
|
693 WriteImage( |
|
694 image, |
|
695 RECfile, |
|
696 RECformat) [instance: 2, cache: 1]; |
|
697 } |
|
698 main_Image_5_in_1 = "Image_5"; |
|
699 main_Image_5_in_3 = "X24,,"; |
|
700 main_Image_5_in_4 = 0; |
|
701 main_Image_5_in_5 = NULL; |
|
702 main_Image_5_in_6 = NULL; |
|
703 main_Image_5_in_7 = NULL; |
|
704 main_Image_5_in_8 = NULL; |
|
705 main_Image_5_in_9 = NULL; |
|
706 main_Image_5_in_10 = NULL; |
|
707 main_Image_5_in_11 = NULL; |
|
708 main_Image_5_in_12 = NULL; |
|
709 main_Image_5_in_13 = NULL; |
|
710 main_Image_5_in_14 = 1; |
|
711 main_Image_5_in_15 = NULL; |
|
712 main_Image_5_in_16 = NULL; |
|
713 main_Image_5_in_17 = NULL; |
|
714 main_Image_5_in_18 = NULL; |
|
715 main_Image_5_in_19 = 0; |
|
716 main_Image_5_in_20 = NULL; |
|
717 main_Image_5_in_21 = NULL; |
|
718 main_Image_5_in_22 = NULL; |
|
719 main_Image_5_in_23 = NULL; |
|
720 main_Image_5_in_25 = NULL; |
|
721 main_Image_5_in_26 = NULL; |
|
722 main_Image_5_in_27 = NULL; |
|
723 main_Image_5_in_28 = NULL; |
|
724 main_Image_5_in_29 = NULL; |
|
725 main_Image_5_in_30 = NULL; |
|
726 main_Image_5_in_31 = NULL; |
|
727 main_Image_5_in_32 = NULL; |
|
728 main_Image_5_in_33 = NULL; |
|
729 main_Image_5_in_34 = NULL; |
|
730 main_Image_5_in_35 = NULL; |
|
731 main_Image_5_in_36 = NULL; |
|
732 main_Image_5_in_37 = NULL; |
|
733 main_Image_5_in_38 = NULL; |
|
734 main_Image_5_in_39 = NULL; |
|
735 main_Image_5_in_40 = NULL; |
|
736 main_Image_5_in_41 = NULL; |
|
737 main_Image_5_in_42 = NULL; |
|
738 main_Image_5_in_43 = NULL; |
|
739 main_Image_5_in_44 = NULL; |
|
740 main_Image_5_in_45 = NULL; |
|
741 main_Image_5_in_46 = NULL; |
|
742 main_Image_5_in_47 = NULL; |
|
743 main_Image_5_in_48 = NULL; |
|
744 main_Image_5_in_49 = NULL; |
|
745 main_SetLocal_4_in_3 = NULL; |
|
746 main_SetLocal_5_in_3 = NULL; |
|
747 Executive("product version 4 4 4"); |
|
748 $sync |
|
749 main(); |