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

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