Display apparatus

Abstract: The shapes of a plurality of parts are displayed simultaneously on a display screen. When the shape of one of the parts is designated in a "hide" mode, the display of the shape of this part is inhibited and an icon is displayed in its place. When the icon is designated in a "show" mode, the icon is erased and the shape of the original member is re-displayed.

Description: BACKGROUND OF THE INVENTION This invention relates to a display apparatus and display control method used in, say, a CAD (computer aided design) system utilized when designing machines or the like. In a case where any desired part shape on the display of a CAD system capable of displaying a plurality of parts is desired to be hidden or removed from the display, one method used in the prior art is to designate the part name or group name of the part using a keyboard or mouse. Another method is to directly designate a displayed part on the display screen using a pointing device such as a mouse, thereby hiding the designated part shape. Conversely, in order to re-display the shape of a part already hidden, the part name or group name is designated by a mouse or keyboard, thereby causing the designated part to be shown again. In a case where machine design is performed using a CAD system, the design of the arrangement layout of the constituent parts or constituent units of the particular machine is carried out. At such time the designer takes into account the positional relationship of the surrounding parts as well as the positional relationship between units and the shapes of the parts and decides shape and arrangement in such a manner that the parts and units will not interfere with one another. In layout design for deciding shape and arrangement of a plurality of parts an a trial-and-error basis, the associated parts frequently are displayed or hidden (not displayed). When an instruction for displaying or hiding a figure representing a shape is made in the conventional display apparatus, it is required that the designer be aware of and use the identifiers of part names in order to specify the parts. This means that it is difficult for the designer to specify parts directly. As a consequence, designating whether figures should be displayed or erased in the conventional display apparatus is not easy. In other words, the user interface is not always satisfactory. In "Automatic Window Management Mode", IBM Technical Disclosure Bulletin, vol. 35, no. 4B, 1 September 1992, pages 331-332, XP000313970, a technique for software windowing systems to overcome difficulties with excessive, overlapping windows is described. In a specific mode all inactive windows are automatically reduced to icons being displayed approximately where the full-sized windows were. No icon is positioned such that it is covered by the currently active window. The currently active window is automatically minimized if the user moves a mouse pointer outside of the active window borders. This automatic minimization can be temporarily overridden be pressing a predefined key before moving the mouse pointer out of the window borders. On the other hand, a window is automatically restored if the mouse pointer is moved over a corresponding icon. As a result, the active window is the only window displayed on the screen at any one time. SUMMARY OF THE INVENTION An object of the present invention is to provide a display apparatus and display control method as outlined in the attached claims. Other features and advantages of the present invention will be apparent from the following description taken in conjunction with the accompanying drawings, in which like reference characters designate the same or similar parts throughout the figures thereof. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a flowchart illustrating an overview of a shape display method according to a first embodiment of the present invention; Fig. 2 is a block diagram illustrating the general construction of a CAD apparatus to which the shape display method of the first embodiment is applied; Figs. 3A through 3C are diagrams for describing the manner in which the progress of the operation of the invention shown in Fig. 1 is displayed on a display unit; Fig. 4A is a flowchart for describing the details of a step 3 shown in Fig. 1; Figs. 4B and 4C are diagrams for describing the principle of centroid calculation; Fig. 5 is a flowchart for describing the details of a method of displaying the shape of a hidden part or the like, in which state an icon is being displayed in the vicinity of a centroid; Figs. 6A ~ 6C are diagrams for describing the manner in which the progress of the operation indicated by the flowchart of Fig. 5 is displayed on a display unit; Fig. 7A is a flowchart for describing the details of a method of displaying the shape of hidden part or the like in a case where an icon corresponding to the shape of the hidden part or the like is not being displayed; Fig. 7B is a diagram for describing the principle of a technique for search for a hidden part using a circle; Fig. 7C is a diagram for describing the principle of a technique for search for a hidden part using a cylinder; Figs. 8A through 8C are diagrams for describing the manner in which the progress of the operation indicated by the flowchart of Fig. 7 is displayed on a display unit; Fig. 9A is a diagram showing a menu screen used in a second embodiment of the invention; Fig. 9B is a diagram showing the second embodiment in terms of software; Figs. 10 and 11 are diagrams illustrating a change in maps used in the second embodiment; Fig. 12 is a diagram showing the composition of a management table used in the second embodiment; and Figs. 13 through 16 are flowcharts illustrating a control procedure according to the second embodiment. DESCRIPTION OF THE PREFERRED EMBODIMENTS A CAD system to which the display control method of the invention is applied will now be described with reference to the accompanying drawings. <System Configuration> Fig. 2 is a block diagram illustrating the construction of a CAD system used in first and second embodiments to which the shape method of the present invention is applied. The CAD system includes a central processing unit 2, a display unit 4, an input unit 6, a memory device 8 and an information reading unit 10. These will now be described in detail. It is assumed that the CAD system displays the layout of the parts of a certain assembly. The CAD system can of course be applied also to a display of figures for other purposes. Here the figures displayed are referred to as "parts" for descriptive purposes. The central processing unit 2 executes a plurality of processing operations, described later, in addition to processing for displaying shapes. The display unit 4 displays two- and three-dimensional images corresponding to part shapes, icons which are pictorial characters or the like representing identifiers such as part names, and menus for designating whether parts are to be shown or hidden. The input unit 6, which has a keyboard and a pointing device such as a mouse, is used to enter information necessary for showing or hiding part shapes, to make menu selections and enter various commands. The memory device 8 stores a program for displaying shapes, described below, as well as two- and three-dimensional shape; data representing parts. The information reading unit 10 reads in the shape-display program from an external unit and stores the program in the memory device 8. In this embodiment, a program is read in a semiconductor RAM or in the memory device 8, which uses a magnetic disk or the like, from an external storage medium such as a magnetic tape or floppy disk through the information reading unit 10. Two- or three-dimensional shapes are displayed on the display unit 4, and data representing the two or three-dimensional shapes is stored in the memory device 8. The selection of menus necessary for displaying shapes as well as the selection of parts is performed by the input unit 6. The shape of a designated part or the like is hidden from view and replaced by an icon displayed on the display unit 4. Two- or three-dimensional shapes of hidden parts in the vicinity of parts or positions that have been designated are re-displayed on the display unit 4. Here, a two-dimensional shape is comprised of two-dimentional graphic elements such as points, straight line segments, circles, arcs, Spline curves, hyperbolas, parabolas, and series of straight line segments. The elements are expressed by two components (x, y) in the case of a Cartesian coordinate system. two-dimentional shape is displayed, hidden, removed, moved and/or copied in a group basis which comprises a set of two-dimentional graphic elements which are related to each other. Three-dimensional shape is comprised of three-dimentional graphic elements such as points, straight line segments, circles, arcs, Spline curves, hyperbolas, parabolas, series of straight line segments, three-dimensional planes, cylindrical surfaces, conical surfaces, spherical surfaces and other curved surfaces expressed parametrically. The elements are expressed by three components (x, y, z) in the case of a Cartesian coordinate system. The three-dimensional figure elements can be displayed and hidden and subjected to such operations as deletion, moving and copying in individual units or as single groups composed of a set of elements having cohesiveness, such as the shape of a part or the like. For descriptive purposes, one group shall be referred to as an "object". Displaying a three-dimensional shape means regarding one two-dimensional plane defined based upon point of sight as one projection screen, projecting the three-dimensional shape of interest on the projection screen employing the normal-line direction of this three-dimensional plane as the projection direction, and displaying the result on the display unit 4. In this embodiment, portions concealed at the time of projection are hidden (not displayed) upon taking the hierarchical relationship into account, and shading (shadowing) can - be applied upon referring to light-source information set in advance with regard to the plane as seen from the projection direction. Further, the display unit 4 displays two-dimensional shapes or three-dimensional shapes, which have been projected upon the projection screen, upon performing enlargement or reduction over a limited range. To this end, the central processing unit 2 clips the shapes displayed on the display unit from the shapes to be displayed and then displays the results on the display unit 4. The means for setting the above-mentioned projection screen, the means for projecting the three-dimensional shapes on the projection screen, the means for creating shapes to be displayed from what is projected upon the projection screen and from two-dimensional figures, and the means for displaying the created shapes on the display unit 4 are well-known in the art. This embodiment is provided with these means and the expression "display of shapes" mentioned below means that the embodiment is implemented using these means. <First Embodiment> Display by Substituting Icons Operation will be displayed using a flowchart indicating the general features of the shape display method of Fig. 1 and the explanatory views of Figs. 3A ~ 3C showing the course of the operation. Step 1 in Fig. 1 is for selecting an item "HIDE" from a menu in order not to display the shape of a part or the like. This is accomplished by using a mouse to designate a "HIDE" menu 22 displayed on the display unit 4 in Fig. 3A. It should be noted that a menu for hiding shapes can be assigned to a specific key on a keyboard or command box in advance. By pressing the key to which the menu is assigned, an operation for "hiding" a shape can be initiated. In a case where the menu for hiding a shape has been selected, "HIDE" in the menu 22 is highlighted, as shown in Fig. 3B, so that the operator will know that "HIDE" has been selected. Furthermore, at step 2, the central processing unit 2 prompts the operator to designate an "object" (i.e., "part") that is to be hidden from view. More specifically, at step 2 the operator uses the input unit 6 such as a mouse to specify a part or the like that is to be hidden from among parts displayed on the display unit 4. It is also possible to designate a part; to be hidden by entering the identifier of the part name using the input unit 6 such as the keyboard. When a part to be hidden from view is designated, the central processing unit 2 causes an icon (identifier) or the like to be displayed for the part designated to be hidden at step 3. More specifically, at step 3, the shape of a part designated to be hidden is erased from the display unit 4 and in its place an icon 24 of the kind shown in Fig. 3C is displayed on the display unit 4. In this embodiment, means for setting whether the icon 24 is to be shown or hidden is provided in advance. When a designation for not displaying a part or the like has been made in a case where a mode for hiding (not displaying) the icon 24 has been set, the shape of the part or the like designated to be hidden is erased from the display unit 4 and the substitution icon also is not displayed. In this embodiment, the arrangement is such that icons are displayed if no particular designation is made (this represents a default setting). Thus, according to this embodiment, the icon 24 such as a pictorial character is displayed in place of a shape that has been hidden from view. In a case where layout processing is performed, therefore, the operator is capable of readily ascertaining that a part has been hidden. As a result, layout processing is made more efficient and reliable. A part name or the like may be displayed instead of an icon. Furthermore, by executing step 2 again immediately after step 3, part shapes desired to be hidden one after another can be designated and then hidden from view. A flowchart illustrated in Fig. 4A is for describing the details of a method of setting the display position of an icon in a case where a part designated to be hidden at step 3 is displayed in the form of an icon. At step 11 in Fig. 4A, the centroid of the shape of a part designated to be hidden is calculated by the central processing unit 2, which refers to shape data stored in the memory device 8. As will be described later, an icon serving as an identifier is displayed at the position of the centroid. The reason for displaying the icon at the position of the centroid is that the centroid position is visually the most natural position for displaying the icon as far as the operator is concerned. The centroid position serving as the position at which the icon is displayed need not be calculated with an especially high degree of accuracy. The centroid position is calculated approximately by the method described below. A case in which the display unit 4 displays a two-dimensional shape will described with reference to Fig. 4B. If, in a case where the centroid position of a two-dimensional shape is calculated, the outer peripheral line of this shape is a closed loop, the outer peripheral line is approximated by a polygon (triangles ABE, BDE and BCD in Fig. 4B) and the centroid of this polygon is found. The method of determining the centroid of a polygon is well known. For example, any vertex of the polygon is adopted as a datum point, this polygon is divided into a plurality of triangles composed of the datum point and the starting and end points of each side of the polygon, and the centroid (G) of the overall polygon is obtained from the centroids (G i ) of these triangles. This is expressed as follows: where G and G i represent two-dimensional vectors and s i represents the area of each triangle. The subscript i indicates each triangle. In a case where the outer peripheral loop of a target shape is not a closed loop, the mid-point (P i ) of each element constructing the shape is found and the centroid (G) is obtained as follows from the length (d i ) of each of these elements: where G and P i represent two-dimensional vectors and the subscript i represents the element. In a case where the centroid position of a three-dimensional shape is calculated, the three-dimensional shape is approximated by a polyhedron (a tetrahedron ABED and a tetrahedron ABCD) and the centroid of the polyhedron is found. The centroid of a polyhedron is found through the following procedure: First, one appropriate vertex of the polyhedron is selected as a datum point. Next, the polyhedron is divided into a plurality of tetrahedrons which contain this datum point. The centroid (G i ) and volume (v i ) of each tetrahedron are obtained and the overall centroid (G) is obtained as follows: where G and G i represent three-dimensional vectors and v i the volume of each tetrahedron. The subscript i represents each tetrahedron. At step 12, the icon 24 is displayed as shown in Fig. 3C in the vicinity of a position on the display unit 4 corresponding to the centroid position calculated at step 11. By thus displaying the icon 24 near the centroid of a part to be hidden from view, with the icon serving as a substitute for the image of the part, the operator can readily grasp approximately where the hidden part is located. Resuming Display of Shapes ··· Example 1 Substituting the display of an icon for the display of a part is convenient when the part is to be designated to restore the display thereof when such restoration is desired. If there are at least two parts hidden from view, it is difficult with the prior-art technique to designate one of the parts when only display of this part is desired to be restored, the reason being that the shapes of these parts cannot be seen. With this embodiment, however, the icons of the parts are displayed, thereby making it easy to designate the desired part. The flowchart of Fig. 5 illustrates a control procedure for resuming display of the shape of a part in a case where an icon is being displayed instead of the shape of the part. At step 21 in Fig. 5, a "SHOW" item in the menu 22 being displayed on the display unit 4 is designated via the input unit 6, as shown in Fig. 6A. Figs. 6A through 6C are for describing the manner in which the progress of the operations shown in the flowchart of Fig. 5 is displayed on the display unit 4. It should be noted that a menu for instructing to display shapes can be assigned to a specific key on a keyboard or command box in advance. By pressing the key to which the menu is assigned, a menu for showing a shape can be selected. In a case where "SHOW" for displaying a shape has been selected in the menu 22, "SHOW" in the menu 22 on the display unit 4 is highlighted, as shown in Fig. 6B, so that the operator will know that "SHOW" has been selected. If the menu for showing shapes has been selected, then, at step 22, the central processing unit 2 prompts the operator to select the icon 24 corresponding to the part which the operator desires to show again. Next, at step 22, the operator uses the input unit 6 such as the mouse to designate the icon 24 being displayed on the display unit 4. Though only one icon 24 is being displayed in Figs. 6A and 6B, icons are displayed in conformity with the number of parts hidden from view. In this embodiment, identifiers such as part names of parts desired to be displayed can also be designated by the input unit 6 such as the keyboard or mouse. If an icon corresponding to a part shape desired to be shown is selected, the central processing unit 2 executes display of the shape of the part corresponding to the icon 24 selected at step 23. At step 23, the shape of a designated part or the like is caused to be displayed on the display unit 4, as indicated at 26 in Fig. 6C. The icon 24 vanishes from the display unit 4 at this time. In this embodiment, executing step 22 again immediately after step 23 makes it possible to successively designate icons 24 corresponding to part shapes desired to be shown and to show the shapes one after another. In this embodiment as described above, the shape of a part that has been hidden from view can be shown by designating a displayed icon. This makes it possible for the operator to operate the apparatus intuitively without being aware of identifiers such as part names. Resuming Display of Shapes ··· Example 2 By adopting the method described below, a hidden part can be displayed again by an intuitive operation even in a case where an icon serving as an identifier is not being displayed. The flowchart shown in Fig. 7A illustrates this control procedure At step 31 in Fig. 7A, a "SHOW" item in the menu 22 being displayed on the display unit 4 in Fig. 8A is designated by the operator via the input unit 6. Figs. 8A through 8C are for describing the manner in which the progress of the operations shown in the flowchart of Fig. 7A is displayed on the display unit 4. It should be noted that a menu for instructing to display shapes can be assigned to a specific key on a keyboard or command box in advance. By pressing the key to which the menu is assigned, a menu for showing a shape can be selected. In a case where the "SHOW" menu for showing a shape has been selected, "SHOW" in the menu 22 on display unit 4 is highlighted, as shown in Fig. 8B, so that the operator will know that "SHOW" has been selected. If "SHOW" has been selected, then, at step 32, the central processing unit 2 prompts the operator to designate the position of the part which the operation desired to display. More specifically, step 32 calls for the operator to use the input unit 6 such as the mouse to designate the proximity of a position at which the operator believes the shape of the hidden part desired to be displayed will appear. When this position is designated, the relevant information is stored in the memory device 8 and, at step 33, the central processing unit 2 causes the hidden part to be displayed in the vicinity of the position designated. That is, at step 33, the central processing unit 2 searches for a part in the vicinity of the position designated and finds a part, which is not currently being displayed, at a position closest to the designated position. The shape of the part thus found is caused to be displayed on the display unit 4, as indicated at 28 in Fig. 8C. When the above-mentioned search is being performed, reference is made to shape data and the like stored in the memory device 8. A method of searching for the shape of a hidden part in the vicinity of a designated position will now be described. In this embodiment, means for setting the range of the search are provided. These means set the limits of the search in advance and store them in the memory device 8. If no particular search range is set, predetermined default values are adopted as the search limits. A case in which a figure is a two-dimensional shape will be described on the basis of Fig. 7B. In the case of a two-dimensional figure, a search circle is set. The center of the circle is a designated position (this position is obtained at step 32), and the radius of the circle is the set search range. While referring to the shape and other data stored in the memory device 8, the central processing unit 2 judges whether there is a part intersected or surrounded by the search circle. If the result of the search is that there is a hidden part intersected or surrounded by the search circle, it is decided that the part is one to be re-displayed. If a plurality of hidden parts are intersected or surrounded by the search circle, then all of these shapes are caused to be displayed on the display unit 4. In the case of a three-dimensional shape, a search cylinder is set. As shown in Fig. 7C, the central axis of the cylinder is an axis extending in the projection direction from a designated position, and the radius of the cylinder is the set search range. While referring to the shape data and other data stored in the memory device 8, the central processing unit 2 judges whether there is a part intersected or surrounded by the search cylinder. If the result of the search is that there is a hidden part intersected or surrounded by the search cylinder, it is decided that the part is one to be re-displayed on the display unit 4. Theoretically, the search cylinder is one having an infinite length. If a plurality of hidden parts are intersected or surrounded by the search cylinder, then all of them are caused to be displayed on the display unit 4. In this embodiment, executing step 32 again immediately after step 33 makes it possible to successively designate the positions of shapes of parts desired to be shown and to show the shapes one after another. In accordance with the foregoing method, a part that has been hidden from view can be displayed by an intuitive operation even if an icon corresponding to the shape of this hidden part is not being displayed. <Second Embodiment> A second embodiment to which the display control method of the invention is applied will now be described. The second embodiment, which is premised on use of a pointing device such as a mouse, is characterized by the ease with which the "object" (namely the shape of a part) designated by the mouse is designated. However, the functions established to achieve this are essentially the same as those of the first embodiment. Menu Fig. 9A illustrates a menu set in the second embodiment. In the menu of Fig. 9A, a "SHOW" item is designated to display an object; a "HIDE" item is designated to inhibit display of an item (and to hide the identifier as well); and a "CHANGE" item is designated to change the display of an object to the display of an icon representing the object. More specifically, the "HIDE" menu of the first embodiment corresponds to the "HIDE" and "CHANGE" menus of the second embodiment. Software Composition The hardware of the second embodiment is essentially the same as that of the first embodiment (Fig. 2). The composition of the software programs used in the second embodiment is shown in Fig. 9B. These programs are provided in the memory device 8. Object Map The second embodiment is so adapted that the particular object located at a position designated by the operator using a mouse is detected by a map referred to as an "object map". The map is provided in a prescribed area (Fig. 9B) of the memory device 8 of Fig. 2 and is capable of being accessed by the processing unit 2. Fig. 10 illustrates an example of the map. The map has a space whose size is the same as that of the display screen of display unit 4 and a depth such that all identifiers of objects to be displayed can be specified. According to the second embodiment, "objects" comprising a set of figures constructing the shape of one part are assigned unique identification numbers in the order in which the objects are registered in the CAD program (Fig. 9B). For example, in order for the CAD program to be capable of registering a maximum of 1000 objects and painting these on the display screen, identification numbers having a maximum of 1000 values are assigned. In order to express 1000 values, ten bits (2 10 = 1024) will suffice. Accordingly, the "depth" of the object map is ten bits. If three objects of the kind shown in Fig. 3A are being painted by the CAD program, the projections of the individual objects become three closed areas 50, 51, 52, as illustrated in Fig. 20. The object 30 does not overlap the other objects but a part of the object 31 is concealed by a part of the object 32. A method of creating such a projection diagram is well known. If the object 30 is registered first, then the object 31 and finally the object 32, then identification numbers ("object IDs") "1", "2" and "3" are assigned to these objects in the order mentioned. Data "1" is written at all addresses corresponding to the area 50 in the object map, data "2" is written at all addresses corresponding to the area 51, and data "3" is written at all addresses corresponding to area 52. Position 35 in Fig. 10 is a position at which the object 31 and object 32 overlap each other. When the address of position 35 of the object map is read out, this address is "3" and therefore it is determined that 35 falls within the projection of the object of object ID = 3. Fig. 11 illustrates an object map representing the state of the display shown in Fig. 3C. Here the object 31 is displayed instead of the icon 24 corresponding to object 31. In other words, according to the second embodiment, an icon also is understood as being one of the objects and therefore the object ID = 4 is given for the icon 24 as well. Fig. 12 illustrates a table for managing the painting of objects. This table also is provided in a prescribed area (Fig. 9B) of the memory device shown in Fig. 2 and is capable of being accessed by the processing unit 2. The management table is provided with an entry for each object ID. In the example of Fig. 12, four entries are established for respective ones of the four objects shown in Fig. 11. Further, a flag D(i) (display/hide flag) in the management table indicates whether or not an object i is actually displayed. According to the example of Fig. 12 corresponding to Fig. 11, D of object ID = 2 is 0 [D(2) = 0] and therefore object 2 is not painted. A field GDP(i) stores a pointer which points to figure data of object i. The figure data is stored in a vector format. The vector data is composed of two-dimensional points, two-dimensional line segments, two-dimensional circles, two-dimensional circular arcs, two-dimensional spline curves, two-dimensional hyperbolas, two-dimensional parabolas, two-dimensional line-segment sequences, three-dimensional points, three-dimensional line segments, three-dimensional circles, three-dimensional circular arcs, three-dimensional spline curves, three-dimensional hyperbolas, three-dimensional parabolas and three-dimensional line-segment sequences. In the example of Fig. 12, shape data of object ID = 2 is stored at address "bbb". In actuality, the processing unit 2 paints the object based upon the vector data at this pointer in accordance with the paint program. A flag IDF(i) indicates whether shape data of an icon corresponding to an object i has already been generated. If an object for which shape data of an icon has not been created is replaced by display of an icon (i.e., if the menu item "CHANGE" has been designated), a icon generation program (see Fig. 9B) of the processing unit 2 reduces the image data of the object i, whereby the shape data of the icon is generated in the form of a bitmap. An icon can also be created by the operator. The storage location of the shape data of an icon created or already registered is stored at the pointer IDP(i). In the example of Fig. 12, it will be understood that shape data of the icons of objects whose object IDs are 1, 2 and 3 have been stored at addresses "ddd", "eee" and "fff", respectively. WP(i) stores the position of the centroid of object i. The method of deciding the centroid position is the same as described in the first embodiment. In the example of Fig. 12, it will be understood that the centroids of objects whose object IDs are 1, 2 and 3 are calculated as AD 1 , AD 2 and AD 3 , respectively. Centroid position is represented by the relative position of the object with respect to a prescribed datum point. The datum point is represented by absolute position in the display space of the display unit 4. In the design process, editing frequently is performed by moving or rotating an object. If the shape of the object is not altered, the centroid position will not move in relative terms even if the object is moved or rotated. Once centroid position has been calculated, unnecessary repetitive calculation of centroid position is prevented by setting the corresponding flag WPF. The flag IF(i) indicates whether the object is an ordinary object or an icon object. In the example of Fig. 12, the object of object ID = 3 is an ordinary object and not an icon [IF(3) = 0] and is painted by shape data designated by "ddd". This shape is painted with the centroid position [WP(3) = AD 3 ] serving as the center. This object is currently being displayed on the display unit [D(3) = 1]. The field CID(i) of the table in Fig. 12 is used only for icon objects and stores the object IDs corresponding to these icons. Further, the display position of an icon is the centroid position of the corresponding object, as mentioned above. Accordingly, in the example of Fig. 12, the object whose object ID is 4 is an icon corresponding to the object whose object ID is 2 [IF(4) = 0, CID = 2]. This object is painted at a centroid position (AD 2 ), which is the same as that of the object whose object ID is 2, by shape data designated by the pointer "eee". This object is currently being displayed on the display unit [D(4) = 1]. Control Procedure Fig. 13 is a flowchart illustrating the main routine of the control procedure according to the second embodiment. When a menu item is selected, the program proceeds to step 100, 200 or 300, the details of which will be described below with reference to Figs. 14, 15 and 16, respectively, depending upon the selection made. Specifically, the program proceeds to step 100 if the "CHANGE" menu item is selected, to step 200 if the "HIDE" menu item is selected and to step 300 if the "SHOW" menu item is selected. The control procedure of step 100, 200 or 300 essentially alters the table of Fig. 12 in conformity with the designation made with regard to the respective menu. A control procedure will now be described for a case in which the "CHANGE" menu item has been selected and an icon displayed in place of the shape display of the object. By way of example, assume that objects of the kind shown in Fig. 3A are being displayed on the display unit 4 and that a map of the kind depicted in Fig. 10 has been formed. In addition, assume that the operator clicks the object 31 to change this object to an icon. At step 102 in Fig. 14, the position clicked by the operator using the mouse is detected. This position is clicked by the operator using the mouse for the purpose of selecting the object whose display is to be changed over to that of an icon. If the address is (x,y), then the ID of the object map of the (x,y) address is read out. The object indicated by the value of the read map is the object for which the change to the icon is to be made. Accordingly, this ID is stored in a register i at step 104. Next, it is determined at step 106 whether the value in register i is 0 or not. When the answer is "YES, this means that the operator has used the mouse to click an area other than that occupied by the object. Processing returns to the main routine as a result. If a "NO" decision is rendered at step 106, this means that the operator has designated an ordinary object or an icon object. In such case it is determined at step 108 whether the object is an icon or not. When it is determined that the designated object is an icon [i.e., when IF(i) = 1 holds], this cannot be changed to an icon and therefore processing returns to the main routine. The case in which the designated object is determined to be an ordinary object at step 108 [i.e., IF(i) = 0] will now be described. In this case, the program proceeds to step 110. Here, in order to indicate that the object should be excluded from display, the corresponding flag D(i) is made 0. Next, the value of the flag IDF(i) is investigated at step 112 in order to determine whether an icon has already been set for the object. If an icon has not been set, then processing proceeds to step 114, where an object (bitmap) of an icon is created from the shape data of object i (i.e., object 31 in Fig. 10). More specifically, if i = 2 holds, a figure in a bitmap format is created based upon shape data at GDP(2) = bbb and the figure is then registered at the address "eee". Next, at step 116, an object ID for this icon is set. If "k" represents this object ID, the operation IF(k) = 1 is performed at step 118 in order to indicate that this object is an icon. This is followed by step 120, at which the operation GDP (k) = IDP(i) is performed in order to indicate that the shape data of the icon created at step 114 should be displayed for the icon object "k". The operation CID(k) = i is performed at step 122 in order to indicate that this icon is the icon of an object whose object ID is "i". The operation CID (i) = k is performed at step 124 in order to indicate that the icon of object k has been set for object i. Furthermore, the operation D(k) = 1 is performed at step 126 in order to indicate that this icon is to be displayed. In a case where it is found at step 112 that an icon has already been set (IDF = 1), it is unnecessary to create icon shape data and therefore processing proceeds to step 126 where the operation D(k) = 1 is performed to indicate that this icon should be displayed. Thus, in a case where objects of the kind shown in Fig. 3A (or Fig. 10) are displayed, only the object 31 in Fig. 10 is designated and replaced by an icon displayed as shown in Fig. 11, the object management table is updated so as to have the values shown in Fig. 12. When step 122 of Fig. 14 ends, the program returns to step 400 in Fig. 13. At this step the processing unit 2 causes the image to be painted while referring to the management table of Fig. 12. In painting the image, the display unit 2 paints all objects for which the flag D is 1 on the basis of the vector data that has been stored at pointer GDP(i). For example, when a designation is made to the effect that the object 31 in Fig. 10 is to be changed to an icon, D(2) = 0 holds and therefore the shape of object 31 is not displayed. Further, the icon of object 31 for which the object ID is 4 has its shape data generated based upon GDP(4) and is displayed in the vicinity of the centroid position WP(4) = AD 2 . Thus, a display of the kind 'shown in Fig. 3C is obtained and the object 31 is replaced by the icon. It should be noted that the projection map takes on the form shown in Fig. 11 in a case where the display of the shape of object 31 is turned off and the icon is displayed instead. That is, in Fig. 11 an area 54 (object 34) having the value "4" is generated in the area 51 (object 31) having the value "2". A case in which the menu item "HIDE" has been designated will now be described. In this case, step 202 of Fig. 15 is executed following step 200. At step 202 the operator is prompted to designate an object whose display is to be turned off. This operation delivers the object ID to the processing unit 2, which stores the object ID in the register i (step 204). Whether the operator has designated an object is checked at step 206. The corresponding flag D(i) is turned off at step 208, whereupon the designated object is not displayed by the paint routine of step 400. Data representing the projection of the object 31 not displayed and data representing the projection of the icon 34 are stored in the projection map besides the projections of the displayed objects 30 and 32, as shown in Fig. 11. If the icon 34 has been designated, the flag D(4) corresponding to the icon 34 is made 0 and the icon vanishes. A case in which the "SHOW" menu item has been designated will now be described. In this case, step 302 of Fig. 16 is executed following step 300. At step 302 the operator is prompted to designate an object whose display is to be resumed. This operation delivers the object ID to the processing unit 2 (step 204). The ID is stored in the register i (step 304). When the operator designates the "SHOW" menu item, an ordinary object and icon are merely being displayed. Whether the operator has designated an object is checked at step 306. It is then determined at step 308 whether the designated object i is an icon or not. If the designated object i is an icon, the corresponding flag D(i) is made 0 at step 312 in order to erase the display of the icon i. At steps 314 and 316 the flag D corresponding to the object number pointed out by the register CID(i) is made 1, thereby resuming the display of the object corresponding to the designated icon. In a case where an object that is not an icon has been designated at step 308, the flag D(i) corresponding to this object is made 1 at step 320 to attempt to resume the display of the object i. Steps 322 ~ 326 perform control in such a manner that an object and the icon corresponding to this object will not be displayed simultaneously. The object ID of the corresponding icon is searched for at step 322 [k = CID(i)]. If this icon is being displayed [D(k) = 1], then the operation D(k) = 0 is performed at step 326 in order to erase this display. Thus, when an icon has been designated, display of the original object is resumed. When an object that is not an icon has been designated, display of this object is resumed and the corresponding icon is erased. The shapes of a plurality of parts are displayed simultaneously on a display screen. When the shape of one of the parts is designated in a "hide" mode, the display of the shape of this part is inhibited and an icon is displayed in its place. When the icon is designated in a "show" mode, the icon is erased and the shape of the original member is re-displayed.

Claims: A display apparatus for a CAD-system having display means ( 4 ) for simultaneously displaying figures representing shapes of respective ones of a plurality of members, comprising: first designating means ( 6 ) for designating a specific member among the plurality of members; and control means ( 2 ), in response to said first designating means ( 6 ), for controlling the display means ( 4 ) to display an identifier which visually identifies the member designated by said first designating means ( 6 ) on said display means ( 4 ) in place of a shape of the designated member. The apparatus according to claim 1, wherein said identifier is a figure suggestive of the shape of a corresponding member, the shape having a size smaller than a display image of the shape of said corresponding member. The apparatus according to claim 2, further comprising memory means ( 8 ) in which shapes of identifiers corresponding to respective ones of the plurality of members are stored in advance. The apparatus according to claim 2, wherein said control means ( 2 ) has means for reducing images of the shapes of the plurality of members and generating the reduced images as the identifiers. The apparatus according to claim 1, wherein said control means ( 2 ) controls said display means ( 4 ) to display an image of an identifier corresponding to the designated member in the vicinity of a centroid position of the displayed shape of the designated member. The apparatus according to claim 5, wherein said control means ( 2 ) includes: memory means for storing, for each individual member, relative coordinates of centroid positions of the corresponding shapes; and converting means responsive to said first designating means ( 6 ) for converting the centroid position of the displayed shape of the designated member from a relative position read from said memory means to absolute coordinates on a display screen of the display means ( 4 ); said identifier being displayed in the vicinity of the centroid position obtained by said converting means. The apparatus according to claim 5, wherein said control means ( 2 ) has arithmetic means responsive to said first designating means ( 6 ) for calculating the centroid position of the displayed shape of the designated member on the basis of absolute coordinates on a display screen of the display means ( 4 ); said identifier being displayed in the vicinity of the centroid position calculated by said arithmetic means. The apparatus according to claim 1, further comprising first instructing means operable by an operator in order to set the display apparatus to a first mode in which said control means ( 2 ) is operable. The apparatus according to claim 1, further comprising: first instructing means for instructing, when display of a member has been replaced by display of the corresponding identifier, to hide display of the identifier and display the shape figure of the original member; and second designating means responsive to an instruction from said first instructing means for designating an identifier on a display screen of the display means ( 4 ); wherein said control means ( 2 ), in response to said second designating means, controls said display means ( 4 ) to hide the designated identifier and to display the shape figure of the original member. The apparatus according to claim 1, wherein said first designating means ( 6 ) is a pointing device for designating any position on a display screen. A display apparatus for a CAD-system having display means ( 4 ) for simultaneously displaying figures representing shapes of respective ones of a plurality of members, wherein a shape figure of any member displayed on the display means ( 4 ) is capable of being hidden from view, comprising: mode setting means ( 22 ) for setting the display apparatus to a mode in which the shape of a hidden member is caused to be re-displayed; designating means ( 6 ) for allowing an operator to designate any position on a display screen of the display means ( 4 ); and control means ( 2 ) for controlling the display means ( 4 ) to display a shape figure of a hidden member situated in the vicinity of the position designated by the operator using said designating means ( 6 ). The apparatus according to claim 11, further comprising searching means ( 2 ) for searching for a hidden member over a prescribed range based upon the position designated by the operator using said designating means ( 6 ). The apparatus according to claim 12, wherein said searching means ( 2 ) sets the range searched to a circular shape in a case where a displayed figure is a two-dimensional figure. The apparatus according to claim 12, wherein said searching means ( 2 ) sets the range searched to a cylindrical shape in a case where a displayed figure is a three-dimensional figure. A control method for a CAD-system for controlling display means ( 4 ) which simultaneously displays figures representing shapes of respective ones of a plurality of members, comprising the steps of: designating (STEP 2; 102) a specific member among the plurality of members; and controlling (STEP 3; 400) the display means (4) to display an identifier which visually identifies the designated member on said display means ( 4 ) in place of a shape of the designated member. The method according to claim 15, further comprising a step of previously storing shapes of identifiers corresponding to respective ones of the plurality of members. The method according to claim 15, wherein said control step has a step of reducing images of the shapes of identifiers corresponding to respective ones of the plurality of members and generating the reduced images as said identifiers. The method according to claim 15, wherein said control step displays (STEP 12) an image of an identifier corresponding to the designated member in the vicinity of a centroid position of the displayed shape of the designated member. The method according to claim 15, wherein said designating step is executed after the display means (4) is set (STEP 1; 40) to a prescribed mode. A method for a CAD-system for simultaneously displaying figures representing shapes of respective ones of a plurality of members and controlling display means ( 4 ) capable of hiding from view a shape figure of any displayed member, comprising the steps of: setting a mode in which the shape of a hidden member is caused to be re-displayed; allowing an operator to designate any position on a display screen of the display means ( 4 ); and controlling the display means ( 4 ) to display a shape figure of a hidden member situated in the vicinity of the position designated by the operator. The method according to claim 20, further comprising a step of searching for a hidden member over a prescribed range based upon the position designated by the operator. The method according to claim 21, wherein said searching step sets the range searched to a circular shape in a case where a displayed figure is a two-dimensional figure. The method according to claim 21, wherein said searching step sets the range searched to a cylindrical shape in a case where a displayed figure is a three-dimensional figure.

Inventors: SHIMIZU KAZUMA, SHIMIZU, KAZUMA, SHIMIZU, KAZUMA, C/O CANON K. K.
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1994
Main classification: G06F3
IPC codes: G06F3, G06F17, G06T17