CN117093170A - Linkage determination method for two-dimensional information and three-dimensional information display and related equipment - Google Patents
Linkage determination method for two-dimensional information and three-dimensional information display and related equipment Download PDFInfo
- Publication number
- CN117093170A CN117093170A CN202311076851.XA CN202311076851A CN117093170A CN 117093170 A CN117093170 A CN 117093170A CN 202311076851 A CN202311076851 A CN 202311076851A CN 117093170 A CN117093170 A CN 117093170A
- Authority
- CN
- China
- Prior art keywords
- window
- dimensional
- graph
- displayed
- displaying
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 36
- 230000001360 synchronised effect Effects 0.000 claims abstract description 22
- 230000006870 function Effects 0.000 claims description 13
- 238000012545 processing Methods 0.000 claims description 12
- 230000000007 visual effect Effects 0.000 claims description 11
- 238000004590 computer program Methods 0.000 description 15
- 238000010586 diagram Methods 0.000 description 15
- 238000013461 design Methods 0.000 description 12
- 238000007726 management method Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 4
- 238000005859 coupling reaction Methods 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 230000004927 fusion Effects 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000012800 visualization Methods 0.000 description 3
- 230000010354 integration Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000012876 topography Methods 0.000 description 2
- 206010063385 Intellectualisation Diseases 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000013523 data management Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000011022 operating instruction Methods 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000011179 visual inspection Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1423—Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
- G06F3/1438—Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display using more than one graphics controller
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Graphics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention provides a linkage determination method for two-dimensional information and three-dimensional information display and related equipment, which can realize linkage operation of two-dimensional graphics and three-dimensional graphics. The method comprises the following steps: receiving a synchronous message corresponding to a graph displayed by a second window in a first window, wherein the first window and the second window are display windows for displaying two-dimensional graphs or three-dimensional graphs, and the type of the graph displayed by the first window corresponds to the type of the graph displayed by the second window; determining target operation information corresponding to the synchronous message on the graph displayed in the first window; and operating the graph displayed in the first window according to the target operation information so as to realize linkage operation of the graph displayed in the first window and the graph displayed in the second window.
Description
Technical Field
The invention relates to the field of data processing, in particular to a linkage determination method for two-dimensional information and three-dimensional information display and related equipment.
Background
The two-dimensional visual integrated dispatching management platform takes multi-source heterogeneous data management as a core, takes three-dimensional visual application as a characteristic, provides warehouse entry management for various basic data such as images, terrains, digital line drawings, three-dimensional modeling data, oblique photographic models, sensor data, video data and the like, develops operation and maintenance scenes required by daily inspection of a reservoir area, provides services such as integrated fusion information display and business application for users based on the scene modes, realizes reservoir full-element digitalization and virtualization, full-state real-time visualization, operation and maintenance management and cooperation and intellectualization, and meets the requirements of quick response and intelligent control by realizing dynamic decision. Realize the fusion display of two three-dimensional environments of storehouse area and surrounding area, visual inspection dispatch management, meteorological environment information visualization, early warning/warning event visualization, video live broadcast and other partition fusion display interfaces
At present, the implementation modes of two three-dimensional integrated GIS platforms are roughly divided into two types:
(1) Integrating the two three-dimensional views and functions together to provide a set of unified sdk development kit; because the two-dimensional GIS and the three-dimensional GIS are huge and complex system architecture, and relate to the contents of data organization management, data scheduling rendering, projection coordinate system and the like, if the two-dimensional GIS and the three-dimensional GIS are integrated into one system frame, the coupling degree of the software function module is higher, the system expansibility and the usability are lower, and meanwhile, the system maintenance difficulty and the development difficulty are also higher;
(2) Providing a set of three-dimensional platforms sdk and a set of two-dimensional sdk respectively, and constructing two three-dimensional integrated GIS application platforms by a user; because the two-dimensional map and the three-dimensional platform are independent development platforms, the defects in an integrated mode can be overcome, but because sdk is two sets, a user needs to create the two-dimensional map and the three-dimensional scene by himself, and then related functions such as two-dimensional visual angle binding and data loading are developed, so that the functions are redundant.
Disclosure of Invention
The embodiment of the invention provides a linkage determination method for two-dimensional information and three-dimensional information display and related equipment, which can realize linkage operation between two-dimensional graphics and three-dimensional graphics.
The first aspect of the invention provides a linkage determination method for displaying two-dimensional information and three-dimensional information, which comprises the following steps:
receiving a synchronous message corresponding to a graph displayed by a second window in a first window, wherein the first window and the second window are display windows for displaying two-dimensional graphs or three-dimensional graphs, and the type of the graph displayed by the first window corresponds to the type of the graph displayed by the second window;
determining target operation information corresponding to the synchronous message on the graph displayed in the first window;
And operating the graph displayed in the first window according to the target operation information so as to realize linkage operation of the graph displayed in the first window and the graph displayed in the second window.
The second aspect of the present invention provides a linkage determining apparatus for displaying two-dimensional information and three-dimensional information, comprising:
the receiving unit is used for receiving a synchronous message corresponding to a graph displayed by a second window in a first window, wherein the first window and the second window are display windows for displaying two-dimensional graphs or three-dimensional graphs, and the type of the graph displayed by the first window corresponds to the type of the graph displayed by the second window;
the determining unit is used for determining target operation information corresponding to the graphic displayed in the first window by the synchronous message;
and the linkage unit is used for operating the graph displayed in the first window according to the target operation information so as to realize linkage operation of the graph displayed in the first window and the graph displayed in the second window.
In one possible design, the first window is a display window for displaying a three-dimensional graph, the second window is a display window for displaying a two-dimensional graph, the synchronization information includes a center position and a visual range of the graph displayed by the second window, and the determining unit is specifically configured to:
Determining the three-dimensional viewpoint height of the graph displayed by the first window through the following formula:
h=dis(2×tan(fovy2));
wherein h is the three-dimensional viewpoint height of the graph displayed in the first window, dis is the distance in the horizontal direction of the graph displayed in the first window, and fovy is the included angle in the horizontal direction of the three-dimensional view angle corresponding to the graph displayed in the first window;
determining the central position of the graph displayed by the second window as a sight focus corresponding to the graph displayed by the first window;
and determining the three-dimensional viewpoint height and the sight focus corresponding to the graph displayed by the first window as the target operation information.
In one possible design, the first window is a display window for displaying a two-dimensional graph, the second window is a window for displaying a three-dimensional graph, the synchronization information includes a three-dimensional viewpoint height corresponding to the second window, and the determining unit is further specifically configured to:
determining a two-dimensional map scale corresponding to the first window through the following formula:
zoom=h×scale;
wherein, zoom is the two-dimensional map scale corresponding to the first window, h is the three-dimensional viewpoint height corresponding to the second window, scale is the linkage scale coefficient between the first window and the second window;
Determining a three-dimensional sight focus corresponding to the second window as a center point of a display graph in the first window, wherein the three-dimensional sight focus corresponding to the second window is determined by the following formula:
P 6 =P s -sin(picht)×s;
wherein P is 6 For the three-dimensional sight focus corresponding to the second window, P s For a screen center point corresponding to the second window, picht is a sight pitch angle corresponding to the second window, and s is a scale factor;
and determining the two-dimensional map scale and the center point of the display graph in the first window as the target operation information.
In one possible design, the apparatus further comprises:
a label updating unit for:
receiving a label updating instruction;
drawing a graph displayed in the first window according to the label updating data corresponding to the label updating instruction, wherein the first window is a window for displaying a two-dimensional graph;
displaying the drawn display graph in the first window;
determining a texture picture corresponding to the second window according to the label updating data corresponding to the label updating instruction, wherein the second window is a window for displaying a three-dimensional graph;
Determining the type of the label corresponding to the label updating instruction in the second window according to the texture picture;
and updating and displaying the labels of the graphics displayed in the second window according to the label types.
In one possible design, the label updating unit updates and displays the label of the graphic displayed in the second window according to the label type, including:
if the label type is punctiform, creating a billboards attached texture of a target label corresponding to the label updating instruction;
processing the target label based on the billboard pasting texture to obtain an updated positioning point corresponding to the target label;
if the label type is a line or a plane, creating a sub-graph paste texture corresponding to the target label;
converting and projecting the target mark to map to the ground;
and displaying the target label based on the positioning point, or displaying the target label mapped to the ground.
In one possible design, the apparatus further comprises:
a graphic query unit for:
receiving a graphic query instruction;
and carrying out linkage inquiry on the graph displayed in the first window and the graph displayed in the second window according to the graph inquiry instruction.
In one possible design, the graphic query unit performs a linkage query on the graphic displayed in the first window and the graphic displayed in the second window according to the graphic query instruction, where the linkage query includes:
determining input parameters corresponding to the graphic query instruction;
calling a query interface function based on the input parameters to query the graph displayed in the first window to obtain a query result, wherein the first window is a window for displaying a two-dimensional graph;
displaying the query result in the first window;
analyzing the query result to obtain three-dimensional data of one of the second windows of the graphic query instruction, wherein the second window is a window for displaying three-dimensional graphics;
drawing a three-dimensional graph corresponding to the graph query instruction according to the three-dimensional data;
and determining the three-dimensional graph as a query result of the graph query instruction in the second window, and displaying the three-dimensional graph in the second window.
A third aspect of the embodiment of the present invention provides an electronic device, including a memory, and a processor, where the processor is configured to implement the steps of the linkage determining method for displaying two-dimensional information and three-dimensional information according to the first aspect when executing a computer management program stored in the memory.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium having stored thereon a computer management class program which, when executed by a processor, implements the steps of the linkage determination method for displaying two-dimensional information and three-dimensional information as described in the first aspect above.
In summary, it can be seen that in the embodiment provided by the present invention, each roaming operation of the two-dimensional window or the three-dimensional window sends a synchronization message to the other window, and then determines an operation line of the other window according to the synchronization message, and performs roaming and scaling operations on the topography or map of the present window through projection calculation, so as to keep the viewing range consistent. And further realizing the linkage of two three-dimensional information display.
Drawings
FIG. 1 is a schematic flow chart of a linkage determination method for displaying two-dimensional information and three-dimensional information provided by an embodiment of the invention;
FIG. 2 is a schematic view of a focus of a line of sight provided by an embodiment of the present invention;
fig. 3 is a schematic diagram of a virtual structure of a linkage determining device for displaying two-dimensional information and three-dimensional information according to an embodiment of the present invention;
fig. 4 is a schematic hardware structure diagram of a linkage determining device for displaying two-dimensional information and three-dimensional information according to an embodiment of the present invention;
Fig. 5 is a schematic diagram of an embodiment of an electronic device according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an embodiment of a computer readable storage medium according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
The method for determining the linkage of the two-dimensional information and the three-dimensional information is described below by using the linkage determining device for displaying the two-dimensional information and the three-dimensional information, and the linkage determining device for displaying the two-dimensional information and the three-dimensional information can be a server or a service unit in the server, and is not particularly limited.
Referring to fig. 1, fig. 1 is a flow chart of a linkage determining method for displaying two-dimensional information and three-dimensional information according to an embodiment of the present invention, including:
101. and receiving a synchronous message corresponding to the graph displayed by the second window in the first window.
In this embodiment, the linkage determining device for displaying two-dimensional information and three-dimensional information may receive, in a first window, a synchronization message corresponding to a graphic displayed by a second window, where the first window and the second window are both display windows for displaying two-dimensional graphics or three-dimensional graphics, and a graphic type displayed by the first window corresponds to a graphic type displayed by the second window, that is, if the graphic type displayed by the first window is two-dimensional, the graphic type displayed by the second window is three-dimensional, and if the graphic type displayed by the first window is three-dimensional, the graphic displayed by the second window is two-dimensional, and display is needed to be correspondingly performed so as to perform display linkage of two-dimensional information.
It should be noted that, the view range linkage is implemented by a message driving mechanism, and each step of roaming operation of the two-dimensional graphic display window or the three-dimensional graphic display window sends a synchronization message to the corresponding window.
102. And determining target operation information corresponding to the graphic displayed in the first window by the synchronous message.
In this embodiment, the linkage determining device for displaying the two-dimensional information and the three-dimensional information may determine the target operation information on the graphic displayed in the first window by the synchronization information after the first window receives the synchronization information corresponding to the graphic displayed in the second window. The contents displayed in the first window and the second window are different, and the synchronous message and the target operation information are correspondingly changed, and the following description is given respectively:
1. The first window is a display window for displaying three-dimensional graphics, and the second window is a display window for displaying two-dimensional graphics;
when the first window is a display window for displaying three-dimensional graphics and the second window is a display window for displaying two-dimensional graphics, the synchronous information comprises the central position and the applicable range of the graphics displayed by the second window, and the linkage determining device for displaying the two-dimensional information and the three-dimensional information can determine the three-dimensional viewpoint height of the graphics displayed by the first window through the following formula:
h=dis(2×tan(fovy2));
wherein h is the three-dimensional viewpoint height of the graph displayed in the first window, dis is the distance in the horizontal direction of the graph displayed in the first window, and fovy is the included angle in the horizontal direction of the three-dimensional view angle corresponding to the graph displayed in the first window;
determining the central position of the graph displayed by the second window as a sight focus corresponding to the graph displayed by the first window; and determining the three-dimensional viewpoint height and the sight focus corresponding to the graph displayed by the first window as target operation information. I.e. the two-dimensional map center position serves as the focal point of the line of sight in the three-dimensional window. Referring to fig. 2, fig. 2 is a schematic diagram of a sight line focus according to an embodiment of the present invention, wherein a center point of a screen is a sight line corner point when viewed from front, and the sight line corner point is offset when viewed from top.
2. The first window is a display window for displaying a two-dimensional graph, and the second window is a window for displaying a three-dimensional graph:
when the first window is a display window for displaying a two-dimensional graph, the second window is a window for displaying a three-dimensional graph, the synchronous information comprises the three-dimensional viewpoint height corresponding to the second window, and the linkage determining device for displaying the two-dimensional information and the three-dimensional information can determine the two-dimensional map scale corresponding to the first window through the following formula:
zoom=h×scale;
wherein, zoom is the two-dimensional map scale corresponding to the first window, h is the three-dimensional viewpoint height corresponding to the second window, scale is the linkage scale coefficient between the first window and the second window;
determining a three-dimensional sight focus corresponding to a second window as a center point of a display graph in the first window, wherein the three-dimensional sight focus corresponding to the second window is determined by the following formula:
P 6 =P s -sin(picht)×s;
wherein P is 6 A three-dimensional view corresponding to the second windowLine focus, P s For a screen center point corresponding to the second window, picht is a sight pitch angle corresponding to the second window, and s is a scale factor; and determining the two-dimensional map scale and the center point of the display graph in the first window as target operation information.
103. And operating the graph displayed in the first window according to the target operation information so as to realize linkage operation of the graph displayed in the first window and the graph displayed in the second window.
In this embodiment, after the target operation information is obtained, the linkage determining device for displaying the two-dimensional information and the three-dimensional information may operate the graphics displayed in the first window according to the target operation information, so that the graphics displayed in the first window and the graphics displayed in the second window implement linkage operation. The view range linkage is implemented through a message driven mechanism. Each step of roaming operation of the two-dimensional or three-dimensional window can send a synchronous message to the other window, and the message receiving window carries out roaming and scaling operation on the current map or the topographic map of the window through projection calculation by acquiring the central position and the visual range of the current map or the topographic map of the sending window, so that the visual range is kept consistent. In popular terms, the core method of the visual range linkage is to set the center point coordinate of the electronic map as the center point coordinate of the currently browsed three-dimensional scene, and calculate the display proportion of the three-dimensional scene to determine the display level of the electronic map. The display proportion of the three-dimensional scene is determined by the ratio of the width of the current three-dimensional scene on the 3D window to the distance of the actual three-dimensional sphere displayed by the current three-dimensional scene.
In one embodiment, the linkage determining device for displaying the two-dimensional information and the three-dimensional information further performs the following operations:
receiving a label updating instruction;
drawing a graph displayed in the first window according to the label updating data corresponding to the label updating instruction, wherein the first window is a window for displaying a two-dimensional graph;
displaying the drawn display graph in the first window;
determining a texture picture corresponding to the second window according to the label updating data corresponding to the label updating instruction, wherein the second window is a window for displaying a three-dimensional graph;
determining the type of the label corresponding to the label updating instruction in the second window according to the texture picture;
and updating and displaying the labels of the graphics displayed in the second window according to the label types.
In this embodiment, when the index of the graphic displayed in the window needs to be updated, the user may update the index of the graphic displayed in the window, and at this time, the linkage determining device for displaying the two-dimensional information and the three-dimensional information may receive the index update instruction corresponding to the user, and at this time, according to different types of the graphic displayed in the window, the index update mode is different, and then the first window is taken as the window for displaying the two-dimensional graphic, and the second window is taken as the window for displaying the three-dimensional graphic, which is described as how to update the index of the two three-dimensional graphic:
1. Updating the label of the two-dimensional graph:
the linkage determining device for displaying the two-dimensional information and the three-dimensional information can firstly determine the label updating data corresponding to the label updating instruction, namely, determine the label to be updated and the corresponding updating data thereof, draw the two-dimensional graph according to the label to be updated and the corresponding updating data thereof, and display the drawn two-dimensional graph.
2. Label updating of three-dimensional graphics:
the linkage determining device for displaying the two-dimensional information and the three-dimensional information can determine the texture picture corresponding to the second window according to the label updating data corresponding to the label updating instruction, and determine the label type corresponding to the label updating instruction in the second window according to the texture picture; and updating and displaying the labels of the graphics displayed in the second window according to the label types. The label type comprises a dot, a line and a surface, when the label type is the dot, the linkage determining device for displaying the two-dimensional information and the three-dimensional information can create a billboard texture of the label to be updated (wherein the billboard is a technology for determining the rectangular orientation of the texture based on a visual angle), process the target label based on the billboard texture to obtain a positioning point corresponding to the updated target label, and then display the updated target label based on the positioning point; if the label type is a line or a plane, creating a sub-graph texture corresponding to the target label, converting and projecting the target label based on the sub-graph texture so as to map the target label to the ground, and displaying the target label mapped to the ground.
Therefore, the situation label linkage fully utilizes the characteristic of MVC architecture mode, two three-dimensional labels in the system use the same label data, the labels are plotted, deleted or edited on two three-dimensional windows and are directly mapped to the operation on the data, and once the data changes, the corresponding view, namely the two three-dimensional windows, are synchronously updated. On the basis of the integration of the label data, two three-dimensional labels are synchronously drawn. The drawing of the three-dimensional label uses the picture generated by the two-dimensional drawing algorithm as the label texture, so that the consistency of the appearance of the two three-dimensional label is ensured.
In one embodiment, the linkage determining device for displaying the two-dimensional information and the three-dimensional information further performs the following operations:
receiving a graphic query instruction;
and carrying out linkage inquiry on the graph displayed in the first window and the graph displayed in the second window according to the graph inquiry instruction.
In this embodiment, the linkage determining device for displaying the two-dimensional information and the three-dimensional information may receive the graphic query instruction, and perform linkage query on the graphic displayed in the first window and the graphic displayed in the second window according to the graphic query instruction. According to different types of graphics displayed in the windows, the graphics query modes are different, a first window is taken as a window for displaying two-dimensional graphics, and a second window is taken as a window for displaying three-dimensional graphics, so as to describe how to perform the graphics query on two three-dimensional graphics:
1. Graphic query of two-dimensional graphics:
the linkage determining device for displaying the two-dimensional information and the three-dimensional information can determine input parameters corresponding to the graphic query instruction, call a query interface function according to the input parameters, further can directly query the two-dimensional graphic displayed in the first window to obtain a query result, and display the query result in the first window.
2. Graphic query of three-dimensional graphics:
the linkage determining device for displaying the two-dimensional information and the three-dimensional information can determine input parameters corresponding to the graphic query instruction, call query interface parameters, query the two-dimensional graphic displayed in the first window to obtain a query result, display the query result in the first window, and analyze the query result to obtain corresponding three-dimensional data, namely point, line and surface data corresponding to the graphic query instruction, further draw the three-dimensional graphic according to the point, line and surface data, and the drawn three-dimensional graphic is the query result corresponding to the graphic query instruction and display the three-dimensional graphic. Namely, the query range is input in the three-dimensional window, the range parameters are recorded, the query operation is carried out by using the two-dimensional geographic information query interface, and the query result is converted into three-dimensional points, lines and planes and is displayed in a superposition manner on the three-dimensional terrain. The method combines the powerful space inquiry analysis capability of the two-dimensional GIS with the visual display capability of the three-dimensional GIS image.
In summary, it can be seen that in the embodiment provided by the present invention, each roaming operation of the two-dimensional window or the three-dimensional window sends a synchronization message to the other window, and then determines an operation line of the other window according to the synchronization message, and performs roaming and scaling operations on the topography or map of the present window through projection calculation, so as to keep the viewing range consistent. And further realizing the linkage of two three-dimensional information display.
The embodiments of the present invention are described above from the linkage determination method of the two-dimensional information and the three-dimensional information display, and the embodiments of the present invention are described below from the linkage determination device of the two-dimensional information and the three-dimensional information display.
Referring to fig. 3, a schematic diagram of a virtual structure of a linkage determining device for displaying two-dimensional information and three-dimensional information in an embodiment of the present invention, a linkage determining device 300 for displaying two-dimensional information and three-dimensional information includes:
a receiving unit 301, configured to receive, in a first window, a synchronization message corresponding to a graphic displayed in a second window, where the first window and the second window are both display windows for displaying two-dimensional graphics or three-dimensional graphics, and a graphic type displayed in the first window corresponds to a graphic type displayed in the second window;
A determining unit 302, configured to determine target operation information corresponding to the graphic displayed in the first window by using the synchronization message;
and the linkage unit 303 is configured to operate the graphics displayed in the first window according to the target operation information, so that the graphics displayed in the first window and the graphics displayed in the second window implement linkage operation.
In one possible design, the first window is a display window for displaying a three-dimensional graphic, the second window is a display window for displaying a two-dimensional graphic, the synchronization information includes a center position and a visual range of the graphic displayed by the second window, and the determining unit 302 is specifically configured to:
determining the three-dimensional viewpoint height of the graph displayed by the first window through the following formula:
h=dis(2×tan(fovy2));
wherein h is the three-dimensional viewpoint height of the graph displayed in the first window, dis is the distance in the horizontal direction of the graph displayed in the first window, and fovy is the included angle in the horizontal direction of the three-dimensional view angle corresponding to the graph displayed in the first window;
determining the central position of the graph displayed by the second window as a sight focus corresponding to the graph displayed by the first window;
And determining the three-dimensional viewpoint height and the sight focus corresponding to the graph displayed by the first window as the target operation information.
In one possible design, the first window is a display window for displaying a two-dimensional graph, the second window is a window for displaying a three-dimensional graph, the synchronization information includes a three-dimensional viewpoint height corresponding to the second window, and the determining unit 302 is further specifically configured to:
determining a two-dimensional map scale corresponding to the first window through the following formula:
zoom=h×scale;
wherein, zoom is the two-dimensional map scale corresponding to the first window, h is the three-dimensional viewpoint height corresponding to the second window, scale is the linkage scale coefficient between the first window and the second window;
determining a three-dimensional sight focus corresponding to the second window as a center point of a display graph in the first window, wherein the three-dimensional sight focus corresponding to the second window is determined by the following formula:
P 6 =P s -sin(picht)×s;
wherein P is 6 For the three-dimensional sight focus corresponding to the second window, P s For a screen center point corresponding to the second window, picht is a sight pitch angle corresponding to the second window, and s is a scale factor;
And determining the two-dimensional map scale and the center point of the display graph in the first window as the target operation information.
In one possible design, the apparatus further comprises:
a label updating unit 304, the label updating unit 304 being configured to:
receiving a label updating instruction;
drawing a graph displayed in the first window according to the label updating data corresponding to the label updating instruction, wherein the first window is a window for displaying a two-dimensional graph;
displaying the drawn display graph in the first window;
determining a texture picture corresponding to the second window according to the label updating data corresponding to the label updating instruction, wherein the second window is a window for displaying a three-dimensional graph;
determining the type of the label corresponding to the label updating instruction in the second window according to the texture picture;
and updating and displaying the labels of the graphics displayed in the second window according to the label types.
In one possible design, the updating display of the label of the graphic displayed in the second window by the label updating unit 304 according to the label type includes:
if the label type is punctiform, creating a billboards attached texture of a target label corresponding to the label updating instruction;
Processing the target label based on the billboard pasting texture to obtain an updated positioning point corresponding to the target label;
if the label type is a line or a plane, creating a sub-graph paste texture corresponding to the target label;
converting and projecting the target mark to map to the ground;
and displaying the target label based on the positioning point, or displaying the target label mapped to the ground.
In one possible design, the apparatus further comprises:
a graphical query unit 305, the graphical query unit 305 being configured to:
receiving a graphic query instruction;
and carrying out linkage inquiry on the graph displayed in the first window and the graph displayed in the second window according to the graph inquiry instruction.
In one possible design, the graphic query unit 305 performs a linkage query on the graphic displayed in the first window and the graphic displayed in the second window according to the graphic query instruction, where the linkage query includes:
determining input parameters corresponding to the graphic query instruction;
calling a query interface function based on the input parameters to query the graph displayed in the first window to obtain a query result, wherein the first window is a window for displaying a two-dimensional graph;
Displaying the query result in the first window;
analyzing the query result to obtain three-dimensional data of one of the second windows of the graphic query instruction, wherein the second window is a window for displaying three-dimensional graphics;
drawing a three-dimensional graph corresponding to the graph query instruction according to the three-dimensional data;
and determining the three-dimensional graph as a query result of the graph query instruction in the second window, and displaying the three-dimensional graph in the second window.
While fig. 3 has been described above with respect to the two-dimensional information and three-dimensional information display linkage determination device in the embodiment of the present invention from the perspective of a modularized functional entity, the following describes in detail the two-dimensional information and three-dimensional information display linkage determination device in the embodiment of the present invention from the perspective of hardware processing, referring to fig. 4, an embodiment of the two-dimensional information and three-dimensional information display linkage determination device 400 in the embodiment of the present invention is shown in the schematic diagram, where the two-dimensional information and three-dimensional information display linkage determination device 400 includes:
input device 401, output device 402, processor 403, and memory 404 (where the number of processors 403 may be one or more, one processor 403 being an example in fig. 4). In some embodiments of the invention, the input device 401, the output device 402, the processor 403, and the memory 404 may be connected by a communication bus or other means, wherein the communication bus connection is exemplified in fig. 4.
Wherein, by calling the operation instruction stored in the memory 404, the processor 403 is configured to execute the following steps:
receiving a synchronous message corresponding to a graph displayed by a second window in a first window, wherein the first window and the second window are display windows for displaying two-dimensional graphs or three-dimensional graphs, and the type of the graph displayed by the first window corresponds to the type of the graph displayed by the second window;
determining target operation information corresponding to the synchronous message on the graph displayed in the first window;
and operating the graph displayed in the first window according to the target operation information so as to realize linkage operation of the graph displayed in the first window and the graph displayed in the second window.
The processor 403 is further configured to execute any of the embodiments corresponding to fig. 1 by invoking the operating instructions stored in the memory 404.
Referring to fig. 5, fig. 5 is a schematic diagram of an embodiment of an electronic device according to an embodiment of the invention.
As shown in fig. 5, an embodiment of the present invention provides an electronic device, including a memory 510, a processor 520, and a computer program 511 stored on the memory 510 and executable on the processor 520, wherein the processor 520 executes the computer program 511 to implement the following steps:
Receiving a synchronous message corresponding to a graph displayed by a second window in a first window, wherein the first window and the second window are display windows for displaying two-dimensional graphs or three-dimensional graphs, and the type of the graph displayed by the first window corresponds to the type of the graph displayed by the second window;
determining target operation information corresponding to the synchronous message on the graph displayed in the first window;
and operating the graph displayed in the first window according to the target operation information so as to realize linkage operation of the graph displayed in the first window and the graph displayed in the second window.
In a specific implementation, when the processor 520 executes the computer program 511, any implementation of the embodiment corresponding to fig. 1 may be implemented.
Since the electronic device described in this embodiment is a device for implementing the linkage determining apparatus for displaying two-dimensional information and three-dimensional information in the embodiment of the present invention, based on the method described in the embodiment of the present invention, those skilled in the art can understand the specific implementation manner of the electronic device and various modifications thereof, so how the electronic device implements the method in the embodiment of the present invention will not be described in detail herein, and only those devices for implementing the method in the embodiment of the present invention will belong to the scope of the invention to be protected.
Referring to fig. 6, fig. 6 is a schematic diagram of an embodiment of a computer readable storage medium according to an embodiment of the invention.
As shown in fig. 6, an embodiment of the present invention further provides a computer readable storage medium 600 having stored thereon a computer program 611, which computer program 611 when executed by a processor implements the steps of:
receiving a synchronous message corresponding to a graph displayed by a second window in a first window, wherein the first window and the second window are display windows for displaying two-dimensional graphs or three-dimensional graphs, and the type of the graph displayed by the first window corresponds to the type of the graph displayed by the second window;
determining target operation information corresponding to the synchronous message on the graph displayed in the first window;
and operating the graph displayed in the first window according to the target operation information so as to realize linkage operation of the graph displayed in the first window and the graph displayed in the second window.
In a specific implementation, the computer program 611 is executed by a processor at a time to implement any of the embodiments corresponding to fig. 1.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and for those portions of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Embodiments of the present invention also provide a computer program product comprising computer software instructions which, when run on a processing device, cause the processing device to perform the flow as in the corresponding embodiment of fig. 2.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present invention, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical functional division, and the actual implementation time may be in other manners, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some of the technical features thereof can be replaced equivalently; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (10)
1. The linkage determination method for displaying two-dimensional information and three-dimensional information is characterized by comprising the following steps of:
receiving a synchronous message corresponding to a graph displayed by a second window in a first window, wherein the first window and the second window are display windows for displaying two-dimensional graphs or three-dimensional graphs, and the type of the graph displayed by the first window corresponds to the type of the graph displayed by the second window;
determining target operation information corresponding to the synchronous message on the graph displayed in the first window;
and operating the graph displayed in the first window according to the target operation information so as to realize linkage operation of the graph displayed in the first window and the graph displayed in the second window.
2. The method of claim 1, wherein the first window is a display window displaying a three-dimensional graphic, the second window is a display window displaying a two-dimensional graphic, the synchronization information includes a center position and a visual range of the graphic displayed by the second window, and determining target operation information corresponding to the graphic displayed by the synchronization message in the first window includes:
determining the three-dimensional viewpoint height of the graph displayed by the first window through the following formula:
h=dis(2×tan(fovy2));
wherein h is the three-dimensional viewpoint height of the graph displayed in the first window, dis is the distance in the horizontal direction of the graph displayed in the first window, and fovy is the included angle in the horizontal direction of the three-dimensional view angle corresponding to the graph displayed in the first window;
determining the central position of the graph displayed by the second window as a sight focus corresponding to the graph displayed by the first window;
and determining the three-dimensional viewpoint height and the sight focus corresponding to the graph displayed by the first window as the target operation information.
3. The method of claim 1, wherein the first window is a display window for displaying a two-dimensional graphic, the second window is a window for displaying a three-dimensional graphic, the synchronization information includes a three-dimensional viewpoint height corresponding to the second window, and determining target operation information corresponding to the synchronization message on the graphic displayed in the first window includes:
Determining a two-dimensional map scale corresponding to the first window through the following formula:
zoom=h×scale;
wherein, zoom is the two-dimensional map scale corresponding to the first window, h is the three-dimensional viewpoint height corresponding to the second window, scale is the linkage scale coefficient between the first window and the second window;
determining a three-dimensional sight focus corresponding to the second window as a center point of a display graph in the first window, wherein the three-dimensional sight focus corresponding to the second window is determined by the following formula:
P 6 =P s -sin(picht)×s;
wherein P is 6 For the three-dimensional sight focus corresponding to the second window, P s For a screen center point corresponding to the second window, picht is a sight pitch angle corresponding to the second window, and s is a scale factor;
and determining the two-dimensional map scale and the center point of the display graph in the first window as the target operation information.
4. A method according to any one of claims 1 to 3, further comprising:
receiving a label updating instruction;
drawing a graph displayed in the first window according to the label updating data corresponding to the label updating instruction, wherein the first window is a window for displaying a two-dimensional graph;
Displaying the drawn display graph in the first window;
determining a texture picture corresponding to the second window according to the label updating data corresponding to the label updating instruction, wherein the second window is a window for displaying a three-dimensional graph;
determining the type of the label corresponding to the label updating instruction in the second window according to the texture picture;
and updating and displaying the labels of the graphics displayed in the second window according to the label types.
5. The method of claim 4, wherein updating the display of the labels of the graphics displayed within the second window according to the label type comprises:
if the label type is punctiform, creating a billboards attached texture of a target label corresponding to the label updating instruction;
processing the target label based on the billboard pasting texture to obtain an updated positioning point corresponding to the target label;
if the label type is a line or a plane, creating a sub-graph paste texture corresponding to the target label;
converting and projecting the target mark to map to the ground;
and displaying the target label based on the positioning point, or displaying the target label mapped to the ground.
6. A method according to any one of claims 1 to 3, further comprising:
receiving a graphic query instruction;
and carrying out linkage inquiry on the graph displayed in the first window and the graph displayed in the second window according to the graph inquiry instruction.
7. The method of claim 6, wherein the performing a coordinated query on the graphic displayed in the first window and the graphic displayed in the second window according to the graphic query instruction comprises:
determining input parameters corresponding to the graphic query instruction;
calling a query interface function based on the input parameters to query the graph displayed in the first window to obtain a query result, wherein the first window is a window for displaying a two-dimensional graph;
displaying the query result in the first window;
analyzing the query result to obtain three-dimensional data of one of the second windows of the graphic query instruction, wherein the second window is a window for displaying three-dimensional graphics;
drawing a three-dimensional graph corresponding to the graph query instruction according to the three-dimensional data;
and determining the three-dimensional graph as a query result of the graph query instruction in the second window, and displaying the three-dimensional graph in the second window.
8. A linkage determination device for displaying two-dimensional information and three-dimensional information, comprising:
the receiving unit is used for receiving a synchronous message corresponding to a graph displayed by a second window in a first window, wherein the first window and the second window are display windows for displaying two-dimensional graphs or three-dimensional graphs, and the type of the graph displayed by the first window corresponds to the type of the graph displayed by the second window;
the determining unit is used for determining target operation information corresponding to the graphic displayed in the first window by the synchronous message;
and the linkage unit is used for operating the graph displayed in the first window according to the target operation information so as to realize linkage operation of the graph displayed in the first window and the graph displayed in the second window.
9. An electronic device, comprising:
memory, processor for implementing the linkage determination method for displaying two-dimensional information and three-dimensional information according to any one of claims 1 to 7 when executing the computer management program stored in the memory.
10. A computer-readable storage medium having stored thereon a computer management class program, characterized in that: the computer management program when executed by a processor realizes the linkage determination method for displaying two-dimensional information and three-dimensional information according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311076851.XA CN117093170A (en) | 2023-08-24 | 2023-08-24 | Linkage determination method for two-dimensional information and three-dimensional information display and related equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311076851.XA CN117093170A (en) | 2023-08-24 | 2023-08-24 | Linkage determination method for two-dimensional information and three-dimensional information display and related equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117093170A true CN117093170A (en) | 2023-11-21 |
Family
ID=88774668
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311076851.XA Pending CN117093170A (en) | 2023-08-24 | 2023-08-24 | Linkage determination method for two-dimensional information and three-dimensional information display and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117093170A (en) |
-
2023
- 2023-08-24 CN CN202311076851.XA patent/CN117093170A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8493380B2 (en) | Method and system for constructing virtual space | |
CN112933597B (en) | Image processing method, image processing device, computer equipment and storage medium | |
CN112560137A (en) | Multi-model fusion method and system based on smart city | |
CN110503718B (en) | Three-dimensional engineering model lightweight display method | |
CN102957748A (en) | Dynamic update method and system for three-dimensional scene | |
TWI795762B (en) | Method and electronic equipment for superimposing live broadcast character images in real scenes | |
CN112598993B (en) | City map platform visualization method and device based on CIM and related products | |
CN109741431B (en) | Two-dimensional and three-dimensional integrated electronic map frame | |
CN112714266B (en) | Method and device for displaying labeling information, electronic equipment and storage medium | |
CN116097316A (en) | Object recognition neural network for modeless central prediction | |
CN113313832A (en) | Semantic generation method and device of three-dimensional model, storage medium and electronic equipment | |
CN112053440A (en) | Method for determining individualized model and communication device | |
CN111258690A (en) | Method and device for constructing 3D page | |
CN114928718A (en) | Video monitoring method and device, electronic equipment and storage medium | |
CN117011492B (en) | Image rendering method and device, electronic equipment and storage medium | |
Trapp et al. | Colonia 3D communication of virtual 3D reconstructions in public spaces | |
CN107945719A (en) | A kind of product introduction control system based on AR augmented realities | |
CN117093170A (en) | Linkage determination method for two-dimensional information and three-dimensional information display and related equipment | |
KR101909994B1 (en) | Method for providing 3d animating ar contents service using nano unit block | |
CN111643897B (en) | Information processing method, device, system and equipment | |
CN110827400B (en) | Method and device for generating model of object in three-dimensional scene and terminal | |
CN114037794A (en) | Display method, device, equipment and storage medium | |
CN110662099B (en) | Method and device for displaying bullet screen | |
Hagedorn et al. | Towards advanced and interactive web perspective view services | |
CN111476873A (en) | Mobile phone virtual doodling method based on augmented reality |
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 |