A data visualization method, device, equipment and medium based on dynamic binding
By using a dynamically bound data visualization method, the problem of poor display effects caused by fixed binding methods is solved, achieving complex visualization effects and flexibility, and making it suitable for displaying any data type.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN HAIXING ZHIJIA TECH CO LTD
- Filing Date
- 2024-02-21
- Publication Date
- 2026-07-21
AI Technical Summary
The fixed binding method in existing data visualization technologies results in poor display effects and makes it impossible to achieve complex display effects.
The data visualization method based on attribute dynamic binding is adopted. By obtaining the type of the data source, it is determined whether it is in the preset binding relationship table. If it is in the table, the data source is transformed into an entity object of the preset visualization entity type according to the dynamic binding relationship, and then dynamically bound through the attributes of the entity object. If it is not in the table, a dynamic binding relationship is created to meet the user's needs.
It achieves flexibility and applicability of visualization tools, supporting complex visualization effects of any data type and meeting diverse user needs.
Smart Images

Figure CN118012943B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and specifically to a data visualization method, apparatus, device, and medium based on dynamic binding. Background Technology
[0002] In fields such as autonomous driving and unmanned operations, the software systems on domain controllers mostly adopt a modular design. Each module is responsible for a relatively independent function, and the modules communicate with each other through a message broker (currently, the mainstream technology is a data-centric communication technology, i.e., publish / subscribe). A significant advantage of using a message broker for data communication is the improved convenience of data debugging and problem localization. Currently, the most basic debugging method is to use a separate debugging tool to communicate with the module being debugged, obtain its output data, and display it in a more intuitive form for developers to view and analyze. This process of acquiring and displaying data is called data visualization.
[0003] Existing data visualization technologies mostly employ static binding, where the binding relationship between visualized entity types and data types is fixed (e.g., point cloud data can only be bound to point cloud entities). Dynamic binding also exists, where the binding relationship between visualized entity types and data types is not fixed (e.g., point cloud data can be bound to point cloud entities, or it can be bound to point entities by modifying configuration). However, the data is bound as a whole, and the binding method remains fixed (e.g., point cloud data can be bound to point cloud entities, but the data can only be passed to the point cloud entities and displayed without modification, and more complex display effects such as scaling and panning cannot be achieved). Neither of the existing binding methods can achieve complex display effects. Summary of the Invention
[0004] In view of this, the present invention provides a data visualization method, apparatus, device and medium based on dynamic binding to solve the problem of poor visualization display effect caused by fixed binding method in the prior art.
[0005] In a first aspect, the present invention provides a data visualization method based on dynamic attribute binding, the method comprising:
[0006] Obtain the data source that needs to be visualized;
[0007] Determine whether the data type of the data source is in the preset binding relationship table;
[0008] If the data type of the data source is in the preset binding relationship table, the data source will be converted into an entity object of the preset visual entity type according to the corresponding dynamic binding relationship in the preset binding relationship table. The dynamic binding relationship is the corresponding expression between different fields of the data source and different attributes of the entity object.
[0009] Entity objects are visualized according to their entity type.
[0010] The data visualization method based on dynamic attribute binding provided in this invention obtains the data source to be visualized and checks whether its data type is in a preset binding relationship table. If it is in the preset binding relationship table, the data source is transformed into an entity object of a preset visualization entity type according to the corresponding dynamic binding relationship in the preset binding relationship table, and the entity object is then visualized according to the visualization entity type. This invention dynamically binds different fields of the data source based on the attributes of the entity object, which decouples the data type from the visualization entity type, allowing the visualization tool to theoretically support any data type, thereby achieving relatively complex visualization display effects.
[0011] In one alternative implementation, if the data type of the data source is not in the preset binding relationship table, a dynamic binding relationship for the data source is created in the preset binding relationship table.
[0012] This invention, through an expandable preset binding relationship table, can ensure increased flexibility of visualization tools while improving usability and meeting user needs.
[0013] In one optional implementation, creating a dynamic binding relationship between the data source in a preset binding relationship table includes: obtaining the data type of the data source specified by the user and the preset visual entity type of the entity object to be transformed; traversing all fields of the data source and all attributes of the entity object; and creating a dynamic binding relationship between the data source and the entity object in the preset binding relationship table according to the corresponding expressions of different fields of the data source to different attributes of the entity object specified by the user.
[0014] This invention constructs a preset binding relationship table containing dynamic binding relationships determined by corresponding expressions, which can be set according to user needs, meeting different user display requirements and improving usability.
[0015] In one optional implementation, the data source is transformed into an entity object of a preset visual entity type according to the dynamic binding relationship corresponding to the preset binding relationship table. This includes: determining the corresponding expressions of different fields of the data source to different attributes of the entity object according to the dynamic binding relationship corresponding to the preset binding relationship table; and transforming the different fields of the data source into different attributes of the entity object according to the corresponding expressions to obtain the entity object.
[0016] This invention modifies the data source by setting a correspondence formula, which can achieve complex display effects and theoretically supports the visualization of any data type, making it more versatile.
[0017] In one alternative implementation, preset visual entity types are stored in a visual entity set, and the preset visual entity types include: point cloud, mesh, polygon, and image.
[0018] This invention enables the data source to be displayed in different formats by setting different entity types, thereby meeting user needs.
[0019] In one alternative implementation, the data type is dynamically bound to at least one preset visual entity type.
[0020] In one optional implementation, the entity objects are visualized according to the visual entity type, including: inputting the entity objects into the visual scene manager, and displaying the entity objects according to the visual entity type through the visual scene manager.
[0021] This invention sets different binding relationships for the same data source and displays entity objects of different entity types through visualization tools, enabling multi-angle display, improving the flexibility and applicability of visualization tools, and further meeting user needs.
[0022] Secondly, the present invention provides a data visualization method apparatus based on dynamic binding, the apparatus comprising:
[0023] The data acquisition module is used to acquire data sources that need to be visualized;
[0024] The binding judgment module is used to determine whether the data type of the data source is in the preset binding relationship table;
[0025] The data transformation module is used to transform the data source into an entity object of a preset visual entity type according to the corresponding dynamic binding relationship in the preset binding relationship table if the data type of the data source is in the preset binding relationship table. The dynamic binding relationship is the corresponding expression between different fields of the data source and different attributes of the entity object.
[0026] The visualization module is used to visualize entity objects according to their entity type.
[0027] The data visualization method and apparatus based on dynamic binding provided in this invention obtains the data source to be visualized and checks whether its data type is in a preset binding relationship table. If it is in the preset binding relationship table, the data source is converted into an entity object of a preset visualization entity type according to the corresponding dynamic binding relationship in the preset binding relationship table, and the entity object is visualized according to the visualization entity type. This invention dynamically binds different fields of the data source based on the attributes of the entity object, which can decouple the data type from the visualization entity type, so that the visualization tool can theoretically support any data type, thereby achieving relatively complex visualization display effects.
[0028] Thirdly, the present invention provides a computer device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the data visualization method based on attribute dynamic binding described in the first aspect or any corresponding embodiment.
[0029] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to execute the attribute-based dynamic binding data visualization method described in the first aspect or any corresponding embodiment thereof. Attached Figure Description
[0030] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0031] Figure 1 This is a flowchart illustrating a data visualization method based on dynamic attribute binding according to an embodiment of the present invention;
[0032] Figure 2 This is a data communication diagram of a data visualization method based on attribute dynamic binding according to an embodiment of the present invention;
[0033] Figure 3 This is a flowchart illustrating another data visualization method based on dynamic attribute binding according to an embodiment of the present invention;
[0034] Figure 4 This is a schematic diagram illustrating the specific process of another data visualization method based on dynamic attribute binding according to an embodiment of the present invention;
[0035] Figure 5This is a flowchart illustrating another data visualization method based on dynamic attribute binding according to an embodiment of the present invention;
[0036] Figure 6 This is a schematic diagram of a data visualization process according to another data visualization method based on attribute dynamic binding according to an embodiment of the present invention;
[0037] Figure 7 This is a structural block diagram of a data visualization method apparatus based on dynamic binding according to an embodiment of the present invention;
[0038] Figure 8 This is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. Detailed Implementation
[0039] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0040] This invention is applicable to scenarios where communication data is visualized and displayed between different modules of a vehicle via a message middleware, thereby enabling module debugging. This invention provides a data visualization method based on dynamic attribute binding, achieving more complex visualization effects by setting dynamic binding relationships between data sources. It should be noted that the steps shown in the flowcharts can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0041] This embodiment provides a data visualization method based on dynamic attribute binding, which can be used in the aforementioned computer. Figure 1 This is a flowchart of a data visualization method based on dynamic attribute binding according to an embodiment of the present invention, such as... Figure 1 As shown, the process includes the following steps:
[0042] Step S101: Obtain the data source that needs to be visualized.
[0043] Specifically, in embodiments of the present invention, such as Figure 2As shown, during the communication process between Module 1 and Module 2 through the publish / subscribe mechanism of the message middleware, the communication data is obtained as the data source through the data adapter. The data source is the topic of the message middleware, such as topic / color on the message middleware. That is, the data type of the obtained data source is ColorRGBA, with four fields: r, g, b and a, but not limited to this.
[0044] Step S102: Determine whether the data type of the data source is in the preset binding relationship table.
[0045] Specifically, in this embodiment of the invention, the binding relationship table is initially empty and is constructed based on the dynamic binding relationships set by the user according to the data type of the data source. During the actual data visualization process, this embodiment first determines whether the data type of the acquired data source is present in the binding relationship table, for example, whether the ColorRGBA data type exists in the binding relationship table. This embodiment directly sets the dynamic binding relationships from the binding relationship table in the data adapter that acquires the data source.
[0046] Step S103: If the data type of the data source is in the preset binding relationship table, the data source is converted into an entity object of the preset visual entity type according to the corresponding dynamic binding relationship in the preset binding relationship table. The dynamic binding relationship is the corresponding expression between different fields of the data source and different attributes of the entity object.
[0047] Specifically, in this embodiment of the invention, when it is determined that the data type of the data source is in the binding relationship table, it means that the dynamic binding relationship of this data type has been configured. Here, the dynamic binding relationship in this embodiment of the invention is a correspondence expression between different fields of the data source and different attributes of the entity object. Taking the data source data type as ColorRGBA as an example, when it is determined that the data type ColorRGBA exists in the binding relationship table, the visual entity type corresponding to its dynamic binding relationship is determined to be a point in three-dimensional space based on ColorRGBA. Here, Point has three attributes: x, y, and z. The correspondence expressions between different fields of the data source and different attributes of the entity object are as follows:
[0048]
[0049]
[0050]
[0051] In some optional implementations, the data adapter of this embodiment transforms a data source of data type ColorRGBA into a visual entity object (point object) of type Point according to a corresponding formula. This is merely an example and not a limitation. This embodiment stores visual entity types in a visual entity set, including point clouds, meshes, polygons, and images, but is not limited to these. Each visual entity type represents a data visualization presentation format; therefore, the more preset visualization types, the richer the data visualization forms, and the easier the visualization tools are to use.
[0052] Step S104: Visualize the entity objects according to their entity types.
[0053] Specifically, in embodiments of the present invention, such as Figure 2 As shown, different entity objects from the standard visualization entity set are placed into the visualization scene server (Data Visualizer). The visualization scene server visualizes the entity objects according to their visualization entity types. For example, a Point entity object converted from a color data source with data type ColorRGBA is displayed as a point in three-dimensional space. This is just an example and is not a limitation.
[0054] In some optional implementations, embodiments of the present invention can also achieve complex display effects such as scaling and panning of the data source by setting corresponding expressions. Taking point data and point entities as examples, the data source data type is Point3D, containing three fields: x, y, and z. The visual entity type is Point3D, including three attributes: px, py, and pz. The corresponding expressions for scaling and panning are: {px=x*2.1+3.1;py=y*2.1+2.1;pz=z*2.1+1.1;}. By displaying entity objects according to the visual entity type, scaling and panning of the source data is achieved. This is only an example and is not limited to this.
[0055] The data visualization method based on dynamic attribute binding provided in this invention obtains the data source to be visualized and checks whether its data type is in a preset binding relationship table. If it is in the preset binding relationship table, the data source is transformed into an entity object of a preset visualization entity type according to the corresponding dynamic binding relationship in the preset binding relationship table, and the entity object is then visualized according to the visualization entity type. This invention dynamically binds different fields of the data source based on the attributes of the entity object, which decouples the data type from the visualization entity type, allowing the visualization tool to theoretically support any data type, thereby achieving relatively complex visualization display effects.
[0056] This embodiment provides a data visualization method based on dynamic attribute binding, which can be used in the aforementioned computer. Figure 3 This is a flowchart of a data visualization method based on dynamic attribute binding according to an embodiment of the present invention, such as... Figure 3 As shown, the process includes the following steps:
[0057] Step S301: Obtain the data source to be visualized. For details, please refer to [link to relevant documentation]. Figure 1 Step S101 of the illustrated embodiment will not be described again here.
[0058] Step S302: Determine whether the data type of the data source is in the preset binding relationship table. For details, please refer to [link to relevant documentation]. Figure 1 Step S102 of the illustrated embodiment will not be described again here.
[0059] Step S303: If the data type of the data source is not in the preset binding relationship table, then create a dynamic binding relationship for the data source in the preset binding relationship table.
[0060] Specifically, in this embodiment of the invention, the process of creating a dynamic binding relationship for a data source in a preset binding relationship table is as follows:
[0061] (1) Obtain the data type of the data source specified by the user and the preset visual entity type of the entity object to be transformed.
[0062] (2) Traverse all fields of the data source and all attributes of the entity object; This embodiment of the invention displays all fields of the data source and all attributes of the entity object, which users can set according to their needs.
[0063] (3) Based on the corresponding expressions of different fields of the user-specified data source to different attributes of the entity object, a dynamic binding relationship between the data source and the entity object is created in the preset binding relationship table. The binding relationship table of this embodiment is initially empty and is added according to the dynamic binding relationship set by the user. Moreover, the same data type has at least one preset visual entity type with a dynamic binding relationship. That is, there is a one-to-many correspondence between the data type and the dynamic binding relationship in the binding relationship table, that is, one data type can correspond to multiple dynamic binding relationships.
[0064] In some optional implementations, taking the data source data type as ColorRGBA as an example, if the data source of the present invention is obtained but ColorRGBA is not found in the binding relationship table, then all fields in the data source data type, i.e., r, g, b, a, are traversed, and the attributes of the visual entity type, i.e., x, y, z, are also traversed. Then, a data adapter is created according to the user-specified field-to-attribute expression: {r / a = x; g / a = y; b / a = z;}. The corresponding expressions of different fields of the user-specified data source to different attributes of the entity object are stored in the data adapter, and the data adapter is saved to the binding relationship table. Figure 4 As shown, after completing this process, a visualization workflow from topic / color to point entity objects can be directly established, and the data on the topic will be displayed as points.
[0065] Step S304: Based on the dynamic binding relationships in the preset binding relationship table, the data source is transformed into entity objects of a preset visual entity type. The dynamic binding relationships are expressions that correspond to different fields of the data source and different attributes of the entity objects. For details, please refer to [link to relevant documentation]. Figure 1 Step S103 of the illustrated embodiment will not be described again here.
[0066] Step S305: Visualize the entity objects according to their entity types. For details, please refer to [link to relevant documentation]. Figure 1 Step S104 of the illustrated embodiment will not be described again here.
[0067] The data visualization method based on dynamic attribute binding provided in this invention obtains the data source to be visualized and checks whether its data type is in a preset binding relationship table. If it is in the preset binding relationship table, the data source is transformed into an entity object of a preset visualization entity type according to the corresponding dynamic binding relationship in the preset binding relationship table, and the entity object is then visualized according to the visualization entity type. This invention dynamically binds different fields of the data source based on the attributes of the entity object, which decouples the data type from the visualization entity type, allowing the visualization tool to theoretically support any data type, thereby achieving relatively complex visualization display effects.
[0068] This embodiment provides a data visualization method based on dynamic attribute binding, which can be used in the aforementioned computer. Figure 5 This is a flowchart of a data visualization method based on dynamic attribute binding according to an embodiment of the present invention, such as... Figure 5 As shown, the process includes the following steps:
[0069] Step S501: Obtain the data source to be visualized. For details, please refer to [link to relevant documentation]. Figure 3Step S301 of the illustrated embodiment will not be described again here.
[0070] Step S502: Determine whether the data type of the data source is in the preset binding relationship table. For details, please refer to [link to relevant documentation]. Figure 3 Step S302 of the illustrated embodiment will not be described again here.
[0071] Step S503: If the data type of the data source is in the preset binding relationship table, the data source is converted into an entity object of the preset visual entity type according to the corresponding dynamic binding relationship in the preset binding relationship table. The dynamic binding relationship is the corresponding expression between different fields of the data source and different attributes of the entity object.
[0072] Specifically, step S503 includes:
[0073] Step S5031: Determine the corresponding expressions of different fields of the data source to different attributes of the entity object based on the dynamic binding relationship corresponding to the preset binding relationship table.
[0074] Step S5032: Convert different fields of the data source into different attributes of the entity object according to the corresponding expression to obtain the entity object.
[0075] Specifically, in this embodiment of the invention, after determining the dynamic binding relationship based on the data source data type, the data adapter corresponding to the dynamic binding relationship is used as the current data adapter. The current data adapter stores the corresponding expressions from different fields of the data source to different attributes of the entity object. The current data adapter directly converts the different fields of the data source into different attributes of the entity object according to the corresponding expressions, obtaining the entity object, and thus displaying the entity object according to different visual entity types, such as... Figure 6 As shown.
[0076] Step S504: Visualize the entity objects according to their entity types.
[0077] Specifically, in this embodiment of the invention, entity objects are input into a visualization scene manager, and the entity objects are displayed according to the visualization entity type through the visualization scene manager.
[0078] The data visualization method based on dynamic attribute binding provided in this invention obtains the data source to be visualized and checks whether its data type is in a preset binding relationship table. If it is in the preset binding relationship table, the data source is transformed into an entity object of a preset visualization entity type according to the corresponding dynamic binding relationship in the preset binding relationship table, and the entity object is then visualized according to the visualization entity type. This invention dynamically binds different fields of the data source based on the attributes of the entity object, which decouples the data type from the visualization entity type, allowing the visualization tool to theoretically support any data type, thereby achieving relatively complex visualization display effects.
[0079] This embodiment also provides a data visualization method apparatus based on dynamic binding, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0080] This embodiment provides a data visualization method and apparatus based on dynamic binding, such as... Figure 7 As shown, it includes:
[0081] The data acquisition module 701 is used to acquire the data source that needs to be visualized;
[0082] The binding judgment module 702 is used to determine whether the data type of the data source is in the preset binding relationship table;
[0083] The data conversion module 703 is used to convert the data source into an entity object of a preset visual entity type according to the corresponding dynamic binding relationship in the preset binding relationship table if the data type of the data source is in the preset binding relationship table. The dynamic binding relationship is the corresponding expression between different fields of the data source and different attributes of the entity object.
[0084] The visualization module 704 is used to visualize entity objects according to their visualization entity types.
[0085] In some optional implementations, it also includes: a relationship creation module, used to create a dynamic binding relationship of the data source in the preset binding relationship table if the data type of the data source is not in the preset binding relationship table.
[0086] In some alternative implementations, the relationship creation module includes:
[0087] The type determination unit is used to obtain the data type of the data source specified by the user and the preset visual entity type of the entity object to be transformed.
[0088] The data traversal unit is used to traverse all fields of the data source and all properties of the entity object.
[0089] The relationship creation unit is used to create dynamic binding relationships between data sources and entity objects in a preset binding relationship table based on the corresponding expressions of different fields of the user-specified data source to different attributes of the entity object.
[0090] In some alternative implementations, the data conversion module 703 includes:
[0091] The expression determination unit is used to determine the corresponding expressions from different fields of the data source to different attributes of the entity object based on the dynamic binding relationship in the preset binding relationship table.
[0092] The data transformation unit is used to transform different fields of the data source into different attributes of the entity object according to the corresponding expression, thereby obtaining the entity object.
[0093] In some optional implementations, the data conversion module 703 stores preset visual entity types in a visual entity set, and the preset visual entity types include: point cloud, mesh, polygon and image.
[0094] In some optional implementations, the data type in the data conversion module 703 is dynamically bound to at least one preset visual entity type.
[0095] In some optional implementations, the visualization module 703 inputs entity objects into the visualization scene manager and displays the entity objects according to the visualization entity type through the visualization scene manager.
[0096] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.
[0097] In this embodiment, the data visualization method device based on dynamic binding is presented in the form of functional units. Here, a unit refers to an FPGA (Field Programmable Gate Array) circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0098] This invention also provides a computer device having the above-described features. Figure 7 The diagram shows a data visualization method device based on dynamic binding.
[0099] Please see Figure 8 , Figure 8 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of the present invention, such as... Figure 8As shown, the computer device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 8 Take a processor 10 as an example.
[0100] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.
[0101] The memory 20 stores instructions executable by at least one processor 10 to cause the at least one processor 10 to perform the method shown in the above embodiments.
[0102] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0103] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0104] The computer device also includes a communication interface 30 for communicating with other devices or communication networks.
[0105] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.
[0106] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A data visualization method based on dynamic binding, characterized in that, The method includes: Obtain the data source that needs to be visualized; Determine whether the data type of the data source is in a preset binding relationship table; If the data type of the data source is in the preset binding relationship table, then the data source is converted into an entity object of a preset visual entity type according to the corresponding dynamic binding relationship in the preset binding relationship table. The dynamic binding relationship is the corresponding expression between different fields of the data source and different attributes of the entity object. The entity objects are visualized according to the visualized entity type; If the data type of the data source is not in the preset binding relationship table, then a dynamic binding relationship of the data source is created in the preset binding relationship table; The step of creating the dynamic binding relationship of the data source in the preset binding relationship table includes: Obtain the data type of the data source specified by the user, and the preset visual entity type of the entity object to be transformed; Iterate through all fields of the data source and all attributes of the entity object; Based on the corresponding expressions of different fields of the data source specified by the user to different attributes of the entity object, a dynamic binding relationship between the data source and the entity object is created in the preset binding relationship table; By setting corresponding expressions, the scaling and panning display effect of the data source is achieved. The data source data type is Point3D, containing three fields: x, y, and z. The visual entity type is Point3D, including three attributes: px, py, and pz. The corresponding expression for scaling and panning is: { px = x * 2.1 + 3.1; py = y * 2.1 + 2.1; pz = z * 2.1 + 1.1;}; The same data type has at least one dynamic binding relationship with a preset visual entity type.
2. The method according to claim 1, characterized in that, The step of converting the data source into an entity object of a preset visual entity type based on the dynamic binding relationship corresponding to the preset binding relationship table includes: Based on the dynamic binding relationships in the preset binding relationship table, determine the corresponding expressions from different fields of the data source to different attributes of the entity object; The different fields of the data source are transformed into different attributes of the entity object according to the corresponding expression to obtain the entity object.
3. The method according to claim 1, characterized in that, The preset visual entity types are stored in the visual entity set, and the preset visual entity types include: point cloud, mesh, polygon and image.
4. The method according to claim 1, characterized in that, The step of visualizing the entity object according to the visual entity type includes: The entity object is input into the visualization scene manager, and the entity object is displayed according to the visualization entity type through the visualization scene manager.
5. A data visualization method apparatus based on dynamic binding, characterized in that, The device includes: The data acquisition module is used to acquire data sources that need to be visualized; The binding judgment module is used to determine whether the data type of the data source is in a preset binding relationship table; The data conversion module is used to convert the data source into an entity object of a preset visual entity type according to the corresponding dynamic binding relationship in the preset binding relationship table if the data type of the data source is in the preset binding relationship table. The dynamic binding relationship is the corresponding expression between different fields of the data source and different attributes of the entity object. The visualization module is used to visualize the entity objects according to the visualization entity type; If the data type of the data source is not in the preset binding relationship table, then a dynamic binding relationship of the data source is created in the preset binding relationship table; The step of creating the dynamic binding relationship of the data source in the preset binding relationship table includes: Obtain the data type of the data source specified by the user, and the preset visual entity type of the entity object to be transformed; Iterate through all fields of the data source and all attributes of the entity object; Based on the corresponding expressions of different fields of the data source specified by the user to different attributes of the entity object, a dynamic binding relationship between the data source and the entity object is created in the preset binding relationship table; By setting corresponding expressions, the scaling and panning display effect of the data source is achieved. The data source data type is Point3D, containing three fields: x, y, and z. The visual entity type is Point3D, including three attributes: px, py, and pz. The corresponding expression for scaling and panning is: { px = x * 2.1 + 3.1; py = y * 2.1 + 2.1; pz = z * 2.1 + 1.1;}; The same data type has at least one dynamic binding relationship with a preset visual entity type.
6. A computer device, characterized in that, include: A memory and a processor are communicatively connected, the memory stores computer instructions, and the processor executes the computer instructions to perform the data visualization method based on dynamic binding as described in any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the data visualization method based on dynamic binding as described in any one of claims 1 to 4.