Industrial configuration primitive dynamic and static layering method, system, equipment and medium
By hierarchical processing of the configuration elements, the problem of high resource occupation in traditional drawing methods is solved, and fast and efficient primitive drawing is achieved, meeting the needs of complex configuration elements display.
Patent Information
- Application Number
- CN202510071310.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-16
- Publication Date
- 2025-05-16
AI Technical Summary
The traditional configuration element drawing method has high resource requirements and is difficult to meet the needs of fast, high efficiency and low resource utilization.
By judging the types of each element in the configuration element dataset, static and dynamic elements are processed layer by layer, and the primitive levels are organized using an ordered Map collection to reduce the number of subsequent drawings.
It realizes rapid query and retrieval, reduces the resource usage and time consumption of configuration element drawing, and meets the specific and increasingly complex configuration element display needs.
Smart Images

Figure CN120014103A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of engineering drawing, and relates to a method, system, equipment and medium for dynamic and static stratification of industrial configuration graphic elements. Background Art
[0002] In the field of engineering drawing, configuration primitives are commonly used graphic elements to represent the layout, structure, and operating status of various projects or equipment. As the number of primitives increases, the traditional primitive drawing method will have an increasingly higher demand for resources. It is necessary to seek a faster, more efficient, and less resource-intensive primitive drawing method to meet the specific and increasingly complex configuration primitive display needs. Summary of the invention
[0003] The purpose of the present invention is to overcome the shortcomings of the above-mentioned prior art and to provide a method, system, device and medium for dynamic and static layering of industrial configuration graphics elements. The method, system, device and medium can meet the needs of faster, more efficient and less resource-intensive graphics element drawing.
[0004] To achieve the above object, the present invention discloses a method for dynamic and static stratification of industrial configuration elements, comprising:
[0005] Determine the type of each graphic element in the configuration graphic element data set, wherein the type of the graphic element includes a dynamic graphic element and a static graphic element;
[0006] According to the type of each graphic element in the configuration graphic element data set, each graphic element in the configuration graphic element data set is layered, and the ordered Map set after all graphic elements are layered is included.
[0007] Furthermore, before determining the type of each graphic element in the configuration graphic element data set, the method further includes:
[0008] Each graphic element in the configuration graphic element data set is represented as a rectangle or a cube in a two-dimensional or three-dimensional space, wherein the boundary of the rectangle or the cube is determined according to the position and size of the graphic element.
[0009] Furthermore, in the process of determining the type of each graphic element in the configuration graphic element data set, when the graphic element is a measuring point, a GIF image larger than one frame, a line, a table, a pie chart, or contains a refresh script, the graphic element is a dynamic graphic element.
[0010] Furthermore, before the layering of each graphic element in the configuration graphic element data set is performed according to the type of each graphic element in the configuration graphic element data set, the method further includes:
[0011] Create an ordered Map and determine that the hierarchical index is a number. When the index modulo result is 1, the index corresponds to a static layer; when the index modulo result is 2, it corresponds to a dynamic layer; when the index modulo result is 0, the layer is retained and the layer is initially recorded as index.
[0012] Furthermore, the process of layering each graphic element in the configuration graphic element data set is as follows:
[0013] When the current primitive is a static primitive and the previous primitive is also a static primitive, it is considered that the current primitive and the previous primitive can be in the same layer, and the current primitive is added to the current layer set; when the current primitive is a static primitive and the previous primitive is a dynamic primitive, the index is increased by 3, a dynamic layer set is created, and the current primitive is added to the dynamic layer set, and the dynamic layer set is added to the Map set;
[0014] When the current element is a dynamic element and the previous element is a dynamic element, it is considered that the current element and the previous element can be in the same layer, and the current element is added to the current layer set; when the current element is a dynamic element and the previous element is a static element, the index is increased by 3, a static layer set is created, the current element is placed in the static layer set, and the static layer set is placed in the Map collection.
[0015] The invention discloses a system for dynamic and static stratification of industrial configuration graphic elements, comprising:
[0016] A judgment module, used for judging the type of each graphic element in the configuration graphic element data set, wherein the type of the graphic element includes a dynamic graphic element and a static graphic element;
[0017] The layering module is used to layer each element in the configuration element data set according to the type of each element in the configuration element data set, and contains an ordered Map set after all elements are layered.
[0018] Furthermore, it also includes:
[0019] The determination module is used to represent each graphic element in the configuration graphic element data set as a rectangle or a cube in a two-dimensional or three-dimensional space, wherein the boundary of the rectangle or the cube is determined according to the position and size of the graphic element.
[0020] Furthermore, it also includes:
[0021] The process of layering each graphic element in the configuration graphic element data set is as follows:
[0022] When the current primitive is a static primitive and the previous primitive is also a static primitive, it is considered that the current primitive and the previous primitive can be in the same layer, and the current primitive is added to the current layer set; when the current primitive is a static primitive and the previous primitive is a dynamic primitive, the index is increased by 3, a dynamic layer set is created, and the current primitive is added to the dynamic layer set, and the dynamic layer set is added to the Map set;
[0023] When the current element is a dynamic element and the previous element is a dynamic element, it is considered that the current element and the previous element can be in the same layer, and the current element is added to the current layer set; when the current element is a dynamic element and the previous element is a static element, the index is increased by 3, a static layer set is created, the current element is placed in the static layer set, and the static layer set is placed in the Map collection.
[0024] The present invention discloses a computer device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the method for dynamic and static stratification of industrial configuration graphic elements are implemented.
[0025] The invention discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for dynamic and static stratification of industrial configuration graphic elements are realized.
[0026] The present invention has the following beneficial effects:
[0027] The method, system, device and medium for dynamic and static stratification of industrial configuration graphic elements described in the present invention divide the graphic elements within the configuration into different levels according to dynamic elements and static elements during specific operation. By dividing the levels, the number of subsequent configuration drawings is reduced, so as to facilitate rapid query and retrieval, thereby meeting specific and increasingly complex configuration graphic element display needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings:
[0029] Figure 1 Schematic diagram of data preprocessing in the present invention;
[0030] Figure 2 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0032] In the description of the present invention, it should be understood that the terms “include” and “comprises” indicate the presence of described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or collections thereof.
[0033] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0034] It should be further understood that the term "and / or" used in the present specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present invention generally indicates that the associated objects are in an "or" relationship.
[0035] It should be understood that, although the terms first, second, third, etc. may be used to describe preset ranges, etc. in the embodiments of the present invention, these preset ranges should not be limited to these terms. These terms are only used to distinguish preset ranges from each other. For example, without departing from the scope of the embodiments of the present invention, the first preset range may also be referred to as the second preset range, and similarly, the second preset range may also be referred to as the first preset range.
[0036] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0037] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention described and shown in the drawings here can usually be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0038] Various structural schematic diagrams of the embodiments disclosed in the present invention are shown in the accompanying drawings. These figures are not drawn to scale, and some details are magnified and some details may be omitted for the purpose of clear expression. The shapes of various regions and layers shown in the figures and the relative sizes and positional relationships therebetween are only exemplary, and may deviate in practice due to manufacturing tolerances or technical limitations, and those skilled in the art may additionally design regions / layers with different shapes, sizes, and relative positions according to actual needs.
[0039] Embodiment 1
[0040] refer to Figure 2 The method for dynamic and static stratification of industrial configuration elements of the present invention comprises the following steps:
[0041] 1) Data preprocessing;
[0042] Each primitive in the configuration primitive data set is represented as a rectangle or cube in a two-dimensional or three-dimensional space, and the boundary of the rectangle or cube is determined by the position and size of the primitive, such as Figure 1 shown.
[0043] 2) Determine whether it is a dynamic graphic element;
[0044] Among them, when the graphic element is a measurement point, a GIF image larger than one frame, a line, a table, a pie chart, or contains a refresh script, the graphic element is a dynamic graphic element.
[0045] 3) Layered processing of graphic elements;
[0046] Create an ordered Map and determine that the hierarchical index is a number. When the index modulo result is 1, the index corresponds to a static layer; when the index modulo result is 2, it corresponds to a dynamic layer; when the index modulo result is 0, the layer is retained. The layer is initially recorded as index. All the elements in the configuration diagram are traversed in order. According to step 2), determine whether the current element is a dynamic element, and then perform the following operations in order:
[0047] 31) When the current element is a static element and the previous element is also a static element, it is considered that the current element and the previous element can be in the same layer, and the current element is added to the current layer set; when the current element is a static element and the previous element is a dynamic element, the index is increased by 3, and a dynamic layer set is created, and then the current element is added to the dynamic layer set, and the dynamic layer set is added to the Map.
[0048] 32) When the current element is a dynamic element and the previous element is a dynamic element, it is considered that the current element and the previous element can be in the same layer, and the current element is added to the current layer set; when the current element is a dynamic element and the previous element is a static element, the index is increased by 3, and a static layer set is created, the current element is placed in the static layer set, and the static layer set is placed in the Map.
[0049] 4) Loop through all the primitives to obtain an ordered Map set containing all the primitives after layering, such as Figure 2 As shown, when configuring drawing, for the static primitive layer, when drawing for the first time, the static primitive layer is converted into a picture. When drawing for the second time, only the picture needs to be drawn, and all primitives do not need to be drawn, thereby reducing the number of drawing times.
[0050] It should be noted that as the scope of configuration usage becomes wider and wider, the number of graphics elements in a single configuration file and a combined configuration file has increased significantly. How to achieve fast drawing based on an increasing number of graphics elements is an urgent problem to be solved. Graphic element dynamic and static stratification can effectively organize and store multi-dimensional spatial data so as to quickly perform graphics element drawing operations. Its core goal is to efficiently analyze and process all graphics elements in the configuration diagram when the configuration graphics element is saved or opened to meet specific dynamic and static identification and stratification conditions. Configuration graphic element stratification uses a drawing stratification strategy to divide the graphics elements within the configuration into different levels according to dynamic elements and static elements. By dividing the levels, the number of subsequent configuration drawings and the number of subsequent configuration drawings are reduced, so as to facilitate fast query and retrieval to meet the specific and increasingly complex configuration graphic element display needs.
[0051] Embodiment 2
[0052] The system for dynamic and static stratification of industrial configuration graphic elements of the present invention comprises:
[0053] A judgment module, used for judging the type of each graphic element in the configuration graphic element data set, wherein the type of the graphic element includes a dynamic graphic element and a static graphic element;
[0054] The layering module is used to layer each element in the configuration element data set according to the type of each element in the configuration element data set, and contains an ordered Map set after all elements are layered.
[0055] As an embodiment of the present invention, it also includes:
[0056] The determination module is used to represent each graphic element in the configuration graphic element data set as a rectangle or a cube in a two-dimensional or three-dimensional space, wherein the boundary of the rectangle or the cube is determined according to the position and size of the graphic element.
[0057] As an embodiment of the present invention, it also includes:
[0058] The process of layering each graphic element in the configuration graphic element data set is as follows:
[0059] When the current primitive is a static primitive and the previous primitive is also a static primitive, it is considered that the current primitive and the previous primitive can be in the same layer, and the current primitive is added to the current layer set; when the current primitive is a static primitive and the previous primitive is a dynamic primitive, the index is increased by 3, a dynamic layer set is created, and the current primitive is added to the dynamic layer set, and the dynamic layer set is added to the Map set;
[0060] When the current element is a dynamic element and the previous element is a dynamic element, it is considered that the current element and the previous element can be in the same layer, and the current element is added to the current layer set; when the current element is a dynamic element and the previous element is a static element, the index is increased by 3, a static layer set is created, the current element is placed in the static layer set, and the static layer set is placed in the Map collection.
[0061] The division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present application may be integrated into a processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.
[0062] Embodiment 3
[0063] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of implementing the method of dynamic and static stratification of industrial configuration graphics elements include: representing each graphics element in the configuration graphics element data set as a rectangle or a cube in a two-dimensional or three-dimensional space, wherein the boundary of the rectangle or the cube is determined according to the position and size of the graphics element; judging the type of each graphics element in the configuration graphics element data set, wherein the type of the graphics element includes a dynamic graphics element and a static graphics element; and performing stratification processing on each graphics element in the configuration graphics element data set according to the type of each graphics element in the configuration graphics element data set, and including an ordered Map set after all graphics elements are stratified. The memory may include a memory, such as a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk memory, etc. The processor, the network interface, and the memory are interconnected through an internal bus, and the internal bus may be an industrial standard architecture bus, a peripheral component interconnection standard bus, an extended industrial standard structure bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory is used to store programs. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include memory and nonvolatile memory and provides instructions and data to the processor.
[0064] Embodiment 4
[0065] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for dynamic and static layering of industrial configuration graphics elements are implemented, for example, including: representing each graphics element in the configuration graphics element data set as a rectangle or cube in a two-dimensional or three-dimensional space, wherein the boundary of the rectangle or cube is determined according to the position and size of the graphics element; judging the type of each graphics element in the configuration graphics element data set, wherein the type of the graphics element includes dynamic graphics element and static graphics element; according to the type of each graphics element in the configuration graphics element data set, layering is performed on each graphics element in the configuration graphics element data set, and an ordered Map set after all graphics elements are layered is included. Specifically, the computer-readable storage medium includes, but is not limited to, for example, volatile memory and / or non-volatile memory. The volatile memory may include random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include read-only memory (ROM), hard disk, flash memory, optical disk, magnetic disk, etc.
[0066] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0067] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0068] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0069] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0070] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A method for dynamic and static stratification of industrial configuration elements, characterized in that: include: Determine the type of each graphic element in the configuration graphic element data set, wherein the type of the graphic element includes a dynamic graphic element and a static graphic element; According to the type of each graphic element in the configuration graphic element data set, each graphic element in the configuration graphic element data set is layered, and the ordered Map set after all graphic elements are layered is included.
2. The method for dynamic and static stratification of industrial configuration elements according to claim 1 is characterized in that: Before determining the type of each graphic element in the configuration graphic element data set, the following step is also included: Each graphic element in the configuration graphic element data set is represented as a rectangle or a cube in a two-dimensional or three-dimensional space, wherein the boundary of the rectangle or the cube is determined according to the position and size of the graphic element.
3. The method for dynamic and static stratification of industrial configuration elements according to claim 1, characterized in that: In the process of determining the type of each graphic element in the configuration graphic element data set, when the graphic element is a measuring point, a GIF image larger than one frame, a broken line, a table, a pie chart, or contains a refresh script, the graphic element is a dynamic graphic element.
4. The method for dynamic and static stratification of industrial configuration elements according to claim 1, characterized in that: Before the layering of each graphic element in the configuration graphic element data set according to the type of each graphic element in the configuration graphic element data set, the method further includes: Create an ordered Map and determine that the hierarchical index is a number. When the index modulo result is 1, the index corresponds to a static layer; when the index modulo result is 2, it corresponds to a dynamic layer; when the index modulo result is 0, the layer is retained and the layer is initially recorded as index.
5. The method for dynamic and static stratification of industrial configuration elements according to claim 1, characterized in that: The process of layering each graphic element in the configuration graphic element data set is as follows: When the current primitive is a static primitive and the previous primitive is also a static primitive, it is considered that the current primitive and the previous primitive can be in the same layer, and the current primitive is added to the current layer set; when the current primitive is a static primitive and the previous primitive is a dynamic primitive, the index is increased by 3, a dynamic layer set is created, and the current primitive is added to the dynamic layer set, and the dynamic layer set is added to the Map set; When the current element is a dynamic element and the previous element is a dynamic element, it is considered that the current element and the previous element can be in the same layer, and the current element is added to the current layer set; when the current element is a dynamic element and the previous element is a static element, the index is increased by 3, a static layer set is created, the current element is placed in the static layer set, and the static layer set is placed in the Map collection.
6. A system for dynamic and static stratification of industrial configuration elements, characterized in that: include: A judgment module, used for judging the type of each graphic element in the configuration graphic element data set, wherein the type of the graphic element includes a dynamic graphic element and a static graphic element; The layering module is used to layer each element in the configuration element data set according to the type of each element in the configuration element data set, and contains an ordered Map set after all elements are layered.
7. The system for dynamic and static stratification of industrial configuration elements according to claim 6, characterized in that: Also includes: The determination module is used to represent each graphic element in the configuration graphic element data set as a rectangle or a cube in a two-dimensional or three-dimensional space, wherein the boundary of the rectangle or the cube is determined according to the position and size of the graphic element.
8. The system for dynamic and static stratification of industrial configuration elements according to claim 6, characterized in that: Also includes: The process of layering each graphic element in the configuration graphic element data set is as follows: When the current primitive is a static primitive and the previous primitive is also a static primitive, it is considered that the current primitive and the previous primitive can be in the same layer, and the current primitive is added to the current layer set; when the current primitive is a static primitive and the previous primitive is a dynamic primitive, the index is increased by 3, a dynamic layer set is created, and the current primitive is added to the dynamic layer set, and the dynamic layer set is added to the Map set; When the current element is a dynamic element and the previous element is a dynamic element, it is considered that the current element and the previous element can be in the same layer, and the current element is added to the current layer set; when the current element is a dynamic element and the previous element is a static element, the index is increased by 3, a static layer set is created, the current element is placed in the static layer set, and the static layer set is placed in the Map collection.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method for dynamic and static layering of industrial configuration graphic elements as described in any one of claims 1-5 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for dynamic and static layering of industrial configuration graphic elements as described in any one of claims 1 to 5 are implemented.