Display method, device, storage medium and electronic device for structural drawings
By determining the target drawing object and its hierarchical relationship in the display of structural drawings and calculating reasonable display positions and dimensions, the problem of low display efficiency of structural drawings in the prior art is solved, and a stable and standardized display effect is achieved.
Patent Information
- Application Number
- CN202411454956.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-17
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2044-10-17
AI Technical Summary
In the prior art, the display efficiency of structural drawings is low, resulting in unstable display effect and the inability to display text and components in a suitable size at the same time.
By determining the hierarchical relationship of multiple target drawing objects and their object in the structural drawing, responding to the display instructions, calculating and determining the target display position and size, ensuring that the display proportion of the target drawing objects is reasonable, and then drawing the target object icon.
It realizes stable and standardized display of structural drawings, improves display efficiency, and ensures that text and components can be displayed at the same time in a suitable size.
Smart Images

Figure CN119047014B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image display, and in particular, to a display method, device, storage medium and electronic device for structural drawings. Background Art
[0002] The existing method of drawing components displays the structural drawings in a fixed drawing area. When the drawings and text are scaled at the same time, it may be difficult to display due to the small text and different thicknesses of steel bars. That is, the text and components cannot be displayed at the same time in appropriate sizes, and the display effect is unstable and non-standard. Therefore, the existing related technologies have the technical problems of low display efficiency and poor display effect of structural drawings.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present application provide a method, device, storage medium and electronic device for displaying structural drawings, so as to at least solve the technical problem of low display efficiency of structural drawings in the related art.
[0005] According to one aspect of an embodiment of the present application, a method for displaying a structural drawing is provided, comprising: determining a plurality of target drawing objects and an object hierarchical relationship between the plurality of target drawing objects according to a drawing object set included in the structural drawing, wherein the target drawing object is used to indicate key component information in the structural drawing; in response to a zoom-out display instruction for a target area, determining in sequence target display positions corresponding to the plurality of target drawing objects in a reference area and target display sizes corresponding to the plurality of target drawing objects according to the object hierarchical relationship between the plurality of target drawing objects, wherein a first reduction ratio indicated by a relative positional relationship between the respective target display positions of the plurality of target drawing objects is greater than a second reduction ratio between an original display size of the target drawing object and the target display size; and drawing respective target object icons at respective target display positions corresponding to the plurality of target drawing objects to obtain target structural drawings.
[0006] According to another aspect of an embodiment of the present application, a display device for a structural drawing is also provided, comprising: a first determination unit, determining a plurality of target drawing objects and an object hierarchical relationship between the plurality of target drawing objects according to a drawing object set included in the structural drawing, wherein the target drawing object is used to indicate key component information in the structural drawing; a second determination unit, in response to a zoom-out display instruction for a target area, determining in sequence the target display positions corresponding to the plurality of target drawing objects in a reference area and the target display sizes corresponding to the plurality of target drawing objects according to the object hierarchical relationship between the plurality of target drawing objects, wherein a first reduction ratio indicated by a relative positional relationship between the target display positions of the plurality of target drawing objects is greater than a second reduction ratio between an original display size of the target drawing object and the target display size; and a display unit, drawing the target object icons corresponding to the plurality of target drawing objects at the target display positions corresponding to the plurality of target drawing objects to obtain the target structural drawing.
[0007] Optionally, the display device of the above-mentioned structural drawing also includes: a third determination unit, which is used to determine, from the above-mentioned reference area, a first reference sub-area for displaying the above-mentioned text object when a text object is included in the multiple target drawing objects; determine the display area other than the above-mentioned first reference sub-area in the above-mentioned reference area as a second reference sub-area for displaying the structural graphics in the above-mentioned structural drawing, wherein the above-mentioned structural graphics include multiple component objects, and the multiple target drawing objects include target component objects; in the above-mentioned second reference sub-area, according to the above-mentioned object hierarchy relationship between the multiple target drawing objects, the above-mentioned target display positions corresponding to the multiple target drawing objects in the above-mentioned second reference sub-area are determined in sequence.
[0008] Optionally, the third determination unit includes: a first display unit, used to display the text object in the first reference sub-area according to a first target size, wherein a text reduction ratio between the original display size of the text object and the first target size is smaller than the first reduction ratio; in the second reference sub-area, at the target display positions corresponding to each of the target drawing objects, displaying the target object icons corresponding to each of the target drawing objects in sequence, wherein an icon reduction ratio between the second target size of the target object icon and the original display size of the target drawing object in the target area is smaller than the first reduction ratio.
[0009] Optionally, the third determination unit further includes: a fourth determination unit, configured to determine, according to the first reduction ratio, a target display area of the structural graphic in the second reference sub-area; determine a first reference point in the target display area, wherein the first reference point is used to determine a first display sub-area corresponding to each of the target drawing objects in the first object level in the target graphic; and, in a case where the plurality of target drawing objects include a target drawing object of a second object level associated with the first display sub-area, determine a second reference point in the first display sub-area, wherein the second reference point is used to determine a second display sub-area corresponding to each of the target drawing objects in the second object level in the target graphic.
[0010] Optionally, the first determination unit includes: a fifth determination unit, used to determine multiple target drawing objects from a drawing object set included in the structural drawing according to the object type indicated by preset display information; in response to determining at least one target object type from multiple object types, determine multiple target drawing objects matching at least one target object type from a drawing object set included in the structural drawing.
[0011] Optionally, the fifth determination unit includes: a sixth determination unit, used to determine the text object included in the structural drawing as the target drawing object according to the preset display information; determine the connection component object included in the structural drawing as the target drawing object according to the preset display information; determine the linear component object included in the structural drawing as the target drawing object according to the preset display information.
[0012] Optionally, the display unit includes a second display unit, which is used to respond to the object display control operation on the target structure drawing, determine at least one reference drawing object matching the target object type from the target structure drawing according to the target object type indicated by the object display control operation; adjust the scaling ratio of the reference object icon corresponding to at least one of the reference drawing objects in the target structure drawing according to the scaling parameter indicated by the display control operation; respond to the drawing display control operation on the target structure drawing, sequentially determine the target display positions corresponding to the multiple target drawing objects in the display control area and the target display sizes corresponding to the multiple target drawing objects according to the object hierarchy relationship between the multiple target drawing objects; draw the corresponding target object icons at the target display positions corresponding to the multiple target drawing objects to obtain the updated target structure drawing.
[0013] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned method for displaying a structural drawing when running.
[0014] According to another aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the display method of the structural drawing as described above.
[0015] According to another aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for displaying the structural drawings through the computer program.
[0016] In an embodiment of the present application, multiple target drawing objects and an object hierarchical relationship between the multiple target drawing objects are determined based on a drawing object set included in a structural drawing, wherein the target drawing object is used to indicate key component information in the structural drawing; in response to a zoom-out display instruction for a target area, target display positions corresponding to the multiple target drawing objects in a reference area and target display sizes corresponding to the multiple target drawing objects are determined in sequence according to the object hierarchical relationship between the multiple target drawing objects, wherein a first reduction ratio indicated by a relative positional relationship between the target display positions of the multiple target drawing objects is greater than a second reduction ratio between an original display size of the target drawing object and the target display size; at the target display positions corresponding to the multiple target drawing objects, respective target object icons are drawn to obtain target structural drawings.
[0017] By utilizing the above-mentioned display method of the structural drawing, a plurality of target drawing objects and the object hierarchical relationship between the plurality of target drawing objects are determined according to the drawing object set included in the structural drawing, and then in response to the zoom-out display instruction for the target area, the target display positions corresponding to the plurality of target drawing objects in the reference area and the target display sizes corresponding to the plurality of target drawing objects are sequentially determined according to the object hierarchical relationship between the plurality of target drawing objects, wherein a first reduction ratio indicated by the relative positional relationship between the target display positions of the plurality of target drawing objects is greater than a second reduction ratio between the original display size and the target display size of the target drawing object, thereby achieving the technical effect of drawing the target object icons corresponding to the plurality of target drawing objects at the target display positions corresponding to the plurality of target drawing objects, obtaining the target structural drawing, and improving the display efficiency of the structural drawing, thereby solving the technical problem of low display efficiency and poor display effect of the structural drawing in the related art. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0020] Figure 1 It is a schematic diagram of the hardware environment of a method for displaying a structural drawing according to an embodiment of the present application;
[0021] Figure 2 is a flow chart of an optional method for displaying a structural drawing according to an embodiment of the present application;
[0022] Figure 3 is a schematic diagram of an optional method for displaying a structural drawing according to an embodiment of the present application;
[0023] Figure 4 is a schematic diagram of another optional method for displaying a structural drawing according to an embodiment of the present application;
[0024] Figure 5 is a schematic diagram of another optional method for displaying a structural drawing according to an embodiment of the present application;
[0025] Figure 6 is a schematic diagram of another optional method for displaying a structural drawing according to an embodiment of the present application;
[0026] Figure 7 is a flowchart of another optional method for displaying a structural drawing according to an embodiment of the present application;
[0027] Figure 8 is a schematic diagram of another optional method for displaying a structural drawing according to an embodiment of the present application;
[0028] Fig. 9 is a schematic diagram of another optional method for displaying a structural drawing according to an embodiment of the present application;
[0029] Fig.10 is a schematic diagram of another optional method for displaying a structural drawing according to an embodiment of the present application;
[0030] Fig.11 is a schematic diagram of another optional method for displaying a structural drawing according to an embodiment of the present application;
[0031] Fig.12 is a schematic diagram of an optional display device of a structural drawing according to an embodiment of the present invention;
[0032] Fig.13 2 is a schematic diagram of components of an optional electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0033] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0035] According to one aspect of an embodiment of the present application, a method for displaying a structural drawing is provided. Optionally, as an optional implementation, the method for displaying a structural drawing can be applied to, but is not limited to, Figure 1 The structure drawing display system shown in FIG. 1 is composed of a terminal device 102, a server 104 and a network 110. Figure 1 As shown, the terminal device 102 is connected and communicated with the server 104 through the network 110. The above network may include but is not limited to: wired network, wireless network, wherein the wired network includes: local area network, metropolitan area network and wide area network, and the wireless network includes: Bluetooth, WIFI and other networks that realize wireless communication. The above terminal device may include but is not limited to at least one of the following: mobile phone (such as Android mobile phone, iOS mobile phone, etc.), laptop computer, tablet computer, PDA, MID (Mobile Internet Devices, mobile Internet device), PAD, desktop computer, smart TV, car-mounted device, etc. The above terminal device 102 may include but is not limited to a display, a processor and a memory, and the above server 104 may be a single server, or a server cluster composed of multiple servers, or a cloud server. The above server includes a database and a processing engine.
[0036] The specific process can be as follows:
[0037] Step S102, the terminal device 102 sends a display request of the structural drawing to the server 104 through the network 110; the display request of the structural drawing can trigger the server to obtain at least one file to be displayed, such as a PDF file, or the file conversion request carries a drawing file to be displayed, so that the server can obtain the file to be displayed, etc. The specific way in which the server obtains the file is not limited in this application;
[0038] Steps S104-S108, determining a plurality of target drawing objects and an object hierarchical relationship between the plurality of target drawing objects according to a drawing object set included in the structural drawing, wherein the target drawing object is used to indicate key component information in the structural drawing; in response to a zoom-out display instruction for a target area, determining target display positions corresponding to the plurality of target drawing objects in the reference area and target display sizes corresponding to the plurality of target drawing objects in sequence according to the object hierarchical relationship between the plurality of target drawing objects, wherein a first reduction ratio indicated by a relative positional relationship between the respective target display positions of the plurality of target drawing objects is greater than a second reduction ratio between an original display size of the target drawing object and the target display size; drawing respective target object icons at respective target display positions corresponding to the plurality of target drawing objects to obtain a target structural drawing;
[0039] In step S110 , the server 104 sends the drawing display result to the terminal device 102 via the network 110 .
[0040] remove Figure 1 In addition to the examples shown, the above steps can be completed independently by the client or the server, or by the client and the server working together, such as the terminal device 102 executing the above steps S104, thereby reducing the processing pressure of the server 104. The terminal device 102 includes but is not limited to a handheld device (such as a mobile phone), a laptop computer, a desktop computer, a vehicle-mounted device, etc., and the present application does not limit the specific implementation of the terminal device 102.
[0041] As an optional implementation, Figure 2 As shown, the display methods of structural drawings include:
[0042] S202, determining a plurality of target drawing objects and an object hierarchical relationship between the plurality of target drawing objects according to a drawing object set included in the structural drawing, wherein the target drawing object is used to indicate key component information in the structural drawing;
[0043] S204, in response to the instruction to reduce the display of the target area, sequentially determining target display positions corresponding to the multiple target drawing objects in the reference area and target display sizes corresponding to the multiple target drawing objects according to the object hierarchical relationship between the multiple target drawing objects, wherein a first reduction ratio indicated by a relative positional relationship between the target display positions of the multiple target drawing objects is greater than a second reduction ratio between an original display size of the target drawing object and the target display size;
[0044] S206: Draw the target object icons corresponding to the target display positions of the target drawing objects to obtain the target structure drawing.
[0045] As an optional implementation, in step S202, multiple target drawing objects and the object hierarchical relationship between the multiple target drawing objects are determined according to the drawing object set included in the structural drawing. It should be noted that the target drawing object is used to indicate key component information in the structural drawing.
[0046] The above-mentioned drawing object set can be divided according to the type of component, the size of the component, the layer where the component is located, etc. The above-mentioned target drawing object can be at least one key component information in the above-mentioned drawing object set. For example, in the drawing object set with connection function, bearings, joints, flanges, fasteners, expansion joints, etc. are included, the bearings and expansion joints can be determined as the target drawing objects, and the corresponding key component information is the inner diameter of the bearing is 5mm, the outer diameter is 1cm, and the total length of the expansion joint is 5cm; the above-mentioned hierarchical relationship includes but is not limited to the layer position relationship of the drawing object, the reference relationship such as Figure 3 As shown (a component object B can be inserted into another component A to form a master-slave relationship), etc., this is only an example and is not specifically limited.
[0047] It can be understood that, in response to the instruction to reduce the display of the target area, step S204 sequentially determines the target display positions corresponding to the multiple target drawing objects in the reference area and the target display sizes corresponding to the multiple target drawing objects according to the object hierarchy relationship between the multiple target drawing objects;
[0048] The target area may be, but is not limited to, an area in the target layer that meets the target size, an area that meets the target condition, etc. (for example, target component A and target component B exist in target area 1, or target component A and target component B exist in target area 2 and are connected in an elastic manner, etc.); the display instruction may be, but is not limited to, in the form of command line input, menu bar selection, specific dialog box operation, gesture input, etc., and the display instruction may include information such as display time, display position, and display size; the reference area and the target display position in the reference area may be display areas selected manually or calculated by a machine, for example, the maximum displayable area in the calculated layer is used as the reference area, and the center position is determined as the target display position;
[0049] According to the object hierarchical relationship among the multiple target drawing objects, the target display positions corresponding to the multiple target drawing objects in the reference area are determined in sequence. It can be understood that, for example, the hierarchical levels of component A, component B, and component C are level 1, level 2, and level 3 in sequence, and the target display positions corresponding to the multiple target drawing objects in the reference area can be determined in sequence or in a preset hierarchical priority relationship;
[0050] It should be noted that the first reduction ratio indicated by the relative position relationship between the target display positions of the multiple target drawing objects, taking the line component as an example, the first reduction ratio display effect is as follows: Figure 4 As shown in the figure on the right, the second reduction ratio is larger than the original display size of the target drawing object and the target display size. The second reduction ratio display effect is as follows Figure 4 As shown in the left figure, the larger the reduction ratio, the greater the reduction degree of the graphic. For example, the drawing information indicates that the interval between component A and component B is 1m. After the reduction is 100 times, the interval between component A and component B is 1cm. The first reduction ratio is 100 times. The display size on the original drawing is 10cm between components. The target display size is 1cm between components, that is, the second reduction ratio is 10 times. This is only an example.
[0051] Then, in step S206, at the target display positions corresponding to the multiple target drawing objects, the corresponding target object icons are drawn to obtain the target structure drawing. The target object icons may be, but are not limited to, component labels, component IDs, styles of different component sizes, etc.;
[0052] By determining multiple target drawing objects and the object hierarchical relationship between the multiple target drawing objects according to the drawing object set included in the structural drawing, and then responding to the zoom-out display instruction of the target area, the target display positions corresponding to the multiple target drawing objects in the reference area and the target display sizes corresponding to the multiple target drawing objects are sequentially determined according to the object hierarchical relationship between the multiple target drawing objects, wherein a first reduction ratio indicated by the relative position relationship between the target display positions of the multiple target drawing objects is greater than a second reduction ratio between the original display size and the target display size of the target drawing object, thereby achieving the technical effect of drawing the target object icons corresponding to the multiple target drawing objects at the target display positions corresponding to the multiple target drawing objects, obtaining the target structural drawing, and improving the display efficiency of the structural drawing, thereby solving the technical problem of low display efficiency of the structural drawing in the related art.
[0053] As an optional solution, in response to the instruction to reduce the display of the target area, the target display positions corresponding to the multiple target drawing objects in the reference area are sequentially determined according to the object hierarchy relationship between the multiple target drawing objects, including:
[0054] S1, when a plurality of target drawing objects include a text object, determining a first reference sub-region for displaying the text object from a reference region;
[0055] S2, determining a display area other than the first reference sub-area in the reference area as a second reference sub-area for displaying a structural graphic in a structural drawing, wherein the structural graphic includes a plurality of component objects, and the plurality of target drawing objects include a target component object;
[0056] S3, in the second reference sub-region, according to the object hierarchy relationship between the multiple target drawing objects, sequentially determining the target display positions corresponding to the multiple target drawing objects in the second reference sub-region.
[0057] Optionally, in this embodiment, in step S1, when the plurality of target drawing objects include a text object, a first reference sub-region for displaying the text object is determined from the reference region; Figure 5 As shown, the left area is the first reference sub-area, which is used to display text objects;
[0058] Further, in step S2, the display area in the reference area other than the first reference sub-area is determined as a second reference sub-area for displaying the structure graphics in the structure drawing, such as Figure 5 As shown, the right area is the second reference sub-area, which is used to display the structural graphics in the structural drawing. The structural graphics can be graphics at a specific position in the structural drawing, which is not limited here. It should be noted that the structural graphics include multiple component objects, and the multiple target drawing objects include target component objects. The target component objects can be components with specific functions and meeting target requirements in the current step;
[0059] Then in step S3, in the second reference sub-area, the target display positions corresponding to the multiple target drawing objects in the second reference sub-area are determined in sequence according to the object hierarchy relationship between the multiple target drawing objects. As an optional implementation, the calibration point of the component can be determined, and the position indicated by the calibration point is used as the target display position corresponding to the target drawing object in the second reference sub-area.
[0060] Through the embodiments provided by the present application, when a text object is included in a plurality of target drawing objects, a first reference sub-area for displaying the text object is determined from the reference area; a display area other than the first reference sub-area in the reference area is determined as a second reference sub-area for displaying a structural graphic in a structural drawing, wherein the structural graphic includes a plurality of component objects, and the plurality of target drawing objects include a target component object; in the second reference sub-area, target display positions corresponding to the plurality of target drawing objects in the second reference sub-area are determined in sequence according to the object hierarchy relationship between the plurality of target drawing objects, and the display positions of the component objects in each hierarchy are determined in sequence, thereby achieving a technical effect of improving the display efficiency of the structural drawings.
[0061] As an optional solution, the above-mentioned step of drawing corresponding target object icons at the target display positions corresponding to the multiple target drawing objects to obtain the target structure drawing includes:
[0062] S1, displaying a text object in a first reference sub-region according to a first target size, wherein a text reduction ratio between an original display size of the text object and the first target size is smaller than the first reduction ratio;
[0063] S2. In the second reference sub-area, at the target display positions corresponding to the multiple target drawing objects, target object icons corresponding to the multiple target drawing objects are displayed in sequence, wherein an icon reduction ratio between a second target size of the target object icon and an original display size of the target drawing object in the target area is smaller than the first reduction ratio.
[0064] In an optional implementation, in the above step S1, in the first reference sub-area, the text object is displayed according to the first target size. It should be noted that the text reduction ratio between the original display size of the text object and the first target size, the above first target size may be a size manually determined according to the display screen size, which is smaller than the first reduction ratio; for example, the above first reduction ratio may be reduced by 100 times, and the above first target size may be 10% of the original size, that is, reduced by 10 times;
[0065] In the above step S2, in the second reference sub-area, at the target display positions corresponding to the multiple target drawing objects, the target object icons corresponding to the multiple target drawing objects are displayed in sequence. It should be noted that the icon reduction ratio between the second target size of the target object icon and the original display size of the target drawing object in the target area is smaller than the first reduction ratio. The above second target size may be a size that has a correlation with the first target size. For example, in the case where a text object needs to be displayed at the endpoint, the second target size may be smaller than the first target size corresponding to the text object. The method for determining the size of the second target size is not specifically limited herein.
[0066] Through the embodiments provided by the present application, in the first reference sub-area, a text object is displayed according to a first target size, wherein a text reduction ratio between an original display size of the text object and the first target size is smaller than the first reduction ratio; in the second reference sub-area, at target display positions corresponding to each of the multiple target drawing objects, target object icons corresponding to each of the multiple target drawing objects are displayed in sequence, wherein an icon reduction ratio between a second target size of the target object icon and an original display size of the target drawing object in the target area is smaller than the first reduction ratio, and different display ratios correspond to different levels, thereby achieving a technical effect of improving the display efficiency of structural drawings.
[0067] As an optional solution, in the second reference sub-region, according to the object hierarchy relationship between the multiple target drawing objects, the target display positions corresponding to the multiple target drawing objects in the second reference sub-region are sequentially determined, including:
[0068] S1, determining a target display area of the structure pattern in the second reference sub-area according to a first reduction ratio;
[0069] S2, determining a first reference point in the target display area, wherein the first reference point is used to determine a first display sub-area corresponding to each target drawing object in a first object level in the target graphic;
[0070] S3, in a case where multiple target drawing objects include a target drawing object of a second object level associated with a first display sub-area, determining a second reference point in the first display sub-area, wherein the second reference point is used to determine the second display sub-area corresponding to each target drawing object in the second object level in the target graphic.
[0071] As an optional implementation, in step S1, according to the first reduction ratio, the target display area of the structure pattern in the second reference sub-area is determined; for example, assuming that the first reduction ratio is 50 times, the position interval between component A and component B is 5 cm, so a complete circular area with a diameter of 5 cm in the second reference sub-area can be determined as the target display area, specifically, the complete circular area whose center is closest to the center point of the second reference sub-area can be selected as the target display area;
[0072] Further, in step S2, a first reference point in the target display area is determined. For example, the center point of the target display area or a point on the boundary of the target display area may be selected as the first reference point. It should be noted that the first reference point is used to determine the first display sub-area corresponding to each target drawing object in the first object level in the target graphic. The first object level may be the object level corresponding to the component with the largest size or the layer with the largest number of components. Then, a circular area with the first reference point as the center and the target length as the radius may be the first sub-display area. This is only an example and is not specifically limited.
[0073] As an optional implementation, in the above step S3, when the multiple target drawing objects include a target drawing object of the second object level associated with the first display sub-area, a second reference point in the first display sub-area is determined. It should be noted that the second reference point is used to determine the second display sub-area corresponding to each target drawing object in the second object level in the target graphic;
[0074] For example, when component A in the first sub-display area and component B in the second object level have a vertical position relationship, the intersection position of the extended lines between the components in the first sub-display area is determined as the second reference point; further, a circular area with the second reference point as the center can be determined as the second display sub-area, and the above process can be repeated to obtain display sub-areas corresponding to multiple levels;
[0075] Through the embodiments provided by the present application, a target display area of the structural graphic in the second reference sub-area is determined according to a first reduction ratio; a first reference point in the target display area is determined, wherein the first reference point is used to determine a first display sub-area corresponding to each target drawing object in a first object level in the target graphic; in a case where multiple target drawing objects include a target drawing object of a second object level associated with the first display sub-area, a second reference point in the first display sub-area is determined, wherein the second reference point is used to determine a second display sub-area corresponding to each target drawing object in a second object level in the target graphic, thereby improving the display efficiency of the structural drawings and the accuracy of the component positions.
[0076] As an optional solution, multiple target drawing objects are determined according to the drawing object set included in the structural drawing, including at least one of the following:
[0077] Method 1: according to the object type indicated by the preset display information, a plurality of target drawing objects are determined from the drawing object set included in the structure drawing;
[0078] Method 2: In response to determining at least one target object type from a plurality of object types, a plurality of target drawing objects matching the at least one target object type are determined from a drawing object set included in the structural drawing.
[0079] Optionally, in this embodiment, the object type indicated by the preset display information may be determined by determining the object type of the indicated component through information such as component attributes, functions and parameters in the above display information, and the above object types include: points, lines, connecting plates, grids and other types; according to the object type indicated by the preset display information, determining multiple target drawing objects from the drawing object set included in the structural drawing may be, when the display information indicates that the component of the required connection type is required, determining all components with connection attributes in the drawing object set, such as springs and bearings, and then the zoom state (zoom / not zoom) of the determined component may be set for the preset type of component, which is only an example;
[0080] As an optional implementation, in response to determining at least one target object type from a plurality of object types, a plurality of target drawing objects matching the at least one target object type are determined from a drawing object set included in the structural drawing; for example, from different types of bearings with radii of 0.5 cm, 0.6 cm, and 0.7 cm, a bearing with a target object of 0.5 cm is determined, and then a plurality of components (such as gears, guide rails, etc.) matching the at least one bearing with a radius of 0.5 cm are determined from the drawing object set included in the structural drawing;
[0081] It should be noted that after determining multiple target drawing objects, the components can be scaled according to the needs. For example, if it is determined that layer 1 includes connection components, surface components, and filling components, and the connection status of the connection components needs to be clearly displayed, the connection components in layer 1 can be scaled, or a target connection component in the connection components can be selected, and the scaling status (scaled / not scaled) of other components related to the target connection component can be determined as a whole. The scaling status of the components that are manually revised can be set to not scale, thereby displaying the connection status of the target connection component;
[0082] Through the embodiments provided by the present application, according to the object type indicated by the preset display information, multiple target drawing objects are determined from the drawing object set included in the structural drawing; in response to at least one target object type being determined from the multiple object types, multiple target drawing objects matching the at least one target object type are determined from the drawing object set included in the structural drawing, and the display efficiency and display accuracy of the structural drawing are further improved by accurately matching the target drawing objects.
[0083] As an optional solution, according to the object type indicated by the preset display information, a plurality of target drawing objects are determined from the drawing object set included in the structural drawing, including at least one of the following:
[0084] Method 1: According to the preset display information, the text object included in the structure drawing is determined as the target drawing object;
[0085] Method 2: According to the preset display information, the connection component object included in the structural drawing is determined as the target drawing object;
[0086] Method three: According to the preset display information, the linear component objects included in the structural drawing are determined as the target drawing objects.
[0087] Optionally, in this embodiment, according to the preset display information, the target drawing object can be determined by obtaining the function of the object indicated by the above display information, and determining the object with the corresponding function as the target drawing object. For example, when the display information indicates that the information of the display board needs to be displayed, the text object is determined as the target drawing object, and the display effect is as follows: Figure 5 For example, when the display information indicates that the information of the connection component needs to be displayed, the connection component is determined as the target drawing object, and the display effect is as follows Figure 6 As shown;
[0088] As another optional implementation, in the case of using entities to store operation mapping relationships, the above-mentioned operation information set includes the above-mentioned operation mapping relationship, and traversing at least one reference component object in the operation information set can be done by traversing the created entities, including but not limited to: sequentially traversing the entities, traversing the entities according to the types of entities or corresponding components, traversing the entities according to preset priority order, etc., without specific restrictions herein, thereby determining a target component object of the same type as the reference component object; it should be noted that the above-mentioned one reference component may correspond to multiple entities, and the entities may also be marked, for example: types such as entities that must be traversed, entities that are not necessary to traverse, etc., thereby achieving the above-mentioned target component object to be determined by different traversal methods;
[0089] As an optional solution, after drawing the target object icons corresponding to the target display positions of the target drawing objects, and obtaining the target structure drawing, the method further includes:
[0090] S1, in response to an object display control operation on a target structure drawing, determining at least one reference drawing object matching the target object type from the target structure drawing according to the target object type indicated by the object display control operation; adjusting a scaling ratio of a reference object icon corresponding to the at least one reference drawing object in the target structure drawing according to a scaling parameter indicated by the display control operation;
[0091] S2, in response to a drawing display control operation on a target structure drawing, the target display positions corresponding to the multiple target drawing objects in the display control area and the target display sizes corresponding to the multiple target drawing objects are determined in sequence according to the object hierarchy relationship between the multiple target drawing objects; at the target display positions corresponding to the multiple target drawing objects, the corresponding target object icons are drawn to obtain an updated target structure drawing.
[0092] Optionally, in step S1, in response to an object display control operation on a target structural drawing, at least one reference drawing object matching the target object type is determined from the target structural drawing according to the target object type indicated by the object display control operation; and a scaling ratio of a reference object icon corresponding to the at least one reference drawing object in the target structural drawing is adjusted according to a scaling parameter indicated by the display control operation; the above-mentioned object display operation can be understood as an object-level display operation, and can perform display processing on component objects separately;
[0093] As an optional implementation, for example, assuming that components A1 and A2 are initially preset to a fixed zoom state, when a display control operation (which may be a floating display, a zoom display, a filled display, etc.) is performed on the connected component A in layer 1, according to the attribute type of component A, components A1 and A2 matching component A are determined from the target structure drawing, and the zoom ratios of components A1 and A2 may be further adjusted according to the zoom parameters, and may be adjusted simultaneously or separately. This is only an example;
[0094] In step S2, in response to the drawing display control operation on the target structure drawing, the target display positions corresponding to the multiple target drawing objects in the display control area and the target display sizes corresponding to the multiple target drawing objects are determined in sequence according to the object hierarchy relationship between the multiple target drawing objects; at the target display positions corresponding to the multiple target drawing objects, the corresponding target object icons are drawn to obtain the updated target structure drawing, which is only an example and is not specifically limited; the above drawing display operation can be understood as a display operation on the entire component with the object hierarchy relationship;
[0095] As an optional implementation, for example, when displaying drawings with a hierarchical relationship and determining that a target drawing object A exists in the first level, a target drawing object B perpendicular to the target drawing object A exists in the second level, and a target drawing object C parallel to the target drawing object A exists in the third level, the target display positions and target display sizes corresponding to the target drawing object A, the target drawing object B, and the target drawing object C in the display control area are determined in sequence, and then the target object icon A, the target object icon B, and the target object icon C are drawn at the corresponding positions (which may be the center position), and an updated target structure drawing with the target drawing object A, the target drawing object B, and the target drawing object C as a whole is obtained, thereby achieving scaling of the entire drawing;
[0096] Through the above-mentioned implementation modes recorded in the present application, in response to the object display control operation on the target structure drawing, according to the target object type indicated by the object display control operation, at least one reference drawing object matching the target object type is determined from the target structure drawing; according to the scaling parameter indicated by the display control operation, the scaling ratio of the reference object icon corresponding to at least one reference drawing object in the target structure drawing is adjusted; in response to the drawing display control operation on the target structure drawing, according to the object hierarchy relationship between the multiple target drawing objects, the target display positions corresponding to the multiple target drawing objects in the display control area and the target display sizes corresponding to the multiple target drawing objects are sequentially determined; at the target display positions corresponding to the multiple target drawing objects, the corresponding target object icons are drawn to obtain the updated target structure drawing, so as to realize the scaling of the graphics in the drawing under different control modes, thereby improving the display efficiency and display accuracy of the structure drawing.
[0097] The present invention is described in a specific implementation manner as follows. Figure 7 As shown:
[0098] S702, generating graphic reference points, and drawing text according to the graphic reference points, such as Figure 8 As shown, the text shown on the right is drawn according to the image reference point;
[0099] like Fig. 9 As shown, S704 is executed to calculate the position of the remaining area (such as the square area in the middle layer in the figure) according to the drawing result of the previous step, and the graphic reference points are continuously generated and the text is drawn; specifically, when the contour is included, the scaling ratio that does not exceed the actual boundary is calculated, which can be but not limited to being calculated by using a formula to obtain the scaled graphic;
[0100] like Fig.10 As shown, S706, according to the component information in the drawing and the generated graphic reference point, the spot reinforcement positioning point (the point generated along the region boundary in the middle region) is determined, and a fixed-size spot reinforcement is drawn at the positioned point. It should be noted that the reinforcement element drawn at the positioning point does not change with the zoom, that is, the display effect of the reinforcement on the drawing of different zoom sizes remains unchanged; the spot reinforcement usually refers to the reinforcement arranged in a specific key area of the concrete component (such as the support point of the beam, the end of the beam or the bottom of the column);
[0101] like Fig.11 As shown, S708, the point reinforcement is used as the next level reference point to complete the drawing of the stirrup (surrounding the point reinforcement). Similarly, in this step, even if the length of the stirrup is scaled, the line width is always consistent, ensuring the display effect; it should be noted that the stirrup is the steel bar surrounding the concrete column or beam;
[0102] The final graphics result is as follows Figure 6As shown, in Figure 6 In the process, each step can be mapped to a different level, so that the whole or the level can be zoomed in and out, and the image elements of the component can be set unchanged (such as the radius of the point reinforcement, the width of the stirrup, etc.);
[0103] When scaling the components in the graphics area, the radius of the point reinforcement does not change with the scaling ratio, the width of the stirrup does not change with the scaling ratio, and the text object remains unchanged. When scaling the component area, the line width and characteristic elements (such as the section radius) of the point reinforcement and stirrup components remain unchanged, achieving maximum efficiency in displaying images.
[0104] Through the embodiments provided by this application, after recognizing the graphics, the user will make a series of adjustments to the program recognition results and hope to keep these adjustments; this solution records a series of operation process information of the user's manual adjustment, so that when the original recognition results need to be deleted and re-recognized, or when the adjustments need to be used in other positions, the manual adjustment results can be restored. This avoids repeated and cumbersome component editing operations, greatly improves production efficiency and production quality, and effectively promotes the digital construction of the design institute.
[0105] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0106] According to another aspect of the embodiments of the present application, a display device for a structural drawing for implementing the above-mentioned display method for a structural drawing is also provided. Fig.12 As shown, the device comprises:
[0107] A first determining unit 1202 determines a plurality of target drawing objects and an object hierarchical relationship between the plurality of target drawing objects according to a drawing object set included in the structural drawing, wherein the target drawing object is used to indicate key component information in the structural drawing;
[0108] The second determining unit 1204, in response to the instruction to reduce the display of the target area, sequentially determines the target display positions corresponding to the multiple target drawing objects in the reference area and the target display sizes corresponding to the multiple target drawing objects according to the object hierarchical relationship between the multiple target drawing objects, wherein a first reduction ratio indicated by the relative position relationship between the target display positions of the multiple target drawing objects is greater than a second reduction ratio between the original display size of the target drawing object and the target display size;
[0109] The display unit 1206 draws the target object icons corresponding to the multiple target drawing objects at the target display positions corresponding to the multiple target drawing objects to obtain the target structure drawing.
[0110] For a specific embodiment, reference may be made to the example shown in the display method of the above-mentioned structural drawings, which will not be described in detail in this example.
[0111] According to another aspect of the embodiment of the present application, an electronic device for implementing the above-mentioned display method of the structural drawing is also provided. Fig.13 As shown, the electronic device includes a memory 1302 and a processor 1304. The memory 1302 stores a computer program, and the processor 1304 is configured to execute the steps in any of the above method embodiments through the computer program.
[0112] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.
[0113] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0114] S1, determining a plurality of target drawing objects and an object hierarchical relationship between the plurality of target drawing objects according to a drawing object set included in the structural drawing, wherein the target drawing object is used to indicate key component information in the structural drawing;
[0115] S2, in response to a zoom-out instruction for the target area, sequentially determining target display positions corresponding to the multiple target drawing objects in the reference area and target display sizes corresponding to the multiple target drawing objects according to the object hierarchical relationship between the multiple target drawing objects, wherein a first reduction ratio indicated by a relative positional relationship between the target display positions of the multiple target drawing objects is greater than a second reduction ratio between an original display size of the target drawing object and the target display size;
[0116] S3, drawing the target object icons corresponding to the multiple target drawing objects at the target display positions corresponding to the multiple target drawing objects, and obtaining the target structure drawing.
[0117] Alternatively, a person skilled in the art may understand that: Fig.13 The components shown are for illustration only, and the electronic device may also be a smart phone, a tablet computer, a PDA, a mobile Internet device (MID), a PAD or other terminal device. Fig.13 It does not limit the components of the electronic device. For example, the electronic device may also include Fig.13More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.13 Different configurations are shown.
[0118] Among them, the memory 1302 can be used to store software programs and modules, such as the program instructions / modules corresponding to the method and device for displaying the structural drawings in the embodiments of the present application. The processor 1304 executes various functional applications and data processing by running the software programs and modules stored in the memory 1302, that is, realizing the above-mentioned method for displaying the structural drawings. The memory 1302 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1302 may further include a memory remotely arranged relative to the processor 1304, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 1302 can be specifically, but not limited to, used for information such as target determination requests and target sending requests. As an example, Fig.13 As shown, the memory 1302 may include but is not limited to the first determination unit 1202, the second determination unit 1204, and the display unit 1206 in the display device of the structural drawing. In addition, other module units in the display device of the structural drawing may also be included but are not limited to, which will not be repeated in this example.
[0119] Optionally, the transmission device 1306 is used to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 1306 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1306 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0120] In addition, the electronic device further includes: a display 1308 for displaying information such as the target determination request and the target sending request; and a connection bus 1310 for connecting various module components in the electronic device.
[0121] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. Among them, the nodes may form a peer-to-peer (P2P) network, and any form of computing device, such as a server, terminal or other electronic device, may become a node in the blockchain system by joining the peer-to-peer network.
[0122] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program / instruction, the computer program / instruction comprising a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit, various functions provided by the embodiments of the present application are executed.
[0123] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0124] It should be noted that the computer system of the electronic device is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0125] The computer system includes a central processing unit (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) or the program loaded from the storage part to the random access memory (RAM). In the random access memory, various programs and data required for system operation are also stored. The central processing unit, the read-only memory and the random access memory are connected to each other through a bus. The input / output interface (I / O interface) is also connected to the bus.
[0126] The following components are connected to the input / output interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a local area network card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the input / output interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.
[0127] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit, various functions defined in the system of the present application are executed.
[0128] Optionally, the display device of the above-mentioned structural drawing also includes: a third determination unit, which is used to determine, from the above-mentioned reference area, a first reference sub-area for displaying the above-mentioned text object when a text object is included in the multiple target drawing objects; determine the display area other than the above-mentioned first reference sub-area in the above-mentioned reference area as a second reference sub-area for displaying the structural graphics in the above-mentioned structural drawing, wherein the above-mentioned structural graphics include multiple component objects, and the multiple target drawing objects include target component objects; in the above-mentioned second reference sub-area, according to the above-mentioned object hierarchy relationship between the multiple target drawing objects, the above-mentioned target display positions corresponding to the multiple target drawing objects in the above-mentioned second reference sub-area are determined in sequence.
[0129] Optionally, the third determination unit includes: a first display unit, used to display the text object in the first reference sub-area according to a first target size, wherein a text reduction ratio between the original display size of the text object and the first target size is smaller than the first reduction ratio; in the second reference sub-area, at the target display positions corresponding to each of the target drawing objects, displaying the target object icons corresponding to each of the target drawing objects in sequence, wherein an icon reduction ratio between the second target size of the target object icon and the original display size of the target drawing object in the target area is smaller than the first reduction ratio.
[0130] Optionally, the third determination unit further includes: a fourth determination unit, configured to determine, according to the first reduction ratio, a target display area of the structural graphic in the second reference sub-area; determine a first reference point in the target display area, wherein the first reference point is used to determine a first display sub-area corresponding to each of the target drawing objects in the first object level in the target graphic; and, in a case where the plurality of target drawing objects include a target drawing object of a second object level associated with the first display sub-area, determine a second reference point in the first display sub-area, wherein the second reference point is used to determine a second display sub-area corresponding to each of the target drawing objects in the second object level in the target graphic.
[0131] Optionally, the first determination unit includes: a fifth determination unit, used to determine multiple target drawing objects from a drawing object set included in the structural drawing according to the object type indicated by preset display information; in response to determining at least one target object type from multiple object types, determine multiple target drawing objects matching at least one target object type from a drawing object set included in the structural drawing.
[0132] Optionally, the fifth determination unit includes: a sixth determination unit, used to determine the text object included in the structural drawing as the target drawing object according to the preset display information; determine the connection component object included in the structural drawing as the target drawing object according to the preset display information; determine the linear component object included in the structural drawing as the target drawing object according to the preset display information.
[0133] Optionally, the display unit includes a second display unit, which is used to respond to the object display control operation on the target structure drawing, determine at least one reference drawing object matching the target object type from the target structure drawing according to the target object type indicated by the object display control operation; adjust the scaling ratio of the reference object icon corresponding to at least one of the reference drawing objects in the target structure drawing according to the scaling parameter indicated by the display control operation; respond to the drawing display control operation on the target structure drawing, sequentially determine the target display positions corresponding to the multiple target drawing objects in the display control area and the target display sizes corresponding to the multiple target drawing objects according to the object hierarchy relationship between the multiple target drawing objects; draw the corresponding target object icons at the target display positions corresponding to the multiple target drawing objects to obtain the updated target structure drawing.
[0134] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above-mentioned various optional implementations.
[0135] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0136] S1, determining a plurality of target drawing objects and an object hierarchical relationship between the plurality of target drawing objects according to a drawing object set included in the structural drawing, wherein the target drawing object is used to indicate key component information in the structural drawing;
[0137] S2, in response to a zoom-out instruction for the target area, sequentially determining target display positions corresponding to the multiple target drawing objects in the reference area and target display sizes corresponding to the multiple target drawing objects according to the object hierarchical relationship between the multiple target drawing objects, wherein a first reduction ratio indicated by a relative positional relationship between the target display positions of the multiple target drawing objects is greater than a second reduction ratio between an original display size of the target drawing object and the target display size;
[0138] S3, drawing the target object icons corresponding to the multiple target drawing objects at the target display positions corresponding to the multiple target drawing objects, and obtaining the target structure drawing.
[0139] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0140] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0141] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
[0142] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0143] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0144] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0145] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0146] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for displaying a structural drawing, characterized in that: include: Determining a plurality of target drawing objects and an object hierarchical relationship between the plurality of target drawing objects according to a drawing object set included in the structural drawing, wherein the target drawing objects are used to indicate key component information in the structural drawing; In the case where a text object is included in the plurality of target drawing objects, a first reference sub-area for displaying the text object is determined from the reference area; a display area other than the first reference sub-area in the reference area is determined as a second reference sub-area for displaying a structural graphic in the structural drawing, wherein the structural graphic includes a plurality of component objects, and the plurality of target drawing objects include a target component object; according to a first reduction ratio, a target display area of the structural graphic in the second reference sub-area is determined; a first reference point in the target display area is determined, wherein the first reference point is used to determine a first display sub-area corresponding to each of the target drawing objects in a first object hierarchy in the target graphic; in the case where a target drawing object of a second object hierarchy associated with the first display sub-area is included in the plurality of target drawing objects, a second reference point in the first display sub-area is determined, wherein the second reference point is used to determine a second display sub-area corresponding to each of the target drawing objects in the second object hierarchy in the target graphic; In response to a zoom-out instruction for a target area, target display sizes corresponding to the target drawing objects are determined according to the object hierarchy relationship between the target drawing objects, wherein a first reduction ratio indicated by a relative position relationship between the target display positions of the target drawing objects is greater than a second reduction ratio between an original display size of the target drawing object and the target display size; At the target display positions corresponding to the plurality of target drawing objects, the corresponding target object icons are drawn to obtain the target structure drawing.
2. The method according to claim 1, characterized in that: The step of drawing the target object icons corresponding to the target display positions of the target drawing objects to obtain the target structure drawing comprises: In the first reference sub-area, the text object is displayed according to a first target size, wherein a text reduction ratio between the original display size of the text object and the first target size is smaller than the first reduction ratio; In the second reference sub-area, at the target display positions respectively corresponding to the multiple target drawing objects, the target object icons corresponding to the multiple target drawing objects are displayed in sequence, wherein an icon reduction ratio between a second target size of the target object icon and the original display size of the target drawing object in the target area is smaller than the first reduction ratio.
3. The method according to claim 1, characterized in that Determining a plurality of target drawing objects according to the drawing object set included in the structural drawing includes at least one of the following: According to the object type indicated by the preset display information, a plurality of target drawing objects are determined from a drawing object set included in the structure drawing; In response to determining at least one target object type from a plurality of object types, a plurality of target drawing objects matching the at least one target object type are determined from a drawing object set included in the structural drawing.
4. The method according to claim 3, characterized in that The step of determining the plurality of target drawing objects from a drawing object set included in the structural drawing according to the object type indicated by the preset display information comprises at least one of the following: According to the preset display information, determining the text object included in the structural drawing as the target drawing object; According to the preset display information, determining the connection component object included in the structural drawing as the target drawing object; According to the preset display information, the linear component object included in the structural drawing is determined as the target drawing object.
5. The method according to claim 1, characterized in that After drawing the target object icons corresponding to the target display positions of the target drawing objects to obtain the target structure drawing, the method further includes: In response to an object display control operation on the target structure drawing, at least one reference drawing object matching the target object type is determined from the target structure drawing according to the target object type indicated by the object display control operation; and a scaling ratio of a reference object icon corresponding to at least one of the reference drawing objects in the target structure drawing is adjusted according to a scaling parameter indicated by the display control operation; In response to a drawing display control operation on the target structure drawing, the target display positions corresponding to the multiple target drawing objects in the display control area and the target display sizes corresponding to the multiple target drawing objects are determined in sequence according to the object hierarchy relationship between the multiple target drawing objects; at the target display positions corresponding to the multiple target drawing objects, the corresponding target object icons are drawn to obtain the updated target structure drawing.
6. A display device for structural drawings, characterized in that: include: A first determining unit determines a plurality of target drawing objects and an object hierarchical relationship between the plurality of target drawing objects according to a drawing object set included in the structural drawing, wherein the target drawing objects are used to indicate key component information in the structural drawing; a second determining unit, in the case where the plurality of target drawing objects include text objects, determining from the reference area a first reference sub-area for displaying the text objects; determining a display area in the reference area other than the first reference sub-area as a second reference sub-area for displaying a structural graphic in the structural drawing, wherein the structural graphic includes a plurality of component objects, and the plurality of target drawing objects include a target component object; determining a target display area of the structural graphic in the second reference sub-area according to a first reduction ratio; determining a first reference point in the target display area, wherein the first reference point is used to determine a first display sub-area corresponding to each of the target drawing objects in a first object hierarchy in the target graphic; determining a second reference point in the first display sub-area, in the case where the plurality of target drawing objects include a target drawing object of a second object hierarchy associated with the first display sub-area, wherein the second reference point is used to determine a second display sub-area corresponding to each of the target drawing objects in the second object hierarchy in the target graphic; In response to a zoom-out display instruction for a target area, target display sizes corresponding to each of the plurality of target drawing objects are determined according to the object hierarchical relationship between the plurality of target drawing objects, wherein a first reduction ratio indicated by a relative positional relationship between target display positions of the plurality of target drawing objects is greater than a second reduction ratio between an original display size of the target drawing object and the target display size; The display unit draws the target object icons corresponding to each of the plurality of target drawing objects at the target display positions corresponding to each of the plurality of target drawing objects to obtain a target structure drawing.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 5 when executed by an electronic device.
8. An electronic device, comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 5 through the computer program.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Small-scale drawing generation device
JP1995282231A