CN111414215A - Human-computer interface generation method and device and storage medium - Google Patents

Human-computer interface generation method and device and storage medium Download PDF

Info

Publication number
CN111414215A
CN111414215A CN201910013263.9A CN201910013263A CN111414215A CN 111414215 A CN111414215 A CN 111414215A CN 201910013263 A CN201910013263 A CN 201910013263A CN 111414215 A CN111414215 A CN 111414215A
Authority
CN
China
Prior art keywords
human
target
interface
graphic
basic
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
Application number
CN201910013263.9A
Other languages
Chinese (zh)
Inventor
刘加乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BYD Co Ltd
Original Assignee
BYD Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201910013263.9A priority Critical patent/CN111414215A/en
Priority to PCT/CN2020/070516 priority patent/WO2020143584A1/en
Publication of CN111414215A publication Critical patent/CN111414215A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Abstract

The invention provides a human-computer interface generation method, a human-computer interface generation device and a storage medium, wherein the human-computer interface generation method comprises the steps of determining a graph required by a human-computer interface to be generated; determining a graph configuration module corresponding to the graph and using the graph configuration module as a target graph configuration module; reading a target graphic control provided by a target graphic configuration module and a target graphic interface file corresponding to the target graphic control; loading a target graphic control in the initial human-computer interface, and generating a human-computer interface to be generated according to the loaded human-computer interface; and when the target graphic control is triggered by a user, the target business function is realized by calling the application programming interface. The invention can improve the design generation method of the human-computer interface, so that the human-computer interface is convenient to maintain and perfect in modification, and the flexibility and the expandability are effectively improved.

Description

Human-computer interface generation method and device and storage medium
Technical Field
The invention relates to the technical field of rail transit, in particular to a human-computer interface generation method, a human-computer interface generation device and a storage medium.
Background
An Integrated Supervisory Control System (ISCS) in rail transit is a powerful, open, modular, and extensible distributed Control System, which is an Integrated System integrating and interconnecting a plurality of subsystems. The system method is adopted to connect all dispersed automatic systems into an organic whole, so that information intercommunication and resource sharing among all monitoring devices of the rail transit are realized, the coordination and coordination capacity of all the monitoring devices is improved, efficient linkage among the systems is realized, and the integral automation level of the whole rail transit line is improved.
The comprehensive monitoring system collects and processes the state and performance data of a monitored object in real time, and displays the data in the form of graphics, images, tables and texts through a Human Machine Interface (HMI) for a dispatcher to control and monitor.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, the invention aims to provide a human-computer interface generation method, a human-computer interface generation device and a storage medium, which can improve the human-computer interface design generation method, enable the human-computer interface to be convenient to maintain and perfect to modify, and effectively improve the flexibility and the expandability.
In order to achieve the above object, an embodiment of the invention provides a method for generating a human-machine interface, including: determining a graph required by a human-computer interface to be generated; determining a graph configuration module corresponding to the graph and using the graph configuration module as a target graph configuration module; reading a target graphic control provided by the target graphic configuration module and a target graphic interface file corresponding to the target graphic control; loading the target graphic control in an initial human-computer interface, and generating the human-computer interface to be generated according to the loaded human-computer interface; and when the target graphic control is triggered by a user, the target business function is realized by calling the application programming interface.
The human-computer interface generating method provided by the embodiment of the first aspect of the invention is that a figure required by a human-computer interface to be generated is determined, a figure configuration module corresponding to the figure is determined and serves as a target figure configuration module, a target figure control provided by the target figure configuration module and a target figure interface file corresponding to the target figure control are read, the target figure control is loaded in an initial human-computer interface, and the human-computer interface to be generated is generated according to the loaded human-computer interface, wherein an application programming interface for realizing a target service function corresponding to the target figure control is recorded in the target figure interface file, when a user triggers the target figure control, the target service function is realized by calling the application programming interface, and as the figure configuration module is adopted to provide the figure interface file required by the human-computer interface to operate, the human-computer interface only loads the figure control provided by the figure configuration module, the design generation method of the human-computer interface is improved, so that the human-computer interface is convenient to maintain and perfect in modification, and the flexibility and the expandability are effectively improved.
In order to achieve the above object, an embodiment of a second aspect of the present invention provides a human-machine interface generating apparatus, including: the first determining module is used for determining a graph required by a human-computer interface to be generated; the second determining module is used for determining a graph configuration module corresponding to the graph and taking the graph configuration module as a target graph configuration module; the reading module is used for reading the target graphic control provided by the target graphic configuration module and a target graphic interface file corresponding to the target graphic control; the loading module is used for loading the target graphic control in an initial human-computer interface and generating the human-computer interface to be generated according to the loaded human-computer interface; and when the target graphic control is triggered by a user, the target business function is realized by calling the application programming interface.
The human-computer interface generating device provided by the embodiment of the second aspect of the invention determines the graphics required by the human-computer interface to be generated, determines the graphics configuration module corresponding to the graphics and serves as the target graphics configuration module, reads the target graphics control provided by the target graphics configuration module and the target graphics interface file corresponding to the target graphics control, loads the target graphics control in the initial human-computer interface, and generates the human-computer interface to be generated according to the loaded human-computer interface, wherein the target graphics interface file records the application programming interface for realizing the target business function corresponding to the target graphics control, when the user triggers the target graphics control, the user realizes the target business function by calling the application programming interface, and because the graphics configuration module is adopted to provide the graphics interface file required by the operation of the human-computer interface, the human-computer interface only loads the graphics control provided by the graphics configuration module, the design generation method of the human-computer interface is improved, so that the human-computer interface is convenient to maintain and perfect in modification, and the flexibility and the expandability are effectively improved.
To achieve the above object, a computer-readable storage medium according to a third aspect of the present invention is provided, wherein instructions of the storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to execute a human-machine interface generating method, the method including: the embodiment of the first aspect of the invention provides a human-computer interface generation method.
The computer-readable storage medium according to the third aspect of the present invention determines a graphic configuration module corresponding to a graphic required by a human-computer interface to be generated, and uses the graphic configuration module as a target graphic configuration module, reads a target graphic control provided by the target graphic configuration module and a target graphic interface file corresponding to the target graphic control, loads the target graphic control in an initial human-computer interface, and generates the human-computer interface to be generated according to the loaded human-computer interface, wherein an application programming interface for implementing a target service function corresponding to the target graphic control is recorded in the target graphic interface file, and when a user triggers the target graphic control, the target service function is implemented by calling the application programming interface, and since the graphic configuration module is used to provide the graphic interface file required by the human-computer interface to operate, the human-computer interface only loads the graphic control provided by the graphic configuration module, the design generation method of the human-computer interface is improved, so that the human-computer interface is convenient to maintain and perfect in modification, and the flexibility and the expandability are effectively improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a human-machine interface generating method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for generating a human-machine interface according to another embodiment of the present invention;
FIG. 3 is a diagram of a human-machine interface architecture in an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating the relationship between a human-machine interface and an implementation service according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating data flow in an embodiment of the present invention;
FIG. 6 is a schematic diagram of a human-machine interface layout according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a human-machine interface generating apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a human-machine interface generating apparatus according to another embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention. On the contrary, the embodiments of the invention include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1 is a flowchart illustrating a human-machine interface generating method according to an embodiment of the present invention.
The present embodiment is exemplified in a case where the human-machine interface generation method is configured as a human-machine interface generation apparatus.
The human-machine interface generation method in this embodiment may be configured in a human-machine interface generation device, and the human-machine interface generation device may be set in a server, or may also be set in an electronic device, which is not limited in this embodiment of the present application.
The present embodiment takes the case where the human-machine interface generation method is configured in an electronic device.
It should be noted that the execution main body in the embodiment of the present application may be, for example, a Central Processing Unit (CPU) in a server or an electronic device in terms of hardware, and may be, for example, a related background service in the server or the electronic device in terms of software, which is not limited to this.
Referring to fig. 1, the method includes:
s101: and determining the graph required by the human-computer interface to be generated.
S102: and determining a graph configuration module corresponding to the graph and using the graph configuration module as a target graph configuration module.
In the specific execution process, the embodiment of the invention can analyze the application requirement of the human-computer interface to be generated to obtain the graph required by the human-computer interface to be generated, and determine the graph configuration module corresponding to the graph and use the graph configuration module as the target graph configuration module.
The application requirement may be a requirement described in a requirement document of the human-computer interface to be generated, for example, a requirement of a text class, a requirement of a picture class, an interface effect diagram, and the like, which is not limited thereto.
The application requirement of the human-computer interface to be generated may be analyzed in advance to obtain a graph required for generating the human-computer interface to be generated, where the graph may specifically be some sub-graphs obtained by decomposing the interface effect schematic diagram, or may also be some sub-graphs in other floor interfaces that can jump via the human-computer interface to be generated, which is not limited herein.
In the specific execution process of the embodiment of the present invention, the graphic configuration module is generated in advance, and a plurality of graphic configuration modules may be generated in advance, wherein the graphic configuration module corresponding to the graphic may be referred to as a target graphic configuration module.
In the embodiment of the present invention, one graphic configuration module corresponds to one basic graphic control, so that a developer of a human-computer interface can intuitively determine the basic graphic control corresponding to a graphic, and the graphic configuration module to which the corresponding basic graphic control belongs is taken as a target graphic configuration module, which is not limited in this respect.
Optionally, in some embodiments, referring to fig. 2, before determining the graphics required for generating the human-machine interface, the method further includes:
s201: and analyzing the service functions provided by the rail transit comprehensive monitoring system in advance to obtain a plurality of basic graphic control identifications required for realizing the service functions.
In the embodiment of the invention, a plurality of basic graphic controls can be packaged in advance, and the attributes of each basic graphic control are associated with the attributes of the model object provided by the preset script to generate the graphic configuration module, namely, the service function provided by the rail transit integrated monitoring system is analyzed in advance to obtain a plurality of basic graphic control identifications required for realizing the service function, so that the graphic configuration module packaged based on each basic graphic control identification can completely cover the service function provided by the rail transit integrated monitoring system, and the subsequent development and application are facilitated.
In the embodiment of the invention, a plurality of basic graphic controls are packaged in advance, the attributes of each basic graphic control are associated with the attributes of the model object provided by the preset script to generate the graphic configuration module, the human-computer interface is only responsible for loading the graphic configuration module to provide the basic graphic controls, basic graphics which can comprehensively cover the service functions provided by the rail transit comprehensive monitoring system are arranged in the graphic configuration module, and the basic graphics can be edited and modified, so that the flexibility and the expandability of the human-computer interface are ensured.
S202: and respectively determining a corresponding basic graphic control identification for a plurality of basic controls provided in a preset development framework.
S203: and packaging each basic control and a corresponding basic graphic control identification by adopting a preset computer programming language, wherein the basic graphic control identification is used for uniquely marking the corresponding basic control.
S204: and combining each packaged basic control with the corresponding basic graphic control identification as a basic graphic control, wherein the target graphic control comprises one or more of the basic graphic controls.
S205: and associating each basic graphic control with the attribute of the model object provided by the preset script by adopting a target mechanism in the preset development framework.
The preset development framework is a Qt development framework (an object-oriented framework, which is a cross-platform graphical user interface application development framework developed by Qt corporation), the target mechanism is a signal slot mechanism, the preset script is a QM L script (a descriptive script language), and the preset computer programming language is a C + + programming language (a computer programming language).
In the embodiment of the present invention, in order to achieve a 3D (3 Dimensions) effect of a human-computer interface and an animation effect during running, a Qt3D module (a 3 Dimensions module in a Qt development framework) in the Qt development framework and a Qtquick (a high-level user interface technology) may be combined, and a C + + programming language (a computer programming language) is used for encapsulation, so as to generate a plurality of basic graphic controls that comprehensively cover service functions that can be provided by a rail transit integrated monitoring system, where the basic graphic controls have a 3D effect, that is, basic graphic controls in a graphic configuration module.
In the embodiment of the invention, the basic graphic control packaged in the graphic configuration module is associated with the attribute of the 3D model object provided in the QM L script by using a signal slot mechanism of a Qt development framework, so that the intercommunication and response of the C + + object and the 3D model object in the script are ensured.
S206: and generating a graphic interface file corresponding to each basic graphic control according to the result obtained by association, wherein the target graphic interface file is one of the plurality of graphic interface files.
S207: and writing an application programming interface for realizing the business function of the basic graphic control into a graphic interface file.
S208: and generating a graphic configuration module according to each basic graphic control and the corresponding graphic interface file, wherein the target graphic configuration module is one of the plurality of graphic configuration modules.
In the embodiment of the invention, a human-computer interface is designed based on a Qt3D module and a Qt quick in a Qt development frame, so that the 3D effect of the human-computer interface can be realized, the current states of all subsystems can be more intuitively and stereoscopically displayed, a 3D model object is realized through a QM L script, a QM L script can create a 3D model object of a basic graphic control in the script, various graphic special effects and state machines and the like are supported, meanwhile, the interaction with a C + + programming language in the Qt development frame can be conveniently carried out, the use is very convenient, the platform is cross-platform, various operating systems are supported, the later maintenance is convenient, the graphic effect is basically realized in the QM L script, relevant attributes such as color, shape and the like of the basic graphic control are modified, and only the modification is carried out in the corresponding QM L script.
In the embodiment of the invention, an object-oriented method can be adopted for design, so that the method has the advantages of good readability, maintainability and expandability, high aggregation and low coupling among modules, clear hierarchy and convenience in realization and reuse.
S103: and reading the target graphic control provided by the target graphic configuration module and a target graphic interface file corresponding to the target graphic control.
The target graphic interface file is generated by associating the target graphic control with the attributes of the model object provided by the QM L script by using a signal slot mechanism in the Qt development framework.
S104: and loading the target graphic control in the initial human-computer interface, and generating the human-computer interface to be generated according to the loaded human-computer interface.
And when the target graphic control is triggered by a user, the target business function is realized by calling the application programming interface.
The target business function is a subfunction of the business function provided by the rail transit comprehensive monitoring system, the target business function is a function which can be realized based on the target graphic control, and an application programming interface corresponding to the target business function can be written into a target graphic interface file in advance, so that the target graphic control is loaded in an initial human-computer interface, and after a human-computer interface to be generated is generated according to the loaded human-computer interface, the target business function can be realized directly by calling the application programming interface.
The human-computer interface in the embodiment of the invention is developed based on a 3D module in a Qt development framework, a QtCanvas3D (a 3 dimension Canvas in the Qt development framework) and an interface library and a C + + programming language of other Qts (cross-platform graphical user interface application program development frameworks developed by Qt companies), and a development environment adopts a 3D Max + visual studio2015+ Qt plug-in (a set of software development tools based on components).
The 3D Studio Max, referred to as3D Max or 3ds MAX for short, is three-dimensional animation rendering and making software developed by Discreet corporation based on a personal computer, the 3D Max is used for providing a 3D model required in a Qt development framework, and the Visual Studio2015+ Qt plug-in provides a compiling environment of the Qt development framework, wherein the Visual Studio2015 is a set of software development tools based on components, can be used for constructing application programs with powerful functions and outstanding performance, and is easy for engineering management and debugging.
Based on the development environment, the human-computer interface can be conveniently developed and maintained.
The embodiment of the invention adopts an MVC (Model View Controller), which is an abbreviation of a Model (Model) -View (View) -Controller and is a software design Model, codes are organized by a method of separating business logic, data and interface display, the business logic is gathered into one component, and the business logic does not need to be rewritten while the interface is improved and personalized and the user interaction is realized.
The embodiment of the invention is developed based on a Qt development framework, so that the method has a cross-platform characteristic and can run on windows, linux and other operating systems.
In the embodiment of the invention, an electric power monitoring system, an environment and equipment monitoring system, an automatic fire alarm system, a signal system, an automatic ticket selling and checking system, a passenger information system, a closed circuit television monitoring system, a broadcasting system, a clock system, an access control system, a platform door system and the like which can be monitored by a rail transit comprehensive monitoring system are integrated and interconnected, a 3D module in a Qt development frame can more intuitively display related data models, trends and related information, and the 3D module is shown in figure 3, which is a human-computer interface architecture diagram in the embodiment of the invention.
The data of the human-computer interface and the information related to the data in the embodiment of the invention come from a real-time library, refer to fig. 4, and fig. 4 is a schematic diagram of the relationship between the human-computer interface and the implementation service in the embodiment of the invention, and the human-computer interface can interact with the real-time library, the history library, the event service, the alarm service, the authority service and the report service of the implementation service to acquire the data or call the interface thereof. When the human-computer interface is operated, the main data flow is data interaction with a real-time service framework.
Referring to fig. 5, fig. 5 is a schematic diagram of data flow in the embodiment of the present invention, where data flow 1 represents a real-time data flow, and a client corresponding to a human-computer interface may access real-time library data through a human-computer interface data service, or may directly access the real-time library data; the data stream 2 represents a control command data stream, and a client corresponding to the human-computer interface sends a command to the implementation service to realize the control of the terminal equipment; the data stream 3 represents an alarm data stream, and a client corresponding to the human-computer interface sends alarm information to an alarm service; the data stream 4 represents an event data stream, and a client corresponding to the human-computer interface sends event information to an event service; data stream 5 represents the permission data stream, the client corresponding to the human-computer interface authenticates the user permission to the permission service, and the permission service provides the relevant login permission information.
The basic graphic control in the embodiment of the invention is mainly 3D graphics, the basic graphic control is realized based on Qt3D and Qt quick modules, Qt3D has the advantages of a cross-platform Qt development framework, and can also customize a specific implementation mode of an open graphics library (Opengraphics L ibrary, OpenG L) and customize an OpenG L coloring language (OpenG L Shading L angle, G L S L), so that the adaptive rendering effect can be adjusted according to a deployment machine of the human-computer interfaces with different performances, Qt3D also provides a fully configurable renderer, developers can quickly realize rendering through the renderer, and a near real-time simulation general framework is also provided.
Qt3D is comprised of a core module and additional modules that provide specific aspects of functionality including, for example, a physical model module, an audio module, a collision module, an artificial intelligence module, and a path search module.
In the embodiment of the invention, a Qt3D module is combined with a Qt canvas3D to realize the 3D effect of a human-computer interface, the Qtccanvas 3D is a structure similar to a HyperText Markup language (HTM L), a 2D part adopts a QM L script to carry a control, and a 3D part adopts Qt canvas3D to draw.
The Qt canvas3D can be silently integrated with QM L script and other components to be displayed in the same window, and the Qtcanvas3D is used as a basic 3D drawing application programming interface library, so that the application is more flexible.
In the above description, the 3D graphic effect of the human-computer interface is realized by using the Qt3D module in combination with the Qt canvas3D, and with reference to fig. 6, fig. 6 is a schematic diagram of the human-computer interface layout according to the embodiment of the present invention.
In the embodiment of the invention, the interface can be divided into a general interface and a functional interface, the functional interface comprises pictures of each subsystem, the general interface mainly serves all logged-in users and provides common operation and basic information of a client human-computer interface, such as interfaces of basic operation of logging, logging-out, alarming and the like, the functional interface mainly faces a specific user with the authority of the sub-functional system and monitors the state of the sub-system through a special interface, Qt3D and Qt Canvas3D are adopted to be combined with a basic graphic library of a Qt development framework to design each sub-picture so as to present a 3D display effect, so that the whole human-computer interface is more visual and vivid, Qt3D is realized based on a QM L script, a part of the 3D display effect can be realized by importing a model established by 3DMax, and then the Qt development framework loads QM L and obj (3D model file format) files of the model in a form of loading resources, or in the embodiment of the invention, pictures and sound can also be loaded to background programs corresponding to the human-computer interface in a form of source files.
In the embodiment, by determining the graph required by the human-computer interface to be generated, determining the graph configuration module corresponding to the graph and using the graph configuration module as a target graph configuration module, reading a target graph control provided by the target graph configuration module and a target graph interface file corresponding to the target graph control, loading the target graph control in an initial human-computer interface, and generating the human-computer interface to be generated according to the loaded human-computer interface, wherein an application programming interface for realizing the target business function corresponding to the target graph control is recorded in the target graph interface file, when a user triggers the target graph control, the target business function is realized by calling the application programming interface, and as the graph configuration module is adopted to provide the graph interface file required by the human-computer interface to operate, the human-computer interface only loads the graph control provided by the graph configuration module, the design generation method of the human-computer interface is improved, so that the human-computer interface is convenient to maintain and perfect in modification, and the flexibility and the expandability are effectively improved.
Fig. 7 is a schematic structural diagram of a human-machine interface generating apparatus according to an embodiment of the present invention.
Referring to fig. 7, the apparatus 700 includes:
the first determining module 701 is configured to determine a graph required by a human-computer interface to be generated.
A second determining module 702, configured to determine a graphics configuration module corresponding to the graphics and serve as a target graphics configuration module.
The reading module 703 is configured to read a target graphics control provided by the target graphics configuration module and a target graphics interface file corresponding to the target graphics control.
A loading module 704, configured to load the target graphics control in the initial human-computer interface, and generate a human-computer interface to be generated according to the loaded human-computer interface; and when the target graphic control is triggered by a user, the target business function is realized by calling the application programming interface.
Optionally, in some embodiments, referring to fig. 8, further comprising:
the analysis module 705 is configured to analyze a service function provided by the rail transit integrated monitoring system in advance to obtain a plurality of basic graphic control identifiers required for implementing the service function.
A third determining module 706, configured to determine, for each of the multiple basic controls provided in the preset development framework, a corresponding basic graphical control identifier.
And an encapsulating module 707, configured to encapsulate, using a preset computer programming language, each basic control and a corresponding basic graphics control identifier, where the basic graphics control identifier is used to uniquely mark the corresponding basic control, and the encapsulated basic controls are used as basic graphics controls in combination with the corresponding basic graphics control identifier, where the target graphics control includes one or more of multiple basic graphics controls.
Optionally, in some embodiments, referring to fig. 8, further comprising:
the association module 708 is configured to associate each basic graphic control with the attribute of the model object provided by the preset script by using a target mechanism in the preset development framework;
the first generating module 709 is configured to generate a graphical interface file corresponding to each basic graphical control according to a result obtained by the association, where the target graphical interface file is one of multiple graphical interface files.
And the writing module 710 is configured to write the application programming interface that implements the service function of the basic graphical control into the graphical interface file.
The second generating module 711 is configured to generate a graphics configuration module according to each basic graphics control and the corresponding graphics interface file, where the target graphics configuration module is one of the graphics configuration modules.
Optionally, in some embodiments, the first determining module 701 is specifically configured to:
and analyzing the application requirements of the human-computer interface to be generated to obtain the graph required by the human-computer interface to be generated.
Optionally, in some embodiments, the preset development framework is a Qt development framework, the target mechanism is a signal slot mechanism, and the preset script is a QM L script.
It should be noted that the explanation of the embodiment of the human-machine interface generation method in the foregoing embodiments of fig. 1 to fig. 6 is also applicable to the human-machine interface generation apparatus 700 of the embodiment, and the implementation principle thereof is similar and will not be described herein again.
In the embodiment, by determining the graph required by the human-computer interface to be generated, determining the graph configuration module corresponding to the graph and using the graph configuration module as a target graph configuration module, reading a target graph control provided by the target graph configuration module and a target graph interface file corresponding to the target graph control, loading the target graph control in an initial human-computer interface, and generating the human-computer interface to be generated according to the loaded human-computer interface, wherein an application programming interface for realizing the target business function corresponding to the target graph control is recorded in the target graph interface file, when a user triggers the target graph control, the target business function is realized by calling the application programming interface, and as the graph configuration module is adopted to provide the graph interface file required by the human-computer interface to operate, the human-computer interface only loads the graph control provided by the graph configuration module, the design generation method of the human-computer interface is improved, so that the human-computer interface is convenient to maintain and perfect in modification, and the flexibility and the expandability are effectively improved.
In order to implement the above embodiments, the present invention also provides a computer-readable storage medium, which when instructions in the storage medium are executed by a processor of a terminal, enables the terminal to perform a human-machine interface generating method, the method including:
determining a graph required by a human-computer interface to be generated;
determining a graph configuration module corresponding to the graph and using the graph configuration module as a target graph configuration module;
reading a target graphic control provided by a target graphic configuration module and a target graphic interface file corresponding to the target graphic control;
loading a target graphic control in the initial human-computer interface, and generating a human-computer interface to be generated according to the loaded human-computer interface;
and when the target graphic control is triggered by a user, the target business function is realized by calling the application programming interface.
The computer readable storage medium in this embodiment, by determining a graph required by a human-computer interface to be generated, determining a graph configuration module corresponding to the graph and using the graph configuration module as a target graph configuration module, reading a target graph control provided by the target graph configuration module and a target graph interface file corresponding to the target graph control, loading the target graph control in an initial human-computer interface, and generating the human-computer interface to be generated according to the loaded human-computer interface, wherein an application programming interface for realizing a target business function corresponding to the target graph control is recorded in the target graph interface file, when a user triggers the target graph control, the target business function is realized by calling the application programming interface, and since the graph configuration module is used to provide the graph interface file required by the human-computer interface to operate, the human-computer interface only loads the graph control provided by the graph configuration module, the design generation method of the human-computer interface is improved, so that the human-computer interface is convenient to maintain and perfect in modification, and the flexibility and the expandability are effectively improved.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (11)

1. A human-computer interface generation method is characterized by comprising the following steps:
determining a graph required by a human-computer interface to be generated;
determining a graph configuration module corresponding to the graph and using the graph configuration module as a target graph configuration module;
reading a target graphic control provided by the target graphic configuration module and a target graphic interface file corresponding to the target graphic control;
loading the target graphic control in an initial human-computer interface, and generating the human-computer interface to be generated according to the loaded human-computer interface;
and when the target graphic control is triggered by a user, the target business function is realized by calling the application programming interface.
2. The human-machine interface generation method of claim 1, further comprising, before the determining the graphics required for the human-machine interface to be generated:
analyzing service functions provided by a rail transit comprehensive monitoring system in advance to obtain a plurality of basic graphic control identifications required for realizing the service functions;
respectively determining a corresponding basic graphic control identification for a plurality of basic controls provided in a preset development frame;
packaging each basic control and the corresponding basic graphic control identification by adopting a preset computer programming language, wherein the basic graphic control identification is used for uniquely marking the corresponding basic control;
and taking each packaged basic control as a basic graphic control in combination with the corresponding basic graphic control identification, wherein the target graphic control comprises one or more of a plurality of basic graphic controls.
3. The human-machine interface generation method of claim 2, wherein after said identifying each of said basic controls encapsulated in combination with said corresponding basic graphical control as a basic graphical control, further comprising:
associating each basic graphic control with the attribute of the model object provided by the preset script by adopting a target mechanism in the preset development frame;
generating a graphic interface file corresponding to each basic graphic control according to a result obtained by association, wherein the target graphic interface file is one of a plurality of graphic interface files;
writing an application programming interface for realizing the service function of the basic graphic control into the graphic interface file;
and generating a graphic configuration module according to each basic graphic control and the corresponding graphic interface file, wherein the target graphic configuration module is one of a plurality of graphic configuration modules.
4. The human-machine interface generation method of claim 2, wherein the determining of the graphics required for the human-machine interface to be generated comprises:
and analyzing the application requirements of the human-computer interface to be generated to obtain the graph required by the human-computer interface to be generated.
5. The human-machine interface generation method of any one of claims 3-4, wherein the preset development framework is a Qt development framework, the target mechanism is a signal slot mechanism, and the preset script is a QM L script.
6. A human-machine interface generation apparatus, characterized in that the human-machine interface generation apparatus comprises:
the first determining module is used for determining a graph required by a human-computer interface to be generated;
the second determining module is used for determining a graph configuration module corresponding to the graph and taking the graph configuration module as a target graph configuration module;
the reading module is used for reading the target graphic control provided by the target graphic configuration module and a target graphic interface file corresponding to the target graphic control;
the loading module is used for loading the target graphic control in an initial human-computer interface and generating the human-computer interface to be generated according to the loaded human-computer interface; and when the target graphic control is triggered by a user, the target business function is realized by calling the application programming interface.
7. The human-machine interface generating device of claim 6, further comprising:
the analysis module is used for analyzing the service function provided by the rail transit comprehensive monitoring system in advance to obtain a plurality of basic graphic control identifications required for realizing the service function;
the third determining module is used for respectively determining a corresponding basic graphic control identifier for a plurality of basic controls provided in a preset development frame;
and the packaging module is used for packaging each basic control and the corresponding basic graphic control identification by adopting a preset computer programming language, wherein the basic graphic control identification is used for uniquely marking the corresponding basic control, the packaged basic controls are combined with the corresponding basic graphic control identification to serve as the basic graphic control, and the target graphic control comprises one or more basic graphic controls.
8. The human-machine interface generating device of claim 7, further comprising:
the association module is used for associating each basic graphic control with the attribute of the model object provided by the preset script by adopting a target mechanism in the preset development frame;
the first generation module is used for generating a graphical interface file corresponding to each basic graphical control according to a result obtained by association, and the target graphical interface file is one of a plurality of graphical interface files;
the writing module is used for writing an application programming interface for realizing the business function of the basic graphic control into the graphic interface file;
and the second generating module is used for generating a graphic configuration module according to each basic graphic control and the corresponding graphic interface file, and the target graphic configuration module is one of the plurality of graphic configuration modules.
9. The human-machine interface generation apparatus of claim 7, wherein the first determination module is specifically configured to:
and analyzing the application requirements of the human-computer interface to be generated to obtain the graph required by the human-computer interface to be generated.
10. The human-machine interface generation apparatus of any one of claims 8-9, wherein the preset development framework is a Qt development framework, the target mechanism is a signal slot mechanism, and the preset script is a QM L script.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a human-machine interface generation method according to any one of claims 1 to 5.
CN201910013263.9A 2019-01-07 2019-01-07 Human-computer interface generation method and device and storage medium Pending CN111414215A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910013263.9A CN111414215A (en) 2019-01-07 2019-01-07 Human-computer interface generation method and device and storage medium
PCT/CN2020/070516 WO2020143584A1 (en) 2019-01-07 2020-01-06 Human-machine interface generation method, apparatus, storage medium and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910013263.9A CN111414215A (en) 2019-01-07 2019-01-07 Human-computer interface generation method and device and storage medium

Publications (1)

Publication Number Publication Date
CN111414215A true CN111414215A (en) 2020-07-14

Family

ID=71490746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910013263.9A Pending CN111414215A (en) 2019-01-07 2019-01-07 Human-computer interface generation method and device and storage medium

Country Status (2)

Country Link
CN (1) CN111414215A (en)
WO (1) WO2020143584A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113760286A (en) * 2021-08-19 2021-12-07 北京鲸鲮信息系统技术有限公司 File generation method, electronic device and storage medium
CN114398123A (en) * 2021-12-29 2022-04-26 深圳市英维克信息技术有限公司 Human-computer interface generation method, device, equipment and storage medium
CN114416238A (en) * 2021-12-28 2022-04-29 成都易达数安科技有限公司 Intelligent instrument panel configuration method based on dynamic layout technology

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050102452A1 (en) * 2003-11-07 2005-05-12 Williams Brett J. Distribution of hardware device installation and configuration software
CN101510151A (en) * 2009-03-23 2009-08-19 国电南瑞科技股份有限公司 Synthesis monitoring cross-platform configuration human-machine interface system
CN102854853A (en) * 2012-08-13 2013-01-02 北京和利时系统工程有限公司 Cross-platform lightweight distributed control system
CN102999322A (en) * 2011-09-16 2013-03-27 深圳市吉阳自动化科技有限公司 Software interface design method of industrial controller
CN104239044A (en) * 2014-09-05 2014-12-24 北京航天自动控制研究所 Dynamic generation method for graphical user interface
CN106815018A (en) * 2016-12-27 2017-06-09 国电南瑞科技股份有限公司 Tramcar comprehensive operation dispatches the integral design method of system man-machine interface

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6941520B1 (en) * 2000-05-09 2005-09-06 International Business Machines Corporation Method, system, and program for using a user interface program to generate a user interface for an application program
CN103914307A (en) * 2014-04-22 2014-07-09 浪潮电子信息产业股份有限公司 Interactive-interface fast implementation method based on reusable library
CN103984548B (en) * 2014-05-14 2018-03-06 陕西上讯信息技术有限公司 A kind of web application front ends framework and its construction method, system
CN106598556B (en) * 2015-10-15 2020-08-25 阿里巴巴集团控股有限公司 User interface generation method and device
CN106201458A (en) * 2016-06-27 2016-12-07 上海波汇科技股份有限公司 A kind of interface creating method can joined flexibly and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050102452A1 (en) * 2003-11-07 2005-05-12 Williams Brett J. Distribution of hardware device installation and configuration software
CN101510151A (en) * 2009-03-23 2009-08-19 国电南瑞科技股份有限公司 Synthesis monitoring cross-platform configuration human-machine interface system
CN102999322A (en) * 2011-09-16 2013-03-27 深圳市吉阳自动化科技有限公司 Software interface design method of industrial controller
CN102854853A (en) * 2012-08-13 2013-01-02 北京和利时系统工程有限公司 Cross-platform lightweight distributed control system
CN104239044A (en) * 2014-09-05 2014-12-24 北京航天自动控制研究所 Dynamic generation method for graphical user interface
CN106815018A (en) * 2016-12-27 2017-06-09 国电南瑞科技股份有限公司 Tramcar comprehensive operation dispatches the integral design method of system man-machine interface

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李冬梅: "基于Qt的组态软件的设计与开发", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
杨晨: "基于Qt的监控组态软件的研究与开发", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113760286A (en) * 2021-08-19 2021-12-07 北京鲸鲮信息系统技术有限公司 File generation method, electronic device and storage medium
CN114416238A (en) * 2021-12-28 2022-04-29 成都易达数安科技有限公司 Intelligent instrument panel configuration method based on dynamic layout technology
CN114416238B (en) * 2021-12-28 2023-08-25 成都易达数安科技有限公司 Intelligent configuration method for instrument panel based on dynamic layout technology
CN114398123A (en) * 2021-12-29 2022-04-26 深圳市英维克信息技术有限公司 Human-computer interface generation method, device, equipment and storage medium

Also Published As

Publication number Publication date
WO2020143584A1 (en) 2020-07-16

Similar Documents

Publication Publication Date Title
CN102508644B (en) 3D (three-dimensional) user interface graphics engine system
KR101530634B1 (en) An apparatus and method for authoring experience-based learning content
WO2020143584A1 (en) Human-machine interface generation method, apparatus, storage medium and computer device
US9727667B2 (en) Generating a three dimensional building management system
CN103617070B (en) Virtual machine migration method and device
CN104375819A (en) System, Method, and Apparatus for Automatic Recording and Replaying of Application Executions
CN107450897B (en) Cross-platform migration method and device for graphic engine
US20150248343A1 (en) Method and apparatus for implementing instrumentation code
EP2284698A1 (en) Compositional modeling of integrated systems using event-based legacy applications
Allard et al. Modularity for large virtual reality applications
CN102662651A (en) Generation method and generation modules for visual component
CN115576217A (en) Vehicle testing method, device, equipment and medium
Diewald et al. Towards a holistic approach for mobile application development in intelligent environments
CN111488102A (en) Modular editing method, terminal, server and system for graphic animation
CN115964185A (en) Micro-service management system for technical resource sharing
CN102915403B (en) A kind of computer platform device parameter visualized graphs editor collocation method
CN113127050A (en) Application resource packaging process monitoring method, device, equipment and medium
CN115495069B (en) Model-driven coal industry software process implementation method, device and equipment
Tandel et al. Scripting engine for SCADA HMI
Mutti et al. Nomad more than a simple sequencer
Mikkonen et al. Exploring virtual reality as an integrated development environment for cyber-physical systems
CN114816430A (en) Business code development method, system and computer readable storage medium
US11640281B2 (en) Tool for introspection in object-oriented source code
CN109471410B (en) Dynamic preview generation in a product lifecycle management environment
Sons et al. xml3d. js: Architecture of a Polyfill Implementation of XML3D

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200714