// // time: Wed Apr 24 07:53:33 1996 // // version: 3.0.0 (format), 3.1.0 (DX) // // // Begin MDF // MODULE MakeBox // CATEGORY Realization // DESCRIPTION Creates a rectangle of specified size and color at a specified location // INPUT x; value list or field; {0.0}; x-coordinate for the center of a rectangle // INPUT delta_x[visible:0]; value list or field; {1.0}; half-width of the x-coordinate of the rectangle // INPUT y; value list or field; {0.0}; y-coordinate for the center of the rectangle // INPUT delta_y[visible:0]; value list or field; {1.0}; half-width of the y-coordinate of the rectangle // INPUT color[visible:0]; field or vector or string; "white"; color of the rectangle // OUTPUT box; color field; A colored rectangle // End MDF // // comment: The macro accepts as input an [x, y] location and [delta_x, delta_y]. The former is used to define the center of a rectangle. The latter is used to define the size of the rectangle. The user can also specify the color of the rectangle, which will consist of lines. // comment: // comment: (C) COPYRIGHT International Business Machines Corp. 1996. // comment: All Rights Reserved. // comment: Licensed Materials - Property of IBM // comment: // comment: Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of IBM not be used in advertising or publicity pertaining to distribution of the software without specific prior written permission. // comment: // comment: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THE SOFTWARE, BOTH INDIVIDUALLY AND AS ONE OR MORE GROUPS, "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IBM DOES NOT WARRANT AGAINST THE INFRINGMENT OF PATENTS, COPYRIGHT OR ANY OTHER INTELLECTUAL PROPERTY RIGHTS OF OTHERS. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE, BOTH INDIVIDUALLY AND AS ONE OR MORE GROUPS, IS WITH YOU. // workspace: width = 993, height = 845 // layout: snap = 0, width = 50, height = 50, align = CC // macro MakeBox( x = {0.0} ,delta_x = {1.0} ,y = {0.0} ,delta_y = {1.0} ,color = "white" ) -> ( box ) { // // node Input[1]: x = 129, y = 0, inputs = 0, label = Input // parameter: position = 1, name = 'x', value = '{0.0}', descriptive = 0, description = 'x-coordinate for the center of a rectangle', required = 0, visible = 1 // MakeBox_Input_1_out_1 = x; // // node Input[2]: x = 245, y = 0, inputs = 0, label = Input // parameter: position = 2, name = 'delta_x', value = '{1.0}', descriptive = 0, description = 'half-width of the x-coordinate of the rectangle', required = 0, visible = 0 // MakeBox_Input_2_out_1 = delta_x; // // node Compute[9]: x = 5, y = 194, inputs = 3, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0-$1" // expression: value = a-b // name[2]: value = a // name[3]: value = b // MakeBox_Compute_9_out_1 = Compute( "$0-$1", MakeBox_Input_1_out_1, MakeBox_Input_2_out_1 ) [instance: 9, cache: 1]; // // node Compute[15]: x = 90, y = 192, inputs = 3, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0+$1" // expression: value = a+b // name[2]: value = a // name[3]: value = b // MakeBox_Compute_15_out_1 = Compute( "$0+$1", MakeBox_Input_1_out_1, MakeBox_Input_2_out_1 ) [instance: 15, cache: 1]; // // node Compute[14]: x = 176, y = 193, inputs = 3, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0+$1" // expression: value = a+b // name[2]: value = a // name[3]: value = b // MakeBox_Compute_14_out_1 = Compute( "$0+$1", MakeBox_Input_1_out_1, MakeBox_Input_2_out_1 ) [instance: 14, cache: 1]; // // node Compute[16]: x = 268, y = 199, inputs = 3, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0-$1" // expression: value = a-b // name[2]: value = a // name[3]: value = b // MakeBox_Compute_16_out_1 = Compute( "$0-$1", MakeBox_Input_1_out_1, MakeBox_Input_2_out_1 ) [instance: 16, cache: 1]; // // node Compute[17]: x = 366, y = 213, inputs = 3, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0-$1" // expression: value = a-b // name[2]: value = a // name[3]: value = b // MakeBox_Compute_17_out_1 = Compute( "$0-$1", MakeBox_Input_1_out_1, MakeBox_Input_2_out_1 ) [instance: 17, cache: 1]; // // node List[3]: x = 150, y = 350, inputs = 5, label = List // MakeBox_List_3_out_1 = List( MakeBox_Compute_9_out_1, MakeBox_Compute_15_out_1, MakeBox_Compute_14_out_1, MakeBox_Compute_16_out_1, MakeBox_Compute_17_out_1 ) [instance: 3, cache: 1]; // // node Input[3]: x = 710, y = 2, inputs = 0, label = Input // parameter: position = 3, name = 'y', value = '{0.0}', descriptive = 0, description = 'y-coordinate for the center of the rectangle', required = 0, visible = 1 // MakeBox_Input_3_out_1 = y; // // node Input[4]: x = 768, y = 8, inputs = 0, label = Input // parameter: position = 4, name = 'delta_y', value = '{1.0}', descriptive = 0, description = 'half-width of the y-coordinate of the rectangle', required = 0, visible = 0 // MakeBox_Input_4_out_1 = delta_y; // // node Compute[11]: x = 521, y = 211, inputs = 3, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0-$1" // expression: value = a-b // name[2]: value = a // name[3]: value = b // MakeBox_Compute_11_out_1 = Compute( "$0-$1", MakeBox_Input_3_out_1, MakeBox_Input_4_out_1 ) [instance: 11, cache: 1]; // // node Compute[10]: x = 634, y = 199, inputs = 3, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0-$1" // expression: value = a-b // name[2]: value = a // name[3]: value = b // MakeBox_Compute_10_out_1 = Compute( "$0-$1", MakeBox_Input_3_out_1, MakeBox_Input_4_out_1 ) [instance: 10, cache: 1]; // // node Compute[12]: x = 732, y = 207, inputs = 3, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0+$1" // expression: value = a+b // name[2]: value = a // name[3]: value = b // MakeBox_Compute_12_out_1 = Compute( "$0+$1", MakeBox_Input_3_out_1, MakeBox_Input_4_out_1 ) [instance: 12, cache: 1]; // // node Compute[13]: x = 834, y = 211, inputs = 3, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0+$1" // expression: value = a+b // name[2]: value = a // name[3]: value = b // MakeBox_Compute_13_out_1 = Compute( "$0+$1", MakeBox_Input_3_out_1, MakeBox_Input_4_out_1 ) [instance: 13, cache: 1]; // // node Compute[18]: x = 923, y = 227, inputs = 3, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0-$1" // expression: value = a-b // name[2]: value = a // name[3]: value = b // MakeBox_Compute_18_out_1 = Compute( "$0-$1", MakeBox_Input_3_out_1, MakeBox_Input_4_out_1 ) [instance: 18, cache: 1]; // // node List[2]: x = 696, y = 372, inputs = 5, label = List // MakeBox_List_2_out_1 = List( MakeBox_Compute_11_out_1, MakeBox_Compute_10_out_1, MakeBox_Compute_12_out_1, MakeBox_Compute_13_out_1, MakeBox_Compute_18_out_1 ) [instance: 2, cache: 1]; // // node Compute[19]: x = 461, y = 460, inputs = 3, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "[$0,$1]" // expression: value = [a,b] // name[2]: value = a // name[3]: value = b // MakeBox_Compute_19_out_1 = Compute( "[$0,$1]", MakeBox_List_3_out_1, MakeBox_List_2_out_1 ) [instance: 19, cache: 1]; // // node Construct[2]: x = 468, y = 538, inputs = 4, label = Construct // input[2]: visible = 0 // input[3]: defaulting = 0, visible = 1, type = 1, value = 5 // input[4]: visible = 0 // MakeBox_Construct_2_out_1 = Construct( MakeBox_Compute_19_out_1, NULL, 5, NULL ) [instance: 2, cache: 1]; // // node Input[5]: x = 626, y = 594, inputs = 0, label = Input // parameter: position = 5, name = 'color', value = '"white"', descriptive = 0, description = 'color of the rectangle', required = 0, visible = 0 // MakeBox_Input_5_out_1 = color; // // node Color[5]: x = 464, y = 665, inputs = 5, label = Color // input[3]: visible = 0 // MakeBox_Color_5_out_1 = Color( MakeBox_Construct_2_out_1, MakeBox_Input_5_out_1, NULL, NULL, NULL ) [instance: 5, cache: 1]; // // node Output[1]: x = 486, y = 782, inputs = 1, label = Output // parameter: position = 1, name = 'box', value = ' ', descriptive = 0, description = 'A colored rectangle', required = 0, visible = 1 // box = MakeBox_Color_5_out_1; // network: end of macro body } MakeBox_Input_1_out_1 = NULL; MakeBox_Input_2_out_1 = NULL; MakeBox_Compute_9_out_1 = NULL; MakeBox_Compute_15_out_1 = NULL; MakeBox_Compute_14_out_1 = NULL; MakeBox_Compute_16_out_1 = NULL; MakeBox_Compute_17_out_1 = NULL; MakeBox_List_3_out_1 = NULL; MakeBox_Input_3_out_1 = NULL; MakeBox_Input_4_out_1 = NULL; MakeBox_Compute_11_out_1 = NULL; MakeBox_Compute_10_out_1 = NULL; MakeBox_Compute_12_out_1 = NULL; MakeBox_Compute_13_out_1 = NULL; MakeBox_Compute_18_out_1 = NULL; MakeBox_List_2_out_1 = NULL; MakeBox_Compute_19_out_1 = NULL; MakeBox_Construct_2_out_1 = NULL; MakeBox_Input_5_out_1 = NULL; MakeBox_Color_5_out_1 = NULL;