comparison extra/fpl/deprecated/FPL2showmesh.net @ 12671:20e8aca47b2c octave-forge

prepare for release
author cdf
date Mon, 17 Aug 2015 10:19:39 +0000
parents extra/fpl/inst/deprecated/FPL2showmesh.net@79655a0cc43e
children
comparison
equal deleted inserted replaced
12670:d68da2f2417b 12671:20e8aca47b2c
1 //
2 // time: Wed Jun 27 18:36:54 2007
3 //
4 // version: 3.2.0 (format), 4.4.4 (DX)
5 //
6 //
7 // MODULE main
8 // workspace: width = 464, height = 625
9 // layout: snap = 0, width = 50, height = 50, align = NN
10 //
11 macro main(
12 ) -> (
13 ) {
14 //
15 // node Collect[1]: x = 409, y = 272, inputs = 2, label = Collect
16 //
17 main_Collect_1_out_1 =
18 Collect(
19 main_Collect_1_in_1,
20 main_Collect_1_in_2
21 ) [instance: 1, cache: 1];
22 //
23 // node GetLocal[1]: x = 308, y = 381, inputs = 3, label = GetLocal
24 //
25 main_GetLocal_1_out_1,
26 main_GetLocal_1_out_2 =
27 GetLocal(
28 main_Collect_1_out_1,
29 main_GetLocal_1_in_2,
30 main_GetLocal_1_in_3
31 ) [instance: 1, cache: 1];
32 //
33 // node StringList[1]: x = 42, y = 74, inputs = 0, label = StringList
34 // output[1]: visible = 1, type = 16777248, value = {__FILE__DX__ }
35 //
36 //
37 // node ForEachMember[1]: x = 28, y = 151, inputs = 1, label = ForEachMember
38 //
39 main_ForEachMember_1_out_1,
40 main_ForEachMember_1_out_2,
41 main_ForEachMember_1_out_3 =
42 ForEachMember(
43 main_StringList_1_out_1
44 ) [instance: 1, cache: 1];
45 //
46 // node Import[1]: x = 40, y = 234, inputs = 6, label = Import
47 //
48 main_Import_1_out_1 =
49 Import(
50 main_ForEachMember_1_out_1,
51 main_Import_1_in_2,
52 main_Import_1_in_3,
53 main_Import_1_in_4,
54 main_Import_1_in_5,
55 main_Import_1_in_6
56 ) [instance: 1, cache: 1];
57 //
58 // node StringList[2]: x = 215, y = 61, inputs = 0, label = StringList
59 // output[1]: visible = 1, type = 16777248, value = { __MESH__COLOR__ }
60 //
61 //
62 // node ForEachMember[2]: x = 198, y = 159, inputs = 1, label = ForEachMember
63 //
64 main_ForEachMember_2_out_1,
65 main_ForEachMember_2_out_2,
66 main_ForEachMember_2_out_3 =
67 ForEachMember(
68 main_StringList_2_out_1
69 ) [instance: 2, cache: 1];
70 //
71 // node Color[1]: x = 179, y = 312, inputs = 5, label = Color
72 // input[2]: defaulting = 1, visible = 1, type = 32, value = "indianred"
73 //
74 main_Color_1_out_1 =
75 Color(
76 main_Import_1_out_1,
77 main_ForEachMember_2_out_1,
78 main_Color_1_in_3,
79 main_Color_1_in_4,
80 main_Color_1_in_5
81 ) [instance: 1, cache: 1];
82 //
83 // node ShowConnections[1]: x = 31, y = 354, inputs = 1, label = ShowConnections
84 //
85 main_ShowConnections_1_out_1 =
86 ShowConnections(
87 main_Color_1_out_1
88 ) [instance: 1, cache: 1];
89 //
90 // node Append[1]: x = 60, y = 453, inputs = 5, label = Append
91 //
92 main_Append_1_out_1 =
93 Append(
94 main_GetLocal_1_out_1,
95 main_ShowConnections_1_out_1,
96 main_Append_1_in_3,
97 main_Append_1_in_4,
98 main_Append_1_in_5
99 ) [instance: 1, cache: 1];
100 //
101 // node Image[1]: x = 153, y = 563, inputs = 49, label = Image
102 // input[1]: defaulting = 0, visible = 0, type = 67108863, value = "Image_1"
103 // input[4]: defaulting = 0, visible = 0, type = 1, value = 1
104 // input[5]: defaulting = 0, visible = 0, type = 8, value = [7.5 7.5 0]
105 // input[6]: defaulting = 0, visible = 0, type = 8, value = [7.5 7.5 39.3199]
106 // input[7]: defaulting = 0, visible = 0, type = 5, value = 21.0715
107 // input[8]: defaulting = 0, visible = 0, type = 1, value = 804
108 // input[9]: defaulting = 0, visible = 0, type = 5, value = 0.610075
109 // input[10]: defaulting = 0, visible = 0, type = 8, value = [0 1 0]
110 // input[11]: defaulting = 1, visible = 0, type = 5, value = 30.0
111 // input[12]: defaulting = 0, visible = 0, type = 1, value = 0
112 // input[14]: defaulting = 0, visible = 0, type = 1, value = 1
113 // input[15]: defaulting = 1, visible = 0, type = 32, value = "none"
114 // input[16]: defaulting = 1, visible = 0, type = 32, value = "none"
115 // input[17]: defaulting = 0, visible = 0, type = 1, value = 1
116 // input[18]: defaulting = 0, visible = 0, type = 1, value = 1
117 // input[19]: defaulting = 0, visible = 0, type = 1, value = 1
118 // input[22]: defaulting = 0, visible = 0, type = 32, value = "snow"
119 // input[25]: defaulting = 0, visible = 0, type = 32, value = "/Users/carlo/Desktop/COMSONDEMO/CoMSON DP/grid.tif"
120 // input[26]: defaulting = 0, visible = 0, type = 32, value = "tiff"
121 // input[29]: defaulting = 0, visible = 0, type = 3, value = 1
122 // input[31]: defaulting = 0, visible = 0, type = 1, value = -15
123 // input[33]: defaulting = 0, visible = 0, type = 3, value = 0
124 // input[34]: defaulting = 0, visible = 0, type = 3, value = 0
125 // input[37]: defaulting = 0, visible = 0, type = 16777248, value = {"clear", "grey5", "saddlebrown", "saddlebrown"}
126 // input[38]: defaulting = 0, visible = 0, type = 16777248, value = {"background", "grid", "ticks", "labels"}
127 // input[39]: defaulting = 0, visible = 0, type = 5, value = 0.7
128 // input[40]: defaulting = 0, visible = 0, type = 32, value = "roman_s"
129 // input[41]: defaulting = 0, visible = 0, type = 32, value = "none"
130 // depth: value = 24
131 // window: position = (0.2477,0.1272), size = 0.6391x0.6838, screen = 0
132 // internal caching: 1
133 //
134 main_Image_1_out_1,
135 main_Image_1_out_2,
136 main_Image_1_out_3 =
137 Image(
138 main_Image_1_in_1,
139 main_Append_1_out_1,
140 main_Image_1_in_3,
141 main_Image_1_in_4,
142 main_Image_1_in_5,
143 main_Image_1_in_6,
144 main_Image_1_in_7,
145 main_Image_1_in_8,
146 main_Image_1_in_9,
147 main_Image_1_in_10,
148 main_Image_1_in_11,
149 main_Image_1_in_12,
150 main_Image_1_in_13,
151 main_Image_1_in_14,
152 main_Image_1_in_15,
153 main_Image_1_in_16,
154 main_Image_1_in_17,
155 main_Image_1_in_18,
156 main_Image_1_in_19,
157 main_Image_1_in_20,
158 main_Image_1_in_21,
159 main_Image_1_in_22,
160 main_Image_1_in_23,
161 main_Image_1_in_24,
162 main_Image_1_in_25,
163 main_Image_1_in_26,
164 main_Image_1_in_27,
165 main_Image_1_in_28,
166 main_Image_1_in_29,
167 main_Image_1_in_30,
168 main_Image_1_in_31,
169 main_Image_1_in_32,
170 main_Image_1_in_33,
171 main_Image_1_in_34,
172 main_Image_1_in_35,
173 main_Image_1_in_36,
174 main_Image_1_in_37,
175 main_Image_1_in_38,
176 main_Image_1_in_39,
177 main_Image_1_in_40,
178 main_Image_1_in_41,
179 main_Image_1_in_42,
180 main_Image_1_in_43,
181 main_Image_1_in_44,
182 main_Image_1_in_45,
183 main_Image_1_in_46,
184 main_Image_1_in_47,
185 main_Image_1_in_48,
186 main_Image_1_in_49
187 ) [instance: 1, cache: 1];
188 //
189 // node SetLocal[1]: x = 316, y = 471, inputs = 3, label = SetLocal
190 //
191 SetLocal(
192 main_Append_1_out_1,
193 main_GetLocal_1_out_2,
194 main_SetLocal_1_in_3
195 ) [instance: 1, cache: 1];
196 // network: end of macro body
197 CacheScene(main_Image_1_in_1, main_Image_1_out_1, main_Image_1_out_2);
198 }
199 main_Collect_1_in_1 = NULL;
200 main_Collect_1_in_2 = NULL;
201 main_Collect_1_out_1 = NULL;
202 main_GetLocal_1_in_2 = NULL;
203 main_GetLocal_1_in_3 = NULL;
204 main_GetLocal_1_out_1 = NULL;
205 main_GetLocal_1_out_2 = NULL;
206 main_StringList_1_out_1 = {__FILE__DX__};
207 main_ForEachMember_1_out_1 = NULL;
208 main_Import_1_in_2 = NULL;
209 main_Import_1_in_3 = NULL;
210 main_Import_1_in_4 = NULL;
211 main_Import_1_in_5 = NULL;
212 main_Import_1_in_6 = NULL;
213 main_Import_1_out_1 = NULL;
214 main_StringList_2_out_1 = {__MESH__COLOR__ };
215 main_ForEachMember_2_out_1 = NULL;
216 main_Color_1_in_3 = NULL;
217 main_Color_1_in_4 = NULL;
218 main_Color_1_in_5 = NULL;
219 main_Color_1_out_1 = NULL;
220 main_ShowConnections_1_out_1 = NULL;
221 main_Append_1_in_3 = NULL;
222 main_Append_1_in_4 = NULL;
223 main_Append_1_in_5 = NULL;
224 main_Append_1_out_1 = NULL;
225 macro Image(
226 id,
227 object,
228 where,
229 useVector,
230 to,
231 from,
232 width,
233 resolution,
234 aspect,
235 up,
236 viewAngle,
237 perspective,
238 options,
239 buttonState = 1,
240 buttonUpApprox = "none",
241 buttonDownApprox = "none",
242 buttonUpDensity = 1,
243 buttonDownDensity = 1,
244 renderMode = 0,
245 defaultCamera,
246 reset,
247 backgroundColor,
248 throttle,
249 RECenable = 0,
250 RECfile,
251 RECformat,
252 RECresolution,
253 RECaspect,
254 AAenable = 0,
255 AAlabels,
256 AAticks,
257 AAcorners,
258 AAframe,
259 AAadjust,
260 AAcursor,
261 AAgrid,
262 AAcolors,
263 AAannotation,
264 AAlabelscale,
265 AAfont,
266 interactionMode,
267 title,
268 AAxTickLocs,
269 AAyTickLocs,
270 AAzTickLocs,
271 AAxTickLabels,
272 AAyTickLabels,
273 AAzTickLabels,
274 webOptions) -> (
275 object,
276 camera,
277 where)
278 {
279 ImageMessage(
280 id,
281 backgroundColor,
282 throttle,
283 RECenable,
284 RECfile,
285 RECformat,
286 RECresolution,
287 RECaspect,
288 AAenable,
289 AAlabels,
290 AAticks,
291 AAcorners,
292 AAframe,
293 AAadjust,
294 AAcursor,
295 AAgrid,
296 AAcolors,
297 AAannotation,
298 AAlabelscale,
299 AAfont,
300 AAxTickLocs,
301 AAyTickLocs,
302 AAzTickLocs,
303 AAxTickLabels,
304 AAyTickLabels,
305 AAzTickLabels,
306 interactionMode,
307 title,
308 renderMode,
309 buttonUpApprox,
310 buttonDownApprox,
311 buttonUpDensity,
312 buttonDownDensity) [instance: 1, cache: 1];
313 autoCamera =
314 AutoCamera(
315 object,
316 "front",
317 object,
318 resolution,
319 aspect,
320 [0,1,0],
321 perspective,
322 viewAngle,
323 backgroundColor) [instance: 1, cache: 1];
324 realCamera =
325 Camera(
326 to,
327 from,
328 width,
329 resolution,
330 aspect,
331 up,
332 perspective,
333 viewAngle,
334 backgroundColor) [instance: 1, cache: 1];
335 coloredDefaultCamera =
336 UpdateCamera(defaultCamera,
337 background=backgroundColor) [instance: 1, cache: 1];
338 nullDefaultCamera =
339 Inquire(defaultCamera,
340 "is null + 1") [instance: 1, cache: 1];
341 resetCamera =
342 Switch(
343 nullDefaultCamera,
344 coloredDefaultCamera,
345 autoCamera) [instance: 1, cache: 1];
346 resetNull =
347 Inquire(
348 reset,
349 "is null + 1") [instance: 2, cache: 1];
350 reset =
351 Switch(
352 resetNull,
353 reset,
354 0) [instance: 2, cache: 1];
355 whichCamera =
356 Compute(
357 "($0 != 0 || $1 == 0) ? 1 : 2",
358 reset,
359 useVector) [instance: 1, cache: 1];
360 camera = Switch(
361 whichCamera,
362 resetCamera,
363 realCamera) [instance: 3, cache: 1];
364 AAobject =
365 AutoAxes(
366 object,
367 camera,
368 AAlabels,
369 AAticks,
370 AAcorners,
371 AAframe,
372 AAadjust,
373 AAcursor,
374 AAgrid,
375 AAcolors,
376 AAannotation,
377 AAlabelscale,
378 AAfont,
379 AAxTickLocs,
380 AAyTickLocs,
381 AAzTickLocs,
382 AAxTickLabels,
383 AAyTickLabels,
384 AAzTickLabels) [instance: 1, cache: 1];
385 switchAAenable = Compute("$0+1",
386 AAenable) [instance: 2, cache: 1];
387 object = Switch(
388 switchAAenable,
389 object,
390 AAobject) [instance:4, cache: 1];
391 SWapproximation_options =
392 Switch(
393 buttonState,
394 buttonUpApprox,
395 buttonDownApprox) [instance: 5, cache: 1];
396 SWdensity_options =
397 Switch(
398 buttonState,
399 buttonUpDensity,
400 buttonDownDensity) [instance: 6, cache: 1];
401 HWapproximation_options =
402 Format(
403 "%s,%s",
404 buttonDownApprox,
405 buttonUpApprox) [instance: 1, cache: 1];
406 HWdensity_options =
407 Format(
408 "%d,%d",
409 buttonDownDensity,
410 buttonUpDensity) [instance: 2, cache: 1];
411 switchRenderMode = Compute(
412 "$0+1",
413 renderMode) [instance: 3, cache: 1];
414 approximation_options = Switch(
415 switchRenderMode,
416 SWapproximation_options,
417 HWapproximation_options) [instance: 7, cache: 1];
418 density_options = Switch(
419 switchRenderMode,
420 SWdensity_options,
421 HWdensity_options) [instance: 8, cache: 1];
422 renderModeString = Switch(
423 switchRenderMode,
424 "software",
425 "hardware")[instance: 9, cache: 1];
426 object_tag = Inquire(
427 object,
428 "object tag")[instance: 3, cache: 1];
429 annoted_object =
430 Options(
431 object,
432 "send boxes",
433 0,
434 "cache",
435 1,
436 "object tag",
437 object_tag,
438 "ddcamera",
439 whichCamera,
440 "rendering approximation",
441 approximation_options,
442 "render every",
443 density_options,
444 "button state",
445 buttonState,
446 "rendering mode",
447 renderModeString) [instance: 1, cache: 1];
448 RECresNull =
449 Inquire(
450 RECresolution,
451 "is null + 1") [instance: 4, cache: 1];
452 ImageResolution =
453 Inquire(
454 camera,
455 "camera resolution") [instance: 5, cache: 1];
456 RECresolution =
457 Switch(
458 RECresNull,
459 RECresolution,
460 ImageResolution) [instance: 10, cache: 1];
461 RECaspectNull =
462 Inquire(
463 RECaspect,
464 "is null + 1") [instance: 6, cache: 1];
465 ImageAspect =
466 Inquire(
467 camera,
468 "camera aspect") [instance: 7, cache: 1];
469 RECaspect =
470 Switch(
471 RECaspectNull,
472 RECaspect,
473 ImageAspect) [instance: 11, cache: 1];
474 switchRECenable = Compute(
475 "$0 == 0 ? 1 : (($2 == $3) && ($4 == $5)) ? ($1 == 1 ? 2 : 3) : 4",
476 RECenable,
477 switchRenderMode,
478 RECresolution,
479 ImageResolution,
480 RECaspect,
481 ImageAspect) [instance: 4, cache: 1];
482 NoRECobject, RECNoRerenderObject, RECNoRerHW, RECRerenderObject = Route(switchRECenable, annoted_object);
483 Display(
484 NoRECobject,
485 camera,
486 where,
487 throttle) [instance: 1, cache: 1];
488 image =
489 Render(
490 RECNoRerenderObject,
491 camera) [instance: 1, cache: 1];
492 Display(
493 image,
494 NULL,
495 where,
496 throttle) [instance: 2, cache: 1];
497 WriteImage(
498 image,
499 RECfile,
500 RECformat) [instance: 1, cache: 1];
501 rec_where = Display(
502 RECNoRerHW,
503 camera,
504 where,
505 throttle) [instance: 1, cache: 0];
506 rec_image = ReadImageWindow(
507 rec_where) [instance: 1, cache: 1];
508 WriteImage(
509 rec_image,
510 RECfile,
511 RECformat) [instance: 1, cache: 1];
512 RECupdateCamera =
513 UpdateCamera(
514 camera,
515 resolution=RECresolution,
516 aspect=RECaspect) [instance: 2, cache: 1];
517 Display(
518 RECRerenderObject,
519 camera,
520 where,
521 throttle) [instance: 1, cache: 1];
522 RECRerenderObject =
523 ScaleScreen(
524 RECRerenderObject,
525 NULL,
526 RECresolution,
527 camera) [instance: 1, cache: 1];
528 image =
529 Render(
530 RECRerenderObject,
531 RECupdateCamera) [instance: 2, cache: 1];
532 WriteImage(
533 image,
534 RECfile,
535 RECformat) [instance: 2, cache: 1];
536 }
537 main_Image_1_in_1 = "Image_1";
538 main_Image_1_in_3 = "X24,,";
539 main_Image_1_in_4 = 1;
540 main_Image_1_in_5 = [7.5 7.5 0];
541 main_Image_1_in_6 = [7.5 7.5 39.3199];
542 main_Image_1_in_7 = 21.0715;
543 main_Image_1_in_8 = 804;
544 main_Image_1_in_9 = 0.610075;
545 main_Image_1_in_10 = [0 1 0];
546 main_Image_1_in_11 = NULL;
547 main_Image_1_in_12 = 0;
548 main_Image_1_in_13 = NULL;
549 main_Image_1_in_14 = 1;
550 main_Image_1_in_15 = NULL;
551 main_Image_1_in_16 = NULL;
552 main_Image_1_in_17 = 1;
553 main_Image_1_in_18 = 1;
554 main_Image_1_in_19 = 1;
555 main_Image_1_in_20 = NULL;
556 main_Image_1_in_21 = NULL;
557 main_Image_1_in_22 = "snow";
558 main_Image_1_in_23 = NULL;
559 main_Image_1_in_25 = "/Users/carlo/Desktop/COMSONDEMO/CoMSON DP/grid.tif";
560 main_Image_1_in_26 = "tiff";
561 main_Image_1_in_27 = NULL;
562 main_Image_1_in_28 = NULL;
563 main_Image_1_in_29 = 1;
564 main_Image_1_in_30 = NULL;
565 main_Image_1_in_31 = -15;
566 main_Image_1_in_32 = NULL;
567 main_Image_1_in_33 = 0;
568 main_Image_1_in_34 = 0;
569 main_Image_1_in_35 = NULL;
570 main_Image_1_in_36 = NULL;
571 main_Image_1_in_37 = {"clear", "grey5", "saddlebrown", "saddlebrown"};
572 main_Image_1_in_38 = {"background", "grid", "ticks", "labels"};
573 main_Image_1_in_39 = 0.7;
574 main_Image_1_in_40 = "roman_s";
575 main_Image_1_in_41 = "none";
576 main_Image_1_in_42 = NULL;
577 main_Image_1_in_43 = NULL;
578 main_Image_1_in_44 = NULL;
579 main_Image_1_in_45 = NULL;
580 main_Image_1_in_46 = NULL;
581 main_Image_1_in_47 = NULL;
582 main_Image_1_in_48 = NULL;
583 main_Image_1_in_49 = NULL;
584 main_SetLocal_1_in_3 = NULL;
585 Executive("product version 4 4 4");
586 $sync
587 main();