10635
|
1 // |
|
2 // time: Sat Jan 5 19:47:19 2008 |
|
3 // |
|
4 // version: 3.2.0 (format), 4.4.4 (DX) |
|
5 // |
|
6 // |
|
7 // MODULE main |
|
8 // workspace: width = 1161, height = 826 |
|
9 // layout: snap = 1, width = 10, height = 10, align = CC |
|
10 // |
|
11 macro main( |
|
12 ) -> ( |
|
13 ) { |
|
14 // |
|
15 // node String[1]: x = 281, y = 24, inputs = 0, label = String |
|
16 // output[1]: visible = 1, type = 32, value = "FILENAME" |
|
17 // |
|
18 // |
|
19 // node Import[1]: x = 269, y = 114, inputs = 6, label = Import |
|
20 // |
|
21 main_Import_1_out_1 = |
|
22 Import( |
|
23 main_String_1_out_1, |
|
24 main_Import_1_in_2, |
|
25 main_Import_1_in_3, |
|
26 main_Import_1_in_4, |
|
27 main_Import_1_in_5, |
|
28 main_Import_1_in_6 |
|
29 ) [instance: 1, cache: 1]; |
|
30 // |
|
31 // node Value[1]: x = 513, y = 104, inputs = 0, label = Value |
|
32 // output[1]: visible = 1, type = 29, value = 0 |
|
33 // |
|
34 // |
|
35 // node Inquire[1]: x = 509, y = 24, inputs = 3, label = Inquire |
|
36 // input[2]: defaulting = 0, visible = 1, type = 32, value = "member count" |
|
37 // |
|
38 main_Inquire_1_out_1 = |
|
39 Inquire( |
|
40 main_Import_1_out_1, |
|
41 main_Inquire_1_in_2, |
|
42 main_Inquire_1_in_3 |
|
43 ) [instance: 1, cache: 1]; |
|
44 // |
|
45 // node Value[2]: x = 643, y = 4, inputs = 0, label = Value |
|
46 // output[1]: visible = 1, type = 29, value = 1 |
|
47 // |
|
48 // |
|
49 // node Compute[1]: x = 601, y = 94, inputs = 3, label = Compute |
|
50 // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0 - $1" |
|
51 // expression: value = a - b |
|
52 // name[2]: value = a |
|
53 // name[3]: value = b |
|
54 // |
|
55 main_Compute_1_out_1 = |
|
56 Compute( |
|
57 main_Compute_1_in_1, |
|
58 main_Inquire_1_out_1, |
|
59 main_Value_2_out_1 |
|
60 ) [instance: 1, cache: 1]; |
|
61 // |
|
62 // node Sequencer[1]: x = 585, y = 184, inputs = 7, label = Sequencer |
|
63 // input[1]: defaulting = 0, visible = 0, type = 32, value = "Sequencer_1" |
|
64 // input[4]: defaulting = 1, visible = 1, type = 1, value = 0 |
|
65 // input[5]: defaulting = 1, visible = 1, type = 1, value = 95 |
|
66 // input[6]: defaulting = 1, visible = 0, type = 1, value = 1 |
|
67 // input[7]: defaulting = 0, visible = 0, type = 16777217, value = { 0 95 1 0 95 1 } |
|
68 // vcr[1]: min = 0, max = 95, beg = 0, end = 95, cur = 38, inc = 1, loop = off, step = off, pal = off |
|
69 // window: position = (0.0132,0.0833), size = 0.1750x0.0667 |
|
70 // |
|
71 main_Sequencer_1_in_3 = @frame; |
|
72 main_Sequencer_1_out_1[cache: 2] = |
|
73 Sequencer( |
|
74 main_Sequencer_1_in_1, |
|
75 main_Sequencer_1_in_2, |
|
76 main_Sequencer_1_in_3, |
|
77 main_Value_1_out_1, |
|
78 main_Compute_1_out_1, |
|
79 main_Sequencer_1_in_6, |
|
80 main_Sequencer_1_in_7 |
|
81 ) [instance: 1, cache: 1]; |
|
82 // |
|
83 // node Select[1]: x = 411, y = 214, inputs = 3, label = Select |
|
84 // |
|
85 main_Select_1_out_1 = |
|
86 Select( |
|
87 main_Import_1_out_1, |
|
88 main_Sequencer_1_out_1, |
|
89 main_Select_1_in_3 |
|
90 ) [instance: 1, cache: 1]; |
|
91 // |
|
92 // node RubberSheet[3]: x = 406, y = 364, inputs = 4, label = RubberSheet |
|
93 // |
|
94 main_RubberSheet_3_out_1 = |
|
95 RubberSheet( |
|
96 main_Select_1_out_1, |
|
97 main_RubberSheet_3_in_2, |
|
98 main_RubberSheet_3_in_3, |
|
99 main_RubberSheet_3_in_4 |
|
100 ) [instance: 3, cache: 1]; |
|
101 // |
|
102 // node Statistics[4]: x = 185, y = 234, inputs = 1, label = Statistics |
|
103 // |
|
104 main_Statistics_4_out_1, |
|
105 main_Statistics_4_out_2, |
|
106 main_Statistics_4_out_3, |
|
107 main_Statistics_4_out_4, |
|
108 main_Statistics_4_out_5 = |
|
109 Statistics( |
|
110 main_Import_1_out_1 |
|
111 ) [instance: 4, cache: 1]; |
|
112 // |
|
113 // node AutoColor[1]: x = 336, y = 474, inputs = 10, label = AutoColor |
|
114 // input[8]: visible = 1 |
|
115 // |
|
116 main_AutoColor_1_out_1, |
|
117 main_AutoColor_1_out_2 = |
|
118 AutoColor( |
|
119 main_RubberSheet_3_out_1, |
|
120 main_AutoColor_1_in_2, |
|
121 main_AutoColor_1_in_3, |
|
122 main_AutoColor_1_in_4, |
|
123 main_AutoColor_1_in_5, |
|
124 main_AutoColor_1_in_6, |
|
125 main_Statistics_4_out_4, |
|
126 main_Statistics_4_out_5, |
|
127 main_AutoColor_1_in_9, |
|
128 main_AutoColor_1_in_10 |
|
129 ) [instance: 1, cache: 1]; |
|
130 // |
|
131 // node Shade[2]: x = 299, y = 574, inputs = 8, label = Shade |
|
132 // input[3]: defaulting = 0, visible = 1, type = 32, value = "smooth" |
|
133 // |
|
134 main_Shade_2_out_1 = |
|
135 Shade( |
|
136 main_AutoColor_1_out_1, |
|
137 main_Shade_2_in_2, |
|
138 main_Shade_2_in_3, |
|
139 main_Shade_2_in_4, |
|
140 main_Shade_2_in_5, |
|
141 main_Shade_2_in_6, |
|
142 main_Shade_2_in_7, |
|
143 main_Shade_2_in_8 |
|
144 ) [instance: 2, cache: 1]; |
|
145 // |
|
146 // node ColorBar[1]: x = 775, y = 574, inputs = 16, label = ColorBar |
|
147 // input[4]: defaulting = 0, visible = 1, type = 3, value = 1 |
|
148 // |
|
149 main_ColorBar_1_out_1 = |
|
150 ColorBar( |
|
151 main_AutoColor_1_out_2, |
|
152 main_ColorBar_1_in_2, |
|
153 main_ColorBar_1_in_3, |
|
154 main_ColorBar_1_in_4, |
|
155 main_ColorBar_1_in_5, |
|
156 main_ColorBar_1_in_6, |
|
157 main_ColorBar_1_in_7, |
|
158 main_ColorBar_1_in_8, |
|
159 main_ColorBar_1_in_9, |
|
160 main_ColorBar_1_in_10, |
|
161 main_ColorBar_1_in_11, |
|
162 main_ColorBar_1_in_12, |
|
163 main_ColorBar_1_in_13, |
|
164 main_ColorBar_1_in_14, |
|
165 main_ColorBar_1_in_15, |
|
166 main_ColorBar_1_in_16 |
|
167 ) [instance: 1, cache: 1]; |
|
168 // |
|
169 // node ShowConnections[1]: x = 869, y = 474, inputs = 1, label = ShowConnections |
|
170 // |
|
171 main_ShowConnections_1_out_1 = |
|
172 ShowConnections( |
|
173 main_RubberSheet_3_out_1 |
|
174 ) [instance: 1, cache: 1]; |
|
175 // |
|
176 // node String[2]: x = 1091, y = 474, inputs = 0, label = String |
|
177 // output[1]: visible = 1, type = 32, value = "COLORNAME" |
|
178 // |
|
179 // |
|
180 // node Color[1]: x = 929, y = 574, inputs = 5, label = Color |
|
181 // input[3]: defaulting = 0, visible = 1, type = 5, value = .3 |
|
182 // |
|
183 main_Color_1_out_1 = |
|
184 Color( |
|
185 main_ShowConnections_1_out_1, |
|
186 main_String_2_out_1, |
|
187 main_Color_1_in_3, |
|
188 main_Color_1_in_4, |
|
189 main_Color_1_in_5 |
|
190 ) [instance: 1, cache: 1]; |
|
191 // |
|
192 // node Collect[1]: x = 799, y = 684, inputs = 3, label = Collect |
|
193 // |
|
194 main_Collect_1_out_1 = |
|
195 Collect( |
|
196 main_Shade_2_out_1, |
|
197 main_ColorBar_1_out_1, |
|
198 main_Color_1_out_1 |
|
199 ) [instance: 1, cache: 1]; |
|
200 // |
|
201 // node Image[1]: x = 1089, y = 764, inputs = 49, label = Image |
|
202 // input[1]: defaulting = 0, visible = 0, type = 32, value = "Image_1" |
|
203 // input[4]: defaulting = 0, visible = 0, type = 1, value = 0 |
|
204 // input[14]: defaulting = 0, visible = 0, type = 1, value = 1 |
|
205 // input[19]: defaulting = 0, visible = 0, type = 3, value = 0 |
|
206 // depth: value = 24 |
|
207 // internal caching: 1 |
|
208 // |
|
209 main_Image_1_out_1, |
|
210 main_Image_1_out_2, |
|
211 main_Image_1_out_3 = |
|
212 Image( |
|
213 main_Image_1_in_1, |
|
214 main_Collect_1_out_1, |
|
215 main_Image_1_in_3, |
|
216 main_Image_1_in_4, |
|
217 main_Image_1_in_5, |
|
218 main_Image_1_in_6, |
|
219 main_Image_1_in_7, |
|
220 main_Image_1_in_8, |
|
221 main_Image_1_in_9, |
|
222 main_Image_1_in_10, |
|
223 main_Image_1_in_11, |
|
224 main_Image_1_in_12, |
|
225 main_Image_1_in_13, |
|
226 main_Image_1_in_14, |
|
227 main_Image_1_in_15, |
|
228 main_Image_1_in_16, |
|
229 main_Image_1_in_17, |
|
230 main_Image_1_in_18, |
|
231 main_Image_1_in_19, |
|
232 main_Image_1_in_20, |
|
233 main_Image_1_in_21, |
|
234 main_Image_1_in_22, |
|
235 main_Image_1_in_23, |
|
236 main_Image_1_in_24, |
|
237 main_Image_1_in_25, |
|
238 main_Image_1_in_26, |
|
239 main_Image_1_in_27, |
|
240 main_Image_1_in_28, |
|
241 main_Image_1_in_29, |
|
242 main_Image_1_in_30, |
|
243 main_Image_1_in_31, |
|
244 main_Image_1_in_32, |
|
245 main_Image_1_in_33, |
|
246 main_Image_1_in_34, |
|
247 main_Image_1_in_35, |
|
248 main_Image_1_in_36, |
|
249 main_Image_1_in_37, |
|
250 main_Image_1_in_38, |
|
251 main_Image_1_in_39, |
|
252 main_Image_1_in_40, |
|
253 main_Image_1_in_41, |
|
254 main_Image_1_in_42, |
|
255 main_Image_1_in_43, |
|
256 main_Image_1_in_44, |
|
257 main_Image_1_in_45, |
|
258 main_Image_1_in_46, |
|
259 main_Image_1_in_47, |
|
260 main_Image_1_in_48, |
|
261 main_Image_1_in_49 |
|
262 ) [instance: 1, cache: 1]; |
|
263 // network: end of macro body |
|
264 CacheScene(main_Image_1_in_1, main_Image_1_out_1, main_Image_1_out_2); |
|
265 } |
|
266 main_String_1_out_1 = "FILENAME"; |
|
267 main_Import_1_in_2 = NULL; |
|
268 main_Import_1_in_3 = NULL; |
|
269 main_Import_1_in_4 = NULL; |
|
270 main_Import_1_in_5 = NULL; |
|
271 main_Import_1_in_6 = NULL; |
|
272 main_Import_1_out_1 = NULL; |
|
273 main_Value_1_out_1 = 0; |
|
274 main_Inquire_1_in_2 = "member count"; |
|
275 main_Inquire_1_in_3 = NULL; |
|
276 main_Inquire_1_out_1 = NULL; |
|
277 main_Value_2_out_1 = 1; |
|
278 main_Compute_1_in_1 = "$0 - $1"; |
|
279 main_Compute_1_out_1 = NULL; |
|
280 main_Sequencer_1_in_1 = "Sequencer_1"; |
|
281 main_Sequencer_1_in_2 = NULL; |
|
282 main_Sequencer_1_in_3 = NULL; |
|
283 main_Sequencer_1_in_6 = NULL; |
|
284 main_Sequencer_1_in_7 = { 0 95 1 0 95 1 }; |
|
285 main_Sequencer_1_out_1 = NULL; |
|
286 |
|
287 @startframe = 0; |
|
288 @nextframe = @startframe; |
|
289 @endframe = 95; |
|
290 @deltaframe = 1; |
|
291 main_Select_1_in_3 = NULL; |
|
292 main_Select_1_out_1 = NULL; |
|
293 main_RubberSheet_3_in_2 = NULL; |
|
294 main_RubberSheet_3_in_3 = NULL; |
|
295 main_RubberSheet_3_in_4 = NULL; |
|
296 main_RubberSheet_3_out_1 = NULL; |
|
297 main_Statistics_4_out_4 = NULL; |
|
298 main_Statistics_4_out_5 = NULL; |
|
299 main_AutoColor_1_in_2 = NULL; |
|
300 main_AutoColor_1_in_3 = NULL; |
|
301 main_AutoColor_1_in_4 = NULL; |
|
302 main_AutoColor_1_in_5 = NULL; |
|
303 main_AutoColor_1_in_6 = NULL; |
|
304 main_AutoColor_1_in_9 = NULL; |
|
305 main_AutoColor_1_in_10 = NULL; |
|
306 main_AutoColor_1_out_1 = NULL; |
|
307 main_AutoColor_1_out_2 = NULL; |
|
308 main_Shade_2_in_2 = NULL; |
|
309 main_Shade_2_in_3 = "smooth"; |
|
310 main_Shade_2_in_4 = NULL; |
|
311 main_Shade_2_in_5 = NULL; |
|
312 main_Shade_2_in_6 = NULL; |
|
313 main_Shade_2_in_7 = NULL; |
|
314 main_Shade_2_in_8 = NULL; |
|
315 main_Shade_2_out_1 = NULL; |
|
316 main_ColorBar_1_in_2 = NULL; |
|
317 main_ColorBar_1_in_3 = NULL; |
|
318 main_ColorBar_1_in_4 = 1; |
|
319 main_ColorBar_1_in_5 = NULL; |
|
320 main_ColorBar_1_in_6 = NULL; |
|
321 main_ColorBar_1_in_7 = NULL; |
|
322 main_ColorBar_1_in_8 = NULL; |
|
323 main_ColorBar_1_in_9 = NULL; |
|
324 main_ColorBar_1_in_10 = NULL; |
|
325 main_ColorBar_1_in_11 = NULL; |
|
326 main_ColorBar_1_in_12 = NULL; |
|
327 main_ColorBar_1_in_13 = NULL; |
|
328 main_ColorBar_1_in_14 = NULL; |
|
329 main_ColorBar_1_in_15 = NULL; |
|
330 main_ColorBar_1_in_16 = NULL; |
|
331 main_ColorBar_1_out_1 = NULL; |
|
332 main_ShowConnections_1_out_1 = NULL; |
|
333 main_String_2_out_1 = "COLORNAME"; |
|
334 main_Color_1_in_3 = .3; |
|
335 main_Color_1_in_4 = NULL; |
|
336 main_Color_1_in_5 = NULL; |
|
337 main_Color_1_out_1 = NULL; |
|
338 main_Collect_1_out_1 = NULL; |
|
339 macro Image( |
|
340 id, |
|
341 object, |
|
342 where, |
|
343 useVector, |
|
344 to, |
|
345 from, |
|
346 width, |
|
347 resolution, |
|
348 aspect, |
|
349 up, |
|
350 viewAngle, |
|
351 perspective, |
|
352 options, |
|
353 buttonState = 1, |
|
354 buttonUpApprox = "none", |
|
355 buttonDownApprox = "none", |
|
356 buttonUpDensity = 1, |
|
357 buttonDownDensity = 1, |
|
358 renderMode = 0, |
|
359 defaultCamera, |
|
360 reset, |
|
361 backgroundColor, |
|
362 throttle, |
|
363 RECenable = 0, |
|
364 RECfile, |
|
365 RECformat, |
|
366 RECresolution, |
|
367 RECaspect, |
|
368 AAenable = 0, |
|
369 AAlabels, |
|
370 AAticks, |
|
371 AAcorners, |
|
372 AAframe, |
|
373 AAadjust, |
|
374 AAcursor, |
|
375 AAgrid, |
|
376 AAcolors, |
|
377 AAannotation, |
|
378 AAlabelscale, |
|
379 AAfont, |
|
380 interactionMode, |
|
381 title, |
|
382 AAxTickLocs, |
|
383 AAyTickLocs, |
|
384 AAzTickLocs, |
|
385 AAxTickLabels, |
|
386 AAyTickLabels, |
|
387 AAzTickLabels, |
|
388 webOptions) -> ( |
|
389 object, |
|
390 camera, |
|
391 where) |
|
392 { |
|
393 ImageMessage( |
|
394 id, |
|
395 backgroundColor, |
|
396 throttle, |
|
397 RECenable, |
|
398 RECfile, |
|
399 RECformat, |
|
400 RECresolution, |
|
401 RECaspect, |
|
402 AAenable, |
|
403 AAlabels, |
|
404 AAticks, |
|
405 AAcorners, |
|
406 AAframe, |
|
407 AAadjust, |
|
408 AAcursor, |
|
409 AAgrid, |
|
410 AAcolors, |
|
411 AAannotation, |
|
412 AAlabelscale, |
|
413 AAfont, |
|
414 AAxTickLocs, |
|
415 AAyTickLocs, |
|
416 AAzTickLocs, |
|
417 AAxTickLabels, |
|
418 AAyTickLabels, |
|
419 AAzTickLabels, |
|
420 interactionMode, |
|
421 title, |
|
422 renderMode, |
|
423 buttonUpApprox, |
|
424 buttonDownApprox, |
|
425 buttonUpDensity, |
|
426 buttonDownDensity) [instance: 1, cache: 1]; |
|
427 autoCamera = |
|
428 AutoCamera( |
|
429 object, |
|
430 "front", |
|
431 object, |
|
432 resolution, |
|
433 aspect, |
|
434 [0,1,0], |
|
435 perspective, |
|
436 viewAngle, |
|
437 backgroundColor) [instance: 1, cache: 1]; |
|
438 realCamera = |
|
439 Camera( |
|
440 to, |
|
441 from, |
|
442 width, |
|
443 resolution, |
|
444 aspect, |
|
445 up, |
|
446 perspective, |
|
447 viewAngle, |
|
448 backgroundColor) [instance: 1, cache: 1]; |
|
449 coloredDefaultCamera = |
|
450 UpdateCamera(defaultCamera, |
|
451 background=backgroundColor) [instance: 1, cache: 1]; |
|
452 nullDefaultCamera = |
|
453 Inquire(defaultCamera, |
|
454 "is null + 1") [instance: 1, cache: 1]; |
|
455 resetCamera = |
|
456 Switch( |
|
457 nullDefaultCamera, |
|
458 coloredDefaultCamera, |
|
459 autoCamera) [instance: 1, cache: 1]; |
|
460 resetNull = |
|
461 Inquire( |
|
462 reset, |
|
463 "is null + 1") [instance: 2, cache: 1]; |
|
464 reset = |
|
465 Switch( |
|
466 resetNull, |
|
467 reset, |
|
468 0) [instance: 2, cache: 1]; |
|
469 whichCamera = |
|
470 Compute( |
|
471 "($0 != 0 || $1 == 0) ? 1 : 2", |
|
472 reset, |
|
473 useVector) [instance: 1, cache: 1]; |
|
474 camera = Switch( |
|
475 whichCamera, |
|
476 resetCamera, |
|
477 realCamera) [instance: 3, cache: 1]; |
|
478 AAobject = |
|
479 AutoAxes( |
|
480 object, |
|
481 camera, |
|
482 AAlabels, |
|
483 AAticks, |
|
484 AAcorners, |
|
485 AAframe, |
|
486 AAadjust, |
|
487 AAcursor, |
|
488 AAgrid, |
|
489 AAcolors, |
|
490 AAannotation, |
|
491 AAlabelscale, |
|
492 AAfont, |
|
493 AAxTickLocs, |
|
494 AAyTickLocs, |
|
495 AAzTickLocs, |
|
496 AAxTickLabels, |
|
497 AAyTickLabels, |
|
498 AAzTickLabels) [instance: 1, cache: 1]; |
|
499 switchAAenable = Compute("$0+1", |
|
500 AAenable) [instance: 2, cache: 1]; |
|
501 object = Switch( |
|
502 switchAAenable, |
|
503 object, |
|
504 AAobject) [instance:4, cache: 1]; |
|
505 SWapproximation_options = |
|
506 Switch( |
|
507 buttonState, |
|
508 buttonUpApprox, |
|
509 buttonDownApprox) [instance: 5, cache: 1]; |
|
510 SWdensity_options = |
|
511 Switch( |
|
512 buttonState, |
|
513 buttonUpDensity, |
|
514 buttonDownDensity) [instance: 6, cache: 1]; |
|
515 HWapproximation_options = |
|
516 Format( |
|
517 "%s,%s", |
|
518 buttonDownApprox, |
|
519 buttonUpApprox) [instance: 1, cache: 1]; |
|
520 HWdensity_options = |
|
521 Format( |
|
522 "%d,%d", |
|
523 buttonDownDensity, |
|
524 buttonUpDensity) [instance: 2, cache: 1]; |
|
525 switchRenderMode = Compute( |
|
526 "$0+1", |
|
527 renderMode) [instance: 3, cache: 1]; |
|
528 approximation_options = Switch( |
|
529 switchRenderMode, |
|
530 SWapproximation_options, |
|
531 HWapproximation_options) [instance: 7, cache: 1]; |
|
532 density_options = Switch( |
|
533 switchRenderMode, |
|
534 SWdensity_options, |
|
535 HWdensity_options) [instance: 8, cache: 1]; |
|
536 renderModeString = Switch( |
|
537 switchRenderMode, |
|
538 "software", |
|
539 "hardware")[instance: 9, cache: 1]; |
|
540 object_tag = Inquire( |
|
541 object, |
|
542 "object tag")[instance: 3, cache: 1]; |
|
543 annoted_object = |
|
544 Options( |
|
545 object, |
|
546 "send boxes", |
|
547 0, |
|
548 "cache", |
|
549 1, |
|
550 "object tag", |
|
551 object_tag, |
|
552 "ddcamera", |
|
553 whichCamera, |
|
554 "rendering approximation", |
|
555 approximation_options, |
|
556 "render every", |
|
557 density_options, |
|
558 "button state", |
|
559 buttonState, |
|
560 "rendering mode", |
|
561 renderModeString) [instance: 1, cache: 1]; |
|
562 RECresNull = |
|
563 Inquire( |
|
564 RECresolution, |
|
565 "is null + 1") [instance: 4, cache: 1]; |
|
566 ImageResolution = |
|
567 Inquire( |
|
568 camera, |
|
569 "camera resolution") [instance: 5, cache: 1]; |
|
570 RECresolution = |
|
571 Switch( |
|
572 RECresNull, |
|
573 RECresolution, |
|
574 ImageResolution) [instance: 10, cache: 1]; |
|
575 RECaspectNull = |
|
576 Inquire( |
|
577 RECaspect, |
|
578 "is null + 1") [instance: 6, cache: 1]; |
|
579 ImageAspect = |
|
580 Inquire( |
|
581 camera, |
|
582 "camera aspect") [instance: 7, cache: 1]; |
|
583 RECaspect = |
|
584 Switch( |
|
585 RECaspectNull, |
|
586 RECaspect, |
|
587 ImageAspect) [instance: 11, cache: 1]; |
|
588 switchRECenable = Compute( |
|
589 "$0 == 0 ? 1 : (($2 == $3) && ($4 == $5)) ? ($1 == 1 ? 2 : 3) : 4", |
|
590 RECenable, |
|
591 switchRenderMode, |
|
592 RECresolution, |
|
593 ImageResolution, |
|
594 RECaspect, |
|
595 ImageAspect) [instance: 4, cache: 1]; |
|
596 NoRECobject, RECNoRerenderObject, RECNoRerHW, RECRerenderObject = Route(switchRECenable, annoted_object); |
|
597 Display( |
|
598 NoRECobject, |
|
599 camera, |
|
600 where, |
|
601 throttle) [instance: 1, cache: 1]; |
|
602 image = |
|
603 Render( |
|
604 RECNoRerenderObject, |
|
605 camera) [instance: 1, cache: 1]; |
|
606 Display( |
|
607 image, |
|
608 NULL, |
|
609 where, |
|
610 throttle) [instance: 2, cache: 1]; |
|
611 WriteImage( |
|
612 image, |
|
613 RECfile, |
|
614 RECformat) [instance: 1, cache: 1]; |
|
615 rec_where = Display( |
|
616 RECNoRerHW, |
|
617 camera, |
|
618 where, |
|
619 throttle) [instance: 1, cache: 0]; |
|
620 rec_image = ReadImageWindow( |
|
621 rec_where) [instance: 1, cache: 1]; |
|
622 WriteImage( |
|
623 rec_image, |
|
624 RECfile, |
|
625 RECformat) [instance: 1, cache: 1]; |
|
626 RECupdateCamera = |
|
627 UpdateCamera( |
|
628 camera, |
|
629 resolution=RECresolution, |
|
630 aspect=RECaspect) [instance: 2, cache: 1]; |
|
631 Display( |
|
632 RECRerenderObject, |
|
633 camera, |
|
634 where, |
|
635 throttle) [instance: 1, cache: 1]; |
|
636 RECRerenderObject = |
|
637 ScaleScreen( |
|
638 RECRerenderObject, |
|
639 NULL, |
|
640 RECresolution, |
|
641 camera) [instance: 1, cache: 1]; |
|
642 image = |
|
643 Render( |
|
644 RECRerenderObject, |
|
645 RECupdateCamera) [instance: 2, cache: 1]; |
|
646 WriteImage( |
|
647 image, |
|
648 RECfile, |
|
649 RECformat) [instance: 2, cache: 1]; |
|
650 } |
|
651 main_Image_1_in_1 = "Image_1"; |
|
652 main_Image_1_in_3 = "X24,,"; |
|
653 main_Image_1_in_4 = 0; |
|
654 main_Image_1_in_5 = NULL; |
|
655 main_Image_1_in_6 = NULL; |
|
656 main_Image_1_in_7 = NULL; |
|
657 main_Image_1_in_8 = NULL; |
|
658 main_Image_1_in_9 = NULL; |
|
659 main_Image_1_in_10 = NULL; |
|
660 main_Image_1_in_11 = NULL; |
|
661 main_Image_1_in_12 = NULL; |
|
662 main_Image_1_in_13 = NULL; |
|
663 main_Image_1_in_14 = 1; |
|
664 main_Image_1_in_15 = NULL; |
|
665 main_Image_1_in_16 = NULL; |
|
666 main_Image_1_in_17 = NULL; |
|
667 main_Image_1_in_18 = NULL; |
|
668 main_Image_1_in_19 = 0; |
|
669 main_Image_1_in_20 = NULL; |
|
670 main_Image_1_in_21 = NULL; |
|
671 main_Image_1_in_22 = NULL; |
|
672 main_Image_1_in_23 = NULL; |
|
673 main_Image_1_in_25 = NULL; |
|
674 main_Image_1_in_26 = NULL; |
|
675 main_Image_1_in_27 = NULL; |
|
676 main_Image_1_in_28 = NULL; |
|
677 main_Image_1_in_29 = NULL; |
|
678 main_Image_1_in_30 = NULL; |
|
679 main_Image_1_in_31 = NULL; |
|
680 main_Image_1_in_32 = NULL; |
|
681 main_Image_1_in_33 = NULL; |
|
682 main_Image_1_in_34 = NULL; |
|
683 main_Image_1_in_35 = NULL; |
|
684 main_Image_1_in_36 = NULL; |
|
685 main_Image_1_in_37 = NULL; |
|
686 main_Image_1_in_38 = NULL; |
|
687 main_Image_1_in_39 = NULL; |
|
688 main_Image_1_in_40 = NULL; |
|
689 main_Image_1_in_41 = NULL; |
|
690 main_Image_1_in_42 = NULL; |
|
691 main_Image_1_in_43 = NULL; |
|
692 main_Image_1_in_44 = NULL; |
|
693 main_Image_1_in_45 = NULL; |
|
694 main_Image_1_in_46 = NULL; |
|
695 main_Image_1_in_47 = NULL; |
|
696 main_Image_1_in_48 = NULL; |
|
697 main_Image_1_in_49 = NULL; |
|
698 Executive("product version 4 4 4"); |
|
699 $sync |
|
700 |
|
701 sequence main(); |
|
702 play; |