A method for dynamically constructing an interaction control point of a graphical control

By defining and encapsulating the configuration information of the interactive control points of graphical controls, and using a plug-in design to create interactive control point objects, the problem of tight coupling of the interactive control logic of graphical controls is solved, thereby improving the design efficiency and ease of use of the graphical display interface of the aircraft cockpit.

CN117539485BActive Publication Date: 2026-11-24CHINESE AERONAUTICAL RADIO ELECTRONICS RES INST
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311490570.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-09
Publication Date
2026-11-24
Estimated Expiration
2043-11-09

AI Technical Summary

Technical Problem

In the current development of graphical display interfaces for aircraft cockpits, the interactive control logic of graphical controls is tightly coupled with the shape of the controls, making it difficult to expand. Furthermore, the interactive control logic requires a large amount of manual coding, which places high demands on users' technical skills and makes debugging and maintenance difficult.

Method used

By defining the configuration information of the interactive control points of graphical controls, encapsulating it into a plugin, and using the plugin-based design to create interactive control point objects, property binding and synchronization are achieved, reducing the difficulty of user expansion.

Benefits of technology

It improves the efficiency and ease of use of graphical interface design, reduces development workload, and enables rapid design and expansion of graphical controls.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117539485B_ABST
    Figure CN117539485B_ABST
Patent Text Reader

Abstract

This invention relates to the field of design and development of graphical user interfaces for aircraft cockpits, and specifically to a method for dynamically constructing interactive control points for graphical controls. The method includes: Step 1: Defining the configuration information for the interactive control points of each graphical control, including the interactive control point type, control point attributes, and attribute binding relationships of the graphical controls; Step 2: Encapsulating all interactive control points involved in all graphical controls into plugins; Step 3: When a graphical control object is selected, creating an interactive control point object based on the interactive control point type of the selected graphical control object using the corresponding interactive control point plugin; Step 4: Binding the attributes of the interactive control point object to the attributes of the graphical control object according to the attribute binding relationships between the control point attributes and the graphical controls to obtain attribute binding information; Step 5: Controlling the selected graphical control object using the attributes of the interactive control point object based on the attribute binding information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of design and development of graphical display interfaces for aircraft cockpits, and particularly to the design of interactive control of graphical controls, providing a method for dynamically constructing interactive control points of graphical controls. Background Technology

[0002] In the field of aircraft cockpit graphical display interface development, interface design and development can be carried out by manual coding or visual graphical interface-assisted development tools. With the gradual popularization of graphical interface design tools, the current common development method is the WYSIWYG graphical interface design. Through visual interface-assisted development tools, pre-customized graphical controls are combined and laid out by dragging and dropping.

[0003] In visual interface development tools, the interactive control logic of graphical controls presents two problems. First, the interactive control of graphical controls is usually based on a rectangular area. The display effect of the graphical control can only be changed by controlling the size of the rectangular area, not by its specific shape. The display effect can only be changed by modifying the graphical control's property parameters. Second, the specific control logic of the control points of the graphical control's interactive control is tightly coupled to the graphical control itself. The interactive control logic is written inside the graphical control in code. When writing a predefined graphical control, the specific interactive control logic must also be written into it, requiring a lot of manual coding work. When users extend custom display controls, they also need to repeatedly write the interactive control logic code, which also requires a high level of technical expertise from the user. Users need to master a lot of technical details, and debugging and maintenance are difficult.

[0004] Based on the above realities, there is currently a lack of a method for dynamically constructing control points for graphical control interaction that is universal, easy to use, and scalable, thereby improving the ease of use of interactive control of interface display controls, reducing the difficulty for users to expand graphical controls, and enhancing the efficiency of graphical control design and development. Summary of the Invention

[0005] Purpose of the invention: To provide a method for dynamically constructing interactive control points of graphical controls, so as to improve the work efficiency in the design and development of graphical interfaces.

[0006] Technical solution:

[0007] A method for dynamically constructing interactive control points of a graphical control includes:

[0008] Step 1: Define the configuration information for the interactive control points of each graphical control. The configuration information includes the interactive control point type, control point attributes, and the attribute binding relationship of the graphical control.

[0009] Step 2: Encapsulate all interactive control points involved in the graphical controls into plugins;

[0010] Step 3: When a graphical control object is selected, create an interactive control point object using the corresponding interactive control point plugin based on the interactive control point type of the selected graphical control object;

[0011] Step 4: Based on the binding relationship between the control point attributes and the graphical control attributes, bind the attributes of the interactive control point object to the attributes of the graphical control object to obtain the attribute binding information;

[0012] Step 5: Based on the attribute binding information, use the properties of the interactive control point object to control the selected graphic control object.

[0013] Further, step 2 specifically includes:

[0014] Step 21: Identify the interactive control points involved in all graphical control objects;

[0015] Step 22: Determine the attributes and functions of each interactive control point;

[0016] Step 23: Encapsulate the attributes and functions of each interactive control point into a class;

[0017] Step 24: Encapsulate the interactive control point class into a plugin.

[0018] Furthermore, step 3 specifically includes:

[0019] Step 31: Create a factory for each control point plugin;

[0020] Step 32: Select the control point creation factory corresponding to the interactive control point type of the selected graphical control object, and use the control point creation factory to create interactive control point objects.

[0021] Furthermore, after step 32, the following steps are also included:

[0022] Step 33: Obtain the position and size of the graphical control object, create an interactive control point container based on the position and size, and load the created interactive control point object into the interactive control point container.

[0023] Further, step 4 specifically involves:

[0024] The interactive control point container binds the properties of the interactive control point object to the properties of the graphical control object.

[0025] Further, step 5 specifically includes:

[0026] Control points register attribute binding information to the control object container;

[0027] The control object container sets the attribute values ​​of the control points based on the attribute values ​​and attribute binding information of the graphical control object;

[0028] The control object container subscribes to changes in the properties of graphical control objects;

[0029] When the properties of the control points change, the control object container sets the corresponding property values ​​for the graphical control objects.

[0030] Furthermore, step 5 also includes:

[0031] When the properties of a graphical control object change, the control object container notifies the corresponding control point to update the properties.

[0032] Furthermore, in step 23, the classes include position points, rotation points, single points, and regions.

[0033] Beneficial effects:

[0034] This invention establishes a graphical control interaction control point library and a dynamic generation framework for graphical control interaction control points, which can meet the rapid design needs of graphical control interaction control in graphical interface design and improve the efficiency of graphical control design.

[0035] This invention has been successfully applied to the development of graphical interface design tools. The results show that using this method for graphical control interaction design significantly reduces software development workload and improves work efficiency. The graphical control point library developed in this invention can be further developed and expanded for application in other graphical interface design tools. Attached Figure Description

[0036] Figure 1 Interactive control point design flowchart;

[0037] Figure 2 Interactive control point plugin startup flowchart;

[0038] Figure 3 Interactive control point plugin framework class diagram;

[0039] Figure 4 Workflow diagram of graphical control interaction control point object;

[0040] Figure 5 Interactive control point object container module relationship diagram. Detailed Implementation

[0041] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, this application will be further described in detail below with reference to the accompanying drawings and embodiments.

[0042] In visual interface development tools, the graphics canvas serves as a container for graphical control objects, used to display and edit these objects. The graphics canvas primarily allows for the editing of the properties and display effects of graphical control objects by setting interactive control points.

[0043] In this method, the design process for the interactive control points of the graphical control is as follows: Figure 1 As shown. During the startup process of the interface development tool, the following two parts are performed:

[0044] 1) Loading and reading interactive control information for graphical controls. Each graphical control contains one or more interactive control point information, configured using a configuration file. The configuration file, based on XML format, describes the control point information contained in the control, such as control point type, properties of bound controls, etc., making it easy to maintain and extend.

[0045] 2) Plugin loading of graphical control interaction points. Graphical control interaction points are based on a plugin design, meaning each type of interaction point is encapsulated as a dynamic library. For example... Figure 2 As shown, when the interface development tool starts, the interaction control point plugin manager scans the plugin directory of interaction control points, loads the plugins, and instantiates the interaction control point creation factory, which is specifically responsible for creating interaction control point objects of this type.

[0046] The graphical control interaction control point plug-in framework is implemented using the low-level interface of the Qt plug-in system. The control point plug-in is loaded by the framework and instantiated as a control point creation factory, which is responsible for creating interactive control point objects of this type.

[0047] The encapsulation related to the interactive control point class of graphical controls includes the following:

[0048] (1) Create an interactive control point operation base class and define the basic methods and operations of interactive control points.

[0049] (2) Encapsulate interactive control point plugin classes, use plugin technology to encapsulate control points, encapsulate each control point as an independent plugin, and realize the creation factory of interactive control points.

[0050] (3) Implement the interactive control point framework class and load and initialize the interactive control point creation factory.

[0051] (4) Establish a general interactive control point class, such as position point, rotation point, single point, area and other interactive control point plugins, which are loaded by the control point framework class in step (3).

[0052] (5) Add control point information descriptions to the graphical control, including the control point type of the graphical control and the names or values ​​of the graphical control properties bound to each property under the control point.

[0053] (6) Construct a dynamic control point creation class and a control point attribute binding class, which are used to dynamically create control points based on the control point attribute information of the selected graphic control object, and associate and bind the control point attributes with the selected graphic control object to realize the synchronization of interactive control.

[0054] (7) Encapsulate a control point container class to contain the interactive control points dynamically created in step (6).

[0055] Figure 3 Here is an implementation example of an interactive control point plugin, where:

[0056] The gdeAbstractInteractor class encapsulates some abstract and general interfaces, such as methods for binding control objects, which can set properties of control objects and listen for changes in control object properties.

[0057] XXXInteractor is a class for interactive control points of a graphical control;

[0058] InteractorPlugin is a plugin class for interactive control points of graphical controls, which encapsulates the XXXInteractor interactive control point class. Both inherit from the QObject class and can use Qt's signal and slot mechanism.

[0059] gdeInteractorFactoryPlugin is a factory class for creating interactive control points. It calls the InteractorPlugin interactive control point plugin class to dynamically generate interactive control points.

[0060] InteractorPluginManager is an interactive control point plugin manager that loads interactive control point plugins and instantiates interactive control point creation factories.

[0061] The graphical control interactive control object constructor is mainly used to create control objects from interactive control points. That is, it calls the control point creation factory of the corresponding control point type one by one according to the configuration information of the graphical control control point to create control point objects of that type and combine them into a control object.

[0062] The graphical interactive control point object container is completely consistent with the selected / bound graphical control object in terms of position and size. It establishes a coordinate system consistent with the graphical control object. The interactive control points of the graphical control object are added to the graphical interactive control point object container as child nodes, with the control object container as the parent object.

[0063] like Figure 5 As shown, the graphical interactive control point object container provides attribute binding for control points, centralized subscription to control object attribute changes, and notifications, connecting graphical control interactive control point objects and graphical control objects.

[0064] After selecting a graphic control object on the graphic canvas, the graphic canvas will automatically call the graphic control interactive control object constructor to create the interactive control object, such as... Figure 4 As shown, its workflow is as follows:

[0065] (1) The graphical control object constructor reads the position and size of the selected graphical control object and creates a graphical interactive control point object container whose position and size are exactly the same as the selected graphical control object.

[0066] (2) The newly created graphical interactive control point object container will actively subscribe to the attribute change events of the graphical control object;

[0067] (3) Obtain the interactive control point data of the class to which the selected graphic control object belongs, and traverse the list of graphic interactive control points;

[0068] (4) During traversal, read the data information of each graphical interactive control point in sequence, and obtain the graphical interactive control point creation factory instance from the graphical interactive control point plugin manager according to the type of graphical interactive control point.

[0069] (5) The graphical interactive control object constructor calls the creation factory to create graphical interactive control point objects of the corresponding type and adds them to the graphical interactive control point object container;

[0070] (6) The graphical interactive control point object container serves as the parent node of the newly created graphical interactive control point object, providing it with a unified coordinate system; at the same time, the graphical interactive control point object container provides graphical control property binding and subscription functions, actively binding the graphical interactive control points to the graphical interactive control point object based on the control point information data;

[0071] (7) Repeat steps (4) to (6) until all graphical interactive control points are created and added to the graphical interactive control point object container to form a graphical control interactive control object;

[0072] (8) Add the graphical interactive control object to the graphical canvas and display it;

[0073] (9) When the interactive control point object moves, a notification of changes in the interactive control point object's properties is generated;

[0074] (10) After receiving the notification of the change of the properties of the interactive control point object, the interactive control point object container indexes the properties of the graphical control object according to the registered property binding information and generates the notification of the change of the properties of the graphical control object.

[0075] (11) After receiving a notification of a change in the properties of the graphical control object, the graphical control object updates its display effect;

[0076] (12) When the properties of a graphical control object change, generate a notification of the change in the properties of the graphical control object;

[0077] (13) After receiving the notification of the change of the properties of the graphical control object, the interactive control point object container indexes the properties of the interactive control point object according to the registered property binding information and generates the notification of the change of the properties of the interactive control point object.

[0078] (14) After receiving a notification of changes in the properties of the interactive control point object, the interactive control point object updates the properties and display effects of the interactive control point object.

Claims

1. A method for dynamically constructing interactive control points of a graphical control, characterized in that, include: Step 1: Define the configuration information for the interactive control points of each graphical control. The configuration information includes the interactive control point type, control point attributes, and the attribute binding relationship of the graphical control. Step 2: Encapsulate all interactive control points involved in the graphical controls into plugins; Step 3: When a graphical control object is selected, create an interactive control point object using the corresponding interactive control point plugin based on the interactive control point type of the selected graphical control object; Step 4: Based on the binding relationship between the control point attributes and the graphical control attributes, bind the attributes of the interactive control point object to the attributes of the graphical control object to obtain the attribute binding information; Step 5: Based on the attribute binding information, use the properties of the interactive control point object to control the selected graphic control object.

2. The method for dynamically constructing interactive control points of a graphical control according to claim 1, characterized in that, Step 2 specifically includes: Step 21: Identify the interactive control points involved in all graphical control objects; Step 22: Determine the attributes and functions of each interactive control point; Step 23: Encapsulate the attributes and functions of each interactive control point into a class; Step 24: Encapsulate the interactive control point class into a plugin.

3. The method for dynamically constructing interactive control points of a graphical control according to claim 1, characterized in that, Step 3 specifically includes: Step 31: Create a factory for each control point plugin; Step 32: Select the control point creation factory corresponding to the interactive control point type of the selected graphical control object, and use the control point creation factory to create interactive control point objects.

4. The method for dynamically constructing interactive control points of a graphical control according to claim 3, characterized in that, After step 32, the following also includes: Step 33: Obtain the position and size of the graphical control object, create an interactive control point container based on the position and size, and load the created interactive control point object into the interactive control point container.

5. The method for dynamically constructing interactive control points of a graphical control according to claim 4, characterized in that, Step 4, specifically: The interactive control point container binds the properties of the interactive control point object to the properties of the graphical control object.

6. The method for dynamically constructing interactive control points of a graphical control according to claim 5, characterized in that, Step 5 specifically includes: The control points register attribute binding information into the control object container. The position and size of the control object container are completely consistent with the selected / bound graphical control object. By establishing a coordinate system consistent with the graphical control object, the interactive control points of the graphical control object are added as child nodes to the graphical interactive control point object container with the control object container as the parent object. The control object container sets the attribute values ​​of the control points based on the attribute values ​​and attribute binding information of the graphical control object; The control object container subscribes to changes in the properties of graphical control objects; When the properties of the control points change, the control object container sets the corresponding property values ​​for the graphical control objects.

7. The method for dynamically constructing interactive control points of a graphical control according to claim 6, characterized in that, Step 5 also includes: When the properties of a graphical control object change, the control object container notifies the corresponding control point to update the properties.

8. The method for dynamically constructing interactive control points of a graphical control according to claim 2, characterized in that, In step 23, the classes include position point, rotation point, single point, and region.

Citation Information

Patent Citations

  • Using method of custom control based on Qt

    CN102981861A

  • Script-driven hierarchical graph construction method

    CN106251385A