// // time: Tue Oct 20 10:07:00 1998 // // version: 3.1.2 (format), 4.1.1 (DX Beta) // // // Begin MDF // MODULE WebOptions // CATEGORY Macros // DESCRIPTION Information needed when running under control of DXServer // INPUT format; value list or string list or object; ("gif"); output format - gif or wrl // INPUT file[visible:0]; value list or string list or object; (no default); location of the output image on the local file system // INPUT enabled[visible:0]; value list or string list or object; (false); true when running under control of DXServer // INPUT counters; value list or string list or object; (no default); 2-vector: execution and loop sequence // INPUT orbit[visible:0]; value list or string list or object; (false); true for orbit // INPUT javaId[visible:0]; value list or string list or object; (no default); unique identifier - 1 per user // INPUT imgId[visible:0]; value list or string list or object; (no default); index into DOM image array // INPUT orbitDelta; value list or string list or object; (10); Angle separation between orbit viewpoints (degrees) // INPUT cacheSize[visible:0]; value list or string list or object; (0); number of images to cache in the browser // INPUT groupName[visible:0]; value list or string list or object; (no default); all images in a group enter/leave grouped interaction modes together // OUTPUT optionCollection; group; // End MDF // workspace: width = 958, height = 612 // layout: snap = 1, width = 50, height = 24, align = UN // macro WebOptions( format ,file ,enabled ,counters ,orbit ,javaId ,imgId ,orbitDelta ,cacheSize ,groupName ) -> ( optionCollection ) { // // node Input[8]: x = 0, y = 0, inputs = 0, label = Input // parameter: position = 1, name = 'format', value = '("gif")', descriptive = 1, description = 'output format - gif or wrl', required = 0, visible = 1 // WebOptions_Input_8_out_1 = format; // // node Inquire[1]: x = 6, y = 168, inputs = 3, label = Inquire // input[2]: defaulting = 0, visible = 1, type = 32, value = "is null +1" // input[3]: visible = 0 // WebOptions_Inquire_1_out_1[cache: 2] = Inquire( WebOptions_Input_8_out_1, "is null +1", NULL ) [instance: 1, cache: 1]; // // node Switch[1]: x = 24, y = 240, inputs = 3, label = Switch // input[3]: defaulting = 0, visible = 1, type = 67108863, value = "gif" // WebOptions_Switch_1_out_1[cache: 2] = Switch( WebOptions_Inquire_1_out_1, WebOptions_Input_8_out_1, "gif" ) [instance: 1, cache: 1]; // // node Input[16]: x = 113, y = 0, inputs = 0, label = Input // parameter: position = 7, name = 'imgId', value = '(no default)', descriptive = 1, description = 'index into DOM image array', required = 0, visible = 0 // WebOptions_Input_16_out_1 = imgId; // // node Inquire[9]: x = 95, y = 168, inputs = 3, label = Inquire // input[2]: defaulting = 0, visible = 1, type = 32, value = "is null +1" // input[3]: visible = 0 // WebOptions_Inquire_9_out_1[cache: 2] = Inquire( WebOptions_Input_16_out_1, "is null +1", NULL ) [instance: 9, cache: 1]; // // node Switch[9]: x = 113, y = 240, inputs = 3, label = Switch // input[3]: defaulting = 0, visible = 1, type = 67108863, value = 0 // WebOptions_Switch_9_out_1[cache: 2] = Switch( WebOptions_Inquire_9_out_1, WebOptions_Input_16_out_1, 0 ) [instance: 9, cache: 1]; // // node Input[10]: x = 176, y = 0, inputs = 0, label = Input // parameter: position = 2, name = 'file', value = '(no default)', descriptive = 1, description = 'location of the output image on the local file system', required = 0, visible = 0 // WebOptions_Input_10_out_1 = file; // // node Inquire[3]: x = 183, y = 168, inputs = 3, label = Inquire // input[2]: defaulting = 0, visible = 1, type = 32, value = "is null +1" // input[3]: visible = 0 // WebOptions_Inquire_3_out_1[cache: 2] = Inquire( WebOptions_Input_10_out_1, "is null +1", NULL ) [instance: 3, cache: 1]; // // node Switch[3]: x = 201, y = 240, inputs = 3, label = Switch // input[3]: defaulting = 0, visible = 1, type = 67108863, value = "image" // WebOptions_Switch_3_out_1[cache: 2] = Switch( WebOptions_Inquire_3_out_1, WebOptions_Input_10_out_1, "image" ) [instance: 3, cache: 1]; // // node Input[11]: x = 244, y = 0, inputs = 0, label = Input // parameter: position = 3, name = 'enabled', value = '(false)', descriptive = 1, description = 'true when running under control of DXServer', required = 0, visible = 0 // WebOptions_Input_11_out_1 = enabled; // // node Inquire[4]: x = 252, y = 96, inputs = 3, label = Inquire // input[2]: defaulting = 0, visible = 1, type = 32, value = "is null +1" // input[3]: visible = 0 // WebOptions_Inquire_4_out_1[cache: 2] = Inquire( WebOptions_Input_11_out_1, "is null +1", NULL ) [instance: 4, cache: 1]; // // node Switch[4]: x = 270, y = 168, inputs = 3, label = Switch // input[3]: defaulting = 0, visible = 1, type = 67108863, value = 0 // WebOptions_Switch_4_out_1[cache: 2] = Switch( WebOptions_Inquire_4_out_1, WebOptions_Input_11_out_1, 0 ) [instance: 4, cache: 1]; // // node Input[12]: x = 354, y = 0, inputs = 0, label = Input // parameter: position = 4, name = 'counters', value = '(no default)', descriptive = 1, description = '2-vector: execution and loop sequence', required = 0, visible = 1 // WebOptions_Input_12_out_1 = counters; // // node Inquire[5]: x = 360, y = 168, inputs = 3, label = Inquire // input[2]: defaulting = 0, visible = 1, type = 32, value = "is null +1" // input[3]: visible = 0 // WebOptions_Inquire_5_out_1[cache: 2] = Inquire( WebOptions_Input_12_out_1, "is null +1", NULL ) [instance: 5, cache: 1]; // // node Switch[5]: x = 378, y = 240, inputs = 3, label = Switch // input[3]: defaulting = 0, visible = 1, type = 67108863, value = [ 0, 0] // WebOptions_Switch_5_out_1[cache: 2] = Switch( WebOptions_Inquire_5_out_1, WebOptions_Input_12_out_1, [ 0, 0] ) [instance: 5, cache: 1]; // // node Input[13]: x = 423, y = 0, inputs = 0, label = Input // parameter: position = 5, name = 'orbit', value = '(false)', descriptive = 1, description = 'true for orbit', required = 0, visible = 0 // WebOptions_Input_13_out_1 = orbit; // // node Inquire[6]: x = 429, y = 96, inputs = 3, label = Inquire // input[2]: defaulting = 0, visible = 1, type = 32, value = "is null +1" // input[3]: visible = 0 // WebOptions_Inquire_6_out_1[cache: 2] = Inquire( WebOptions_Input_13_out_1, "is null +1", NULL ) [instance: 6, cache: 1]; // // node Switch[6]: x = 447, y = 168, inputs = 3, label = Switch // input[3]: defaulting = 0, visible = 1, type = 67108863, value = 0 // WebOptions_Switch_6_out_1[cache: 2] = Switch( WebOptions_Inquire_6_out_1, WebOptions_Input_13_out_1, 0 ) [instance: 6, cache: 1]; // // node Input[14]: x = 525, y = 0, inputs = 0, label = Input // parameter: position = 6, name = 'javaId', value = '(no default)', descriptive = 1, description = 'unique identifier - 1 per user', required = 0, visible = 0 // WebOptions_Input_14_out_1 = javaId; // // node Inquire[7]: x = 531, y = 168, inputs = 3, label = Inquire // input[2]: defaulting = 0, visible = 1, type = 32, value = "is null +1" // input[3]: visible = 0 // WebOptions_Inquire_7_out_1[cache: 2] = Inquire( WebOptions_Input_14_out_1, "is null +1", NULL ) [instance: 7, cache: 1]; // // node Switch[7]: x = 549, y = 240, inputs = 3, label = Switch // input[3]: defaulting = 0, visible = 1, type = 67108863, value = 0 // WebOptions_Switch_7_out_1[cache: 2] = Switch( WebOptions_Inquire_7_out_1, WebOptions_Input_14_out_1, 0 ) [instance: 7, cache: 1]; // // node Input[51]: x = 614, y = 0, inputs = 0, label = Input // parameter: position = 8, name = 'orbitDelta', value = '(10)', descriptive = 1, description = 'Angle separation between orbit viewpoints (degrees)', required = 0, visible = 1 // WebOptions_Input_51_out_1 = orbitDelta; // // node Inquire[35]: x = 620, y = 96, inputs = 3, label = Inquire // input[2]: defaulting = 0, visible = 1, type = 32, value = "is null +1" // input[3]: visible = 0 // WebOptions_Inquire_35_out_1[cache: 2] = Inquire( WebOptions_Input_51_out_1, "is null +1", NULL ) [instance: 35, cache: 1]; // // node Switch[32]: x = 643, y = 168, inputs = 3, label = Switch // input[3]: defaulting = 0, visible = 1, type = 67108863, value = 10 // WebOptions_Switch_32_out_1[cache: 2] = Switch( WebOptions_Inquire_35_out_1, WebOptions_Input_51_out_1, 10 ) [instance: 32, cache: 1]; // // node Input[52]: x = 740, y = 0, inputs = 0, label = Input // parameter: position = 9, name = 'cacheSize', value = '(0)', descriptive = 1, description = 'number of images to cache in the browser', required = 0, visible = 0 // WebOptions_Input_52_out_1 = cacheSize; // // node Inquire[36]: x = 746, y = 96, inputs = 3, label = Inquire // input[2]: defaulting = 0, visible = 1, type = 32, value = "is null +1" // input[3]: visible = 0 // WebOptions_Inquire_36_out_1[cache: 2] = Inquire( WebOptions_Input_52_out_1, "is null +1", NULL ) [instance: 36, cache: 1]; // // node Switch[33]: x = 769, y = 168, inputs = 3, label = Switch // input[3]: defaulting = 0, visible = 1, type = 67108863, value = 0 // WebOptions_Switch_33_out_1[cache: 2] = Switch( WebOptions_Inquire_36_out_1, WebOptions_Input_52_out_1, 0 ) [instance: 33, cache: 1]; // // node Input[53]: x = 850, y = 0, inputs = 0, label = Input // parameter: position = 10, name = 'groupName', value = '(no default)', descriptive = 1, description = 'all images in a group enter/leave grouped interaction modes together', required = 0, visible = 0 // WebOptions_Input_53_out_1 = groupName; // // node Inquire[37]: x = 863, y = 96, inputs = 3, label = Inquire // input[2]: defaulting = 0, visible = 1, type = 32, value = "is null +1" // input[3]: visible = 0 // WebOptions_Inquire_37_out_1[cache: 2] = Inquire( WebOptions_Input_53_out_1, "is null +1", NULL ) [instance: 37, cache: 1]; // // node Switch[34]: x = 886, y = 168, inputs = 3, label = Switch // input[3]: defaulting = 0, visible = 1, type = 67108863, value = "untitled" // WebOptions_Switch_34_out_1[cache: 2] = Switch( WebOptions_Inquire_37_out_1, WebOptions_Input_53_out_1, "untitled" ) [instance: 34, cache: 1]; // // node CollectNamed[1]: x = 149, y = 456, inputs = 20, label = CollectNamed // input[2]: defaulting = 0, visible = 1, type = 32, value = "format" // input[4]: defaulting = 0, visible = 1, type = 32, value = "imgId" // input[6]: defaulting = 0, visible = 1, type = 32, value = "file" // input[8]: defaulting = 0, visible = 1, type = 32, value = "enabled" // input[10]: defaulting = 0, visible = 1, type = 32, value = "counters" // input[12]: defaulting = 0, visible = 1, type = 32, value = "orbit" // input[14]: defaulting = 0, visible = 1, type = 32, value = "javaid" // input[16]: defaulting = 0, visible = 1, type = 32, value = "orbitDelta" // input[18]: defaulting = 0, visible = 1, type = 32, value = "cacheCount" // input[20]: defaulting = 0, visible = 1, type = 32, value = "groupName" // WebOptions_CollectNamed_1_out_1[cache: 2] = CollectNamed( WebOptions_Switch_1_out_1, "format", WebOptions_Switch_9_out_1, "imgId", WebOptions_Switch_3_out_1, "file", WebOptions_Switch_4_out_1, "enabled", WebOptions_Switch_5_out_1, "counters", WebOptions_Switch_6_out_1, "orbit", WebOptions_Switch_7_out_1, "javaid", WebOptions_Switch_32_out_1, "orbitDelta", WebOptions_Switch_33_out_1, "cacheCount", WebOptions_Switch_34_out_1, "groupName" ) [instance: 1, cache: 1]; // // node Output[1]: x = 319, y = 552, inputs = 1, label = Output // parameter: position = 1, name = 'optionCollection', value = ' ', descriptive = 0, description = ' ', required = 0, visible = 1 // optionCollection = WebOptions_CollectNamed_1_out_1; // network: end of macro body } WebOptions_Input_8_out_1 = NULL; WebOptions_Inquire_1_out_1 = NULL; WebOptions_Switch_1_out_1 = NULL; WebOptions_Input_16_out_1 = NULL; WebOptions_Inquire_9_out_1 = NULL; WebOptions_Switch_9_out_1 = NULL; WebOptions_Input_10_out_1 = NULL; WebOptions_Inquire_3_out_1 = NULL; WebOptions_Switch_3_out_1 = NULL; WebOptions_Input_11_out_1 = NULL; WebOptions_Inquire_4_out_1 = NULL; WebOptions_Switch_4_out_1 = NULL; WebOptions_Input_12_out_1 = NULL; WebOptions_Inquire_5_out_1 = NULL; WebOptions_Switch_5_out_1 = NULL; WebOptions_Input_13_out_1 = NULL; WebOptions_Inquire_6_out_1 = NULL; WebOptions_Switch_6_out_1 = NULL; WebOptions_Input_14_out_1 = NULL; WebOptions_Inquire_7_out_1 = NULL; WebOptions_Switch_7_out_1 = NULL; WebOptions_Input_51_out_1 = NULL; WebOptions_Inquire_35_out_1 = NULL; WebOptions_Switch_32_out_1 = NULL; WebOptions_Input_52_out_1 = NULL; WebOptions_Inquire_36_out_1 = NULL; WebOptions_Switch_33_out_1 = NULL; WebOptions_Input_53_out_1 = NULL; WebOptions_Inquire_37_out_1 = NULL; WebOptions_Switch_34_out_1 = NULL; WebOptions_CollectNamed_1_out_1 = NULL;