Graph configuration consistency processing method, system, equipment and medium

By calculating the rendering ratio of the physical display device and adjusting the rendering size and coordinates of the graphics configuration diagram, the problem of inconsistent graphics configuration on different devices is solved, automatic adaptation and consistent display are achieved, and rendering efficiency and user experience are improved.

CN119806522APending Publication Date: 2025-04-11HUANENG NINGXIA ENERGY CO LTD LINGWULONGQIAO BRANCH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411941098.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

In the prior art, graphic configuration cannot guarantee the consistency of rendering, display and interaction on different physical display devices, resulting in increased editing difficulty and reduced rendering effect.

Method used

By obtaining the characteristic information of the graphic configuration diagram to be processed and the attribute information of the physical display device, the rendering ratio of the physical display device is calculated, and the actual rendering size and coordinate information of each element in the graphic configuration diagram are adjusted according to this scale to ensure that the graphic configuration is displayed consistently on different devices.

Benefits of technology

It realizes automatic adaptation and consistent display of graphics configuration on different devices, improves rendering efficiency and user experience, and simplifies the editing and generation process of graphics configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119806522A_ABST
    Figure CN119806522A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of new energy management systems, and discloses a graphic configuration consistency processing method, system and device and a medium, and the method comprises the steps: obtaining the feature information of a to-be-processed graphic configuration graph and the attribute information of a physical display device; according to the attribute information of the physical display equipment, determining the actual rendering size of a to-be-processed graphic configuration graph; according to the attribute information of the physical display equipment and the original size of the canvas of the to-be-processed graphic configuration graph, the rendering proportion of the physical display equipment is obtained through calculation; according to the rendering proportion of the physical display device and the original size and original coordinate information of each primitive in the to-be-processed graphic configuration graph, obtaining the actual rendering size and actual coordinate information of each primitive in the to-be-processed graphic configuration graph; according to the method, the operation process is simple, the adaptation operation of the graph configuration is effectively simplified, meanwhile, the graph configuration graph does not need to be drawn independently according to different physical display devices, and the generation efficiency of the graph configuration is effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of new energy management systems, and in particular relates to a graphic configuration consistency processing method, system, equipment and medium. Background Art

[0002] Graphic configuration is to display and control the status and information of equipment or system in a graphical way, and is widely used in the field of industrial automation and control. With the rapid development of the new energy industry, the graphic configuration in the new energy management system usually needs to be rendered and displayed on the physical display devices of different sites. Due to the differences in the configuration of each physical display device in the actual environment, if the graphic configuration diagram is drawn according to the unified specification, the consistency of the rendering, display and interaction on all physical display devices cannot be guaranteed. Therefore, it is necessary to redraw the graphic configuration diagram or manually adjust and adapt the graphic configuration diagram according to the configuration of the physical display device in the current environment, which increases the difficulty of editing the graphic configuration and reduces the rendering, display and interaction effects of the graphic configuration. Summary of the invention

[0003] In view of the technical problems existing in the prior art, the present invention provides a graphic configuration consistency processing method, system, device and medium to solve the technical problems in the prior art that a graphic configuration diagram needs to be redrawn or manually adjusted and adapted according to the configuration of a physical display device in the current environment, which increases the difficulty of editing the graphic configuration while reducing the rendering display and interactive effects of the graphic configuration.

[0004] In order to achieve the above object, the technical solution adopted by the present invention is: The present invention provides a method for processing consistency of graphic configuration, comprising: Acquire characteristic information of the graphics configuration diagram to be processed and attribute information of the physical display device; wherein the characteristic information of the graphics configuration diagram to be processed includes the original size of the canvas of the graphics configuration diagram to be processed and the original size and original coordinate information of each graphic element in the graphics configuration diagram to be processed; Determining the actual rendering size of the graphic configuration diagram to be processed according to the attribute information of the physical display device; Calculate the rendering ratio of the physical display device according to the attribute information of the physical display device and the original size of the canvas of the graphic configuration diagram to be processed; According to the rendering ratio of the physical display device and the original size and original coordinate information of each graphic element in the graphic configuration diagram to be processed, the actual rendering size and actual coordinate information of each graphic element in the graphic configuration diagram to be processed are obtained.

[0005] Furthermore, the attribute information of the physical display device includes a resolution and a scaling ratio of the physical display device.

[0006] Furthermore, the value of the actual rendering size of the to-be-processed graphic configuration diagram is the product of the resolution of the physical display device and the scaling ratio.

[0007] Furthermore, the process of calculating the rendering ratio of the physical display device according to the attribute information of the physical display device and the original size of the canvas of the graphic configuration diagram to be processed is as follows:

[0008] in, The rendering scale of the physical display device; is the resolution of the physical display device; The scaling factor of the physical display device; Configure the original size of the drawing canvas for the graphics to be processed.

[0009] Furthermore, the actual rendering size of each graphic element in the graphics configuration diagram to be processed is as follows:

[0010] in, Configure the graphics to be processed. The actual rendering size of each primitive; Configure the graphics to be processed. The original size of the primitive; The rendering scale of the physical display device; The actual coordinate information of each graphic element in the graphics configuration diagram to be processed is as follows:

[0011] in, Configure the graphics to be processed. The actual coordinate information of each graphic element; Configure the graphics to be processed. The original coordinate information of each primitive.

[0012] Furthermore, it also includes an interactive consistency processing step; wherein the interactive consistency processing step is specifically as follows: Monitor mouse interaction events and obtain the coordinates of the mouse relative to the physical display device; According to the actual rendering size of the graphic configuration diagram to be processed, obtaining the coordinates of the rendering canvas of the graphic configuration diagram to be processed relative to the physical display device; Calculate the actual coordinate value of the mouse relative to the canvas according to the coordinates of the mouse relative to the physical display device and the coordinates of the rendering canvas of the to-be-processed graphic configuration diagram relative to the physical display device; The actual coordinate value of the mouse relative to the canvas is compared with the actual rendering size of each graphic element in the graphic configuration diagram to be processed, and the graphic element that matches the actual coordinate value of the mouse relative to the canvas is obtained; wherein the graphic element that matches the actual coordinate value of the mouse relative to the canvas is used to respond to the mouse interaction event.

[0013] Furthermore, the calculation process of the actual coordinate value of the mouse relative to the canvas is specifically as follows: The coordinates of the rendering canvas of the to-be-processed graphic configuration diagram relative to the physical display device are subtracted from the coordinates of the mouse relative to the physical display device to obtain the actual coordinate value of the mouse relative to the canvas.

[0014] The present invention also provides a graphics configuration consistency processing system, comprising: A display consistency processing module, used to obtain characteristic information of a graphics configuration diagram to be processed and attribute information of a physical display device; wherein the characteristic information of the graphics configuration diagram to be processed includes the original size of the canvas of the graphics configuration diagram to be processed and the original size and original coordinate information of each graphic element in the graphics configuration diagram to be processed; according to the attribute information of the physical display device, the actual rendering size of the graphics configuration diagram to be processed is determined; according to the attribute information of the physical display device and the original size of the canvas of the graphics configuration diagram to be processed, the rendering ratio of the physical display device is calculated; according to the rendering ratio of the physical display device and the original size and original coordinate information of each graphic element in the graphics configuration diagram to be processed, the actual rendering size and actual coordinate information of each graphic element in the graphics configuration diagram to be processed are obtained; An interactive consistency processing module is used to monitor mouse interaction events and obtain the coordinates of the mouse relative to a physical display device; obtain the coordinates of the rendering canvas of the graphics configuration diagram to be processed relative to the physical display device according to the actual rendering size of the graphics configuration diagram to be processed; calculate the actual coordinate value of the mouse relative to the canvas according to the coordinates of the mouse relative to the physical display device and the coordinates of the rendering canvas of the graphics configuration diagram to be processed relative to the physical display device; compare the actual coordinate value of the mouse relative to the canvas with the actual rendering size of each graphic element in the graphics configuration diagram to be processed, and obtain the graphic element that matches the actual coordinate value of the mouse relative to the canvas; wherein the graphic element that matches the actual coordinate value of the mouse relative to the canvas is used to respond to the mouse interaction event.

[0015] The present invention also provides a graphics configuration consistency processing device, comprising: a processor suitable for executing a computer program; A computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the graphic configuration consistency processing method is executed.

[0016] The present invention also provides 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 graphic configuration consistency processing method is implemented.

[0017] Compared with the prior art, the present invention has the following beneficial effects: The graphics configuration consistency processing method provided by the present invention determines the actual rendering size of the graphics configuration diagram to be processed according to the attribute information of the physical display device, calculates the rendering ratio of the physical display device and adjusts the actual rendering size and coordinate information of each graphic element in the graphics configuration diagram according to the rendering ratio, so that the graphics configuration can be automatically adjusted and adapted according to the attribute characteristics of the physical display device, so as to ensure that the graphics configuration maintains a consistent visual effect when displayed on different devices, and at the same time improves the rendering efficiency of the graphics configuration diagram; the operation process of the present invention is simple, and the adaptation operation of the graphics configuration is effectively simplified. At the same time, there is no need to draw the graphics configuration diagram separately according to different physical display devices, which effectively reduces the generation efficiency of the graphics configuration; secondly, the graphics configuration diagram is automatically adjusted according to the characteristics of the physical display device to avoid the occurrence of graphics distortion, disproportion and the like, thereby improving the user experience.

[0018] The graphics configuration consistency processing system, graphics configuration consistency processing device and computer-readable storage medium provided by the present invention have all the advantages of the above-mentioned graphics configuration consistency processing method. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A flowchart of a method for processing graphic configuration consistency provided in Example 1; Figure 2 A structural block diagram of a graphics configuration consistency processing system provided in Example 2; Figure 3 This is a structural block diagram of the graphics configuration consistency processing device provided in Example 3. DETAILED DESCRIPTION

[0020] In order to make the technical problems, technical solutions and beneficial effects solved by the present invention more clearly understood, the present invention is further described in detail in the following specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0021] Example 1 As attached Figure 1As shown, this embodiment 1 provides a method for processing consistency of graphic configuration, comprising the following steps: Step 1: parse the graphics configuration to be processed to obtain characteristic information of the graphics configuration to be processed. The characteristic information of the graphics configuration to be processed includes the original size of the canvas of the graphics configuration to be processed and the original size and original coordinate information of each graphic element in the graphics configuration to be processed; the graphics configuration to be processed is a static background image in the graphics configuration, and the static background image includes a number of graphic elements.

[0022] Step 2: Obtaining attribute information of a physical display device, wherein the physical display device is used to render, display and interact with the graphics configuration diagram to be processed; and the attribute information of the physical display device includes a resolution and a scaling ratio of the physical display device.

[0023] Step 3: Determine the actual rendering size of the graphics configuration diagram to be processed according to the attribute information of the physical display device. The actual rendering size of the graphics configuration diagram to be processed is the size of the rendering canvas of the graphics configuration diagram to be processed; specifically, the value of the actual rendering size of the graphics configuration diagram to be processed is determined as the product of the resolution of the physical display device and the scaling ratio.

[0024] Step 4: Calculate the rendering ratio of the physical display device according to the attribute information of the physical display device and the original canvas size of the graphic configuration diagram to be processed. The calculation process of the rendering ratio of the physical display device is as follows: multiply the resolution of the physical display device by the scaling ratio and divide the result by the original canvas size of the graphic configuration diagram to be processed to obtain the rendering ratio of the physical display device.

[0025] Specifically, the calculation formula for the rendering ratio of the physical display device is as follows:

[0026] in, The rendering scale of the physical display device; is the resolution of the physical display device; The scaling factor of the physical display device; Configure the original size of the drawing canvas for the graphics to be processed.

[0027] It should be noted that the rendering ratio of the physical display device determines the size and clarity of the graphic configuration diagram to be processed when it is rendered and displayed on the physical display device; determining the rendering ratio of the physical display device based on the attribute information of the physical display device and the original size of the canvas of the graphic configuration diagram to be processed can ensure that the graphic configuration diagram to be processed presents more details and higher clarity on the physical display device, and effectively avoids blurred display or loss of details of the graphic configuration diagram, thereby ensuring the user's visual effect.

[0028] Step 5: Obtain the actual rendering size and actual coordinate information of each graphic element in the graphic configuration diagram to be processed according to the rendering ratio of the physical display device and the original size and original coordinate information of each graphic element in the graphic configuration diagram to be processed.

[0029] Specifically, the process of obtaining the actual rendering size and actual coordinate information of each primitive in the graphics configuration diagram to be processed is as follows: Traversing each primitive in the graphics configuration diagram to be processed, dividing the original size of each primitive by the rendering ratio of the physical display device to obtain the actual rendering size of each primitive; wherein the actual rendering size of each primitive in the graphics configuration diagram to be processed is specifically:

[0030] in, Configure the graphics to be processed. The actual rendering size of each primitive; Configure the graphics to be processed. The original size of the primitive; The rendering scale of the physical display device.

[0031] Traverse each primitive in the graphics configuration diagram to be processed, and divide the original coordinate information of each primitive by the rendering ratio of the physical display device to obtain the actual coordinate information of each primitive; wherein the actual coordinate information of each primitive in the graphics configuration diagram to be processed is specifically:

[0032] in, Configure the graphics to be processed. The actual coordinate information of each graphic element; Configure the graphics to be processed. The original coordinate information of each primitive.

[0033] Step 6: Output and send the actual rendering size of the graphics configuration diagram to be processed, the actual rendering size and actual coordinate information of each graphic element in the graphics configuration diagram to be processed to the physical display device.

[0034] It should be noted that after the physical display device receives the actual rendering size of the graphic configuration diagram to be processed, the actual rendering size of each graphic element in the graphic configuration diagram to be processed, and the actual coordinate information, it will render and display the graphic configuration diagram to be processed according to the received actual rendering size of the graphic configuration diagram to be processed, the actual rendering size of each graphic element in the graphic configuration diagram to be processed, and the actual coordinate information.

[0035] Step 7: Monitor mouse interaction events; when a mouse interaction event is monitored, obtain the coordinates of the mouse relative to the physical display device. The mouse interaction events include click events, press and release events, move events, drag events, enter and leave events, and scroll wheel events; the coordinates of the mouse relative to the physical display device are specifically: the actual coordinates of the mouse pointer on the physical display device.

[0036] Step 8: According to the actual rendering size of the graphics configuration diagram to be processed, obtain the coordinates of the rendering canvas of the graphics configuration diagram to be processed relative to the physical display device. Specifically, the process of obtaining the coordinates of the rendering canvas of the graphics configuration diagram to be processed relative to the physical display device is as follows: According to the original size of the canvas of the image configuration diagram to be processed and the actual rendering size of the image configuration diagram to be processed, the base coordinates of the rendering canvas of the image configuration diagram to be processed are obtained; the base coordinates of the rendering canvas of the image configuration diagram to be processed are divided by the rendering ratio of the physical display device to obtain the coordinates of the rendering canvas of the image configuration diagram to be processed relative to the physical display device.

[0037] Step 9: Calculate the actual coordinate value of the mouse relative to the canvas based on the coordinates of the mouse relative to the physical display device and the coordinates of the rendering canvas of the to-be-processed graphic configuration diagram relative to the physical display device.

[0038] The calculation process of the actual coordinate value of the mouse relative to the canvas is as follows: the coordinate value of the mouse relative to the physical display device is subtracted from the coordinate value of the rendering canvas of the graphic configuration diagram to be processed relative to the physical display device to obtain the actual coordinate value of the mouse relative to the canvas.

[0039] Specifically, the calculation formula of the actual coordinate value of the mouse relative to the canvas is as follows:

[0040] in, The actual coordinates of the mouse relative to the canvas; The coordinates of the mouse relative to the physical display device; Configure the coordinates of the rendering canvas for the graphics to be processed relative to the physical display device.

[0041] Step 10: Compare the actual coordinate value of the mouse relative to the canvas with the actual rendering size of each graphic element in the graphic configuration diagram to be processed, and obtain the graphic element that matches the actual coordinate value of the mouse relative to the canvas. The graphic element that matches the actual coordinate value of the mouse relative to the canvas is used to respond to the mouse interaction event.

[0042] Specifically, the actual coordinate value of the mouse relative to the canvas is compared with the actual rendering size of each graphic element in the graphic configuration diagram to be processed, and the process of obtaining the graphic element matching the actual coordinate value of the mouse relative to the canvas is as follows: Step 101, compare the actual coordinate value of the mouse relative to the canvas with the minimum value of the actual rendering size of the primitive in the graphics configuration to be processed; if the actual coordinate value of the mouse relative to the canvas is greater than or equal to the minimum value of the actual rendering size of the primitive in the graphics configuration to be processed, jump to step 102; otherwise, end the method and ignore the mouse interaction event.

[0043] Step 102: compare the actual coordinate value of the mouse relative to the canvas with the maximum value of the actual rendering size of the graphic element in the graphics configuration to be processed; if the actual coordinate value of the mouse relative to the canvas is less than or equal to the maximum value of the actual rendering size of the graphic element in the graphics configuration to be processed, obtain the graphic element that matches the actual coordinate value of the mouse relative to the canvas, and use the graphic element that matches the actual coordinate value of the mouse relative to the canvas to respond to the mouse interaction event; otherwise, end the method and ignore the mouse interaction event.

[0044] Example description: Taking the rendering, display and interaction process of three preset graphic configurations on three different physical display devices as an example, the performance of the graphic configuration consistency processing method described in this embodiment 1 is tested. As shown in Tables 1-2, Table 1 is a feature information table of three graphic configurations, and Table 2 is an attribute information table of three physical display devices.

[0045] Table 1 Feature information table of three graphic configurations

[0046] Table 2 Attribute information table of three physical display devices

[0047] The rendering ratio of the physical display device is shown in Table 3 below.

[0048] Table 3 Rendering ratio of physical display devices

[0049] The actual rendering size and actual coordinate information of each graphic element in the graphics configuration diagram to be processed are shown in Table 4 below.

[0050] Table 4 The actual rendering size and actual coordinate information table of each graphic element in the graphics configuration diagram to be processed

[0051] It should be noted that the rendering ratio of the physical display device is given in Table 3. According to the rendering ratio of the physical display device given in Table 3, combined with the original size and original coordinate information of each primitive in the graphics configuration diagram to be processed, the actual rendering size and actual coordinate information of each primitive in the graphics configuration diagram to be processed can be obtained, that is, the coordinates and size of each primitive relative to the physical display device that needs to be rendered are obtained, as shown in Table 4.

[0052] Table 5 Interaction consistency processing results

[0053] It can be seen from Table 5 that when the coordinates of the mouse interaction event are (5, 5), the primitive mouse interaction events corresponding to the physical display devices Screen1-3 are not triggered; when the coordinates of the mouse interaction event are (30, 30), the primitive mouse interaction events corresponding to the physical display devices Screen1-2 are triggered, and the primitive mouse interaction events corresponding to the physical display device Screen3 are not triggered; when the coordinates of the mouse interaction event are (50, 50), the primitive mouse interaction events corresponding to the physical display devices Screen1-3 are all triggered.

[0054] The graphics configuration consistency processing method described in the present embodiment 1 dynamically reads the drawing size of the graphics configuration diagram and the attribute information of the physical display device to be rendered, obtains the rendering ratio of the physical display device, and then dynamically adjusts the size and coordinates of each primitive in the graphics configuration diagram according to the rendering ratio of the physical display device, and uses the adjusted primitives to render and display on the physical display device, so as to ensure that the graphics configuration diagram can be displayed in the best way on the physical display device; when the mouse interacts with the graphics configuration, after capturing the coordinates of the current mouse interaction event, the primitive information of the matching coordinates is searched in the adjusted primitive size and coordinate information record to complete the interaction event; under this method, no matter how many different physical display devices there are, the consistency of the display can be guaranteed; not only the work intensity and pressure of on-site implementation personnel are reduced, but also the foundation for being able to adapt to the rapid changes in business needs is laid.

[0055] Example 2 As attached Figure 2 As shown, this embodiment 2 provides a graphic configuration consistency processing system, including a display consistency processing module and an interaction consistency processing module.

[0056] A display consistency processing module is used to parse the graphics configuration diagram to be processed and obtain feature information of the graphics configuration diagram to be processed; obtain attribute information of a physical display device; determine the actual rendering size of the graphics configuration diagram to be processed according to the attribute information of the physical display device; calculate the rendering ratio of the physical display device according to the attribute information of the physical display device and the original size of the canvas of the graphics configuration diagram to be processed; obtain the actual rendering size and actual coordinate information of each graphic element in the graphics configuration diagram to be processed according to the rendering ratio of the physical display device and the original size and original coordinate information of each graphic element in the graphics configuration diagram to be processed; output and send the actual rendering size of the graphics configuration diagram to be processed, the actual rendering size of each graphic element in the graphics configuration diagram to be processed and the actual coordinate information to the physical display device.

[0057] An interaction consistency processing module is used to monitor mouse interaction events; when a mouse interaction event is monitored, the coordinates of the mouse relative to the physical display device are obtained; according to the actual rendering size of the graphic configuration diagram to be processed, the coordinates of the rendering canvas of the graphic configuration diagram to be processed relative to the physical display device are obtained; according to the coordinates of the mouse relative to the physical display device and the coordinates of the rendering canvas of the graphic configuration diagram to be processed relative to the physical display device, the actual coordinate value of the mouse relative to the canvas is calculated; the actual coordinate value of the mouse relative to the canvas is compared with the actual rendering size of each graphic element in the graphic configuration diagram to be processed, and the graphic element that matches the actual coordinate value of the mouse relative to the canvas is obtained; wherein the graphic element that matches the actual coordinate value of the mouse relative to the canvas is used to respond to the mouse interaction event.

[0058] Example 3 As attached Figure 3 As shown, this embodiment 3 provides a graphics configuration consistency processing device, including: a memory for storing a computer program; a processor for implementing the steps of a graphics configuration consistency processing method when executing the computer program; or, the processor implements the functions of each module in the above-mentioned graphics configuration consistency processing system when executing the computer program.

[0059] When the processor executes the computer program, the steps of implementing the above-mentioned method for processing consistency of graphic configuration are, for example: Parse the graphics configuration diagram to be processed to obtain feature information of the graphics configuration diagram to be processed; obtain attribute information of the physical display device; determine the actual rendering size of the graphics configuration diagram to be processed according to the attribute information of the physical display device; calculate the rendering ratio of the physical display device according to the attribute information of the physical display device and the original size of the canvas of the graphics configuration diagram to be processed; obtain the actual rendering size and actual coordinate information of each graphic element in the graphics configuration diagram to be processed according to the rendering ratio of the physical display device and the original size and original coordinate information of each graphic element in the graphics configuration diagram to be processed; output and send the actual rendering size of the graphics configuration diagram to be processed, the actual rendering size and actual coordinate information of each graphic element in the graphics configuration diagram to be processed to the physical display device; The invention discloses a method for monitoring mouse interaction events; when monitoring a mouse interaction event, obtaining the coordinates of the mouse relative to the physical display device; obtaining the coordinates of the rendering canvas of the graphics configuration diagram to be processed relative to the physical display device according to the actual rendering size of the graphics configuration diagram to be processed; calculating the actual coordinate value of the mouse relative to the canvas according to the coordinates of the mouse relative to the physical display device and the coordinates of the rendering canvas of the graphics configuration diagram to be processed relative to the physical display device; comparing the actual coordinate value of the mouse relative to the canvas with the actual rendering size of each graphic element in the graphics configuration diagram to be processed, and obtaining the graphic element that matches the actual coordinate value of the mouse relative to the canvas; wherein, the graphic element that matches the actual coordinate value of the mouse relative to the canvas is used to respond to the mouse interaction event.

[0060] Alternatively, when the processor executes the computer program, the functions of each module in the above-mentioned graphic configuration consistency processing system are realized, for example: A display consistency processing module is used to parse the graphics configuration diagram to be processed and obtain feature information of the graphics configuration diagram to be processed; obtain attribute information of a physical display device; determine the actual rendering size of the graphics configuration diagram to be processed according to the attribute information of the physical display device; calculate the rendering ratio of the physical display device according to the attribute information of the physical display device and the original size of the canvas of the graphics configuration diagram to be processed; obtain the actual rendering size and actual coordinate information of each graphic element in the graphics configuration diagram to be processed according to the rendering ratio of the physical display device and the original size and original coordinate information of each graphic element in the graphics configuration diagram to be processed; output and send the actual rendering size of the graphics configuration diagram to be processed, the actual rendering size of each graphic element in the graphics configuration diagram to be processed and the actual coordinate information to the physical display device. An interaction consistency processing module is used to monitor mouse interaction events; when a mouse interaction event is monitored, the coordinates of the mouse relative to the physical display device are obtained; according to the actual rendering size of the graphic configuration diagram to be processed, the coordinates of the rendering canvas of the graphic configuration diagram to be processed relative to the physical display device are obtained; according to the coordinates of the mouse relative to the physical display device and the coordinates of the rendering canvas of the graphic configuration diagram to be processed relative to the physical display device, the actual coordinate value of the mouse relative to the canvas is calculated; the actual coordinate value of the mouse relative to the canvas is compared with the actual rendering size of each graphic element in the graphic configuration diagram to be processed, and the graphic element that matches the actual coordinate value of the mouse relative to the canvas is obtained; wherein the graphic element that matches the actual coordinate value of the mouse relative to the canvas is used to respond to the mouse interaction event.

[0061] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of completing preset functions, and the instruction segments are used to describe the execution process of the computer program in the graphic configuration consistency processing device.

[0062] The graphics configuration consistency processing device may be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The graphics configuration consistency processing device may include, but is not limited to, a processor and a memory. Those skilled in the art may understand that the above are examples of graphics configuration consistency processing devices and do not constitute a limitation on the graphics configuration consistency processing device. The graphics configuration consistency processing device may include more components than the above, or a combination of certain components, or different components. For example, the graphics configuration consistency processing device may also include input and output devices, network access devices, buses, etc.

[0063] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The processor is the control center of the graphic configuration consistency processing device, and uses various interfaces and lines to connect various parts of the entire graphic configuration consistency processing device.

[0064] The memory may be used to store the computer program and / or module, and the processor implements various functions of the graphic configuration consistency processing device by running or executing the computer program and / or module stored in the memory and calling the data stored in the memory.

[0065] The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0066] Example 4 This embodiment 4 also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, it implements the steps of the graphic configuration consistency processing method; alternatively, if the module / unit integrated in the graphic configuration consistency processing system is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.

[0067] Based on such understanding, the present invention implements all or part of the processes in the above-mentioned method for processing consistency of graphic configurations, and can also be completed by instructing related hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned method for processing consistency of graphic configurations can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or preset intermediate form, etc.

[0068] The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium, etc.

[0069] It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electrical carrier signals and telecommunication signals.

[0070] The graphic configuration consistency processing method described in the present invention realizes unified display and interaction of graphic configuration according to the actual conditions of different physical display devices, avoids the display and interaction problems caused by inconsistency of various devices in the actual environment and the inability of the same graphic configuration diagram to adapt to different devices, and provides a new idea for the consistency of new energy system graphic configuration in the actual field.

[0071] The above embodiment is only one of the implementation methods that can realize the technical solution of the present invention. The scope of protection claimed by the present invention is not limited only to this embodiment, but also includes changes, replacements and other implementation methods that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed by the present invention.

Claims

1. A method for processing consistency of graphic configuration, characterized in that: include: Acquire characteristic information of the graphics configuration diagram to be processed and attribute information of the physical display device; wherein the characteristic information of the graphics configuration diagram to be processed includes the original size of the canvas of the graphics configuration diagram to be processed and the original size and original coordinate information of each graphic element in the graphics configuration diagram to be processed; Determining the actual rendering size of the graphic configuration diagram to be processed according to the attribute information of the physical display device; Calculate the rendering ratio of the physical display device according to the attribute information of the physical display device and the original size of the canvas of the graphic configuration diagram to be processed; According to the rendering ratio of the physical display device and the original size and original coordinate information of each graphic element in the graphic configuration diagram to be processed, the actual rendering size and actual coordinate information of each graphic element in the graphic configuration diagram to be processed are obtained.

2. A method for processing consistency of graphic configuration according to claim 1, characterized in that: The attribute information of the physical display device includes a resolution and a scaling ratio of the physical display device.

3. A method for processing consistency of graphic configuration according to claim 2, characterized in that: The actual rendering size of the to-be-processed graphic configuration diagram is the product of the resolution of the physical display device and the scaling ratio.

4. A method for processing consistency of graphic configuration according to claim 2, characterized in that: The process of calculating the rendering ratio of the physical display device according to the attribute information of the physical display device and the original size of the canvas of the graphic configuration diagram to be processed is as follows: in, The rendering scale of the physical display device; is the resolution of the physical display device; The scaling factor of the physical display device; Configure the original size of the drawing canvas for the graphics to be processed.

5. A method for processing consistency of graphic configuration according to claim 1, characterized in that: The actual rendering size of each graphic element in the graphics configuration diagram to be processed is: in, Configure the graphics to be processed. The actual rendering size of each primitive; Configure the graphics to be processed. The original size of the primitive; The rendering scale of the physical display device; The actual coordinate information of each graphic element in the graphics configuration diagram to be processed is as follows: in, Configure the graphics to be processed. The actual coordinate information of each graphic element; Configure the graphics to be processed. The original coordinate information of each primitive.

6. A method for processing consistency of graphic configuration according to claim 1, characterized in that: The method further includes an interactive consistency processing step; wherein the interactive consistency processing step is specifically as follows: Monitor mouse interaction events and obtain the coordinates of the mouse relative to the physical display device; According to the actual rendering size of the graphic configuration diagram to be processed, obtaining the coordinates of the rendering canvas of the graphic configuration diagram to be processed relative to the physical display device; Calculate the actual coordinate value of the mouse relative to the canvas according to the coordinates of the mouse relative to the physical display device and the coordinates of the rendering canvas of the to-be-processed graphic configuration diagram relative to the physical display device; The actual coordinate value of the mouse relative to the canvas is compared with the actual rendering size of each graphic element in the graphic configuration diagram to be processed, and the graphic element that matches the actual coordinate value of the mouse relative to the canvas is obtained; wherein the graphic element that matches the actual coordinate value of the mouse relative to the canvas is used to respond to the mouse interaction event.

7. A method for processing consistency of graphic configuration according to claim 6, characterized in that: The calculation process of the actual coordinate value of the mouse relative to the canvas is specifically as follows: The coordinates of the rendering canvas of the to-be-processed graphic configuration diagram relative to the physical display device are subtracted from the coordinates of the mouse relative to the physical display device to obtain the actual coordinate value of the mouse relative to the canvas.

8. A graphics configuration consistency processing system, characterized in that: include: A display consistency processing module, used to obtain characteristic information of a graphics configuration diagram to be processed and attribute information of a physical display device; wherein the characteristic information of the graphics configuration diagram to be processed includes the original size of the canvas of the graphics configuration diagram to be processed and the original size and original coordinate information of each graphic element in the graphics configuration diagram to be processed; according to the attribute information of the physical display device, the actual rendering size of the graphics configuration diagram to be processed is determined; according to the attribute information of the physical display device and the original size of the canvas of the graphics configuration diagram to be processed, the rendering ratio of the physical display device is calculated; according to the rendering ratio of the physical display device and the original size and original coordinate information of each graphic element in the graphics configuration diagram to be processed, the actual rendering size and actual coordinate information of each graphic element in the graphics configuration diagram to be processed are obtained; An interactive consistency processing module is used to monitor mouse interaction events and obtain the coordinates of the mouse relative to a physical display device; obtain the coordinates of the rendering canvas of the graphics configuration diagram to be processed relative to the physical display device according to the actual rendering size of the graphics configuration diagram to be processed; calculate the actual coordinate value of the mouse relative to the canvas according to the coordinates of the mouse relative to the physical display device and the coordinates of the rendering canvas of the graphics configuration diagram to be processed relative to the physical display device; compare the actual coordinate value of the mouse relative to the canvas with the actual rendering size of each graphic element in the graphics configuration diagram to be processed, and obtain the graphic element that matches the actual coordinate value of the mouse relative to the canvas; wherein the graphic element that matches the actual coordinate value of the mouse relative to the canvas is used to respond to the mouse interaction event.

9. A graphics configuration consistency processing device, characterized in that: include: a processor suitable for executing a computer program; A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, the method for processing consistency of graphic configuration according to any one of claims 1 to 7 is executed.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for processing the consistency of graphic configurations as described in any one of claims 1 to 7 is implemented.