CN114721653A - UI (user interface) generation method, device and equipment - Google Patents
UI (user interface) generation method, device and equipment Download PDFInfo
- Publication number
- CN114721653A CN114721653A CN202210313437.5A CN202210313437A CN114721653A CN 114721653 A CN114721653 A CN 114721653A CN 202210313437 A CN202210313437 A CN 202210313437A CN 114721653 A CN114721653 A CN 114721653A
- Authority
- CN
- China
- Prior art keywords
- sub
- target
- type
- information
- selection information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 238000010276 construction Methods 0.000 claims description 8
- 238000004891 communication Methods 0.000 claims description 2
- 230000008569 process Effects 0.000 abstract description 16
- 230000003993 interaction Effects 0.000 abstract description 13
- 238000012423 maintenance Methods 0.000 abstract description 8
- 230000006870 function Effects 0.000 description 7
- 238000012545 processing Methods 0.000 description 6
- 238000004590 computer program Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000013473 artificial intelligence Methods 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 238000010187 selection method Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Stored Programmes (AREA)
Abstract
Description
技术领域technical field
本发明实施例涉及计算机领域,涉及一种UI(User Interface,UI)生成方法、装置及设备。Embodiments of the present invention relate to the field of computers, and relate to a UI (User Interface, UI) generating method, apparatus, and device.
背景技术Background technique
人机交互界面(User Interface,UI)通常指人与物或者人与软件互动过程的界面。在用于人与软件交互的UI中,常用的软件应用根据使用场景可分为二维(twodimension,2D)应用以及三维(three dimension,3D)应用。2D 应用通常被指代在手机端或电脑屏幕端等运行的应用;3D应用则通常被用支持增强现实(Augmented Reality,AR)技术的场景中。Human-computer interaction interface (User Interface, UI) usually refers to the interface of the interaction process between people and objects or between people and software. In the UI for human-software interaction, commonly used software applications can be divided into two-dimensional (two-dimension, 2D) applications and three-dimensional (three-dimensional, 3D) applications according to usage scenarios. 2D applications usually refer to applications running on mobile phones or computer screens; 3D applications are usually used in scenes that support Augmented Reality (AR) technology.
通常,在同一个软件工程项目中,由于2D应用以及3D应用适用的应用场景不同,因此2D应用以及3D应用需要分别生成UI,2D应用对应2D的UI, 3D应用对应3D的UI,为了保证一个应用可以同时适用多类型平台,通常需要 2D的UI以及3D的UI共存。现阶段对于2D应用以及3D应用共存的项目,开发人员通常采用2D的UI界面以及3D的UI界面分别开发,并建立2D的 UI界面与3D的UI界面的信息交互的方式处理。Usually, in the same software engineering project, since 2D applications and 3D applications are applicable to different application scenarios, UIs need to be generated for 2D applications and 3D applications respectively, 2D applications correspond to 2D UIs, and 3D applications correspond to 3D UIs. The application can be applied to multiple types of platforms at the same time, and usually requires the coexistence of 2D UI and 3D UI. At this stage, for projects where 2D applications and 3D applications coexist, developers usually develop 2D UI interfaces and 3D UI interfaces separately, and establish a way of information interaction between the 2D UI interface and the 3D UI interface.
但是,随着开发内容信息量的增大,以及后续软件迭代更新,使得每次对软件工程内容做修改时,需要对2D的UI界面的全部内容以及3D的UI界面的全部内容均进行修改以及对修改后的内容重新配置信息交互的通道。这样,增大了软件工程后期运维成本。However, with the increase in the amount of development content information and subsequent software iterative updates, each time the software engineering content is modified, it is necessary to modify the entire content of the 2D UI interface and the entire content of the 3D UI interface. Reconfigure the information exchange channel for the modified content. In this way, the later operation and maintenance costs of software engineering are increased.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种UI生成方法、装置及设备,以解决现有具有2D UI 和3DUI的软件应用开发以及运维成本过大的问题。Embodiments of the present application provide a method, apparatus, and device for generating a UI, so as to solve the problems of excessive development and operation and maintenance costs of existing software applications with 2D UI and 3D UI.
第一方面,本申请实施例提供了一种UI生成方法,所述方法包括:In a first aspect, an embodiment of the present application provides a UI generation method, the method includes:
获取目标UI对应的生成请求以及至少一个选择信息;Obtain the generation request corresponding to the target UI and at least one selection information;
根据所述生成请求生成所述目标UI对应的信息内容,所述信息内容指示子 UI,所述子UI的类型是二维2D UI或者三维3D UI;Generate information content corresponding to the target UI according to the generation request, the information content indicates a sub-UI, and the type of the sub-UI is a two-dimensional 2D UI or a three-dimensional 3D UI;
依据每个所述选择信息,对子UI的类型进行选择,得到至少一个目标子 UI;According to each of the selection information, the type of the sub-UI is selected to obtain at least one target sub-UI;
依据每个所述目标子UI以及每个所述目标子UI对应的信息内容,构建至少一个所述目标UI。At least one of the target UIs is constructed according to each of the target sub-UIs and information content corresponding to each of the target sub-UIs.
在一些可能的实施方式中,所述选择信息内容包括:运行目标UI的平台类型以及目标UI的启动场景。In some possible implementations, the selection information content includes: a platform type on which the target UI runs and a startup scene of the target UI.
在一些可能的实施方式中,所述信息内容可以由预设的至少一个UI接口得到,每个所述UI接口对应一个子UI。In some possible implementations, the information content may be obtained from at least one preset UI interface, and each of the UI interfaces corresponds to a sub-UI.
在一些可能的实施方式中,所述依据每个所述选择信息,对子UI的类型进行选择,得到至少一个目标子UI,可以通过预先配置的UI管理器实现。In some possible implementations, according to each of the selection information, the type of the sub-UI is selected to obtain at least one target sub-UI, which may be implemented by a pre-configured UI manager.
在一些可能的实施方式中,依据每个所述选择信息,对子UI的类型进行选择,实现方式还包括:依据每个所述选择信息对应的所述选择信息内容中的一个,实现对UI的类型进行选择,得到至少一个目标子UI。In some possible implementations, the type of the sub-UI is selected according to each of the selection information, and the implementation method further includes: according to one of the selection information contents corresponding to each of the selection information, realize the selection of the UI Select the type to get at least one target sub-UI.
在一些可能的实施方式中,所述对于子UI类型的选择,实现方式还包括:通过预先部署的UI管理器依据所述选择信息进行筛选。In some possible implementation manners, the implementation manner of the selection of the sub-UI type further includes: filtering according to the selection information through a pre-deployed UI manager.
第二方面,本申请实施例还提供了一种UI生成装置,所述装置包括:In a second aspect, an embodiment of the present application further provides a UI generation device, the device comprising:
获取模块,用于获取目标UI对应的生成请求以及至少一个选择信息;an acquisition module, used to acquire the generation request corresponding to the target UI and at least one selection information;
生成模块,用于根据所述生成请求生成所述目标UI对应的信息内容,所述信息内容指示子UI,所述子UI的类型是二维2D UI或者三维3D UI;A generation module, configured to generate information content corresponding to the target UI according to the generation request, the information content indicates a sub-UI, and the type of the sub-UI is a two-dimensional 2D UI or a three-dimensional 3D UI;
选择模块,用于依据每个所述选择信息,对子UI的类型进行选择,得到至少一个目标子UI;a selection module, for selecting the type of the sub-UI according to each of the selection information, to obtain at least one target sub-UI;
构建模块,用于依据每个所述目标子UI以及每个所述目标子UI对应的信息内容,构建至少一个所述目标UI。A construction module, configured to construct at least one of the target UIs according to each of the target sub-UIs and information content corresponding to each of the target sub-UIs.
第三方面,本申请实施例还提供了一种电子设备,所诉电子设备包括:存储器和处理器,所述存储器和所述处理器之间互相通信连接,所述存储器中存储有计算机指令,所述处理器通过执行所述计算机指令执行第一方面或第一方面任一可能的实施方式中的方法。In a third aspect, an embodiment of the present application further provides an electronic device, the electronic device includes: a memory and a processor, the memory and the processor are connected in communication with each other, and computer instructions are stored in the memory, The processor executes the method of the first aspect or any possible implementation manner of the first aspect by executing the computer instructions.
第四方面,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使所述计算机执行第一方面或第一方面任一可能的实施方式中的方法。In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores computer instructions, and the computer instructions are used to cause the computer to execute the first aspect or any of the first aspect. The method in a possible implementation.
本申请实施例提供了一种UI生成方法的技术方案,本方案中,首先获取目标UI对应的生成请求以及至少一个选择信息,而后根据所述生成请求生成所述目标UI对应的信息内容,所述信息内容指示子UI,子UI的类型是二维2D UI 或者三维3D UI,依据每个所述选择信息,对子UI的类型进行选择,得到至少一个目标子UI;依据每个所述目标子UI以及每个所述目标子UI对应的信息内容,构建至少一个所述目标UI。可见,本技术方案将原有的UI生成所用的内容进行整合处理,然后通过对使用场景以及运行平台的信息,选择适用于继承所用内容的子UI类型是2D UI或3D UI。由于通过继承的方式使目标子UI获取相应的内容,用于构建目标UI,因此保证了目标UI内容再构建过程中的一致性。这样,可以在2D UI以及3D UI共存的软件中减少了配置信息交互通道的内容,对于后期运维的过程也减轻了成本。The embodiment of the present application provides a technical solution for a UI generation method. In this solution, a generation request corresponding to a target UI and at least one selection information are obtained first, and then information content corresponding to the target UI is generated according to the generation request. The content of the information indicates a sub-UI, and the type of the sub-UI is a two-dimensional 2D UI or a three-dimensional 3D UI. According to each of the selection information, the type of the sub-UI is selected to obtain at least one target sub-UI; The sub-UI and the information content corresponding to each target sub-UI construct at least one target UI. It can be seen that the technical solution integrates the content used for the original UI generation, and then selects the sub-UI type suitable for inheriting the content to be 2D UI or 3D UI through the information of the usage scene and the running platform. Since the target sub-UI obtains the corresponding content by means of inheritance and is used to construct the target UI, the consistency in the re-construction process of the target UI content is guaranteed. In this way, the content of the configuration information interaction channel can be reduced in the software in which the 2D UI and the 3D UI coexist, and the cost of the later operation and maintenance process is also reduced.
附图说明Description of drawings
图1是本申请实施例提供的UI生成方法流程示意图;1 is a schematic flowchart of a UI generation method provided by an embodiment of the present application;
图2是本申请实施例提供的UI生成装置示例性组成示意图;2 is a schematic diagram of an exemplary composition of a UI generation apparatus provided by an embodiment of the present application;
图3是本申请实施例提供的UI生成设备示例性结构示意图。FIG. 3 is a schematic structural diagram of an exemplary UI generation device provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请以下实施例中所使用的术语是为了描述可选实施方式的目的,而非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式。还应当理解,尽管在以下实施例中可能采用术语第一、第二等来描述某一类对象,但所述对象不限于这些术语。这些术语用来将该类对象的具体对象进行区分。例如,以下实施例中可能采用术语第一、第二等来描述的其他类对象同理,此处不再赘述。The terms used in the following examples of the present application are for the purpose of describing alternative embodiments, and are not intended to be limitations of the present application. As used in the specification of this application and the appended claims, the singular expressions "a," "an," "the," "above," "the," and "the" are intended to also Include plural expressions. It should also be understood that although the terms first, second, etc. may be used in the following embodiments to describe a certain class of objects, the objects are not limited to these terms. These terms are used to distinguish concrete objects of this class of objects. For example, in the following embodiments, the terms first, second, etc. may be used to describe other types of objects in the same way, which will not be repeated here.
本申请实施例提供了一种UI生成方法的技术方案,本方案中,首先获取目标UI对应的生成请求以及至少一个选择信息,而后根据所述生成请求生成所述目标UI对应的信息内容,所述信息内容指示子UI,子UI的类型是二维2D UI 或者三维3D UI,依据每个所述选择信息,对子UI的类型进行选择,得到至少一个目标子UI;依据每个所述目标子UI以及每个所述目标子UI对应的信息内容,构建至少一个所述目标UI。可见,本技术方案将原有的UI生成所用的内容进行整合处理,然后通过对使用场景以及运行平台的信息,选择适用于继承所用内容的子UI类型是2D UI或3D UI。由于通过继承的方式使目标子UI获取相应的内容,用于构建目标UI,因此保证了目标UI内容再构建过程中的一致性。这样,可以在2D UI以及3D UI共存的软件中减少了配置信息交互通道的内容,对于后期运维的过程也减轻了成本。The embodiment of the present application provides a technical solution for a UI generation method. In this solution, a generation request corresponding to a target UI and at least one selection information are obtained first, and then information content corresponding to the target UI is generated according to the generation request. The content of the information indicates a sub-UI, and the type of the sub-UI is a two-dimensional 2D UI or a three-dimensional 3D UI. According to each of the selection information, the type of the sub-UI is selected to obtain at least one target sub-UI; The sub-UI and the information content corresponding to each target sub-UI construct at least one target UI. It can be seen that the technical solution integrates the content used for the original UI generation, and then selects the sub-UI type suitable for inheriting the content to be 2D UI or 3D UI through the information of the usage scene and the running platform. Since the target sub-UI obtains the corresponding content by means of inheritance and is used to construct the target UI, the consistency in the re-construction process of the target UI content is guaranteed. In this way, the content of the configuration information interaction channel can be reduced in the software in which the 2D UI and the 3D UI coexist, and the cost of the later operation and maintenance process is also reduced.
本申请实施例涉及的任一电子设备可以是诸如手机、平板电脑、可穿戴设备(例如,智能手表、智能手环等)、笔记本电脑、台式计算机和车载设备等电子设备。该电子设备预先安装有软件部署应用程序。可以理解的是,本申请实施例对电子设备的具体类型不作任何限制。Any electronic device involved in the embodiments of the present application may be electronic devices such as mobile phones, tablet computers, wearable devices (eg, smart watches, smart bracelets, etc.), notebook computers, desktop computers, and in-vehicle devices. The electronic device is pre-installed with a software deployment application. It can be understood that the embodiments of the present application do not impose any limitations on the specific types of electronic devices.
人机交互界面(User Interface,UI)通常指人与物或者人与软件互动过程的界面。在用于人与软件交互的UI中,常用的软件应用根据使用场景可分为二维(twodimension,2D)应用以及三维(three dimension,3D)应用。2D 应用通常被指代在手机端或电脑屏幕端等运行的应用;3D应用则通常被用支持增强现实(Augmented Reality,AR)技术的场景中。Human-computer interaction interface (User Interface, UI) usually refers to the interface of the interaction process between people and objects or between people and software. In the UI for human-software interaction, commonly used software applications can be divided into two-dimensional (two-dimension, 2D) applications and three-dimensional (three-dimensional, 3D) applications according to usage scenarios. 2D applications usually refer to applications running on mobile phones or computer screens; 3D applications are usually used in scenes that support Augmented Reality (AR) technology.
通常,在同一个软件工程项目中,存在2D应用以及3D应用共存的情况,由于2D应用以及3D应用适用的应用场景不同,因此2D应用以及3D应用需要分别生成UI界面,2D应用对应2D的UI界面,3D应用对应3D的UI界面。现阶段对于2D应用以及3D应用共存的项目,开发人员通常采用2D的UI界面以及3D的UI界面分别开发,并建立2D的UI界面与3D的UI界面的信息交互的方式处理。Usually, 2D applications and 3D applications coexist in the same software engineering project. Since 2D applications and 3D applications are applicable to different application scenarios, 2D applications and 3D applications need to generate UI interfaces respectively, and 2D applications correspond to 2D UIs Interface, 3D application corresponds to the 3D UI interface. At this stage, for projects where 2D applications and 3D applications coexist, developers usually use 2D UI interface and 3D UI interface to develop separately, and establish a way of information interaction between 2D UI interface and 3D UI interface.
但是,随着开发内容信息量的增大,以及后续软件迭代更新,使得每次对软件工程内容做修改时,需要对2D的UI界面的全部内容以及3D的UI界面的全部内容均进行修改以及对修改后的内容重新配置信息交互的通道。这样,增大了软件工程后期运维成本。However, with the increase in the amount of development content information and subsequent software iterative updates, each time the software engineering content is modified, it is necessary to modify the entire content of the 2D UI interface and the entire content of the 3D UI interface. Reconfigure the information exchange channel for the modified content. In this way, the later operation and maintenance costs of software engineering are increased.
下面是对几个示例性实施方式的描述,对本申请实施例的技术方案以及本申请的技术方案产生的技术效果进行说明。The following is a description of several exemplary embodiments, and describes the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application.
在本申请的第一方面,提出了一种UI生成方法,参见图1,图1使本申请实施例提供的数字孪生场景部署方法的方法流程示意图,包括以下步骤:In the first aspect of the present application, a UI generation method is proposed. Referring to FIG. 1, FIG. 1 is a schematic flowchart of the method for deploying a digital twin scene provided by an embodiment of the present application, including the following steps:
获取目标UI对应的生成请求以及至少一个选择信息;Obtain the generation request corresponding to the target UI and at least one selection information;
根据所述生成请求生成所述目标UI对应的信息内容,所述信息内容指示子 UI,所述子UI的类型是二维2D UI或者三维3D UI;Generate information content corresponding to the target UI according to the generation request, the information content indicates a sub-UI, and the type of the sub-UI is a two-dimensional 2D UI or a three-dimensional 3D UI;
依据每个所述选择信息,对子UI的类型进行选择,得到至少一个目标子 UI;According to each of the selection information, the type of the sub-UI is selected to obtain at least one target sub-UI;
依据每个所述目标子UI以及每个所述目标子UI对应的信息内容,构建至少一个所述目标UI。At least one of the target UIs is constructed according to each of the target sub-UIs and information content corresponding to each of the target sub-UIs.
可选的,所述信息内容可以由预设的至少一个UI接口得到,每个所述UI 接口对应一个子UI。Optionally, the information content may be obtained from at least one preset UI interface, and each UI interface corresponds to a sub-UI.
示例性的,在软件开发前期,首先抽象一层UI操作接口,例如依据需求,开发一个登录系统的界面(相当于上述目标系统)并且登录系统需要同时具有2D UI以及3D UI,此处抽象出的UI操作接口需要定义所述登录系统界面的内容以及相关规则,可以包括:界面填写内容(账号以及密码等)或相关操作按钮(确定以及一键登录等)等。通常的,由于接口通常被用作定义所有类继承接口时应遵循的语法合同。因此,在此UI操作接口下的子UI能够继承此UI 操作接口定义的所有内容以及相关规则,并且由子UI将所继承的内容进行实现,这样保证了在同一个UI接口下的不同类型的子UI所继承内容的一致性。Exemplarily, in the early stage of software development, first abstract a layer of UI operation interface, for example, according to requirements, develop a login system interface (equivalent to the above target system) and the login system needs to have both 2D UI and 3D UI, which is abstracted here. The UI operation interface needs to define the content and related rules of the login system interface, which may include: interface filling content (account and password, etc.) or related operation buttons (OK and one-key login, etc.). In general, since interfaces are often used as syntactic contracts to define all classes inheriting from interfaces should follow. Therefore, the sub-UI under this UI operation interface can inherit all the content and related rules defined by this UI operation interface, and the sub-UI implements the inherited content, which ensures that different types of sub-UIs under the same UI interface Consistency of what UI inherits.
可选的,所述选择信息内容包括:运行目标UI的平台类型以及目标UI的启动场景。Optionally, the content of the selection information includes: a platform type for running the target UI and a startup scene of the target UI.
可选的,依据每个所述选择信息,对子UI的类型进行选择,实现方式还包括:依据每个所述选择信息对应的所述选择信息内容中的一个,实现对UI的类型进行选择,得到至少一个目标子UI。Optionally, the type of the sub-UI is selected according to each of the selection information, and the implementation method further includes: according to one of the selection information contents corresponding to each of the selection information, the selection of the type of the UI is realized. , get at least one target sub-UI.
可选的,所述对于子UI类型的选择,实现方式还包括:通过预先部署的 UI管理器依据所述选择信息进行筛选。Optionally, for the selection of sub-UI types, an implementation manner further includes: screening according to the selection information through a pre-deployed UI manager.
示例性的,系统获取上述目标UI的应用场景(相当于上述选择信息)为手机端,并且并未被使用在具有AR技术支持的场景中,需要构建为2D UI类型。系统将此类信息传递至UI管理器,由所述UI管理器继续判断,可以由此明确,所述目标UI应用在2D场景。因此,所述UI管理器会选择2D UI类型的子UI (相当于目标子UI)继承接口定义内容用来构建目标UI。Exemplarily, the application scene (equivalent to the above selection information) in which the system obtains the above target UI is a mobile phone, and is not used in a scene supported by AR technology, and needs to be constructed as a 2D UI type. The system transmits such information to the UI manager, and the UI manager continues to judge, and it can be determined from this that the target UI is applied in a 2D scene. Therefore, the UI manager will select the sub-UI of the 2D UI type (equivalent to the target sub-UI) to inherit the interface definition content to construct the target UI.
明显的,对于获取信息为运行平台的选择方式与上述内容类似,此处不再进行一一赘述。Obviously, the selection method of obtaining information as the operating platform is similar to the above content, and will not be repeated here.
本申请实施例提供了一种UI生成方法的技术方案,本方案中,首先获取目标UI对应的生成请求以及至少一个选择信息,而后根据所述生成请求生成所述目标UI对应的信息内容,所述信息内容指示子UI,子UI的类型是二维2D UI 或者三维3D UI,依据每个所述选择信息,对子UI的类型进行选择,得到至少一个目标子UI;依据每个所述目标子UI以及每个所述目标子UI对应的信息内容,构建至少一个所述目标UI。可见,本技术方案将原有的UI生成所用的内容进行整合处理,然后通过对使用场景以及运行平台的信息,选择适用于继承所用内容的子UI类型是2D UI或3D UI。由于通过继承的方式使目标子UI获取相应的内容,用于构建目标UI,因此保证了目标UI内容再构建过程中的一致性。这样,可以在2D UI以及3D UI共存的软件中减少了配置信息交互通道的内容,对于后期运维的过程也减轻了成本。The embodiment of the present application provides a technical solution for a UI generation method. In this solution, a generation request corresponding to a target UI and at least one selection information are obtained first, and then information content corresponding to the target UI is generated according to the generation request. The content of the information indicates a sub-UI, and the type of the sub-UI is a two-dimensional 2D UI or a three-dimensional 3D UI. According to each of the selection information, the type of the sub-UI is selected to obtain at least one target sub-UI; The sub-UI and the information content corresponding to each target sub-UI construct at least one target UI. It can be seen that the technical solution integrates the content used for the original UI generation, and then selects the sub-UI type suitable for inheriting the content to be 2D UI or 3D UI through the information of the usage scene and the running platform. Since the target sub-UI obtains the corresponding content by means of inheritance and is used to construct the target UI, the consistency in the re-construction process of the target UI content is guaranteed. In this way, the content of the configuration information interaction channel can be reduced in the software in which the 2D UI and the 3D UI coexist, and the cost of the later operation and maintenance process is also reduced.
上述实施例从目标UI对应的生成请求以及至少一个选择信息的获得、信息内容的生成、目标子UI的获得以及依据每个所述目标子UI以及每个所述目标子UI对应的信息内容,构建至少一个所述目标UI等方面,对本申请实施例提供的UI生成方法的各实施方式进行了介绍。应理解,目标UI对应的生成请求以及至少一个选择信息的获得、信息内容的生成、目标子UI的获得以及依据每个所述目标子UI以及每个所述目标子UI对应的信息内容,构建至少一个所述目标UI等的处理步骤,本申请实施例可以以硬件或硬件和计算机软件的结合形式来实现上述功能。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。In the above-mentioned embodiment, from the generation request corresponding to the target UI and the acquisition of at least one selection information, the generation of information content, the acquisition of the target sub-UI, and the information content corresponding to each of the target sub-UIs and each of the target sub-UIs, In terms of constructing at least one of the target UIs and the like, various implementations of the UI generation method provided by the embodiments of the present application are introduced. It should be understood that the generation request corresponding to the target UI and the acquisition of at least one selection information, the generation of information content, the acquisition of the target sub-UI, and the information content corresponding to each of the target sub-UIs and each of the target sub-UIs are constructed. For at least one processing step of the target UI and the like, the embodiments of the present application may implement the above functions in a form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
例如,若上述实现步骤通过软件模块来实现相应的功能。如图2所示,UI 生成装置可以包括获取模块,生成模块,选择模块以及构建模块。所述UI生成装置可用于执行上述软件部署方法的部分或全部操作。For example, if the above implementation steps implement corresponding functions through software modules. As shown in FIG. 2, the UI generation apparatus may include an acquisition module, a generation module, a selection module, and a construction module. The UI generating apparatus may be used to perform part or all of the operations of the above-mentioned software deployment method.
例如:E.g:
获取模块,用于获取目标UI对应的生成请求以及至少一个选择信息;an acquisition module, used to acquire the generation request corresponding to the target UI and at least one selection information;
生成模块,用于根据所述生成请求生成所述目标UI对应的信息内容,所述信息内容指示子UI,所述子UI的类型是二维2D UI或者三维3D UI;A generation module, configured to generate information content corresponding to the target UI according to the generation request, the information content indicates a sub-UI, and the type of the sub-UI is a two-dimensional 2D UI or a three-dimensional 3D UI;
选择模块,用于依据每个所述选择信息,对子UI的类型进行选择,得到至少一个目标子UI;a selection module, for selecting the type of the sub-UI according to each of the selection information, to obtain at least one target sub-UI;
构建模块,用于依据每个所述目标子UI以及每个所述目标子UI对应的信息内容,构建至少一个所述目标UI。A construction module, configured to construct at least one of the target UIs according to each of the target sub-UIs and information content corresponding to each of the target sub-UIs.
由此可见,本申请实施例提供了一种UI生成方法的装置,本方案中,首先获取目标UI对应的生成请求以及至少一个选择信息,而后根据所述生成请求生成所述目标UI对应的信息内容,所述信息内容指示子UI,子UI的类型是二维 2D UI或者三维3D UI,依据每个所述选择信息,对子UI的类型进行选择,得到至少一个目标子UI;依据每个所述目标子UI以及每个所述目标子UI对应的信息内容,构建至少一个所述目标UI。可见,本技术方案将原有的UI生成所用的内容进行整合处理,然后通过对使用场景以及运行平台的信息,选择适用于继承所用内容的子UI类型是2D UI或3D UI。由于通过继承的方式使目标子 UI获取相应的内容,用于构建目标UI,因此保证了目标UI内容再构建过程中的一致性。这样,可以在2D UI以及3D UI共存的软件中减少了配置信息交互通道的内容,对于后期运维的过程也减轻了成本。It can be seen that the embodiment of the present application provides an apparatus for a UI generation method. In this solution, a generation request corresponding to a target UI and at least one selection information are obtained first, and then information corresponding to the target UI is generated according to the generation request. content, the information content indicates a sub-UI, and the type of the sub-UI is a two-dimensional 2D UI or a three-dimensional 3D UI. According to each of the selection information, the type of the sub-UI is selected to obtain at least one target sub-UI; The target sub-UI and the information content corresponding to each target sub-UI construct at least one target UI. It can be seen that the technical solution integrates the content used for the original UI generation, and then selects the sub-UI type suitable for inheriting the content to be 2D UI or 3D UI through the information of the usage scene and the running platform. Since the target sub-UI obtains the corresponding content by means of inheritance and is used to construct the target UI, the consistency in the re-construction process of the target UI content is guaranteed. In this way, the content of the configuration information interaction channel can be reduced in the software in which the 2D UI and the 3D UI coexist, and the cost of the later operation and maintenance process is also reduced.
可以理解的是,以上各个模块的功能可以集成到硬件实体实现,例如,获取模块可以集成到收发器实现,生成模块、选择模块以及构建模块可以集成在处理器实现,实现上述各模块功能的程序和指令,可以维护在存储器中。如图 3所示,提供了一种电子设备,电子设备包括处理器,收发器以及存储器,其中收发器用于执行UI生成方法中对于UI请求获取,存储器用于存储前述部署装置预装的程序/代码,也可以存储用于处理器执行的代码等。当处理器运行存储器存储的代码过程中,使得电子设备执行上述方法中软件部署方法的部分或全部操作。It can be understood that the functions of the above modules can be integrated into the hardware entity, for example, the acquisition module can be integrated into the transceiver, the generation module, the selection module and the building module can be integrated into the processor, and the program to realize the functions of the above modules. and instructions can be maintained in memory. As shown in FIG. 3, an electronic device is provided. The electronic device includes a processor, a transceiver, and a memory, wherein the transceiver is used to execute the UI request acquisition in the UI generation method, and the memory is used to store the preinstalled program/ code, may also store code for execution by the processor, and the like. When the processor executes the code stored in the memory, the electronic device is made to perform part or all of the operations of the software deployment method in the above method.
具体过程详见上述方法的实施例所述,此处不再详述。For the specific process, please refer to the embodiments of the above method, which will not be described in detail here.
具体实现中,对应前述电子设备,本申请实施例还提供一种计算机存储介质,其中,设置在电子设备中的计算机存储介质可存储有程序,该程序执行时,可实施包括上述软件部署方法的各实施例中的部分或全部步骤。该存储介质均可为磁碟、光盘、只读存储记忆体(read-only memory,ROM)或随机存储记忆体(random access memory,RAM)等。In a specific implementation, corresponding to the aforementioned electronic device, an embodiment of the present application further provides a computer storage medium, wherein the computer storage medium provided in the electronic device can store a program, and when the program is executed, it can implement a software deployment method including the above-mentioned software deployment method. some or all of the steps in each example. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
以上模块或单元的一个或多个可以软件、硬件或二者结合来实现。当以上任一模块或单元以软件实现的时候,所述软件以计算机程序指令的方式存在,并被存储在存储器中,处理器可以用于执行所述程序指令并实现以上方法流程。所述处理器可以包括但不限于以下至少一种:中央处理单元(central processing unit,CPU)、微处理器、数字信号处理器(DSP)、微控制器(microcontroller unit, MCU)、或人工智能处理器等各类运行软件的计算设备,每种计算设备可包括一个或多个用于执行软件指令以进行运算或处理的核。该处理器可以内置于 SoC(片上系统)或专用集成电路(application specificintegrated circuit,ASIC),也可是一个独立的半导体芯片。该处理器内处理用于执行软件指令以进行运算或处理的核外,还可进一步包括必要的硬件加速器,如现场可编程门阵列(field programmable gate array,FPGA)、PLD(可编程逻辑器件)、或者实现专用逻辑运算的逻辑电路。One or more of the above modules or units may be implemented in software, hardware or a combination of both. When any of the above modules or units are implemented in software, the software exists in the form of computer program instructions and is stored in the memory, and the processor can be used to execute the program instructions and implement the above method flow. The processor may include, but is not limited to, at least one of the following: a central processing unit (CPU), a microprocessor, a digital signal processor (DSP), a microcontroller (MCU), or artificial intelligence Processors and other types of computing devices that run software, each computing device may include one or more cores for executing software instructions to perform operations or processing. The processor may be built in a SoC (system on chip) or an application specific integrated circuit (ASIC), or may be an independent semiconductor chip. The internal processing of the processor may further include necessary hardware accelerators, such as field programmable gate array (FPGA), PLD (Programmable Logic Device), outside the core for executing software instructions to perform operations or processing. , or a logic circuit that implements dedicated logic operations.
当以上模块或单元以硬件实现的时候,该硬件可以是CPU、微处理器、DSP、 MCU、人工智能处理器、ASIC、SoC、FPGA、PLD、专用数字电路、硬件加速器或非集成的分立器件中的任一个或任一组合,其可以运行必要的软件或不依赖于软件以执行以上方法流程。When the above modules or units are implemented in hardware, the hardware can be a CPU, microprocessor, DSP, MCU, artificial intelligence processor, ASIC, SoC, FPGA, PLD, dedicated digital circuits, hardware accelerators or non-integrated discrete devices Any one or any combination, which may or may not run the necessary software to perform the above method flow.
进一步的,图3中还可以包括总线接口,总线接口可以包括任意数量的互联的总线和桥,具体由处理器代表的一个或多个处理器和存储器代表的存储器的各种电路链接在一起。总线接口还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发器提供用于在传输介质上与各种其他设备通信的单元。处理器负责管理总线架构和通常的处理,存储器可以存储处理器在执行操作时所使用的数据。Further, FIG. 3 may also include a bus interface. The bus interface may include any number of interconnected buses and bridges. Specifically, one or more processors represented by a processor and various circuits of a memory represented by a memory are linked together. The bus interface may also link together various other circuits, such as peripherals, voltage regulators, and power management circuits, which are well known in the art and, therefore, will not be described further herein. The bus interface provides the interface. A transceiver provides a unit for communicating with various other devices over a transmission medium. The processor is responsible for managing the bus architecture and general processing, and the memory can store data that the processor uses when performing operations.
当以上模块或单元使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。When the above modules or units are implemented using software, they can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media. The usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), among others.
应理解,在本申请的各种实施例中,各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对实施例的实施过程构成任何限定。It should be understood that, in the various embodiments of the present application, the size of the sequence numbers of each process does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, rather than the implementation process of the embodiment. constitute any limitation.
本说明书的各个部分均采用递进的方式进行描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点介绍的都是与其他实施例不同之处。尤其,对于装置和系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例部分的说明即可。Each part of this specification is described in a progressive manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the points that are different from other embodiments. In particular, as for the apparatus and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for related parts, please refer to the descriptions in the method embodiments.
尽管已描述了本申请的可选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。While alternative embodiments of the present application have been described, additional changes and modifications to these embodiments may occur to those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include the preferred embodiment and all changes and modifications that fall within the scope of this application.
以上所述的具体实施方式,对本申请的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本申请的具体实施方式而已,并不用于限定本申请的保护范围,凡在本申请的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本发明的保护范围之内。The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above descriptions are only specific embodiments of the present application, and are not intended to limit the Any modification, equivalent replacement, improvement, etc. made on the basis of the technical solution of the present application shall be included in the protection scope of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210313437.5A CN114721653A (en) | 2022-03-28 | 2022-03-28 | UI (user interface) generation method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210313437.5A CN114721653A (en) | 2022-03-28 | 2022-03-28 | UI (user interface) generation method, device and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114721653A true CN114721653A (en) | 2022-07-08 |
Family
ID=82239717
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210313437.5A Pending CN114721653A (en) | 2022-03-28 | 2022-03-28 | UI (user interface) generation method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114721653A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080013860A1 (en) * | 2006-07-14 | 2008-01-17 | Microsoft Corporation | Creation of three-dimensional user interface |
CN112416328A (en) * | 2020-12-11 | 2021-02-26 | 广州伊智信息科技有限公司 | Multi-platform small program mall construction method, device, equipment and medium |
CN113138698A (en) * | 2020-01-20 | 2021-07-20 | 腾讯科技(深圳)有限公司 | Game resource processing method and device, storage medium and electronic equipment |
CN113535164A (en) * | 2021-06-11 | 2021-10-22 | 中电金信软件有限公司 | A method, device, electronic device and storage medium for generating front-end interface |
WO2022056499A1 (en) * | 2021-10-13 | 2022-03-17 | Innopeak Technology, Inc. | 3d rendering and animation support for ui controls |
-
2022
- 2022-03-28 CN CN202210313437.5A patent/CN114721653A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080013860A1 (en) * | 2006-07-14 | 2008-01-17 | Microsoft Corporation | Creation of three-dimensional user interface |
CN113138698A (en) * | 2020-01-20 | 2021-07-20 | 腾讯科技(深圳)有限公司 | Game resource processing method and device, storage medium and electronic equipment |
CN112416328A (en) * | 2020-12-11 | 2021-02-26 | 广州伊智信息科技有限公司 | Multi-platform small program mall construction method, device, equipment and medium |
CN113535164A (en) * | 2021-06-11 | 2021-10-22 | 中电金信软件有限公司 | A method, device, electronic device and storage medium for generating front-end interface |
WO2022056499A1 (en) * | 2021-10-13 | 2022-03-17 | Innopeak Technology, Inc. | 3d rendering and animation support for ui controls |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11762634B2 (en) | Systems and methods for seamlessly integrating multiple products by using a common visual modeler | |
US9536023B2 (en) | Code generation for using an element in a first model to call a portion of a second model | |
CN109643252B (en) | Middleware interface and middleware interface generator | |
US9612804B2 (en) | Business suite framework for developing software applications | |
CN106856438B (en) | Network service instantiation method, device and NFV system | |
CN112764729B (en) | Application software development method, device, computer equipment and readable storage medium | |
CN111813407B (en) | Game development method, game running device and electronic equipment | |
CN114035879A (en) | Page theme color changing method and device, electronic equipment and computer readable medium | |
EP4191407A1 (en) | Method and device for generating and registering ui service package and loading ui service | |
CN114048415A (en) | Form generation method and apparatus, electronic device and computer-readable storage medium | |
CN114721653A (en) | UI (user interface) generation method, device and equipment | |
WO2023093885A1 (en) | Cloud technology-based graphic program online development method and system, and related device | |
CN113495721B (en) | Application Programming Interface API Template Generation Method and System | |
CN116301830A (en) | Business code generation method and device, electronic device, storage medium | |
WO2022259497A1 (en) | Scenario setting device, scenario setting method, and scenario setting program | |
CN115774661A (en) | Multi-user debugging with user data isolation | |
CN115562783A (en) | Page rendering method and device | |
CN114416215A (en) | Function calling method and device | |
CN114296855A (en) | User interface state management method and device, electronic equipment and storage medium | |
CN113157360B (en) | Method, apparatus, device, medium, and article for processing an API | |
CN115237457A (en) | AI application operation method and related product | |
CN114026540A (en) | System and method for supporting and negotiating multiple API versions across multiple products | |
CN112068814A (en) | Method, device, system and medium for generating executable file | |
CN112688863B (en) | Gateway data processing method and device and electronic equipment | |
CN117193761A (en) | Methods, devices, equipment and storage media for data processing |
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 |