// // time: Mon Jul 26 11:41:06 1993 // // version: 2.0.0 // // Begin MDF // MODULE buildmolecule // CATEGORY Macros // INPUT filename; string; (none); // INPUT atom_colors; string; (none); // INPUT sphere_type; scalar or string or field; (none); // INPUT atom_diameter; scalar; (none); // INPUT atom_ratio; scalar; (no default); // INPUT bond_diameter; scalar; (none); // INPUT bond_color; field or vector or string; (no default); // OUTPUT molecular_structure; group; // End MDF // workspace: width = 1000, height = 1000 // layout: snap = 0, width = 50, height = 50, align = CC // macro buildmolecule( filename ,atom_colors ,sphere_type ,atom_diameter ,atom_ratio ,bond_diameter ,bond_color ) -> ( molecular_structure ) { // // node Input[19]: x = 56, y = 16, inputs = 0, label = filename // // parameter: position = 1, name = 'filename', value = ' ', descriptive = 0, description = ' ', required = 1 buildmolecule_Input_19_out_1 = filename; // // node Input[20]: x = 282, y = 14, inputs = 0, label = atomcolor_filename // // parameter: position = 2, name = 'atom_colors', value = ' ', descriptive = 0, description = ' ', required = 1 buildmolecule_Input_20_out_1 = atom_colors; // // node Input[21]: x = 422, y = 208, inputs = 0, label = points for sphere // // parameter: position = 3, name = 'sphere_type', value = ' ', descriptive = 0, description = ' ', required = 1 buildmolecule_Input_21_out_1 = sphere_type; // // node Input[22]: x = 484, y = 206, inputs = 0, label = atom_size // // parameter: position = 4, name = 'atom_diameter', value = ' ', descriptive = 0, description = ' ', required = 1 buildmolecule_Input_22_out_1 = atom_diameter; // // node Input[24]: x = 127, y = 211, inputs = 0, label = bond_diameter // // parameter: position = 6, name = 'bond_diameter', value = ' ', descriptive = 0, description = ' ', required = 1 buildmolecule_Input_24_out_1 = bond_diameter; // // node Input[23]: x = 552, y = 204, inputs = 0, label = ratio // // parameter: position = 5, name = 'atom_ratio', value = ' ', descriptive = 0, description = ' ', required = 0 buildmolecule_Input_23_out_1 = atom_ratio; // // node Input[25]: x = 78, y = 307, inputs = 0, label = bond_color // // parameter: position = 7, name = 'bond_color', value = ' ', descriptive = 0, description = ' ', required = 0 buildmolecule_Input_25_out_1 = bond_color; // // node Import[8]: x = 63, y = 116, inputs = 6, label = Import // input[3]: defaulting = 0, visible = 1, type = 32, value = "dx" // buildmolecule_Import_8_out_1 = Import( buildmolecule_Input_19_out_1, buildmolecule_Import_8_in_2, buildmolecule_Import_8_in_3, buildmolecule_Import_8_in_4, buildmolecule_Import_8_in_5, buildmolecule_Import_8_in_6 ) [instance: 8, cache: 1]; // // node Import[9]: x = 273, y = 110, inputs = 6, label = Import // input[3]: defaulting = 0, visible = 1, type = 32, value = "dx" // buildmolecule_Import_9_out_1 = Import( buildmolecule_Input_20_out_1, buildmolecule_Import_9_in_2, buildmolecule_Import_9_in_3, buildmolecule_Import_9_in_4, buildmolecule_Import_9_in_5, buildmolecule_Import_9_in_6 ) [instance: 9, cache: 1]; // // node Tube[4]: x = 42, y = 227, inputs = 4, label = Tube // input[3]: defaulting = 0, visible = 0, type = 1, value = 20 // buildmolecule_Tube_4_out_1 = Tube( buildmolecule_Import_8_out_1, buildmolecule_Input_24_out_1, buildmolecule_Tube_4_in_3, buildmolecule_Tube_4_in_4 ) [instance: 4, cache: 1]; // // node Color[6]: x = 277, y = 208, inputs = 5, label = Color // buildmolecule_Color_6_out_1 = Color( buildmolecule_Import_8_out_1, buildmolecule_Import_9_out_1, buildmolecule_Color_6_in_3, buildmolecule_Color_6_in_4, buildmolecule_Color_6_in_5 ) [instance: 6, cache: 1]; // // node Color[7]: x = 46, y = 395, inputs = 5, label = Color // buildmolecule_Color_7_out_1 = Color( buildmolecule_Tube_4_out_1, buildmolecule_Input_25_out_1, buildmolecule_Color_7_in_3, buildmolecule_Color_7_in_4, buildmolecule_Color_7_in_5 ) [instance: 7, cache: 1]; // // node Glyph[4]: x = 415, y = 357, inputs = 7, label = Glyph // input[3]: defaulting = 0, visible = 1, type = 5, value = NULL // buildmolecule_Glyph_4_out_1 = Glyph( buildmolecule_Color_6_out_1, buildmolecule_Input_21_out_1, buildmolecule_Glyph_4_in_3, buildmolecule_Input_22_out_1, buildmolecule_Input_23_out_1, buildmolecule_Glyph_4_in_6, buildmolecule_Glyph_4_in_7 ) [instance: 4, cache: 1]; // // node Collect[5]: x = 180, y = 417, inputs = 2, label = Collect // buildmolecule_Collect_5_out_1 = Collect( buildmolecule_Color_7_out_1, buildmolecule_Glyph_4_out_1 ) [instance: 5, cache: 1]; // // node Output[3]: x = 186, y = 527, inputs = 1, label = molecular_structure // // parameter: position = 1, name = 'molecular_structure', value = ' ', descriptive = 0, description = ' ', required = 0 molecular_structure = buildmolecule_Collect_5_out_1; } buildmolecule_Input_19_out_1 = NULL; buildmolecule_Input_20_out_1 = NULL; buildmolecule_Input_21_out_1 = NULL; buildmolecule_Input_22_out_1 = NULL; buildmolecule_Input_24_out_1 = NULL; buildmolecule_Input_23_out_1 = NULL; buildmolecule_Input_25_out_1 = NULL; buildmolecule_Import_8_in_2 = NULL; buildmolecule_Import_8_in_3 = "dx"; buildmolecule_Import_8_in_4 = NULL; buildmolecule_Import_8_in_5 = NULL; buildmolecule_Import_8_in_6 = NULL; buildmolecule_Import_8_out_1 = NULL; buildmolecule_Import_9_in_2 = NULL; buildmolecule_Import_9_in_3 = "dx"; buildmolecule_Import_9_in_4 = NULL; buildmolecule_Import_9_in_5 = NULL; buildmolecule_Import_9_in_6 = NULL; buildmolecule_Import_9_out_1 = NULL; buildmolecule_Tube_4_in_3 = 20; buildmolecule_Tube_4_in_4 = NULL; buildmolecule_Tube_4_out_1 = NULL; buildmolecule_Color_6_in_3 = NULL; buildmolecule_Color_6_in_4 = NULL; buildmolecule_Color_6_in_5 = NULL; buildmolecule_Color_6_out_1 = NULL; buildmolecule_Color_7_in_3 = NULL; buildmolecule_Color_7_in_4 = NULL; buildmolecule_Color_7_in_5 = NULL; buildmolecule_Color_7_out_1 = NULL; buildmolecule_Glyph_4_in_3 = NULL; buildmolecule_Glyph_4_in_6 = NULL; buildmolecule_Glyph_4_in_7 = NULL; buildmolecule_Glyph_4_out_1 = NULL; buildmolecule_Collect_5_out_1 = NULL;