Data display mode switching method, device, equipment and storage medium

By receiving user switching instructions and using asynchronous rendering technology to generate corresponding data display diagrams, the problem of time-consuming and efficient switching of data display mode in the prior art is solved, and fast and efficient switching of data display mode is achieved.

CN114529623BActive Publication Date: 2025-06-06SHENZHEN YIDA TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210057792.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-18
Publication Date
2025-06-06
Estimated Expiration
2042-01-18

AI Technical Summary

Technical Problem

In the prior art, switching data display modes is time-consuming and efficient, and users need to operate manually, which is time-consuming and inefficient.

Method used

A data display method is provided. By receiving two-dimensional or three-dimensional switching instructions input by the user, the three-dimensional data display diagram on the user's interaction interface is converted into corresponding data information, and the corresponding two-dimensional or three-dimensional data display diagram is generated using asynchronous rendering method and displayed on the user's interaction interface.

Benefits of technology

The parallel processing of rendered objects through asynchronous rendering reduces processing time, speeds up switching efficiency, and solves the problem of low switching efficiency in the prior art.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114529623B_ABST
    Figure CN114529623B_ABST
Patent Text Reader

Abstract

The present invention discloses a data display mode switching method, device, equipment and storage medium, belonging to the field of data processing technology. The method comprises: if a two-dimensional switching instruction input by a user is received, a three-dimensional data display diagram on a user interaction interface is converted into corresponding data information; based on the data information, an asynchronous rendering method is adopted to generate a two-dimensional data display diagram corresponding to the three-dimensional data display diagram, and the two-dimensional data display diagram is displayed on the user interaction interface. When the present invention receives a switching instruction input by a user, an asynchronous rendering method is adopted to render the three-dimensional or two-dimensional display diagram to be switched, and multiple objects to be rendered can be processed in parallel, which reduces the processing time and speeds up the switching efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a data display mode switching method, device, equipment and storage medium. Background Art

[0002] In the related art, data is generally displayed in a single manner such as a bar chart, a line chart, a pie chart, etc.

[0003] However, a single chart cannot fully display data, and when data needs to be displayed in different ways, users are often required to perform manual operations again, which is time-consuming and inefficient. Summary of the invention

[0004] The main purpose of the present invention is to provide a data display mode switching method, device, equipment and storage medium, aiming to solve the technical problem of long time consumption and low efficiency in data display mode switching in the prior art.

[0005] According to a first aspect of the present invention, a method for switching a data display mode is provided, the method comprising:

[0006] If a two-dimensional switching instruction input by the user is received, the three-dimensional data display diagram on the user interaction interface is converted into corresponding data information;

[0007] Based on the data information, an asynchronous rendering method is adopted to generate a two-dimensional data display diagram corresponding to the three-dimensional data display diagram, and the two-dimensional data display diagram is displayed on the user interaction interface.

[0008] Optionally, if a two-dimensional switching instruction input by the user is received, before converting the three-dimensional data display graph on the user interaction interface into corresponding data information, the method further includes:

[0009] Acquire the data information and create a three-dimensional base map;

[0010] Generate corresponding multiple three-dimensional models according to the data information;

[0011] Add the plurality of three-dimensional models to the three-dimensional base map, generate the three-dimensional data display diagram, and display the three-dimensional data display diagram on the user interaction interface.

[0012] Optionally, generating a corresponding plurality of three-dimensional models according to the data information includes:

[0013] According to the data information, a plurality of groups of three-dimensional model data included in the data information are obtained;

[0014] According to the multiple groups of the three-dimensional model data, a corresponding plurality of the three-dimensional models are generated.

[0015] Optionally, the adding the plurality of three-dimensional models to the display base map to generate the three-dimensional data display map includes:

[0016] According to the data information, obtaining arrangement data of a plurality of the three-dimensional models;

[0017] According to the arrangement data, a plurality of the three-dimensional models are added to the display base map to generate the three-dimensional data display map.

[0018] Optionally, if a two-dimensional switching instruction input by the user is received, converting the three-dimensional data display graph on the user interaction interface into corresponding data information includes:

[0019] If the two-dimensional switching instruction is received, determining corresponding three-dimensional data according to the three-dimensional data display diagram;

[0020] Query target data corresponding to the three-dimensional data to obtain the data information.

[0021] Optionally, the step of generating a two-dimensional data display graph corresponding to the three-dimensional data display graph by using an asynchronous rendering method based on the data information includes:

[0022] Generate a corresponding plane grid map according to the three-dimensional data display diagram; the plane grid map includes at least one grid;

[0023] Based on the data information, determining a rendering color of at least one of the grids;

[0024] According to the rendering color, at least one of the grids is rendered in an asynchronous rendering manner to generate the two-dimensional data display graph.

[0025] Optionally, after generating a two-dimensional data display graph corresponding to the three-dimensional data display graph in an asynchronous rendering manner based on the data information and displaying the two-dimensional data display graph on the user interaction interface, the method further includes:

[0026] If a three-dimensional switching instruction input by the user is received, converting the two-dimensional data display graph into the data information;

[0027] Based on the data information, a three-dimensional data display graph corresponding to the two-dimensional data display graph is generated, and the three-dimensional data display graph is displayed on the user interaction interface.

[0028] According to a second aspect of the present invention, a data display mode switching device is provided, the device comprising:

[0029] The information receiving module is used to convert the three-dimensional data display diagram on the user interaction interface into corresponding data information if a two-dimensional switching instruction input by the user is received;

[0030] The display switching module is used to generate a two-dimensional data display diagram corresponding to the three-dimensional data display diagram based on the data information by using an asynchronous rendering method, and display the two-dimensional data display diagram on the user interaction interface.

[0031] According to a third aspect of the present invention, there is provided a data display mode switching device, comprising: a memory, a processor, and a data display mode switching program stored in the memory and executable on the processor, wherein when the data display mode switching program is executed by the processor, each step described in any possible implementation of the implementation of the first aspect is implemented.

[0032] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, on which a data display mode switching program is stored, and when the data display mode switching program is executed by a processor, the various steps described in any possible implementation method of the first aspect are implemented.

[0033] An embodiment of the present invention proposes a data display mode switching method, device, equipment and storage medium. If the data display mode switching device receives a two-dimensional switching instruction input by a user, the three-dimensional data display diagram on the user interaction interface is converted into corresponding data information; based on the data information, an asynchronous rendering method is adopted to generate a two-dimensional data display diagram corresponding to the three-dimensional data display diagram, and the two-dimensional data display diagram is displayed on the user interaction interface.

[0034] When switching the data display mode, the present invention determines the corresponding display data based on the current display image, and then processes the data through asynchronous rendering, and displays the data in a specified display mode. Different from the prior art, which is time-consuming and inefficient when switching the data display mode, the present invention uses an asynchronous rendering method to render the three-dimensional or two-dimensional display image to be switched when receiving a switching instruction input by the user, and can process multiple objects to be rendered in parallel, reducing processing time and speeding up switching efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present invention 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, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0036] Figure 1 A schematic diagram of the structure of a data display mode switching device in a hardware operating environment involved in an embodiment of the present invention;

[0037] Figure 2 A schematic flow chart of a first embodiment of a method for switching data display modes according to the present invention;

[0038] Figure 3 For the present invention Figure 2 Schematic diagram of the process before step S201;

[0039] Figure 4 For the present invention Figure 3 A detailed flow chart of step S302;

[0040] Figure 5 For the present invention Figure 3 A detailed flow chart of step S303;

[0041] Figure 6 For the present invention Figure 2 A detailed flow chart of the step S201;

[0042] Figure 7 For the present invention Figure 2 A detailed flow chart of the step S202;

[0043] Figure 8 For the present invention Figure 2 Schematic diagram of the process after step S202;

[0044] Fig. 9 It is a schematic diagram of functional modules of a data display mode switching device involved in an embodiment of the present invention.

[0045] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0046] 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.

[0047] The main solution of an embodiment of the present invention is: if a two-dimensional switching instruction is received from the user, the three-dimensional data display diagram on the user interaction interface is converted into corresponding data information; based on the data information, an asynchronous rendering method is adopted to generate a two-dimensional data display diagram corresponding to the three-dimensional data display diagram, and the two-dimensional data display diagram is displayed on the user interaction interface.

[0048] In the related art, data is generally displayed in a single way, such as a bar chart, a line chart, a pie chart, etc. However, a single chart is difficult to fully display data, and when data needs to be displayed in a different way, users are often required to manually re-operate, which is time-consuming and inefficient.

[0049] The present invention provides a solution for a data display mode switching device. When switching the data display mode, the corresponding display data is determined based on the current display image, and then the data is processed by asynchronous rendering to display the data in a specified display mode. The present invention is different from the prior art in that the switching of the data display mode is time-consuming and inefficient. When receiving the switching instruction input by the user, the asynchronous rendering method is used to render the three-dimensional or two-dimensional display image to be switched, and multiple objects to be rendered can be processed in parallel, which reduces the processing time and speeds up the switching efficiency.

[0050] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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, 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.

[0051] The terms "first" and "second" in the description and claims of the embodiments of the present invention are used to distinguish similar objects, but not necessarily to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein.

[0052] Reference Figure 1 , Figure 1 It is a structural schematic diagram of a data display mode switching device of a hardware operating environment involved in an embodiment of the present invention.

[0053] like Figure 1As shown, the data display mode switching device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (RandomAccess Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0054] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the data display mode switching device, and may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.

[0055] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, an information receiving module, a display switching module, and a data display mode switching program.

[0056] exist Figure 1 In the data display mode switching device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the data display mode switching device of the present invention can be set in the data display mode switching device, and the data display mode switching device calls the data display mode switching program stored in the memory 1005 through the processor 1001, and executes the data display mode switching method provided by the embodiment of the present invention.

[0057] Based on the above hardware structure but not limited to the above hardware structure, the present invention provides a first embodiment of a data display mode switching method. Figure 2 , Figure 2 1 is a flow chart of a first embodiment of a method for switching data display modes according to the present invention.

[0058] In this embodiment, the method includes:

[0059] Step S201, if a two-dimensional switching instruction input by the user is received, converting the three-dimensional data display diagram on the user interaction interface into corresponding data information;

[0060] In this embodiment, the execution subject is a data display mode switching device, which provides a user interaction interface, on which data can be displayed in two or three dimensions. In one case, a three-dimensional display graph is currently displayed on the user interaction interface, and the user can input a two-dimensional switching instruction through the user interaction interface at any time. After receiving the instruction, the data display mode switching device can perform the corresponding operation. It can be understood that to generate a data display graph, the corresponding data information must be obtained. Therefore, in this embodiment, the corresponding data information will first be obtained based on the currently displayed three-dimensional data display graph. It should be emphasized that this process can be completed when the data display mode switching device automatically obtains data from the background when the switching instruction is received, without the need for the user to re-import the data, thereby improving processing efficiency.

[0061] In addition, a feasible way for the user to input the switching instruction is: setting a dimension switching button on the user interaction interface, the user can directly click the button, and the user interaction interface will switch to a display diagram of another dimension for display. For example, if the current display diagram is a three-dimensional data display diagram, it will switch to a two-dimensional data display diagram after clicking. If the current display diagram is a two-dimensional data display diagram, it will switch to a three-dimensional data display diagram after clicking.

[0062] In a specific embodiment, referring to Figure 6 , Figure 6 For the present invention Figure 2 The detailed flow diagram of step S201 in the embodiment of the present invention, wherein if a two-dimensional switching instruction input by a user is received, the three-dimensional data display diagram on the user interaction interface is converted into corresponding data information, including:

[0063] Step C10, if the two-dimensional switching instruction is received, determining corresponding three-dimensional data according to the three-dimensional data display graph;

[0064] First of all, it should be noted that the three-dimensional data display diagram is based on the three-dimensional data of the object, and the corresponding three-dimensional model is established to display the data. The specific method will be described in detail below, and no further details will be given here. Therefore, when the data display mode switching device receives a two-dimensional switching instruction, it means that the three-dimensional data display diagram is displayed on the user interaction interface at this time, and the corresponding three-dimensional data can be determined. A feasible method is: since it is necessary to set the model parameters and other information when establishing a three-dimensional model, and generate corresponding configuration information and configuration items, the configuration information in the configuration items can be read to obtain the corresponding three-dimensional data. Among them, the three-dimensional data can include the identification information of the corresponding object such as the object name or number, 3D information such as length, width and height, and can also include relevant information such as materials and specific locations, which can be set according to actual needs.

[0065] Step C20, querying the target data corresponding to the three-dimensional data to obtain the data information.

[0066] After obtaining the above three-dimensional data, in order to generate a two-dimensional data display chart based on it, the corresponding data can be searched and obtained in the background database according to the three-dimensional data. Specifically, as mentioned above, the three-dimensional data can contain identification information of the corresponding object, and this identification information can be used as a label to obtain the corresponding data information in the database.

[0067] Step S202: Based on the data information, an asynchronous rendering method is used to generate a two-dimensional data display graph corresponding to the three-dimensional data display graph, and the two-dimensional data display graph is displayed on the user interaction interface.

[0068] As described above, after obtaining the relevant data information, the corresponding two-dimensional data display diagram can be generated accordingly. Since two-dimensional data cannot be presented in three dimensions like three-dimensional data, in order to make the obtained two-dimensional data display diagram more intuitive and vivid, a renderer is used in this embodiment to render the two-dimensional data display diagram. The specific method is asynchronous rendering, which allows each unit to be processed to execute related steps in parallel, thereby speeding up processing efficiency and reducing switching time.

[0069] In a specific embodiment, referring to Figure 7 , Figure 7 For the present invention Figure 2 The detailed flow diagram of step S202 in the embodiment of the present invention, wherein the asynchronous rendering method is used to generate a two-dimensional data display diagram corresponding to the three-dimensional data display diagram based on the data information, including:

[0070] Step D10, generating a corresponding plane grid map according to the three-dimensional data display map; the plane grid map includes at least one grid;

[0071] As mentioned above, the three-dimensional data display diagram obtained above shows some three-dimensional models, and one three-dimensional model corresponds to one physical object, while in the two-dimensional plane grid diagram, grids can be used to identify each physical object, that is, the plane grid diagram. Moreover, these grids correspond to the three-dimensional models one by one, that is, if a three-dimensional model is located in the upper left corner of the three-dimensional model display diagram, then its corresponding grid is also located in the upper left corner of the two-dimensional model display diagram. It can be understood that in the plane grid diagram, the corresponding grid can be set according to the actual shape and size of each object, such as: for each object in a warehouse, the object is generally rectangular, and the specifications of the objects in a warehouse are generally consistent, so some rectangular grids of the same size can be used to represent these objects.

[0072] Step D20, determining a rendering color of at least one of the grids based on the data information;

[0073] Take the objects in the warehouse as an example. As mentioned above, after obtaining the plane grid map, one grid represents one object. However, at this time, only the arrangement of the objects can be seen from the map. In order to enable users to intuitively see more information such as the occupancy of objects, the plane grid map needs to be rendered.

[0074] The number of cargo boxes on each object and the maximum storage capacity of each object can be obtained from the above data information, and then the current occupancy rate of each object can be calculated based on the maximum storage capacity of each object and the current number of cargo boxes.

[0075] In order to intuitively display the occupancy of each object, each grid of the plane grid map can be rendered in color based on the occupancy rate calculated above. One feasible way is: when the occupancy rate of an object reaches the first threshold, the color of the corresponding grid can be set to red; when the occupancy rate reaches the second threshold but has not yet reached the first threshold, the color of the corresponding grid can be set to yellow; when the occupancy rate reaches the third threshold but has not yet reached the second threshold, the color of the corresponding grid can be set to green; when the occupancy rate does not reach the third threshold, the color of the corresponding grid can be set to white. Among them, the first threshold, the second threshold, and the third threshold can be set to 80%, 50%, and 20%, respectively. Of course, the thresholds and colors can be set by yourself, more or less thresholds and colors can be set, and different combinations of thresholds and colors can be set. This embodiment does not limit this.

[0076] Step D30, rendering at least one of the grids in an asynchronous rendering manner according to the rendering color to generate the two-dimensional data display graph.

[0077] After determining the rendering color of each mesh, you can use the above asynchronous rendering method to use the renderer to render the color of each mesh. The asynchronous rendering method allows multiple meshes to be rendered in parallel, thereby speeding up the rendering speed. Among them, the renderer is the core part of the 3D engine and is an advanced global illumination rendering plug-in. It can draw objects to the screen.

[0078] In this embodiment, on the one hand, two data display modes, 3D and 2D, are provided to users so that users can view data from more angles and improve user experience; on the other hand, asynchronous rendering is used for rendering processing, which speeds up the rendering speed and shortens the user waiting time.

[0079] Further, as an embodiment, refer to Figure 3 , Figure 3 For the present invention Figure 2 In the flowchart before step S201, if a two-dimensional switching instruction input by a user is received, before converting the three-dimensional data display diagram on the user interaction interface into corresponding data information, the method further includes:

[0080] Step S301, obtaining the data information and creating a three-dimensional base map;

[0081] First, the required data information is obtained from the background database, and the user can upload one or more pictures. After receiving these pictures, these pictures are integrated and a 3D base map is generated using WebGL technology. The 3D base map can be the corresponding scene obtained based on the above pictures, and then objects are added to the scene according to the data information. Of course, if the user does not upload pictures, some preset 3D base maps can also be provided for use.

[0082] Step S302, generating a plurality of corresponding three-dimensional models according to the data information;

[0083] As mentioned above, relevant information of various physical objects can be obtained from data information, and modeling can be done accordingly.

[0084] In a specific embodiment, referring to Figure 4 , Figure 4 For the present invention Figure 3 The detailed flow chart of step S302 in the embodiment of the present invention is as follows: generating a plurality of corresponding three-dimensional models according to the data information includes:

[0085] Step A10: obtaining, according to the data information, a plurality of groups of three-dimensional model data contained in the data information.

[0086] Step A20: generating a corresponding plurality of the three-dimensional models according to the plurality of sets of the three-dimensional model data.

[0087] Specifically, the above data information may include parameter information such as the quantity and specifications of the corresponding physical object. According to these parameter information, the parameters of the model corresponding to each physical object, such as length, width, height, material, etc., can be set, and then the corresponding three-dimensional model data can be obtained. Finally, the three-dimensional model data is used to set parameters and draw the model, so as to obtain the corresponding three-dimensional model.

[0088] Step S303: adding the plurality of three-dimensional models to the three-dimensional base map, generating the three-dimensional data display diagram, and displaying the three-dimensional data display diagram on the user interaction interface.

[0089] After obtaining the above three-dimensional models, these three-dimensional models are added to the three-dimensional base map generated previously to complete the three-dimensional display of the data.

[0090] In a specific embodiment, referring to Figure 5 , Figure 5 For the present invention Figure 5 The detailed flow chart of step S303 in the embodiment of the present invention, wherein the adding of the plurality of three-dimensional models to the display base map to generate the three-dimensional data display map comprises:

[0091] Step B10, obtaining arrangement data of a plurality of the three-dimensional models according to the data information;

[0092] Step B20, adding the plurality of three-dimensional models to the display base map according to the arrangement data, and generating the three-dimensional data display map.

[0093] The above data information can also be the actual placement data of each object, and the actual placement method can be obtained through the actual placement data. First, the actual placement data corresponding to each object can be determined first, and then the actual placement method of each object can be determined based on this, and finally all objects are added to the three-dimensional base map according to the actual placement method. A feasible way is: the actual placement data contains the number of each object and the corresponding coordinates, and then each object can be added to the three-dimensional base map according to the corresponding coordinates. For example, for object A, its coordinates are queried to be (m, n), then it is added to the position of the mth row and nth column in the three-dimensional base map. It can be understood that these coordinates are set corresponding to the actual position of the object.

[0094] Finally, the 3D model is rendered using asynchronous rendering to make it more realistic. Specifically, define the renderer and rendering window WebGLRenderer; define the scene Scene, the warehouse; define the camera OrthographicCamera, and set its position and angle; define lighting, including point light source (PointLight) and ambient light (AmbientLight); define the geometry BoxGeometry; define the material map MeshLambertMaterial, including the appearance of the object; perform asynchronous rendering based on the above settings. Among them, rendering specifically includes vertex processing, rasterization processing, texturing processing, and lighting processing.

[0095] In this embodiment, before actual application, a three-dimensional data display chart can be automatically generated and displayed when a user uploads a picture, without the need for other operation instructions, thereby speeding up processing efficiency.

[0096] Further, as an embodiment, refer to Figure 8 , Figure 8 For the present invention Figure 2 The flowchart after step S202 in step S203 is as follows: based on the data information, an asynchronous rendering method is adopted to generate a two-dimensional data display diagram corresponding to the three-dimensional data display diagram, and after the two-dimensional data display diagram is displayed on the user interaction interface, the method further includes:

[0097] Step S801, if a three-dimensional switching instruction input by the user is received, converting the two-dimensional data display graph into the data information;

[0098] It is not difficult to understand that users may switch between two-dimensional data display graphs and three-dimensional data display graphs at any time according to their needs. Therefore, after the user interaction interface is switched to the two-dimensional data display graph as mentioned above, if the user issues a three-dimensional switching instruction, that is, clicks the dimension switching button again, the corresponding data information is obtained according to the currently displayed two-dimensional data display graph. The specific method is basically the same as the processing method of the above-mentioned three-dimensional data display graph, which will not be repeated here.

[0099] Step S802: generating a three-dimensional data display graph corresponding to the two-dimensional data display graph based on the data information, and displaying the three-dimensional data display graph on the user interaction interface.

[0100] After obtaining the corresponding data information, a three-dimensional data display graph is obtained through modeling, adding, rendering and other steps, and displayed on the user interaction interface. The specific method is basically the same as above and will not be repeated here.

[0101] It should be emphasized that when the user needs to switch again, he only needs to click the switch button again. The above steps will be re-executed each time the switch is made, and the asynchronous rendering method can effectively shorten the processing time and speed up the processing efficiency. In addition, since the data will be acquired again each time, it can ensure that the latest data information is acquired each time the switch is made, and then the corresponding display graph is generated based on the latest data. On the one hand, it can ensure that the obtained two-dimensional or three-dimensional data display graph can actually display the latest data. On the other hand, the above steps can be repeated without the need for additional update operations, which is also conducive to speeding up processing efficiency.

[0102] In this embodiment, real-time switching between two-dimensional data display graphs and three-dimensional data display graphs can be completed through a simple switching button, and it can be ensured that the generated data display graphs display the latest data information, which greatly simplifies the user operation process and improves efficiency and convenience.

[0103] Based on the same inventive concept, the embodiment of the present invention further provides a device for switching a data display mode, referring to Fig. 9 As shown, including:

[0104] The information receiving module is used to convert the three-dimensional data display diagram on the user interaction interface into corresponding data information if a two-dimensional switching instruction input by the user is received;

[0105] The display switching module is used to generate a two-dimensional data display diagram corresponding to the three-dimensional data display diagram based on the data information by using an asynchronous rendering method, and display the two-dimensional data display diagram on the user interaction interface.

[0106] As an optional embodiment, the data display mode switching device may further include:

[0107] The data acquisition module is used to acquire the data information and create a three-dimensional base map.

[0108] As an optional embodiment, the data display mode switching device may further include:

[0109] The model generation module is used to generate corresponding multiple three-dimensional models according to the data information.

[0110] As an optional embodiment, the data display mode switching device may further include:

[0111] The three-dimensional display module is used to add the plurality of three-dimensional models to the three-dimensional base map, generate the three-dimensional data display diagram, and display the three-dimensional data display diagram on the user interaction interface.

[0112] In addition, in one embodiment, the present application further provides a computer storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method in the aforementioned method embodiment are implemented.

[0113] In some embodiments, the computer readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or various devices including one or any combination of the above memories. The computer may be various computing devices including intelligent terminals and servers.

[0114] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0115] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0116] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.

[0117] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for switching data display modes, It is characterized in that The method comprises: If a two-dimensional switching instruction input by the user is received, the three-dimensional data display diagram on the user interaction interface is converted into corresponding data information; Based on the data information, using an asynchronous rendering method, generating a two-dimensional data display graph corresponding to the three-dimensional data display graph, and displaying the two-dimensional data display graph on the user interaction interface; The step of generating a two-dimensional data display graph corresponding to the three-dimensional data display graph by using an asynchronous rendering method based on the data information includes: Generate a corresponding plane grid map according to the three-dimensional data display diagram; the plane grid map includes at least one grid; the grids in the plane grid map correspond one-to-one to the three-dimensional models in the three-dimensional data display diagram, one three-dimensional model corresponds to one physical object, and each of the grids is set according to the actual shape and size of the corresponding physical object; Based on the data information, determining a rendering color of at least one of the grids; According to the rendering color, at least one of the grids is rendered in an asynchronous rendering manner to generate the two-dimensional data display graph.

2. The method according to claim 1, It is characterized in that If a two-dimensional switching instruction input by the user is received, before converting the three-dimensional data display graph on the user interaction interface into corresponding data information, the method further includes: Acquire the data information and create a three-dimensional base map; Generate corresponding multiple three-dimensional models according to the data information; Add the plurality of three-dimensional models to the three-dimensional base map, generate the three-dimensional data display diagram, and display the three-dimensional data display diagram on the user interaction interface.

3. The method according to claim 2, It is characterized in that Generating a plurality of corresponding three-dimensional models according to the data information includes: According to the data information, a plurality of groups of three-dimensional model data included in the data information are obtained; According to the multiple groups of the three-dimensional model data, a corresponding plurality of the three-dimensional models are generated.

4. The method according to claim 2, It is characterized in that The adding of the plurality of three-dimensional models to the three-dimensional base map to generate the three-dimensional data display graph comprises: According to the data information, obtaining arrangement data of a plurality of the three-dimensional models; According to the arrangement data, a plurality of the three-dimensional models are added to the three-dimensional base map to generate the three-dimensional data display map.

5. The method according to claim 1, It is characterized in that If a two-dimensional switching instruction input by the user is received, the three-dimensional data display diagram on the user interaction interface is converted into corresponding data information, including: If the two-dimensional switching instruction is received, determining corresponding three-dimensional data according to the three-dimensional data display diagram; Query target data corresponding to the three-dimensional data to obtain the data information.

6. The method according to claim 1, It is characterized in that After generating a two-dimensional data display graph corresponding to the three-dimensional data display graph by using an asynchronous rendering method based on the data information and displaying the two-dimensional data display graph on the user interaction interface, the method further includes: If a three-dimensional switching instruction input by the user is received, converting the two-dimensional data display graph into the data information; Based on the data information, a three-dimensional data display graph corresponding to the two-dimensional data display graph is generated, and the three-dimensional data display graph is displayed on the user interaction interface.

7. A data display mode switching device, It is characterized in that The device comprises: The information receiving module is used to convert the three-dimensional data display diagram on the user interaction interface into corresponding data information if a two-dimensional switching instruction input by the user is received; A display switching module, for generating a two-dimensional data display graph corresponding to the three-dimensional data display graph based on the data information by using an asynchronous rendering method, and displaying the two-dimensional data display graph on the user interaction interface; The display switching module is also used to generate a corresponding plane grid map according to the three-dimensional data display diagram; the plane grid map includes at least one grid; the grids in the plane grid map correspond one-to-one to the three-dimensional models in the three-dimensional data display diagram, one three-dimensional model corresponds to one physical object, and each of the grids is set according to the actual shape and size of the corresponding physical object; based on the data information, the rendering color of at least one of the grids is determined; according to the rendering color, at least one of the grids is rendered using an asynchronous rendering method to generate the two-dimensional data display diagram.

8. A data display mode switching device, It is characterized in that The invention comprises a memory, a processor and a data display mode switching program stored in the memory and executable on the processor, wherein when the data display mode switching program is executed by the processor, the steps of the data display mode switching method as claimed in any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a data display mode switching program, and when the data display mode switching program is executed by the processor, the steps of the data display mode switching method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Three-dimensional vector map generation method and apparatus

    CN108846893A