CN115509525A - View construction method and device, electronic equipment and readable storage medium - Google Patents

View construction method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN115509525A
CN115509525A CN202211203334.XA CN202211203334A CN115509525A CN 115509525 A CN115509525 A CN 115509525A CN 202211203334 A CN202211203334 A CN 202211203334A CN 115509525 A CN115509525 A CN 115509525A
Authority
CN
China
Prior art keywords
target
view
page
determining
views
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
CN202211203334.XA
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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202211203334.XA priority Critical patent/CN115509525A/en
Publication of CN115509525A publication Critical patent/CN115509525A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a view construction method and device, electronic equipment and a readable storage medium, and belongs to the technical field of computers. The method comprises the steps of determining a page displayed by target equipment and page attributes corresponding to the page, wherein the page attributes comprise an arrangement sequence and mark information corresponding to the page; determining a view set corresponding to the page and initial level information and view attributes corresponding to each view in the view set; for each of the views, determining corresponding target level information based on the arrangement order and the initial level information corresponding to the view, and determining corresponding rendering information based on the tag information and the view attribute corresponding to the view; and constructing a three-dimensional view corresponding to the target device based on the target level information and the rendering information corresponding to all the views.

Description

View construction method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a view construction method and apparatus, an electronic device, and a readable storage medium.
Background
User Interfaces (UIs), which are media for interaction and information exchange between systems and users, enable the conversion of internal forms of information to human-acceptable forms. The user interface is designed to communicate with the hardware via software, so that the user can operate the hardware conveniently and efficiently to achieve bidirectional interaction and complete the work expected to be completed by the hardware.
In practical application, when problems such as page dislocation and screen blacking occur on a user interface, the solution is generally as follows: the user feeds the problems back to the developer, the developer searches the reasons of the problems according to the problems fed back by the user, and then the problems are solved based on the reasons.
However, since the developer does not know the specific situation of the ue (such as which pages are opened and the control logic corresponding to each page), it is difficult to quickly locate the cause of the problem at the ue.
Disclosure of Invention
In order to solve the technical problem that the developer cannot know the specific situation of the user side and therefore cannot quickly locate the reason why the user side has problems, the application provides a view construction method and device, an electronic device and a readable storage medium.
In a first aspect, a view construction method is provided, and the method includes:
determining a page displayed by target equipment and page attributes corresponding to the page, wherein the page attributes comprise an arrangement sequence and mark information corresponding to the page;
determining a view set corresponding to the page and initial level information and view attributes corresponding to each view in the view set;
for each of the views, determining corresponding target level information based on the arrangement order and the initial level information corresponding to the view, and determining corresponding rendering information based on the tag information and the view attribute corresponding to the view;
and constructing a three-dimensional view corresponding to the target device based on the target level information and the rendering information corresponding to all the views.
In one possible embodiment, the constructing a three-dimensional view corresponding to the target device based on the target hierarchy information and the rendering information corresponding to all the views includes:
determining an initial hierarchical structure based on the target hierarchical information corresponding to all the views;
constructing a target hierarchy based on the initial hierarchy, wherein the target hierarchy comprises a plurality of target layers, and each view contained in the target layers does not have an overlapping region;
constructing the three-dimensional view based on the target hierarchy and the rendering information corresponding to each of the views.
In a possible implementation manner, the initial hierarchical structure includes a plurality of initial layers, each of the initial layers includes at least one of the views,
said building a target hierarchy based on said initial hierarchy, comprising:
determining an initial layer containing at least two views as a layer to be confirmed in the plurality of initial layers;
for each layer to be confirmed, combining at least two views in the layer to be confirmed in pairs to obtain at least one combination;
for each combination, under the condition that two views in the combination are overlapped, placing one view in the combination on a newly-built additional layer;
and constructing the target hierarchical structure based on the initial hierarchical structure and the additional layer, and taking the initial layer and the additional layer as the target layer.
In one possible embodiment, the method further comprises:
for each of the combinations, determining a first position on the page of a first one of the combinations and a second position on the page of a second one of the combinations;
determining that the two views in the combination overlap if there is an overlap region in the first and second locations.
In one possible embodiment, said constructing said three-dimensional view based on said target hierarchy and said rendering information corresponding to each of said views comprises:
determining the layer number of all the target layers in the target hierarchical structure and a target hierarchy corresponding to each target layer;
for each target layer, determining the position of the target layer in a preset three-dimensional space based on a preset reference coordinate point, a layer interval, the number of layers and the target level corresponding to the target layer, and rotating the target layer according to a preset rotation matrix to obtain the posture of the target layer in the preset three-dimensional space;
and placing the target layers in the preset three-dimensional space according to the positions and the postures corresponding to the target layers, and rendering the views contained in the target layers based on the rendering information corresponding to the target layers to obtain the three-dimensional views.
In one possible embodiment of the method according to the invention, the determining corresponding target level information based on the arrangement order and the initial level information corresponding to the view comprises:
determining a reference page ordered before the page based on the arrangement sequence corresponding to the page, and determining the number of levels corresponding to the reference page;
determining the target level information based on the initial level information and the level number corresponding to the view.
In a possible implementation manner, before determining the page displayed by the target device and the page attribute corresponding to the page, the method further includes:
detecting whether a screen capture event occurs in the target equipment;
and under the condition that the screen capture event of the target equipment is detected, executing the step of determining the page displayed by the target equipment and the page attribute corresponding to the page, wherein the page attribute comprises the arrangement sequence corresponding to the page and the marking information.
In a second aspect, there is provided a view construction apparatus, the apparatus comprising:
the device comprises a first determining module, a second determining module and a display module, wherein the first determining module is used for determining a page displayed by target equipment and page attributes corresponding to the page, and the page attributes comprise an arrangement sequence and mark information corresponding to the page;
the second determining module is used for determining a view set corresponding to the page and initial level information and view attributes corresponding to each view in the view set;
a third determining module, configured to determine, for each of the views, corresponding target level information based on the arrangement order and the initial level information corresponding to the view, and corresponding rendering information based on the marking information and the view attribute corresponding to the view;
and the construction module is used for constructing a three-dimensional view corresponding to the target device based on the target level information and the rendering information corresponding to all the views.
In a possible implementation, the building block is specifically configured to:
determining an initial hierarchical structure based on the target hierarchical information corresponding to all the views;
constructing a target hierarchical structure based on the initial hierarchical structure, wherein the target hierarchical structure comprises a plurality of target layers, and each view contained in the target layers has no overlapping area;
constructing the three-dimensional view based on the target hierarchy and the rendering information corresponding to each of the views.
In a possible implementation manner, the initial hierarchical structure includes a plurality of initial layers, each of the initial layers includes at least one of the views,
the building module is further configured to:
determining an initial layer containing at least two views as a layer to be confirmed in the plurality of initial layers;
for each layer to be confirmed, combining at least two views in the layer to be confirmed in pairs to obtain at least one combination;
for each combination, under the condition that two views in the combination are overlapped, placing one view in the combination on a newly-built additional layer;
and constructing the target hierarchical structure based on the initial hierarchical structure and the additional layer, and taking the initial layer and the additional layer as the target layer.
In one possible embodiment, the apparatus further comprises a fourth determining module configured to:
for each of the combinations, determining a first position on the page of a first one of the combinations and a second position on the page of a second one of the combinations;
determining that the two views in the combination overlap if there is an overlap region in the first and second locations.
In one possible embodiment, the building module is further configured to:
determining the layer number of all the target layers in the target hierarchical structure and a target hierarchy corresponding to each target layer;
for each target layer, determining the position of the target layer in a preset three-dimensional space based on a preset reference coordinate point, a layer interval, the layer number and the target level corresponding to the target layer, and rotating the target layer according to a preset rotation matrix to obtain the posture of the target layer in the preset three-dimensional space;
and placing the target layers in the preset three-dimensional space according to the positions and the postures corresponding to the target layers, and rendering the views contained in the target layers based on the rendering information corresponding to the target layers to obtain the three-dimensional views.
In a possible implementation manner, the third determining module is specifically configured to:
determining a reference page ordered before the pages based on the arrangement sequence corresponding to the pages, and determining the number of levels corresponding to the reference page;
determining the target level information based on the initial level information and the level number corresponding to the view.
In one possible embodiment, the apparatus further comprises a detection module configured to:
detecting whether a screen capture event occurs in the target equipment;
and under the condition that the screen capture event of the target equipment is detected, executing the step of determining the page displayed by the target equipment and the page attribute corresponding to the page, wherein the page attribute comprises the arrangement sequence and the mark information corresponding to the page.
In a third aspect, an electronic device is provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of the first aspect when executing a program stored in the memory.
In a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when executed by a processor, the computer program implements the method steps of any of the first aspects.
In a fifth aspect, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the above described view construction methods.
The embodiment of the application has the following beneficial effects:
the embodiment of the application provides a view construction method, a device, an electronic device and a readable storage medium. Therefore, when the user interface of the target device has problems such as page dislocation, screen blacking and the like, the corresponding three-dimensional view can be constructed according to the page displayed by the target device and the page attributes, so that a user can know specific conditions of the target device (such as which pages and control logics corresponding to the pages are opened) from the three-dimensional view, the problems of the target device are quickly positioned, and the problem searching efficiency is improved.
Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a flowchart of a view construction method provided in an embodiment of the present application;
FIG. 2 is a flow chart of another view construction method provided by the embodiment of the present application;
FIG. 3 is a flow chart of another view construction method provided by the embodiments of the present application;
FIG. 4 is an example of a three-dimensional view provided by an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a view building apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The method for constructing a view provided by the present application is explained with specific embodiments in the following with reference to the drawings, and the embodiments do not limit the embodiments of the present application.
Referring to fig. 1, a flowchart of an embodiment of a view construction method provided in an embodiment of the present application is shown. As shown in fig. 1, the process may include the following steps:
s101, determining a page displayed by target equipment and page attributes corresponding to the page, wherein the page attributes comprise an arrangement sequence and mark information corresponding to the page.
The target device may be a device capable of displaying a user interface, such as a mobile phone and a tablet computer.
The page is an application page currently opened by the target device.
The page attribute refers to attribute information corresponding to the page, including an arrangement order and tag information corresponding to the page. The arrangement order refers to an order in which each page is arranged in all currently opened pages, and generally, the closer the access time is, the earlier the page arrangement order is. The flag information refers to information for marking the page, such as whether the page is a current operation page (KeyWindow) and a root view controller (rootVC) of the page.
In an embodiment, the specific implementation of determining the page displayed by the target device and the page attribute corresponding to the page may include: and sending a page acquisition instruction to the target equipment, so that the target equipment can determine the currently opened page and the corresponding page attribute according to the instruction of the page acquisition instruction, and feed back according to the currently opened page and the corresponding page attribute.
In practical application, when the device has problems such as page dislocation, screen blacking and the like, a user generally feeds a screenshot back to a developer, so in an embodiment, whether a screen capture event occurs on the target device can be detected in real time, and under the condition that the screen capture event occurs on the target device is detected, the page displayed by the target device and the page attribute corresponding to the page are determined, wherein the page attribute comprises the steps of arranging sequence corresponding to the page and marking information. Therefore, the method for constructing the three-dimensional view provided by the embodiment of the application can be automatically executed under the condition of a screen capture event, and manual operation of a user is not needed.
Based on this, optionally, the page acquisition instruction can also be used for instructing the target device to feed back the screenshot picture corresponding to the screenshot event, so that the developer can conveniently check the screen display condition.
S102, determining a view set corresponding to the page and initial level information and view attributes corresponding to each view in the view set.
The view set includes all views constituting a corresponding page.
The initial level information refers to the level of the corresponding view in the page, such as the first layer and the second layer.
View attributes including base attributes and logical attributes, wherein the base attributes include: the position of each view in the page, the display form (e.g., displayed or hidden), etc.; the logical attributes include: VC (View Control ) attribution relation.
In an embodiment, the page obtaining instruction is further configured to instruct the target device to feed back a view set corresponding to the page and initial level information and view attributes corresponding to each view in the view set.
For convenience of transmission, the target device may store the views and the view attributes corresponding to the views according to the initial level information corresponding to each view to obtain a logical tree corresponding to the page, and then serialize the logical tree into a character string (e.g., a json character string), and feed back the character string, so as to achieve the purpose of feeding back the view set and the initial level information and the view attributes corresponding to each view in the view set.
Thus, after the character string is received, the character string can be analyzed, and a view set corresponding to the page and initial level information and view attributes corresponding to each view in the view set are obtained.
In practical application, after the character string is received, the character string can be stored in a preset database (such as an elastic search database), so that a developer can conveniently select time to analyze the character string subsequently, and direct analysis during receiving is not needed. Further, the device ID of the target device feeding back the character string is recorded during storage, so that developers can conveniently search the corresponding character string based on the device ID.
103, for each of the views, determining corresponding target level information based on the arrangement order and the initial level information corresponding to the view, and determining corresponding rendering information based on the mark information and the view attribute corresponding to the view.
Rendering information, which is used for rendering the corresponding view when the three-dimensional view is constructed subsequently.
For example, the marking information is used to mark the corresponding view during rendering, the position in the view attribute is used to determine the rendering position during rendering, the display form (e.g., display or hide) in the view attribute is used to determine whether the view is a display view or a hidden view during rendering, the VC attribution in the view attribute is used to mark the attribution in the corresponding view, and so on. Therefore, the user can conveniently and visually know the information of all the views through the constructed three-dimensional views.
Initial level information, refers to the level of the view in its corresponding page.
And target level information refers to the level of the view in all pages.
In one embodiment, when the number of pages is one, initial level information of the view is determined as target level information.
In another embodiment, when the number of pages is at least two, determining a specific implementation of the corresponding target level information based on the arrangement order and the initial level information corresponding to the view may include: determining a reference page ordered before the page based on the arrangement sequence corresponding to the page, determining the number of levels corresponding to the reference page, and determining the target level information based on the initial level information and the number of levels corresponding to the view.
For example, there are two pages, a first page arranged at the front and a second page arranged at the back, where the first page and the second page respectively contain 3-layer views, and there is no other page in front of the first page, so that the initial level information and the target level information of the first layer view, the 2 nd layer view and the 3 rd layer view in the first page are the same, and are the 1 st layer, the 2 nd layer and the 3 rd layer in sequence; for page two, page one with 3-level views exists in front of page two, so that for the 1 st level view in page two, the corresponding target level information is level 4 (i.e. 1 plus 3), for the 2 nd level view in page two, the corresponding target level information is level 5 (i.e. 2 plus 3), and for the 3 rd level view in page two, the corresponding target level information is level 6 (i.e. 3 plus 3).
S104, constructing a three-dimensional view corresponding to the target device based on the target level information and the rendering information corresponding to all the views.
In the embodiment of the application, the spatial structure relationship among all the views can be determined through the target level information corresponding to each view, and each view can be rendered through the rendering information, so that the three-dimensional view corresponding to the target device can be constructed based on the target level information and the rendering information corresponding to all the views, and developers can conveniently and visually know the specific situation of the user interface.
How to construct the three-dimensional view corresponding to the target device will be described in detail in the embodiment shown in fig. 2, and will not be described in detail here.
In the embodiment of the application, firstly, a page displayed by a target device and page attributes corresponding to the page are determined, wherein the page attributes comprise an arrangement sequence and mark information corresponding to the page, then, a view set corresponding to the page and initial level information and view attributes corresponding to each view in the view set are determined, further, for each view, corresponding target level information is determined based on the arrangement sequence and the initial level information corresponding to the view, corresponding rendering information is determined based on the mark information and the view attributes corresponding to the view, and finally, a three-dimensional view corresponding to the target device is constructed based on the target level information and the rendering information corresponding to all the views. Therefore, when the user interface of the target device has problems such as page dislocation, screen blacking and the like, the corresponding three-dimensional view can be constructed according to the page displayed by the target device and the page attributes, so that a user can know specific conditions of the target device (such as which pages and control logics corresponding to the pages are opened) from the three-dimensional view, the problems of the target device are quickly positioned, and the problem searching efficiency is improved.
Referring to fig. 2, a flowchart of an embodiment of another view construction method according to an embodiment of the present invention is provided. The flow shown in fig. 2 is based on the flow shown in fig. 1, and describes how to construct a three-dimensional view corresponding to the target device based on the target hierarchy information and the rendering information corresponding to all the views. As shown in fig. 2, the process may include the following steps:
s201, determining an initial hierarchical structure based on the target hierarchical information corresponding to all the views.
S202, constructing a target hierarchical structure based on the initial hierarchical structure, wherein the target hierarchical structure comprises a plurality of target layers, and each view included in the target layers does not have an overlapping area.
S203, constructing the three-dimensional view based on the target hierarchical structure and the rendering information corresponding to each view.
The following describes S201-S203 collectively;
the initial hierarchical structure refers to a hierarchical structure constructed based on the original hierarchical relationship of the view. Taking page one and page two mentioned in the above example as an example, the initial hierarchy constructed based on all views corresponding to page one and page two includes views of layers 1-6, i.e. 6 layers.
In practical applications, the initial hierarchical structure includes a plurality of initial layers (i.e. 6 layers in the above example), each initial layer includes at least one view, and in order to avoid mutual occlusion of multiple views of the same layer, in an embodiment, the specific implementation of constructing the target hierarchical structure based on the initial hierarchical structure may include:
determining an initial layer containing at least two views as a layer to be confirmed in the plurality of initial layers; for each layer to be confirmed, combining at least two views in the layer to be confirmed in pairs to obtain at least one combination; for each combination, in the case that two views in the combination are overlapped, placing one view in the combination on a newly-built additional layer; and constructing the target hierarchical structure based on the initial hierarchical structure and the additional layer, and taking the initial layer and the additional layer as the target layer.
It should be noted that, when the target device feeds back the character string corresponding to the logical tree, at least two views on the same layer, that is, two views of the same parent node, are provided.
Specifically, it can be determined whether the two views in each combination coincide by: for each of the combinations, determining a first position on the page of a first view in the combination, and a second position on the page of a second view in the combination, where there is an overlap region between the first position and the second position, determining that the two views in the combination overlap.
It is understood that the first position is a set of coordinates, and the second position is also a set of coordinates, and in the case of repeated coordinates in the two sets of coordinates, it means that there is an overlapping area between the two sets of coordinates, otherwise, there is no overlapping area.
Continuing with the example of page one and page two in the above example, assuming that there are overlapping view a and view b in the 6 th layer, an additional layer may be newly created as the 7 th layer, and view a or b is placed on the 7 th layer.
Through the embodiment described in fig. 2, an initial hierarchical structure may be determined based on target hierarchical information corresponding to all views, and a target hierarchical structure may be constructed based on the initial hierarchical structure, where the target hierarchical structure includes a plurality of target layers, and no overlapping area exists between each view included in the target layers, and finally, a three-dimensional view may be constructed based on the target hierarchical structure and rendering information corresponding to each view. Therefore, overlapped views in the constructed three-dimensional views can be avoided, the three-dimensional views are clearer, and the three-dimensional views can be conveniently checked by developers.
Referring to fig. 3, a flowchart of an embodiment of another view construction method according to an embodiment of the present invention is provided. The flow shown in fig. 3 is based on the flow shown in fig. 2, and describes that the three-dimensional view is constructed based on the target hierarchy and the rendering information corresponding to each view. As shown in fig. 3, the process may include the following steps:
s301, determining the layer number of all the target layers in the target hierarchical structure and the target hierarchy corresponding to each target layer.
S302, for each target layer, determining the position of the target layer in a preset three-dimensional space based on a preset reference coordinate point, a layer interval, the number of layers and the target level corresponding to the target layer, and rotating the target layer according to a preset rotation matrix to obtain the posture of the target layer in the preset three-dimensional space.
S303, placing the target layers in the preset three-dimensional space according to the positions and the postures corresponding to the target layers, and rendering the views contained in the target layers based on the rendering information corresponding to the target layers to obtain the three-dimensional views.
The following describes S301-S303 collectively;
in the embodiment of the present application, a reference coordinate (generally, a center point coordinate), a layer interval (that is, an interval between each target layer), a horizontal rotation angle a (taking a vertical direction y as an axis), and a vertical rotation angle b (taking a horizontal line x as an axis) may be preset.
Taking the reference coordinate as the coordinate of the central point as an example, calculating the position of each target layer in a preset three-dimensional space (such as a View of a space container), specifically: aiming at each target layer, firstly placing the target layer in a preset three-dimensional space by a strategy of coincidence of a central point and a central point coordinate (wherein when a three-dimensional View is constructed by a space container View, the target layer is placed in the preset three-dimensional space through a corresponding layer container), then translating the target layer by a z distance, and then rotating the target layer according to a horizontal rotation angle a and a vertical rotation angle b to obtain the position and the posture of the target layer in the preset three-dimensional space.
Wherein z = (num-n/2) × d, num is the hierarchy of the target layer (such as the 1 st layer, the 6 th layer, etc.), n is the number of layers, and d is the layer spacing. It should be noted that when z is a positive number, the movement is performed forward by a z distance, and when z is a negative number, the movement is performed backward by a z distance.
After the position and the posture corresponding to each target layer are determined, the target layers can be placed in a preset three-dimensional space according to the position and the posture corresponding to each target layer, and simultaneously, each view on each target layer is rendered according to rendering information corresponding to the view, so that the three-dimensional view shown in fig. 4 is obtained.
Through the embodiment described in fig. 3, the position and the posture of each target layer in the preset three-dimensional space are determined according to the target hierarchical structure, and then each layer is placed in the preset three-dimensional space according to the position and the posture, and each view is rendered according to the corresponding rendering information, so that the corresponding three-dimensional view is obtained. Therefore, a user can know the specific situation (such as the included view and the attribute of the view) of the page opened by the target equipment from the three-dimensional view, so that the problem of the target equipment is quickly positioned, and the efficiency of searching the problem is improved.
Based on the same technical concept, the embodiment of the present application further provides a view construction apparatus, as shown in fig. 5, the apparatus including:
a first determining module 501, configured to determine a page displayed by a target device and a page attribute corresponding to the page, where the page attribute includes an arrangement order and tag information corresponding to the page;
a second determining module 502, configured to determine a view set corresponding to the page and initial level information and view attributes corresponding to each view in the view set;
a third determining module 503, configured to determine, for each of the views, corresponding target level information based on the arrangement order and the initial level information corresponding to the view, and corresponding rendering information based on the mark information and the view attribute corresponding to the view;
a constructing module 504, configured to construct a three-dimensional view corresponding to the target device based on the target level information and the rendering information corresponding to all the views.
In a possible implementation, the building module is specifically configured to:
determining an initial hierarchy based on the target hierarchy information corresponding to all of the views;
constructing a target hierarchy based on the initial hierarchy, wherein the target hierarchy comprises a plurality of target layers, and each view contained in the target layers does not have an overlapping region;
constructing the three-dimensional view based on the target hierarchy and the rendering information corresponding to each of the views.
In a possible implementation manner, the initial hierarchical structure includes a plurality of initial layers, each of the initial layers includes at least one of the views,
the building module is further configured to:
determining an initial layer containing at least two views as a layer to be confirmed in the plurality of initial layers;
for each layer to be confirmed, combining at least two views in the layer to be confirmed in pairs to obtain at least one combination;
for each combination, under the condition that two views in the combination are overlapped, placing one view in the combination on a newly-built additional layer;
and constructing the target hierarchical structure based on the initial hierarchical structure and the additional layer, and taking the initial layer and the additional layer as the target layer.
In one possible embodiment, the apparatus further includes a fourth determining module configured to:
for each of the combinations, determining a first position on the page of a first one of the combinations and a second position on the page of a second one of the combinations;
determining that the two views in the combination overlap if there is an overlap region in the first and second locations.
In one possible embodiment, the building module is further configured to:
determining the layer number of all the target layers in the target hierarchical structure and a target hierarchy corresponding to each target layer;
for each target layer, determining the position of the target layer in a preset three-dimensional space based on a preset reference coordinate point, a layer interval, the number of layers and the target level corresponding to the target layer, and rotating the target layer according to a preset rotation matrix to obtain the posture of the target layer in the preset three-dimensional space;
and placing the target layers in the preset three-dimensional space according to the positions and the postures corresponding to the target layers, and rendering the views contained in the target layers based on the rendering information corresponding to the target layers to obtain the three-dimensional views.
In a possible implementation manner, the third determining module is specifically configured to:
determining a reference page ordered before the page based on the arrangement sequence corresponding to the page, and determining the number of levels corresponding to the reference page;
determining the target level information based on the initial level information and the level number corresponding to the view.
In one possible embodiment, the apparatus further comprises a detection module configured to:
detecting whether a screen capture event occurs in the target equipment;
and under the condition that the screen capture event of the target equipment is detected, executing the step of determining the page displayed by the target equipment and the page attribute corresponding to the page, wherein the page attribute comprises the arrangement sequence and the mark information corresponding to the page. In the embodiment of the application, firstly, a page displayed by a target device and page attributes corresponding to the page are determined, wherein the page attributes comprise an arrangement sequence and mark information corresponding to the page, then, a view set corresponding to the page and initial level information and view attributes corresponding to each view in the view set are determined, further, for each view, corresponding target level information is determined based on the arrangement sequence and the initial level information corresponding to the view, corresponding rendering information is determined based on the mark information and the view attributes corresponding to the view, and finally, a three-dimensional view corresponding to the target device is constructed based on the target level information and the rendering information corresponding to all the views. Therefore, when the user interface of the target device has problems such as page dislocation, screen blacking and the like, the corresponding three-dimensional view can be constructed according to the page displayed by the target device and the page attributes, so that a user can know specific conditions of the target device (such as which pages and control logics corresponding to the pages are opened) from the three-dimensional view, the problems of the target device are quickly positioned, and the problem searching efficiency is improved.
Based on the same technical concept, the embodiment of the present application further provides an electronic device, as shown in the figure, including a processor 111, a communication interface 112, a memory 113, and a communication bus 114, where the processor 111, the communication interface 112, and the memory 113 complete mutual communication through the communication bus 114,
a memory 113 for storing a computer program;
the processor 111, when executing the program stored in the memory 113, implements the following steps:
determining a page displayed by target equipment and page attributes corresponding to the page, wherein the page attributes comprise an arrangement sequence and mark information corresponding to the page;
determining a view set corresponding to the page and initial level information and view attributes corresponding to each view in the view set;
for each of the views, determining corresponding target level information based on the arrangement order and the initial level information corresponding to the view, and determining corresponding rendering information based on the tag information and the view attribute corresponding to the view;
and constructing a three-dimensional view corresponding to the target device based on the target level information and the rendering information corresponding to all the views.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In a further embodiment provided by the present application, there is further provided a computer-readable storage medium having stored therein a computer program, which when executed by a processor, implements the steps of any of the above-described view construction methods.
In a further embodiment provided by the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the above-described view construction methods.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may 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. The procedures or functions described in accordance with the embodiments of the application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of view construction, the method comprising:
determining a page displayed by target equipment and page attributes corresponding to the page, wherein the page attributes comprise an arrangement sequence and mark information corresponding to the page;
determining a view set corresponding to the page and initial level information and view attributes corresponding to each view in the view set;
for each of the views, determining corresponding target level information based on the arrangement order and the initial level information corresponding to the view, and determining corresponding rendering information based on the tag information and the view attribute corresponding to the view;
and constructing a three-dimensional view corresponding to the target device based on the target level information and the rendering information corresponding to all the views.
2. The method according to claim 1, wherein the constructing a three-dimensional view corresponding to the target device based on the target hierarchy information and the rendering information corresponding to all the views comprises:
determining an initial hierarchy based on the target hierarchy information corresponding to all of the views;
constructing a target hierarchy based on the initial hierarchy, wherein the target hierarchy comprises a plurality of target layers, and each view contained in the target layers does not have an overlapping region;
constructing the three-dimensional view based on the target hierarchy and the rendering information corresponding to each of the views.
3. The method according to claim 2, wherein the initial hierarchy includes a plurality of initial layers, each of the initial layers includes at least one of the views,
said building a target hierarchy based on said initial hierarchy, comprising:
determining an initial layer containing at least two views as a layer to be confirmed in the plurality of initial layers;
for each layer to be confirmed, combining at least two views in the layer to be confirmed pairwise to obtain at least one combination;
for each combination, under the condition that two views in the combination are overlapped, placing one view in the combination on a newly-built additional layer;
and constructing the target hierarchical structure based on the initial hierarchical structure and the additional layer, and taking the initial layer and the additional layer as the target layer.
4. The method of claim 3, further comprising:
for each of the combinations, determining a first position on the page of a first one of the combinations and a second position on the page of a second one of the combinations;
determining that the two views in the combination overlap if there is an overlap region in the first and second locations.
5. The method of claim 2, wherein said constructing the three-dimensional view based on the target hierarchy and the rendering information corresponding to each of the views comprises:
determining the layer number of all the target layers in the target hierarchical structure and a target hierarchy corresponding to each target layer;
for each target layer, determining the position of the target layer in a preset three-dimensional space based on a preset reference coordinate point, a layer interval, the number of layers and the target level corresponding to the target layer, and rotating the target layer according to a preset rotation matrix to obtain the posture of the target layer in the preset three-dimensional space;
and placing the target layers in the preset three-dimensional space according to the positions and the postures corresponding to the target layers, and rendering the views contained in the target layers based on the rendering information corresponding to the target layers to obtain the three-dimensional views.
6. The method of claim 1, wherein determining corresponding target level information based on the ranking order and the initial level information corresponding to the view comprises:
determining a reference page ordered before the pages based on the arrangement sequence corresponding to the pages, and determining the number of levels corresponding to the reference page;
determining the target level information based on the initial level information and the level number corresponding to the view.
7. The method of claim 1, wherein before determining the page displayed by the target device and the page attribute corresponding to the page, further comprising:
detecting whether a screen capture event occurs in the target equipment;
and under the condition that the screen capture event of the target equipment is detected, executing the step of determining the page displayed by the target equipment and the page attribute corresponding to the page, wherein the page attribute comprises the arrangement sequence and the mark information corresponding to the page.
8. A view construction apparatus, characterized in that the apparatus comprises:
the device comprises a first determining module, a second determining module and a display module, wherein the first determining module is used for determining a page displayed by target equipment and page attributes corresponding to the page, and the page attributes comprise an arrangement sequence and mark information corresponding to the page;
the second determining module is used for determining a view set corresponding to the page and initial level information and view attributes corresponding to each view in the view set;
a third determining module, configured to determine, for each of the views, corresponding target level information based on the arrangement order and the initial level information corresponding to the view, and determine corresponding rendering information based on the marking information and the view attribute corresponding to the view;
and the construction module is used for constructing a three-dimensional view corresponding to the target device based on the target level information and the rendering information corresponding to all the views.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 7 when executing a program stored in the memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 7.
CN202211203334.XA 2022-09-29 2022-09-29 View construction method and device, electronic equipment and readable storage medium Pending CN115509525A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211203334.XA CN115509525A (en) 2022-09-29 2022-09-29 View construction method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211203334.XA CN115509525A (en) 2022-09-29 2022-09-29 View construction method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN115509525A true CN115509525A (en) 2022-12-23

Family

ID=84508108

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211203334.XA Pending CN115509525A (en) 2022-09-29 2022-09-29 View construction method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN115509525A (en)

Similar Documents

Publication Publication Date Title
US11798174B2 (en) Method, device, equipment and storage medium for locating tracked targets
US20220036648A1 (en) Method and terminal device for determining occluded area of virtual object
US11093701B2 (en) Form input processing
US20170220671A1 (en) System, method, and apparatus for collecting and processing user feedback on webpages
CN113420355B (en) Floor processing method and device and electronic equipment
US20190122421A1 (en) Batch rendering method, device, and apparatus
CN113095227B (en) Robot positioning method and device, electronic equipment and storage medium
CN114648615B (en) Method, device and equipment for controlling interactive reproduction of target object and storage medium
CN111782758A (en) Drawing review result viewing method based on CAD and related device
CN107729487A (en) Topic searching method, topic searcher and electric terminal
CN111309743A (en) Report pushing method and device
US20200356562A1 (en) Cross-asset data modeling in multi-asset databases
CN114898076A (en) Model label adding method and device, electronic equipment and storage medium
CN114415882A (en) Floor dynamic display method, system, equipment and interaction medium
CN111240622B (en) Drawing method and device
CN115509525A (en) View construction method and device, electronic equipment and readable storage medium
CN112445514B (en) Code review method and related products
CN108920343B (en) Data processing method and device
CN113190549B (en) Multidimensional table data calling method, multidimensional table data calling device, server and storage medium
WO2020233093A1 (en) Association graph generation method and apparatus, computer device, and storage medium
CN111831616A (en) Picture examination problem display method, related device and equipment
CN113760272A (en) Information display method, device, equipment and storage medium
CN114840620B (en) Evidence-providing material management method, intelligent terminal and storage medium
CN109254985A (en) Method for exhibiting data and device, the electronic equipment of database
US20220139097A1 (en) Method for determining annotation capability information, related apparatus and computer program product

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