CN111192191A - Display method, display device and readable storage medium - Google Patents

Display method, display device and readable storage medium Download PDF

Info

Publication number
CN111192191A
CN111192191A CN201911417540.9A CN201911417540A CN111192191A CN 111192191 A CN111192191 A CN 111192191A CN 201911417540 A CN201911417540 A CN 201911417540A CN 111192191 A CN111192191 A CN 111192191A
Authority
CN
China
Prior art keywords
target object
display
display style
style
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911417540.9A
Other languages
Chinese (zh)
Other versions
CN111192191B (en
Inventor
吕小亮
袁俊卿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Longxin Zhongke Xi'an Technology Co Ltd
Original Assignee
Longxin Zhongke Xi'an Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Longxin Zhongke Xi'an Technology Co Ltd filed Critical Longxin Zhongke Xi'an Technology Co Ltd
Priority to CN201911417540.9A priority Critical patent/CN111192191B/en
Publication of CN111192191A publication Critical patent/CN111192191A/en
Application granted granted Critical
Publication of CN111192191B publication Critical patent/CN111192191B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Graphics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a display method, a display device and a readable storage medium, wherein the method comprises the following steps: the method comprises the steps of obtaining a network data packet of position information and attribute information corresponding to a target object in a target area, if the target object is determined to appear for the first time, determining and configuring a display style of the target object according to a pre-established display style set, then calling a rendering engine, and generating a first rendering instruction according to the display style of the target object, wherein the first rendering instruction is used for indicating a display card to render according to the display style of the target object. When the target state is displayed, aiming at a first-appearing target object, the corresponding display style is configured according to the pre-created display style set according to needs, aiming at the displayed target object, differential processing is carried out according to the network data packet, and only variable data is updated, so that the resource consumption of a GPU and a CPU in the target state display process is reduced.

Description

Display method, display device and readable storage medium
Technical Field
The present invention relates to the field of visualization technologies, and in particular, to a display method and apparatus, and a readable storage medium.
Background
With the development of visualization technology, people can observe the states of a large number of target objects through a display interface, for example, the states of the target objects in a target area are displayed on a display in the form of an instant drawing icon. Since the visualization technology makes the observed object more intuitive and vivid, the visualization technology is widely applied in a plurality of technical fields, for example: the application of visualization technology in a geographic information system, the visualization display of the motion trail of a dynamic target object and the like. With the continuous development of visualization technology, the demand for target state display is higher and higher.
In the prior art, when the state of each target object in the target area needs to be displayed, a display style corresponding to each target object needs to be simulated and created, and then rendering is performed according to the display style of each target object, so that the state of the target object is displayed in a display interface.
When a large number of target objects exist in a target area, the method needs to simulate and create display patterns corresponding to the large number of target objects respectively and update the display patterns corresponding to the large number of target objects, and the workload of the work is large and the time consumption is long, so that the resource consumption of a Central Processing Unit (CPU) and a Graphics Processing Unit (GPU) is large, and the processing efficiency is low.
Disclosure of Invention
The invention provides a display method, a display device and a readable storage medium, which are used for reducing the resource consumption of a CPU (Central processing Unit) and a GPU (graphics processing Unit) and improving the display processing efficiency of target objects when the number of the target objects is larger in the visual display process.
In a first aspect, the present invention provides a display method, comprising:
acquiring a network data packet, wherein the network data packet comprises position information and attribute information corresponding to one or more target objects in a target area;
according to the network data packet, if the target object is determined to appear for the first time, determining and configuring a display style of the target object according to a pre-established display style set, wherein the display style comprises each primitive corresponding to the target object and a display position of each primitive in a display interface, the attribute value of each primitive corresponding to the target object is determined according to the attribute information of the target object, and the display position of each primitive in the display interface is determined according to the position information of the target object;
and calling a rendering engine, generating a first rendering instruction according to the display style of the target object, wherein the first rendering instruction is used for indicating a display card to render according to the display style of the target object, and displaying the state of the target object in a display interface.
Optionally, the display style which is successfully matched is determined as the display style of the target object by matching the identity corresponding to the target object with the indexes corresponding to the display styles in the pre-created display style set respectively;
and configuring the display positions of the primitives corresponding to the display styles in the display interface respectively according to the position information of the target object.
Optionally, the method further comprises:
and if the target object is determined not to appear for the first time, performing difference processing according to the position information and the attribute information corresponding to the target object to update the display style of the target object stored in the display card.
Optionally, the performing difference processing according to the position information and the attribute information corresponding to the target object to update the display style of the target object includes:
updating the display style corresponding to the target object according to the position information and the attribute information corresponding to the target object;
and calling a rendering engine, and generating a second rendering instruction according to the updated display style corresponding to the target object stored in the display card, wherein the second rendering instruction is used for indicating the display card to render according to the updated display style corresponding to the target object so as to update the state of the target object in the display interface.
Optionally, each primitive corresponding to the display style includes: any one or combination of icons, signs, guide lines, historical points.
Optionally, the method further comprises:
and acquiring a display style updating instruction, and updating the display style of the target object according to the display style updating instruction, wherein the display style updating instruction is used for indicating to update the display style corresponding to the target object.
Optionally, the display style update instruction is for instructing to update at least one of: the attribute value of the icon of the target object, the attribute value of the sign of the target object, the attribute value of the guide line corresponding to the target object, the text color in the display style, and the size and number of the history points.
In a second aspect, an embodiment of the present invention provides a display device, including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a network data packet which comprises position information and attribute information corresponding to a target object;
a first processing module, configured to determine and configure a display style of the target object according to the network data packet and according to a pre-created display style set if the target object is determined to appear for the first time, where the display style includes each primitive corresponding to the target object and a display position of each primitive in a display interface, an attribute value of each primitive corresponding to the target object is determined according to attribute information of the target object, and a display position of each primitive in the display interface is determined according to position information of the target object;
and the second processing module is used for calling a rendering engine, generating a first rendering instruction according to the display style of the target object, wherein the first rendering instruction is used for indicating a display card to render according to the display style of the target object, and displaying the state of the target object in a display interface.
In a third aspect, an embodiment of the present invention provides a display device, including: memory, processor, and computer program instructions;
the memory stores the computer program instructions;
the processor executes the computer program instructions to perform the display method of any one of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a storage medium, including: carrying out a procedure;
the program is executed by a processor to perform the display method of any one of the first aspect.
In a fifth aspect, the present invention further provides a program product, where the program product includes a computer program, where the computer program is stored in a readable storage medium, and at least one processor of the display apparatus can read the computer program from the readable storage medium, and the at least one processor executes the computer program to make the display apparatus execute the display method according to any one of the first aspect.
The embodiment of the invention provides a display method, a display device and a readable storage medium, wherein a network data packet comprising position information and attribute information corresponding to a target object in a target area is obtained, and according to the network data packet, if the target object is determined to appear for the first time, a display style of the target object is determined and configured according to a pre-established display style set, the display style comprises each primitive corresponding to the target object and display positions of the primitives in a display interface respectively, the attribute value of each primitive corresponding to the target object is determined according to the attribute information of the target object, and the display positions of the primitives respectively are determined according to the position information of the target object; and then, calling a rendering engine, and generating a first rendering instruction according to the display style of the target object, wherein the first rendering instruction is used for indicating a display card to render according to the display style of the target object. According to the method provided by the embodiment of the invention, for the first-appearing target object, the corresponding display style is configured according to the pre-created display style set as required, for the displayed target object, the differential processing is carried out according to the network data packet, and only the variable data corresponding to the displayed target object is updated, so that the resource consumption of a GPU and a CPU in the target object display process is reduced, and the processing efficiency of the target object display is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic of a display interface;
FIG. 2 is a schematic view of an application scenario of the display method provided by the present invention;
FIG. 3 is a block diagram of a display system provided by the present invention;
FIG. 4 is a flowchart illustrating a first embodiment of a display method according to the present invention;
FIG. 5 is a flowchart illustrating a second embodiment of a display method according to the present invention;
FIG. 6 is a schematic structural diagram of a display device according to a first embodiment of the present invention;
fig. 7 is a schematic structural diagram of a second display device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a third display device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms related to the embodiments of the present invention are explained in detail herein, and can be understood with reference to the contents of fig. 1:
primitive: also called a graphic primitive, is a scene object primitive, and is a graphic entity that constitutes an object or other composite, for example, a point, a line, a plane, and a pattern are primitives.
Icon: is a computer graphic with definite meaning. In the embodiment of the invention, the icon corresponds to an image and is used for representing the target object. Illustratively shown in FIG. 1
Figure BDA0002351573890000052
I.e. an "icon" of the target object.
Label: the sign board with the mark can have contents such as characters, patterns and the like, and can play a role in indicating. Exemplarily, in FIG. 1
Figure BDA0002351573890000051
The upper region containing the text content is the "sign" of the target object. In some cases, a border may be provided for the sign, and the color of the border, the width of the border lines, etc. may be set as desired.
Guiding lines: a line segment connecting the icon and the sign indicates the association relationship of the icon and the sign.
Fig. 2 is a schematic view of an application scenario of the display method provided by the present invention. Fig. 3 is a schematic structural diagram of a display system provided in the present invention.
In the scenario shown in fig. 2, a network device 200, a display system 201 and at least one target object 203 are comprised.
The network device 200 is configured to receive and cache data sent by at least one target object 203 in a target area, and send the acquired data to the display system 201; the display system 201 is configured to update the display style of each target object in the display interface according to the data packet sent by the network device 200. Wherein the target area is an area to be monitored.
The display system 201 may include: a data producer 21, a data caching device 22, and a visualizer 23; specifically, the data producer 21 can receive the data of the target object 203 sent by the network device 200, then the data caching device 22 caches the data obtained by the data producer 21 from the network device 200, and the visualizer 23 obtains the data corresponding to the target object from the data caching device 22, and sets and updates the display style of the target object according to the data.
Since the performance of the display system 201 is reduced if the data producer 21 communicates with the network device 200 and the data caching device 22 frequently, the data producer 21 usually packages the data of a preset number of target objects 203 and sends the data to the data caching device 22, where the preset number may be configured by a user or predefined.
Referring to fig. 3, the display system 201 includes a data producer 21, a data caching device 22, and a visualizer 23, and in some cases, the data caching device 22 may include a trajectory data caching device 220 and a historical point data caching device 221, and the visualizer 23 may include a trajectory visualizer 230 and a historical point visualizer 231.
The track data caching device is used for caching track data of a target object, and the track data of the target object can comprise historical points corresponding to the target object at a plurality of different moments in a preset time period and position information of the target object at the current moment; the history point data caching device is used for caching history point data of the target object, wherein the history point data is position information of the target object at a history moment.
The track visualizer updates the track of each target object according to the track data in the track data caching equipment; when the track visualizer updates the track of each target object, the display position of the icon of the target object on the display interface can be set according to the position of the target object at the current moment, and the display position of the label of the target object on the display interface can be set according to the relative position relation between the icon of the target object and the label; and the historical point visualizer updates the historical points of the target objects according to the historical point data of the target objects in the historical point data caching device.
Specifically, the data producer 21 obtains the trajectory data and the historical point data of at least one target object 203 in the target area from the network device 200, the data producer 21 distributes the obtained data, and the data producer 21 specifically sends the trajectory data to the trajectory data cache device 220 and sends the historical point data to the historical point data cache device 221; the trajectory visualizer 230 acquires trajectory data of the target object from the trajectory data caching device 220, and sets and updates a trajectory display style corresponding to the target object according to the trajectory data of the target object; the history point visualizer 231 acquires the history point data of the target object from the history point data cache device 221, and sets and updates the history point display style corresponding to the target object according to the history point data of the target object.
In the prior art, when a large number of target objects exist in a display system, a visualizer needs to set and update display styles of all the target objects, and the workload is large and the time consumption is long, so that the resource consumption of a Central Processing Unit (CPU) and a Graphics Processing Unit (GPU) is large, and the processing efficiency is low.
In view of the problems in the prior art, embodiments of the present invention provide a display method, which improves the processing efficiency of a display device and reduces the resource consumption of a CPU and a GPU. The display method provided by the present invention is described in detail below with reference to several embodiments.
Fig. 4 is a flowchart of a display method according to a first embodiment of the present invention. The execution main body of the display method provided by the embodiment of the present invention may be the display device provided by the embodiment of the present invention, and the display device may be implemented in any software and/or hardware manner, where the display device may be integrated in a display system, or may also be independently configured.
The display device may be, for example, a smart phone, a portable electronic device, a computer, a server, or the like, or may be a part of the above-mentioned device. In this embodiment, the details will be described by taking an execution main body as an example of a display device.
As shown in fig. 4, the method of the present embodiment includes:
s401, obtaining a network data packet.
The network data packet may include information such as location information and attribute information corresponding to one or more target objects in the target area. The network data packet may include location information and attribute information corresponding to one target object in the target area, or may include location information and attribute information corresponding to a plurality of target objects in the target area, respectively.
For example, the position information corresponding to the target object may be latitude and longitude information, and the position information may be obtained by a positioning module (or may also be referred to as a position sensor) of the target object, for example, the positioning module may be a Global Positioning System (GPS) module, or may also be another module capable of obtaining the position information of the target object, which is not limited in this embodiment of the present invention. The display device can determine the display position of each graphic element in the display style of the target object in the display interface according to the position information respectively corresponding to the target object.
For example, the attribute information corresponding to the target object may be an object category attribute, a focus attribute, and the like. The object type attribute is used for indicating the type of the target object; in practical applications, the object type and the importance level of all the target objects in the display system may be set in advance, and when the target object sends data to the network device, the information of the object type and/or the importance level (the importance attribute) to which the target object belongs is also sent to the network device. In this scheme, the attribute information of the target object may be used to determine the type of the primitive, the number of primitives, and the attribute value of the primitive included in the display style thereof.
According to a possible implementation manner, a target object in a target area sends data such as position information, attribute information and other state information of the target object to network equipment, the network equipment can process and cache the received data, and a display device can acquire the position information, the attribute information and other state information corresponding to one or more target objects in the target area from the network equipment.
Other state information of the target object referred to herein may include, for example, speed information, pose information, whether a fault has occurred, and the like of the target object. Of course, other state information of the target object in the embodiment of the present invention is not limited to the foregoing example, and may also include other state information.
S402, judging whether the target object appears for the first time according to the network data packet.
For each target object included in the network data packet, the display device determines whether the target object appears for the first time, and if it is determined that the target object appears for the first time, S403 is performed, and if it is determined that the target object does not appear for the first time, S403' is performed.
In a possible implementation manner, the attribute information corresponding to the target object includes an identity corresponding to the target object, the display device matches the identity corresponding to the target object with an identity of a displayed target object, if the matching is not successful, it is determined that the target object appears for the first time, and a corresponding display style is created for the first-appearing target object, that is, S403 is executed; if the matching is successful, it is determined that the target object and the displayed target object which is successfully matched are the same object, and then the state of the target object in the display interface is updated according to the data in the network data packet without recreating a corresponding display style for the target object, that is, S403' is executed.
For example, the identity corresponding to the target object may be an identity ID of the target object, or an equipment number, or may also be other identity of the target object.
And S403, determining and configuring the display style of the target object.
Each graphic element corresponding to the display style comprises: any one or combination of icons, signs, guide lines, historical points. The specific meanings of the icons, the signs and the guiding lines are referred to the detailed description above, and are not repeated herein.
In the embodiment of the invention, the attribute information of the target object can indicate the identity of the target object. For example, when the attribute information of the target object includes the object class attribute, the object class to which the target object belongs may be determined according to the object class attribute, and in practical applications, target objects of different classes may correspond to different display styles, so that the display style of the target object may be determined according to the object class of the target object. For another example, when the attribute information of the target object further includes the key attribute, the importance degree of the target object may be determined according to the key attribute, and in practical applications, the display styles corresponding to target objects of different importance degrees may have differences, so that the display style of the target object is determined according to the object category attribute and the key attribute of the target object.
First, matching may be performed according to attribute information of a target object and indexes corresponding to respective display styles in a display style set created in advance, and a display style successfully matched is determined as the display style of the target object.
The pre-created display style set can be created according to the type, the number and the attribute information of the target object of the target area when the display system is initialized; specifically, when the display style set is created, the primitives in the primitive set are combined, so that different display styles are defined. The primitive set may include the same number of initial primitives as the number of target objects, the initial primitives may include any one or a combination of icons, signs, points, lines, and the like, and each initial primitive may correspond to an initial default value; then, setting one or more indexes for each target object in the target area, wherein the indexes can be the attribute information of the target object; then, the target object may be configured with a display style from the pre-created display style set according to the index of the target object (e.g., the attribute information of the target object) and the indexes of the respective display styles in the pre-created display style set.
In some cases, the pre-created display style set may further include a default display style, and if some target objects with unknown attribute information appear in the display system, the default display style may be configured to the target objects with unknown attribute information.
In the pre-created display style set, target objects with different attributes have certain differences, and each display style corresponds to one or more indexes, for example, the index may be attribute information of the target object. The display styles of the target objects of different attributes are different, while the display styles of the target objects of the same attribute are the same. And if the target object is not matched with the display style according to the pre-created display style set, setting the display style of the target object as a default display style.
For example, the display style of the target object determined in the above manner may include only an icon, or may include an icon and a sign, or may further include an icon, a sign, and a guide line, or may further include an icon and a history point, and the like. For example, in the display system shown in fig. 3, the trajectory display style of the target object includes: icons, signs, and guide lines; the history point display style of the target object includes: icons, signs and history points, wherein the number of the history points can be input by a user or can be predefined. It should be noted that the types and the number of the primitives included in the display styles corresponding to the target objects with different attributes may be set according to actual requirements, which is not limited in the embodiment of the present invention.
And then, configuring the display position of each graphic element corresponding to the display style according to the position information of the target object. Specifically, the method comprises the following steps:
mapping the latitude and longitude information of the target object to a display interface, determining the display position of one or more primitives of the display style of the target object in the display interface, and then determining the display position of other primitives in the display style in the display interface according to the relative position relationship between other primitives in the display style and the one or more primitives with the determined display position.
For example, in the display system shown in fig. 3, the track display style includes an icon, a sign and a guiding line, the latitude and longitude information of the target object is mapped into the display interface, the display position of the icon in the display style of the target object in the display interface is determined, and then the display position of the sign and the guiding line in the display style of the target object in the display interface is determined according to the relative position relationship between the icon and the sign in the display style and the relative position relationship between the icon and the guiding line.
For example, in the display system shown in fig. 3, the history point display style includes an icon, a sign and a history point, then the latitude and longitude information of the target object is mapped into the display interface, the display position of the icon in the display style of the target object in the display interface is determined, and then the display position of the sign and the history point in the display style of the target object in the display interface is determined according to the relative position relationship between the icon and the sign in the display style and the relative position relationship between the icon and the history point.
In this step, by creating a display style of a target object with a rated capacity in advance, when a new target object appears, one display style is allocated to the target object in the set of created display styles in advance, so that the display style of the first appearing target object is prevented from being configured in a dynamic manner.
S403', difference processing is carried out according to the position information and the attribute information corresponding to the target object, so as to update the display style of the target object.
A possible implementation manner is that, according to the position information and the attribute information corresponding to the target object, the display style corresponding to the target object in the memory of the display device is updated, specifically, the updating of the display style corresponding to the target object in the memory of the display device includes updating the attribute values of one or more primitives of the display style of the target object.
Illustratively, according to the position information and the attribute information corresponding to the target object, the display position of each graphic element corresponding to the display style of the target object in the display interface is updated, and the text content in the sign in the display style of the target object is updated.
Updating the display position of each primitive corresponding to the display style of the target object in the display interface comprises the following steps: if the position of the target object is determined to be changed, updating the display position of the icon in the display style of the target object in the memory in the display interface according to the position information of the target object in the network data packet, and updating the display positions of other primitives in the display style of the target object in the memory in the display interface according to the relative position relationship between the icon and other primitives in the display style.
Updating the text to be displayed in the label in the display style of the target object in the memory comprises: the target object may be divided into a plurality of regions, such as a static region and a dynamic region, wherein the attribute items in the static region (i.e., the text content in the static region) may not be updated, and the text content in the dynamic region may be updated according to the network data according to a preset period. And if the attribute values corresponding to one or more attribute items in the dynamic area of the sign of the display style of the target object are determined to be changed, updating the attribute values corresponding to the changed one or more attribute items in the sign of the display style of the target object in the display card. And updating the attribute items of which the attributes and the attribute values are unchanged in the signs of the display style of the target object.
S404, calling a rendering engine, and generating a rendering instruction according to the display style of the target object.
Wherein the step comprises rendering for a first appearing target object and rendering for a displayed target object. Specifically, the method comprises the following steps:
and aiming at a target object which appears for the first time, after the display style of the target object is determined and configured, calling a rendering engine, copying the data of the display style of the target object in the memory of the display device into the display memory of the display card, generating a first rendering instruction, and indicating the display card to render aiming at the target object which appears for the first time according to the first rendering instruction so as to display the state of the target object in a display interface.
And for the displayed target object, after the display style of the displayed target object in the memory of the display device is updated, calling a rendering engine, copying data of the display style of the target object in the memory of the display device into a display memory of a display card, generating a second rendering instruction, and instructing the display card to render for the displayed target object according to the second rendering instruction so as to display the latest state of the displayed target object in a display interface.
In this embodiment, a network data packet including position information and attribute information corresponding to a target object in a target area is obtained, and according to the network data packet, if it is determined that the target object appears for the first time, a display style of the target object is determined and configured, where the display style includes each primitive corresponding to the target object and a display position of each primitive in a display interface, and an attribute value of each primitive corresponding to the target object is determined according to the attribute information of the target object, and a display position of each primitive corresponding to each primitive is determined according to the position information of the target object, then, a rendering engine is invoked, and a first rendering instruction is generated according to the display style of the target object, where the first rendering instruction is used to instruct a display card to render according to the display style of the target object. According to the method provided by the embodiment, aiming at a target object which appears for the first time, a display style of the target object is configured according to a pre-established display style set and according to needs; and performing differential processing on the displayed target object according to the network data packet, and only updating variable data corresponding to the displayed target object, so that the resource consumption of a GPU and a CPU in the display process is reduced, and the processing efficiency of the display device is improved.
Fig. 5 is a flowchart of a second display method according to an embodiment of the present invention. As shown in fig. 5, the method of this embodiment, based on the embodiment shown in fig. 4, further includes, after S404:
s405, obtaining a display style updating instruction.
And the display style updating instruction is used for indicating the display style corresponding to the updating target object. Namely, the attribute values for indicating to update one or more primitives in the display style corresponding to one or more target objects in the target region. For example, the display style update instruction may be a display style for instructing to update a target object of a certain object category, or may be a display style for instructing to update a target object of a certain emphasis degree.
If each graphic element corresponding to the display style comprises: when any one or combination of the icon, the sign, the guiding line and the historical point is used, the display style updating instruction is used for indicating that at least one of the following items is updated: the attribute values of the icon of the target object, the sign attribute value of the target object, the attribute values of the guide line corresponding to the target object, the text color in the display style, the size and the number of the history points.
A possible implementation manner is that a target object requiring display style update is determined first, and then a display style update instruction of the target object requiring display style update is obtained, where the display style update instruction may be input manually by a user, or may be input by a user through voice, and an input manner of the display style update instruction is not limited in the embodiment of the present invention; the display style update instruction is for instructing to update at least one of an attribute value of an icon of the target object, a sign attribute value of the target object, an attribute value of a guide line corresponding to the target object, a text color in the display style, a size and a number of the history points.
Another possible implementation manner is that, first, a display style corresponding to the display style update instruction is configured according to the display style update instruction, then, a target object adopting the display style corresponding to the display style update instruction is determined, and then, the display style of the determined target object in the display interface is updated to the display style corresponding to the display style update instruction.
The display style update instruction may be used to update one or more primitives in the display styles of all target objects in the display system, or may also be used to update one or more primitives in the display styles of a certain type of target objects in the display system. That is, the display style update instruction herein may be used for global update or local update.
For example, when the display style of the target object needs to be updated, the display device may provide a display style configuration interface for a user to operate, and the user may configure and update the display style of the target object by operating different keys on the display style configuration interface.
And S406, updating the display style of the target object according to the display style updating instruction.
Specifically, according to the display style update instruction and the updated display style of the target object, a corresponding rendering instruction is generated, and the display card is instructed to render according to the corresponding rendering instruction, so that the latest state of the target object is displayed in the display interface.
In the embodiment, if the display style of the target object needs to be updated, the user can simply and conveniently update the display style by performing simple operation on the display style configuration interface.
In the above embodiments provided by the present invention, the display device is only used for managing and configuring the display style of the target object in the target area in the display system, and is not responsible for managing the external attribute data associated with the management and configuration of the display style, so that the development of the display system is more flexible and free.
Fig. 6 is a schematic structural diagram of a display device according to a first embodiment of the present invention. Referring to fig. 6, the present embodiment provides a display device 600 including: an acquisition module 601 and a processing module 602.
The obtaining module 601 is configured to obtain a network data packet, where the network data packet includes location information and attribute information corresponding to a target object.
A processing module 602, configured to determine and configure a display style of the target object according to a pre-created display style set if the target object is determined to appear for the first time according to the network data packet, where the display style includes each primitive corresponding to the target object and a display position of each primitive in a display interface, an attribute value of each primitive corresponding to the target object is determined according to attribute information of the target object, and a display position of each primitive in the display interface is determined according to position information of the target object;
the processing module 602 is further configured to invoke a rendering engine, generate a first rendering instruction according to the display style of the target object, where the first rendering instruction is used to instruct a display card to render according to the display style of the target object, and display the state of the target object in a display interface.
In some possible designs, the processing module 602 is specifically configured to match, according to the attribute information corresponding to the target object and an index corresponding to each display style in a display style set created in advance, a display style successfully matched with the target object is determined as the display style of the target object; and configuring the display positions of the primitives corresponding to the display styles in the display interface according to the position information of the target object.
In some possible designs, the processing module 602 is further configured to, if it is determined that the target object does not appear for the first time, perform difference processing according to the position information and the attribute information corresponding to the target object to update the display style of the target object.
In some possible designs, the processing module 602 is specifically configured to update the display style corresponding to the target object according to the position information and the attribute information corresponding to the target object; and calling a rendering engine, and generating a second rendering instruction according to the updated display style corresponding to the target object, wherein the second rendering instruction is used for indicating the display card to render according to the updated display style corresponding to the target object so as to update the state of the target object in the display interface.
In some possible designs, each primitive corresponding to a display style includes: any one or combination of icons, signs, guide lines, historical points.
In some possible designs, the obtaining module 601 is further configured to obtain a display style updating instruction, and the processing module 602 is further configured to update the display style of the target object according to the display style updating instruction, where the display style updating instruction is used to instruct to update the display style corresponding to the target object.
In some possible designs, the display style update instruction is to instruct to update at least one of: the attribute value of the icon of the target object, the attribute value of the sign of the target object, the attribute value of the guide line corresponding to the target object, the text color in the display style, and the size and number of the history points.
The display device provided in this embodiment may be used to implement the technical solution of any one of the method embodiments in fig. 4 to fig. 5, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 7 is a schematic structural diagram of a second display device according to an embodiment of the present invention. Referring to fig. 7, the display device 700 provided in the present embodiment includes: memory 701, processor 702, and computer program instructions.
The memory 701 may be a separate physical unit, and may be connected to the processor 702 via a bus 703. The memory 701 and the processor 702 may also be integrated together, implemented by hardware, and the like.
The memory 701 is used for storing program instructions, which are called by the processor 702 to perform the operations of any one of the method embodiments of fig. 4 to 5 above.
Alternatively, when part or all of the method of the above embodiment is implemented by software, the display device 700 may only include the processor 702. A memory 701 for storing programs is located outside the display device 700, and a processor 702 is connected to the memory through a circuit/wire for reading and executing the programs stored in the memory.
The Processor 702 may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of a CPU and an NP.
The processor 702 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 PLD may be a Complex Programmable Logic Device (CPLD), a Field-Programmable gate Array (FPGA), General Array Logic (GAL), or any combination thereof.
The Memory 701 may include a Volatile Memory (Volatile Memory), such as a Random-Access Memory (RAM); the Memory may also include a Non-volatile Memory (Non-volatile Memory), such as a Flash Memory (Flash Memory), a Hard Disk Drive (HDD) or a Solid-state Drive (SSD); the memory may also comprise a combination of memories of the kind described above.
Fig. 8 is a block diagram illustrating a display device 800, such as a computer, tablet device, personal digital assistant, etc., according to an exemplary embodiment.
Display device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 8080, an input/output (I/O) interface 8012, a sensor component 8014, and a communication component 8016.
The processing component 802 generally controls overall operation of the display device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the display apparatus 800. Examples of such data include instructions for any application or method operating on display device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 806 provides power to the various components of the display device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the display device 800.
The multimedia component 808 includes a screen that provides an output interface between the display device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the display apparatus 800 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Audio component 8080 is configured to output and/or input audio signals. For example, the audio component 8080 includes a Microphone (MIC) configured to receive external audio signals when the display apparatus 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 804 or transmitted via the communication component 8016. In some embodiments, audio assembly 8080 also includes a speaker for outputting audio signals.
The I/O interface 8012 provides an interface between the processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 8014 includes one or more sensors for providing various aspects of status assessment for the display device 800. For example, the sensor element 8014 may detect the open/closed state of the display device 800, the relative positioning of elements, such as a display and a keypad of the display device 800, the sensor element 8014 may also detect a change in position of the display device 800 or a component of the display device 800, the presence or absence of user contact with the display device 800, an orientation or acceleration/deceleration of the display device 800, and a change in temperature of the display device 800. The sensor assembly 8014 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 8014 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 8014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 8016 is configured to facilitate communication between the display apparatus 800 and other devices in a wired or wireless manner. The display device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G or 4G, or a combination thereof. In an exemplary embodiment, the communication component 8016 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 8016 may further include a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the display apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium including instructions, such as the memory 804 including instructions, that may be executed by the processor 8020 of the display apparatus 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A computer-readable storage medium having instructions thereon that, when executed by a processor of a display device, enable the display device to perform the operations of any of the above-described method embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A display method, comprising:
acquiring a network data packet, wherein the network data packet comprises position information and attribute information corresponding to one or more target objects in a target area;
according to the network data packet, if the target object is determined to appear for the first time, determining and configuring a display style of the target object according to a pre-established display style set; the display style comprises various primitives corresponding to a target object and display positions of the various primitives in a display interface, wherein the attribute values of the various primitives corresponding to the target object are determined according to the attribute information of the target object, and the display positions of the various primitives in the display interface are determined according to the position information of the target object;
and calling a rendering engine, generating a first rendering instruction according to the display style of the target object, wherein the first rendering instruction is used for indicating a display card to render according to the display style of the target object, and displaying the state of the target object in a display interface.
2. The method according to claim 1, wherein the determining and configuring the display style of the target object according to the pre-created display style set comprises:
matching the attribute information corresponding to the target object with indexes corresponding to all display styles in a pre-established display style set respectively, and determining the successfully matched display style as the display style of the target object;
and configuring the display positions of the primitives corresponding to the display styles in the display interface respectively according to the position information of the target object.
3. The method of claim 1, further comprising:
and if the target object is determined not to appear for the first time, performing difference processing according to the position information and the attribute information corresponding to the target object to update the display style of the target object.
4. The method according to claim 3, wherein the performing the difference processing according to the position information and the attribute information corresponding to the target object to update the display style of the target object comprises:
updating the display style corresponding to the target object according to the position information and the attribute information corresponding to the target object;
and calling a rendering engine, and generating a second rendering instruction according to the updated display style corresponding to the target object, wherein the second rendering instruction is used for indicating the display card to render according to the updated display style corresponding to the target object so as to update the state of the target object in a display interface.
5. The method according to any one of claims 1 to 4, wherein each primitive corresponding to the display style comprises: any one or combination of icons, signs, guide lines, historical points.
6. The method according to any one of claims 1 to 4, further comprising:
and acquiring a display style updating instruction, and updating the display style of the target object according to the display style updating instruction, wherein the display style updating instruction is used for indicating to update the display style corresponding to the target object.
7. The method of claim 6, wherein the display style update instruction is configured to instruct to update at least one of: the attribute value of the icon of the target object, the attribute value of the sign of the target object, the attribute value of the guide line corresponding to the target object, the text color in the display style, and the size and number of the history points.
8. A display device, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a network data packet which comprises position information and attribute information corresponding to a target object;
a processing module, configured to determine and configure a display style of the target object according to the network data packet and according to a pre-created display style set if the target object is determined to appear for the first time, where the display style includes each primitive corresponding to the target object and a display position of each primitive in a display interface, an attribute value of each primitive corresponding to the target object is determined according to attribute information of the target object, and a display position of each primitive in the display interface is determined according to position information of the target object;
the processing module is further configured to invoke a rendering engine, generate a first rendering instruction according to the display style of the target object, where the first rendering instruction is used to instruct a display card to render according to the display style of the target object, and display the state of the target object in a display interface.
9. A display device, comprising: memory, processor, and computer program instructions;
the memory stores the computer program instructions;
the processor executes the computer program instructions to perform the display method of any of claims 1 to 7.
10. A readable storage medium, comprising: carrying out a procedure;
the program is executed by a processor to perform the display method according to any one of claims 1 to 7.
CN201911417540.9A 2019-12-31 2019-12-31 Display method, device and readable storage medium Active CN111192191B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911417540.9A CN111192191B (en) 2019-12-31 2019-12-31 Display method, device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911417540.9A CN111192191B (en) 2019-12-31 2019-12-31 Display method, device and readable storage medium

Publications (2)

Publication Number Publication Date
CN111192191A true CN111192191A (en) 2020-05-22
CN111192191B CN111192191B (en) 2023-06-13

Family

ID=70710545

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911417540.9A Active CN111192191B (en) 2019-12-31 2019-12-31 Display method, device and readable storage medium

Country Status (1)

Country Link
CN (1) CN111192191B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114489897A (en) * 2022-01-21 2022-05-13 北京字跳网络技术有限公司 Object processing method, device, terminal equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7627814B1 (en) * 2004-01-14 2009-12-01 Microsoft Corporation Hierarchical bit stream markup compilation and rendering
CN108509172A (en) * 2018-04-13 2018-09-07 平安普惠企业管理有限公司 Data transmission method, device, system and the computer storage media of simultaneous display
US20180308219A1 (en) * 2017-04-24 2018-10-25 Intel Corporation Display engine surface blending and adaptive texel to pixel ratio sample rate system, apparatus and method
CN109828818A (en) * 2019-01-29 2019-05-31 广联达科技股份有限公司 A kind of pel pattern transform method based on browser end display engine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7627814B1 (en) * 2004-01-14 2009-12-01 Microsoft Corporation Hierarchical bit stream markup compilation and rendering
US20180308219A1 (en) * 2017-04-24 2018-10-25 Intel Corporation Display engine surface blending and adaptive texel to pixel ratio sample rate system, apparatus and method
CN108509172A (en) * 2018-04-13 2018-09-07 平安普惠企业管理有限公司 Data transmission method, device, system and the computer storage media of simultaneous display
CN109828818A (en) * 2019-01-29 2019-05-31 广联达科技股份有限公司 A kind of pel pattern transform method based on browser end display engine

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王松;张野;吴亚东;: "网络拓扑结构可视化方法研究与发展", 网络与信息安全学报, no. 02 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114489897A (en) * 2022-01-21 2022-05-13 北京字跳网络技术有限公司 Object processing method, device, terminal equipment and medium
CN114489897B (en) * 2022-01-21 2023-08-08 北京字跳网络技术有限公司 Object processing method, device, terminal equipment and medium

Also Published As

Publication number Publication date
CN111192191B (en) 2023-06-13

Similar Documents

Publication Publication Date Title
CN115486087A (en) Application interface display method under multi-window screen projection scene and electronic equipment
EP3454192A1 (en) Method and device for displaying page
CN110213153B (en) Display method, acquisition method, device, terminal and storage medium of unread messages
CN113127130B (en) Page jump method, device and storage medium
CN112163406A (en) Interactive message display method and device, computer equipment and storage medium
CN113936699B (en) Audio processing method, device, equipment and storage medium
CN112420217A (en) Message pushing method, device, equipment and storage medium
CN111694478A (en) Content display method, device, terminal and storage medium
CN113467663B (en) Interface configuration method, device, computer equipment and medium
CN110209445B (en) Information reminding method, device, terminal and storage medium
CN116071377A (en) Map labeling method and device and map labeling device
CN111192191B (en) Display method, device and readable storage medium
CN112416199A (en) Control method and device and electronic equipment
CN112416486A (en) Information guiding method, device, terminal and storage medium
CN111275607A (en) Interface display method and device, computer equipment and storage medium
CN111046265A (en) Card data display method, device, equipment and storage medium
CN112148499A (en) Data reporting method and device, computer equipment and medium
CN114449171B (en) Method for controlling camera, terminal device, storage medium and program product
CN113485596B (en) Virtual model processing method and device, electronic equipment and storage medium
CN113051015B (en) Page rendering method and device, electronic equipment and storage medium
CN114329292A (en) Resource information configuration method and device, electronic equipment and storage medium
CN111694535B (en) Alarm clock information display method and device
CN114238859A (en) Data processing system, method, electronic device, and storage medium
CN113204724A (en) Method and device for creating interactive information, electronic equipment and storage medium
CN113051485A (en) Group searching method, device, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant