A method and device for displaying air information based on a QT platform and an opengl layer
By displaying air situation information in three overlay layers on the QT platform, the problem of excessive resource consumption by electronic map engines is solved, achieving efficient and smooth air situation information display and real-time interaction, and is suitable for multi-processor and operating system applications.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHANGHAI SPACEFLIGHT INST OF TT&C & TELECOMM
- Filing Date
- 2026-03-12
- Publication Date
- 2026-06-12
Smart Images

Figure CN122199737A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of radar technology, and in particular to a method and apparatus for displaying air situation information by overlaying OpenGL layers based on the QT platform. Background Technology
[0002] In recent years, with the integration of electronic map engines into air situation interfaces, operators have increasingly higher requirements for the content and interactivity of displayed air situation information. Currently, most air situation display designs integrate the targets, points, and lines to be displayed into the electronic map engine. This type of display typically first acquires the latitude and longitude information of the current location in real time, draws static elements such as distance rings, distance markers, and scales, and then dynamically updates air situation elements such as flight paths and point traces, converting them into corresponding latitude and longitude coordinates for map display.
[0003] While this method can achieve basic air situation display functions, in complex environments, especially when the number of targets in the air situation increases or becomes denser, the electronic map engine needs to consume a lot of computing resources to process a large number of dynamic elements. As the number of air situation elements such as flight paths and point traces increases, the map engine will consume a lot of resources, the refresh rate will decrease, and it may even cause the software to lag or crash. This method will affect the interactive functions of air situation display, resulting in a poor user experience. Its real-time performance will also be affected, causing operators to misjudge the air situation. Summary of the Invention
[0004] The purpose of this invention is to address the aforementioned technical problems by proposing a method and apparatus for displaying aerial information by overlaying OpenGL layers based on the QT platform. This significantly reduces the resource consumption of the map engine and provides operators with a real-time and smooth user experience. The objective of this invention can be achieved through the following technical solutions: This invention provides a method for displaying aerial information by overlaying OpenGL layers based on the QT platform, comprising: A circular P-display control derived from the QWidget class is built on the QT platform to display air situation information. The circular P-display control includes at least three control subclasses, each used to display different layers. The first layer is created based on the first control subclass. The first layer includes an air situation display area and an electronic map is embedded in the air situation display area to display the air situation area and the air situation elements that can be intervened. The air situation elements that can be intervened include at least one or more of the following: target symbols, flight tracks and target label information. At the same time, scale symbols are displayed on the edge of the air situation display area to assist in positioning and distance measurement. A second layer is created above the first layer based on the second control subclass. The second layer is a transparent OpenGL drawing layer that displays the information related to the air situation elements that can be intervened. The information related to the air situation elements that can be intervened includes at least one of the following: target trail and predicted trajectory. A third layer is created above the second layer based on the third control subclass. The third layer is a transparent OpenGL drawing layer that displays non-interventional air situation elements. The non-interventional air situation elements include at least radar primary and / or secondary points. It receives air situation data sent by the external main program and updates the display on the corresponding layer according to the type of air situation data. It converts the geographic coordinates corresponding to the air situation data into screen coordinates through the electronic map engine, and maps the screen coordinates to the OpenGL drawing coordinates of the second layer and / or the third layer so that different layers are aligned and displayed under the same display reference.
[0005] Furthermore, the first layer is a display layer derived from the QWidget class, used to carry the circular air situation display area, and an electronic map is embedded within the circular air situation display area.
[0006] Furthermore, the transparent OpenGL drawing layer is a display layer based on the QOpenGLWidget class, which is a derived class of QWidget and provides an OpenGL drawing interface. The transparent OpenGL drawing layer enables a transparent background and disables the occlusion of the content below, making the electronic map of the first layer and the preset manipulable air situation elements visible below the transparent OpenGL drawing layer. This is used to overlay the association information of manipulable air situation elements and non-manipulable air situation elements in the air situation display area, thus completing the display of multi-layer data and the transmission of interactive events.
[0007] Furthermore, the circular P-display control sets shared parameters to reflect the display baseline and stores these shared parameters as member variables. The external main program assigns or updates these member variables through an external interface to achieve parameter sharing between different layers. In addition, the circular P-display control sends interactive feedback signals to the external main program through the Qt signal and slot mechanism. The external main program updates the state of the intervenable airspace elements based on the interactive feedback signals and triggers the corresponding layer to update its display.
[0008] Furthermore, it receives air situation data sent by an external main program and updates the display on the corresponding layers according to the air situation data type, including: It receives air situation data generated by an external main program and classifies the air situation data into operable air situation elements, operable air situation element association information, and non-operational air situation elements. When an operable air situation element is updated, the display content of the operable air situation element in the first layer is updated and the display of the first layer is refreshed. Coordinate transformation is performed on the information related to the controllable air situation elements and the non-controllable air situation elements. The geographic coordinates of the information related to the controllable air situation elements are converted into screen coordinates through the electronic map embedded in the first layer. The OpenGL drawing coordinates corresponding to the second and third layers are mapped and the information related to the controllable air situation elements is drawn and displayed on the corresponding layer according to the OpenGL drawing coordinates, and a refresh display is triggered.
[0009] Furthermore, it also includes the following: the first layer receives mouse operations that penetrate through the second and third layers. The mouse operations are used for cross-layer operations on the manipulable air situation elements within the first layer. The mouse operations of the second and third layers are disabled or set to mouse event penetration, so that the mouse operations are passed to the first layer. The first layer performs hit detection of the manipulable air situation elements according to the mouse operations, and sends interactive feedback signals to the external main program through the Qt signal and slot mechanism to update the state of the manipulable air situation elements and trigger the layer refresh display.
[0010] Based on the same inventive concept, this invention provides a QT platform-based device for displaying air situation information by overlaying OpenGL layers, employing the aforementioned QT platform-based method for displaying air situation information by overlaying OpenGL layers, including: The P-display module is used to build a circular P-display control based on the QWidget class under the QT platform to display air situation information. The circular P-display control includes at least three control subclasses, each used to display different layers. The map and controllable element display module is used to create a first layer based on the first control subclass. The first layer includes an air situation display area and embeds an electronic map in the air situation display area to display the air situation area and controllable air situation elements. The controllable air situation elements include at least one or more of target symbols, flight tracks and target label information. At the same time, scale symbols are displayed on the edge of the air situation display area to assist in positioning and distance measurement. The associated information display module is used to create a second layer above the first layer based on the second control subclass. The second layer is a transparent OpenGL drawing layer that displays the associated information of the air situation elements that can be intervened. The associated information of the air situation elements that can be intervened includes at least one of target trail and predicted trajectory. The dot display module is used to create a third layer above the second layer based on the third control subclass. The third layer is a transparent OpenGL drawing layer that displays non-interventional air situation elements. The non-interventional air situation elements include at least radar primary dots and / or secondary dots. The results output module is used to receive air situation data sent by the external main program and update the display on the corresponding layer according to the air situation data type. It converts the geographic coordinates corresponding to the air situation data into screen coordinates through the electronic map engine, and maps the screen coordinates to the OpenGL drawing coordinates of the second layer and / or the third layer so that different layers are aligned and displayed under the same display reference.
[0011] Furthermore, in the map and controllable element display module, the first layer is a display layer derived from the QWidget class, used to carry the circular air situation display area, and an electronic map is embedded in the circular air situation display area.
[0012] Furthermore, in the associated information display module and the point display module, the transparent OpenGL drawing layer is a display layer based on the QOpenGLWidget class. The QOpenGLWidget class is a derived class of the QWidget class, which provides an OpenGL drawing interface. The transparent OpenGL drawing layer enables a transparent background and disables the occlusion of the content below, so that the electronic map of the first layer and the preset manipulable air situation elements are visible below the transparent OpenGL drawing layer. This is used to overlay the associated information of manipulable air situation elements and non-manipulable air situation elements in the air situation display area, thus completing the display of multi-layer data and the transmission of interactive events.
[0013] Furthermore, the interaction module is used for the first layer to receive mouse operations penetrating from the second and third layers. The mouse operations are used for cross-layer operations on the manipulable air situation elements within the first layer. The mouse operations of the second and third layers are disabled or set to mouse event penetration, so that the mouse operations are passed to the first layer. The first layer performs hit detection of the manipulable air situation elements according to the mouse operations, and sends interactive feedback signals to the external main program through the Qt signal and slot mechanism to update the state of the manipulable air situation elements and trigger the layer refresh display.
[0014] Compared with the prior art, the present invention has at least one of the following technical advantages: This invention separates the logic and display of different types of air situation elements by overlaying three layers: a bottom layer of map and operable elements, a middle layer of related information, and an upper layer of non-operable elements. This facilitates maintenance and functional expansion. A transparent OpenGL rendering layer is used to display the middle and upper layers, allowing only the changing layers to be refreshed in scenarios with dense targets or high-frequency data, significantly reducing map engine resource consumption and improving display refresh rate and system smoothness. The bottom layer receives penetrating mouse events, supporting real-time selection, dragging, and operation control of operable air situation elements. Operations are fed back to the external main program via a signal and slot mechanism, enabling synchronous updates and real-time interaction of multi-layer data. Through the three-layer overlay display, operators can simultaneously observe the electronic map, target symbols, flight trails, and primary / secondary radar points, achieving real-time situational awareness and rapid decision-making. Furthermore, the design is generalized for the QT platform, adaptable to various processor architectures and operating systems, and possesses excellent cross-platform display capabilities. Attached Figure Description
[0015] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings: Figure 1 This is a diagram illustrating the composition of layers in an embodiment of the present invention; Figure 2 This is a diagram of the first layer in an embodiment of the present invention; Figure 3 This is a diagram illustrating the second layer in an embodiment of the present invention; Figure 4 This is a diagram of the third layer in an embodiment of the present invention; Figure 5 This is a flowchart of the method for displaying air situation information by overlaying OpenGL layers based on the QT platform according to the present invention; Figure 6 This is the processing flow of P display receiving air situation information in an embodiment of the present invention; Figure 7 This describes the processing flow for displaying layer information in an embodiment of the present invention.
[0016] Explanation of reference numerals in the attached figures: 1: First layer; 2: Second layer; 3: Third layer. Detailed Implementation
[0017] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the disclosure to those skilled in the art. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other. The present invention will now be described in detail with reference to the accompanying drawings and embodiments.
[0018] First Embodiment In existing air situation display systems, air situation elements such as flight paths, point tracks, distance loops, and scales are typically integrated into an electronic map engine for rendering and updating. This approach can meet basic display needs when the number of targets is small. However, in complex airspace or scenarios with dense targets, flight paths and point tracks are updated frequently and in large numbers. The map engine needs to handle the rendering, compositing, and redrawing of a large number of dynamic elements, leading to a significant increase in resource consumption, a decrease in refresh rate, and consequently, interface lag or even crashes. At the same time, the full redrawing of the map engine also affects interactive responsiveness, causing delays in operations such as target selection and tracking control, and affecting the operator's real-time judgment of the air situation.
[0019] Based on the above limitations, the inventors recognized that the bottleneck mainly stemmed from the single rendering path that entrusted all high-frequency dynamic air situation elements to the map engine. Therefore, they proposed a layered and decoupled display scheme. A circular P-display framework was built on the Qt platform, where the electronic map and manipulable air situation elements were kept in the bottom layer to ensure interactive consistency. A transparent OpenGL drawing layer was then overlaid on top of this layer. Corresponding information such as flight trails and predicted trajectories, as well as high-frequency data such as primary / secondary points, were distributed to different transparent layers and refreshed as needed. At the same time, coordinate transformation was used to maintain the alignment of multiple layers, and mouse event penetration and signal slot mechanisms were used to realize cross-layer interaction and status feedback. This method simplifies the display logic of upper and lower layers through a reasonable layered design. Based on whether air situation elements require intervention, they are displayed within independent display ranges of different layers (upper, middle, and lower), thereby reducing the coupling between air situation element displays. This allows for centralized management of the operation functions of interventionable elements and facilitates functional expansion. Simultaneously, it utilizes the high-performance rendering capabilities of OpenGL to independently draw and refresh high-refresh-rate air situation elements, significantly reducing map engine resource consumption and improving software smoothness. Furthermore, this method is based on a generalized design on the Qt platform, possessing excellent cross-platform adaptability and achieving low-resource-consumption, real-time, smooth display in target-dense scenes. Moreover, the method's general design on the Qt platform allows it to adapt to and support multiple processors (x86, ARM, Loongson, etc.) and multiple operating systems such as Kylin, NeoKylin, Red Hat, Ubuntu, and Windows, demonstrating excellent cross-platform compatibility. The specific implementation is as follows: This invention provides a method for displaying aerial information by overlaying OpenGL layers based on the QT platform, comprising: A circular P-display control derived from the QWidget class is built on the QT platform to display air situation information. The circular P-display control includes at least three control subclasses, each used to display different layers. A first layer 1 is created based on the first control subclass. The first layer 1 includes an air situation display area and an electronic map is embedded in the air situation display area to display the air situation area and the air situation elements that can be intervened. The air situation elements that can be intervened include at least one or more of the following: target symbols, flight tracks and target label information. At the same time, scale symbols are displayed on the edge of the air situation display area to assist in positioning and distance measurement. A second layer 2 is created above the first layer 1 based on the second control subclass. The second layer 2 is a transparent OpenGL drawing layer that displays the information related to the air situation elements that can be intervened. The information related to the air situation elements that can be intervened includes at least one of the following: target trail and predicted trajectory. A third layer 3 is created above the second layer 2 based on the third control subclass. The third layer 3 is a transparent OpenGL drawing layer that displays non-interventional air situation elements. The non-interventional air situation elements include at least radar primary and / or secondary points. It receives air situation data sent by the external main program and updates the display on the corresponding layer according to the type of air situation data. It converts the geographic coordinates corresponding to the air situation data into screen coordinates through the electronic map engine, and maps the screen coordinates to the OpenGL drawing coordinates of the second layer 2 and / or the third layer 3, so that different layers are aligned and displayed under the same display reference.
[0020] Furthermore, the first layer 1 is a display layer derived from the QWidget class, used to carry the circular air situation display area, and to embed an electronic map within the circular air situation display area.
[0021] Furthermore, the transparent OpenGL drawing layer is a display layer based on the QOpenGLWidget class, which is a derived class of QWidget and provides an OpenGL drawing interface. The transparent OpenGL drawing layer enables a transparent background and disables the occlusion of the content below, making the electronic map of the first layer 1 and the preset manipulable air situation elements visible below the transparent OpenGL drawing layer. This is used to overlay the association information of manipulable air situation elements and non-manipulable air situation elements in the air situation display area, thus completing the display of multi-layer data and the transmission of interactive events.
[0022] Furthermore, the circular P-display control sets shared parameters to reflect the display baseline and stores these shared parameters as member variables. The external main program assigns or updates these member variables through an external interface to achieve parameter sharing between different layers. In addition, the circular P-display control sends interactive feedback signals to the external main program through the Qt signal and slot mechanism. The external main program updates the state of the intervenable airspace elements based on the interactive feedback signals and triggers the corresponding layer to update its display.
[0023] Furthermore, it receives air situation data sent by an external main program and updates the display on the corresponding layers according to the air situation data type, including: It receives air situation data generated by an external main program and classifies the air situation data into operable air situation elements, operable air situation element association information, and non-operational air situation elements. When the controllable air situation elements are updated, the display content of the controllable air situation elements in the first layer 1 is updated and the display of the first layer 1 is refreshed. Information related to controllable and non-controllable air situation elements The coordinate transformation of the air situation elements is performed. The geographic coordinates of the air situation element association information pairs that can be intervened are converted into screen coordinates through the electronic map embedded in the first layer 1. The OpenGL drawing coordinates corresponding to the second layer 2 and the third layer 3 are mapped. The air situation element association information that can be intervened is drawn and displayed on the corresponding layer according to the OpenGL drawing coordinates and a refresh display is triggered.
[0024] Furthermore, it also includes receiving case responses from mouse operations penetrating from the second layer 2 and the third layer 3. The mouse operations are used for cross-layer operations on the interferable air situation elements within the first layer 1. The mouse operations of the second layer 2 and the third layer 3 are disabled or set to mouse event penetration, so that the mouse operations are passed to the first layer 1. The first layer 1 performs hit detection of the interferable air situation elements according to the mouse operations, and sends interactive feedback signals to the external main program through the Qt signal and slot mechanism to update the state of the interferable air situation elements and trigger the layer refresh display.
[0025] Second Embodiment Based on the same inventive concept, this invention provides a QT platform-based device for displaying air situation information by overlaying OpenGL layers, employing the aforementioned QT platform-based method for displaying air situation information by overlaying OpenGL layers, including: The P-display module is used to build a circular P-display control based on the QWidget class under the QT platform to display air situation information. The circular P-display control includes at least three control subclasses, each used to display different layers. The map and controllable element display module is used to create a first layer 1 based on the first control subclass. The first layer 1 includes an air situation display area and embeds an electronic map in the air situation display area to display the air situation area and controllable air situation elements. The controllable air situation elements include at least one or more of target symbols, tracks and target label information. At the same time, scale symbols are displayed on the edge of the air situation display area to assist in positioning and distance measurement. The associated information display module is used to create a second layer 2 above the first layer 1 based on the second control subclass. The second layer 2 is a transparent OpenGL drawing layer that displays the associated information of the air situation elements that can be intervened. The associated information of the air situation elements that can be intervened includes at least one of target trail and predicted trajectory. The dot display module is used to create a third layer 3 above the second layer 2 based on the third control subclass. The third layer 3 is a transparent OpenGL drawing layer that displays non-interventional air situation elements. The non-interventional air situation elements include at least radar primary dots and / or secondary dots. The results output module is used to receive air situation data sent by the external main program and update the display on the corresponding layer according to the air situation data type. It converts the geographic coordinates corresponding to the air situation data into screen coordinates through the electronic map engine, and maps the screen coordinates to the OpenGL drawing coordinates of the second layer 2 and / or the third layer 3 so that different layers are aligned and displayed under the same display reference.
[0026] It should be specifically noted that in the QT platform-based overlay OpenGL layer air situation information display method provided by this invention, the first layer 1 is a module for displaying the underlying map and operable air situation elements, which mainly displays the electronic map and operable air situation elements that can be interacted with by the operator. The operable air situation elements include, but are not limited to, target symbols, flight tracks, and target label information. These elements can be selected, dragged, or have their status controlled by the operator. Scale symbols are displayed at the edges of the air situation display area to assist in positioning and distance measurement. The second layer 2 is a transparent OpenGL rendering layer that displays the associated information of the operable elements in the first layer 1, such as target trails, predicted trajectories, and other high-frequency refreshed content. The second layer 2 mainly carries visual effects and auxiliary information associated with operable targets, but does not directly respond to mouse operations; its display updates synchronously with the operation status of the first layer 1. The third layer 3 is a transparent OpenGL rendering layer used to display non-interventional air situation elements, such as radar primary and secondary points, or other high-frequency scattered point information. This layer is responsible for efficiently displaying and refreshing a large number of non-interactive targets to reduce the rendering pressure on the underlying map.
[0027] Furthermore, this device may include one or more extended display modules to extend to the fourth, fifth, sixth, or more layers, allowing for continued layering based on functional classification and update frequency principles in the design. For example, the fourth layer can be used to display plotting information or auxiliary graphics of the electronic map, such as airspace boundaries, flight routes, or alarm ranges; the fifth layer can be used to display weather or environmental data overlays, such as wind speed, wind direction, or cloud distribution; and the sixth layer can be used to display command and control information or real-time prompts, such as flight path conflict warnings, selection of highlighted targets, or task markers. Each newly added layer can be refreshed independently and aligned with the underlying first layer 1 through coordinate transformation, ensuring consistent positions of air situation elements under the same display reference after multiple layers are overlaid. Transparency or semi-transparency attributes can also be set to allow different types of air situation information to be clearly distinguished without obscuring each other, ensuring that operators can still achieve real-time situational awareness and multi-layer interactive operations even in high-density target scenarios.
[0028] Furthermore, in the map and controllable element display module, the first layer 1 is a display layer derived from the QWidget class, used to carry the circular air situation display area, and to embed an electronic map within the circular air situation display area.
[0029] Furthermore, in the associated information display module and the point display module, the transparent OpenGL drawing layer is a display layer based on the QOpenGLWidget class. The QOpenGLWidget class is a derived class of the QWidget class, which provides an OpenGL drawing interface. The transparent OpenGL drawing layer enables a transparent background and disables the occlusion of the content below, so that the electronic map of the first layer 1 and the preset manipulable air situation elements are visible below the transparent OpenGL drawing layer. This is used to overlay the associated information of the manipulable air situation elements and the non-manipulable air situation elements in the air situation display area, thus completing the display of multi-layer data and the transmission of interactive events.
[0030] Furthermore, the interaction module is used for the first layer 1 to receive mouse operations penetrating from the second layer 2 and the third layer 3. The mouse operations are used for cross-layer operations on the manipulable air situation elements within the first layer 1. The mouse operations of the second layer 2 and the third layer 3 are disabled or set to mouse event penetration, so that the mouse operations are passed to the first layer 1. The first layer 1 performs hit detection of the manipulable air situation elements according to the mouse operations, and sends interactive feedback signals to the external main program through the Qt signal and slot mechanism to update the state of the manipulable air situation elements and trigger the layer refresh display.
[0031] Third Embodiment To enable those skilled in the art to more clearly understand the technical solution of this application, the third embodiment of the present invention will be further described below with reference to the accompanying drawings and specific application scenarios.
[0032] See Figure 1 , Figure 5 A method for displaying air situation information by overlaying OpenGL layers based on the QT platform includes: deriving multiple control subclasses from the QWidget class, wherein the number of control subclasses is at least three; creating a first layer 1 based on a first control subclass, wherein the first layer 1 includes an air situation display area; embedding an electronic map within the air situation display area, displaying scale symbols and operable air situation elements; creating a second layer 2 based on a second control subclass above the first layer 1 using QOpenGLWidget, wherein the second layer 2 is set to a transparent layer and displays information related to operable air situation elements, such as target trails; creating a third layer 3 based on a third control subclass above the second layer 2 using QOpenGLWidget, wherein the third layer 3 is set to a transparent layer; displaying non-operable air situation elements, such as radar primary and secondary dots, in the third layer 3; and overlaying the first layer 1, the second layer 2, and the third layer 3 so that all air situation elements are displayed within the air situation display area.
[0033] The method in this embodiment can also be understood as creating a control class that inherits from Qwidget as the P-display control class. This class contains a bottom layer of control classes that inherit from Qwidget, and two upper layers of control classes that inherit from QOpenGLWidget. The bottom layer displays an electronic map, with the area configured to display azimuth, distance information scales, and operable air situation elements. The middle and bottom layers are transparent layers, displaying the association information of operable air situation elements and non-operable air situation elements, respectively. Member variables of the P-display control class are used as parameter inputs to the external interface, thereby enabling the sharing of internal parameters among the three layers and completing the P-display air situation display function. A signal and slot mechanism is used to enable communication between the layers and the main program, realizing the operation and control functions of the operable elements. By employing a reasonable layered design, the logic of the upper and lower layers is simplified, and the readability of the code is optimized. Based on whether the spatial elements require intervention, they are distributed in the middle and lower layers respectively, enabling centralized management of the operation functions of the intervention elements and facilitating their functional expansion. At the same time, this method is designed for general use on the QT platform, and can adapt to and support multiple processors such as x86, ARM, Loongson, etc., as well as multiple operating systems such as Galaxy Kylin, NeoKylin, Red Hat, Ubuntu, and Windows, demonstrating good cross-platform compatibility.
[0034] See Figure 1 , Figure 2 , Figure 3 and Figure 4 ,in, Figure 1 This diagram illustrates the overall structure of the P-display air situation display method. Three layers are created within the circular P-display control, and their parameters are initialized: position, size, initial range, trajectory count, and scale display. The bottom layer displays scale symbols and operable air situation information in the air situation element display area. The middle and bottom layers are transparent layers, displaying the correlation information of operable air situation elements and non-operational air situation elements, respectively. By overlaying these three layers, all air situation information is displayed in the circular cutout area of the top layer.
[0035] The first layer, the electronic map, receives air situation information sent by the external main program, while the second and third layers respectively display the air situation information. Figure 6 This describes the processing flow of air situation information received by the P display. To improve software performance, after receiving data from the main program, the corresponding layers are refreshed and displayed according to the data type. Track trail data is transmitted to the second layer (2) for display after coordinate transformation, while primary and secondary point track data is transmitted to the third layer (3) for display after coordinate transformation. Figure 7 This describes the processing flow for displaying layer information. After receiving new air situation data from the main program, coordinate transformation is performed via the electronic map. The location to be displayed on the electronic map is converted to screen coordinates, and then the screen coordinates are converted to coordinates for the second and third layers, i.e., OpenGL layers, before being displayed on the corresponding layers.
[0036] Furthermore, the OpenGL target spatial situation display method based on the QT platform also includes receiving mouse operations that penetrate the second and third layers in the first layer 1, enabling cross-layer operations on the first layer 1. First, the mouse events of the child controls of the second and third OpenGL layers are disabled and set to have the penetration attribute, and then associated with the first layer 1. When the mouse operates on the third layer 3, the corresponding feedback signal is released, and this signal directly acts on the first layer 1, thereby realizing cross-layer operations.
[0037] Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make possible changes and modifications to the technical solutions of the present invention by utilizing the methods and techniques disclosed above without departing from the spirit and scope of the present invention. Therefore, any simple modifications, equivalent changes and alterations made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solutions of the present invention shall fall within the protection scope of the technical solutions of the present invention.
Claims
1. A method for displaying aerial information by overlaying OpenGL layers based on the QT platform, characterized in that, include: A circular P-display control derived from the QWidget class is constructed on the QT platform to display air situation information. The circular P-display control includes at least three control subclasses, each used to display different layers. A first layer is created based on a first control subclass. The first layer includes an air situation display area and an electronic map is embedded in the air situation display area to display the air situation area and the air situation elements that can be intervened. The air situation elements that can be intervened include at least one or more of target symbols, flight tracks and target label information. At the same time, scale symbols are displayed on the edge of the air situation display area to assist in positioning and distance measurement. A second layer is created above the first layer based on the second control subclass. The second layer is a transparent OpenGL drawing layer that displays the interferable air situation element association information. The interferable air situation element association information includes at least one of target trail and predicted trajectory. Based on the third control subclass, a third layer is created above the second layer. The third layer is the transparent OpenGL drawing layer that displays non-interventional air situation elements, which include at least radar primary and / or secondary radar traces. The system receives air situation data sent by an external main program and updates the display on the corresponding layers according to the air situation data type. It converts the geographic coordinates corresponding to the air situation data into screen coordinates through an electronic map engine, and maps the screen coordinates to the OpenGL drawing coordinates of the second layer and / or the third layer, so that the different layers are aligned and displayed under the same display reference.
2. The method for displaying aerial information by overlaying OpenGL layers based on the QT platform according to claim 1, characterized in that, The first layer is a display layer derived from the QWidget class, used to carry a circular air situation display area, and the electronic map is embedded in the circular air situation display area.
3. The method for displaying aerial information by overlaying OpenGL layers based on the QT platform according to claim 1, characterized in that, The transparent OpenGL drawing layer is a display layer based on the QOpenGLWidget class, which is a derived class of the QWidget class and provides an OpenGL drawing interface. The transparent OpenGL drawing layer enables a transparent background and disables the occlusion of the content below, making the electronic map of the first layer and the preset manipulable air situation elements visible below the transparent OpenGL drawing layer. This is used to overlay the association information of the manipulable air situation elements and the non-manipulable air situation elements in the air situation display area, thereby completing the display of multi-layer data and the transmission of interactive events.
4. The method for displaying aerial information by overlaying OpenGL layers based on the QT platform according to claim 1, characterized in that, The circular P-display control is configured with shared parameters to reflect the display baseline, and these shared parameters are stored as member variables. The external main program assigns or updates these member variables through an external interface to achieve parameter sharing between different layers. Furthermore, the circular P-display control sends interactive feedback signals to the external main program through the Qt signal and slot mechanism. The external main program updates the state of the intervenable air situation elements based on the interactive feedback signals and triggers the corresponding layer to update its display.
5. The method for displaying aerial information by overlaying OpenGL layers based on the QT platform according to claim 1, characterized in that, It receives air situation data sent by an external main program and updates the display on the corresponding layer according to the air situation data type, including: Receive the air situation data generated by the external main program, and classify the air situation data into the operable air situation elements, the associated information of the operable air situation elements, and the non-operational air situation elements according to their types; When the controllable air situation element is updated, the display content of the controllable air situation element is updated in the first layer and the display of the first layer is refreshed; Coordinate transformation is performed on the controllable air situation element association information and the non-controllable air situation elements. The geographic coordinates of the controllable air situation element association information pairs are converted into screen coordinates through the electronic map embedded in the first layer. The OpenGL drawing coordinates corresponding to the second layer and the third layer are mapped. The controllable air situation element association information is drawn and displayed on the corresponding layer according to the OpenGL drawing coordinates and a refresh display is triggered.
6. The method for displaying aerial information by overlaying OpenGL layers based on the QT platform according to claim 1, characterized in that, It also includes the following: the first layer receives mouse operations that penetrate from the second and third layers. The mouse operations are used for cross-layer operations on the interferable air situation elements within the first layer. The mouse operations of the second and third layers are disabled or set to mouse event penetration, so that the mouse operations are passed to the first layer. The first layer performs hit detection of the interferable air situation elements according to the mouse operations, and sends the interactive feedback signal to the external main program through the Qt signal and the slot mechanism to update the state of the interferable air situation elements and trigger the layer refresh display.
7. A device for displaying aerial situation information by overlaying OpenGL layers based on the QT platform, characterized in that, The method for displaying air situation information by overlaying OpenGL layers based on the QT platform, as described in any one of claims 1 to 6, includes: The P-display module is used to build a circular P-display control based on the QWidget class under the QT platform to display air situation information. The circular P-display control includes at least three control subclasses, each used to carry the display of different layers. The map and controllable element display module is used to create a first layer based on a first control subclass. The first layer includes an air situation display area and embeds an electronic map in the air situation display area to display the air situation area and controllable air situation elements. The controllable air situation elements include at least one or more of target symbols, flight tracks and target label information. At the same time, scale symbols are displayed on the edge of the air situation display area to assist in positioning and distance measurement. The associated information display module is used to create a second layer above the first layer based on the second control subclass. The second layer is a transparent OpenGL drawing layer that displays the associated information of the air situation elements that can be intervened. The associated information of the air situation elements that can be intervened includes at least one of target trail and predicted trajectory. The dot display module is used to create a third layer above the second layer based on the third control subclass. The third layer is the transparent OpenGL drawing layer, which displays non-interventional air situation elements. The non-interventional air situation elements include at least radar primary dot marks and / or secondary dot marks. The result output module is used to receive air situation data sent by the external main program, and update the display on the corresponding layer according to the air situation data type. The geographic coordinates corresponding to the air situation data are converted into screen coordinates through the electronic map engine, and the screen coordinates are mapped to the OpenGL drawing coordinates of the second layer and / or the third layer, so that the different layers are aligned and displayed under the same display reference.
8. The air situation information display system based on the QT platform with overlaid OpenGL layers according to claim 7, characterized in that, In the map and controllable element display module, the first layer is a display layer derived from the QWidget class, used to carry a circular air situation display area, and the electronic map is embedded in the circular air situation display area.
9. The air situation information display system based on the QT platform with overlaid OpenGL layers according to claim 7, characterized in that, In the associated information display module and the point display module, the transparent OpenGL drawing layer is a display layer based on the QOpenGLWidget class, which is a derived class of the QWidget class and provides an OpenGL drawing interface. The transparent OpenGL drawing layer enables a transparent background and disables the occlusion of the lower layer content, making the electronic map of the first layer and the preset manipulable air situation elements visible below the transparent OpenGL drawing layer. This is used to overlay the associated information of the manipulable air situation elements and the non-manipulable air situation elements in the air situation display area, thereby completing the display of multi-layer data and the transmission of interactive events.
10. The air situation information display system based on the QT platform and overlaying OpenGL layers according to claim 7 further includes an interaction module, used for the first layer to receive mouse operations penetrating from the second layer and the third layer, the mouse operations being used for cross-layer operations on the interferable air situation elements within the first layer, the mouse operations of the second layer and the third layer being disabled or set to mouse event penetration, so that the mouse operations are transmitted to the first layer, the first layer performing hit detection of the interferable air situation elements according to the mouse operations, and sending the interaction feedback signal to the external main program through the Qt signal and the slot mechanism to update the state of the interferable air situation elements and trigger layer refresh display.