CN112667934A - Dynamic simulation diagram display method and device, electronic equipment and computer readable medium - Google Patents
Dynamic simulation diagram display method and device, electronic equipment and computer readable medium Download PDFInfo
- Publication number
- CN112667934A CN112667934A CN201910984213.5A CN201910984213A CN112667934A CN 112667934 A CN112667934 A CN 112667934A CN 201910984213 A CN201910984213 A CN 201910984213A CN 112667934 A CN112667934 A CN 112667934A
- Authority
- CN
- China
- Prior art keywords
- dynamic simulation
- target page
- page
- simulation diagram
- display area
- 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
- 238000005094 computer simulation Methods 0.000 title claims abstract description 174
- 238000010586 diagram Methods 0.000 title claims abstract description 151
- 238000000034 method Methods 0.000 title claims abstract description 61
- 238000009877 rendering Methods 0.000 claims description 17
- 230000004044 response Effects 0.000 claims description 11
- 238000012544 monitoring process Methods 0.000 claims description 10
- 238000005192 partition Methods 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 9
- 238000004891 communication Methods 0.000 claims description 3
- 230000008569 process Effects 0.000 description 7
- 238000012545 processing Methods 0.000 description 4
- 238000013500 data storage Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the application discloses a dynamic simulation diagram display method, a dynamic simulation diagram display device, electronic equipment and a computer readable medium. An embodiment of the method comprises: acquiring an access path of the dynamic simulation diagram; setting a display area of the dynamic simulation diagram in the target page; creating a target page element for bearing the dynamic simulation diagram, and setting an attribute value of a path attribute of the target page element as an access path; and loading page data of the target page, adding the target page element in the page element corresponding to the display area, loading the target page element, and displaying the dynamic simulation diagram in the display area of the target page. The implementation mode improves the convenience of operation when the user views the dynamic simulation diagram.
Description
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method and a device for displaying a dynamic simulation diagram, electronic equipment and a computer readable medium.
Background
Genesis is computer aided manufacturing software for circuit boards, and by means of the software, various industrial environments can be simulated to generate dynamic simulation diagrams. For example, the oilfield environment can be simulated, and an oilfield environment dynamic simulation diagram can be generated.
In the existing mode, after the dynamic simulation diagram is generated through Genesis, the dynamic simulation diagram can be displayed by depending on other systems. For example, if an oilfield environment dynamic simulation diagram generated by Genesis is used, the oilfield environment dynamic simulation diagram can be browsed only by using a station management system, a well monitoring system, and the like of the oilfield. In the process, systems capable of browsing the dynamic simulation diagram need to be manually searched and started, and data of the dynamic simulation diagram needs to be manually loaded in the systems, so that the operation of a user is complicated.
Disclosure of Invention
The embodiment of the application provides a method and a device for displaying a dynamic simulation diagram, electronic equipment and a computer readable medium, so that the convenience of operation when a user views the dynamic simulation diagram is improved.
In a first aspect, an embodiment of the present application provides a method for displaying a dynamic simulation diagram, where the method includes: acquiring an access path of the dynamic simulation diagram; setting a display area of the dynamic simulation diagram in the target page; creating a target page element for bearing the dynamic simulation diagram, and setting an attribute value of a path attribute of the target page element as an access path; and loading page data of the target page, adding the target page element in the page element corresponding to the display area, loading the target page element, and displaying the dynamic simulation diagram in the display area of the target page.
In a second aspect, an embodiment of the present application provides a dynamic simulation diagram display apparatus, where the apparatus includes: an acquisition unit configured to acquire an access path of the dynamic simulation graph; the setting unit is configured to set a display area of the dynamic simulation diagram in the target page; the creating unit is configured to create a target page element for bearing the dynamic simulation diagram and set an attribute value of a path attribute of the target page element as an access path; the display unit is configured to load page data of a target page, add a target page element in a page element corresponding to the display area, load the target page element, and display the dynamic simulation diagram in the display area of the target page.
In a third aspect, an embodiment of the present application provides an electronic device, including at least one processor, and at least one memory and a bus connected to the processor; the processor and the memory complete mutual communication through a bus; the processor is used for calling program instructions in the memory to execute the dynamic simulation chart showing method.
In a fourth aspect, an embodiment of the present application provides a computer-readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a dynamic simulation graph displaying method.
According to the dynamic simulation diagram display method, the dynamic simulation diagram display device, the electronic equipment and the computer readable medium, the access path of the dynamic simulation diagram is obtained, the display area of the dynamic simulation diagram is set in the target page, the target page element for bearing the dynamic simulation diagram is created, the attribute value of the path attribute of the target page element is set as the access path, finally page data of the target page is loaded, the target page element is added in the page element corresponding to the display area, and the target page element is loaded, so that the dynamic simulation diagram is displayed in the display area of the target page. Therefore, the dynamic simulation graph generated by the target program (such as Genesis) can be displayed in the page, a user can browse the dynamic simulation graph in the page through the browser without searching and starting other systems or manually loading data of the dynamic simulation graph in other systems, and the convenience of operation when the user views the dynamic simulation graph is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is a flow diagram of one embodiment of a dynamic simulation diagram presentation method according to the present application;
FIG. 2 is a flow diagram of yet another embodiment of a dynamic simulation diagram presentation method according to the present application;
FIG. 3 is a schematic diagram of the structure of one embodiment of a dynamic simulation diagram presentation apparatus according to the present application;
FIG. 4 is a block diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Referring to fig. 1, a flow 100 of one embodiment of a dynamic simulation diagram presentation method according to the present application is shown. The dynamic simulation diagram display method comprises the following steps:
and step 101, obtaining an access path of the dynamic simulation diagram.
In this embodiment, an execution subject (e.g., an electronic device such as a desktop computer, a laptop computer, etc.) of the dynamic simulation graph presentation method may obtain an access path of the dynamic simulation graph. In practice, the dynamic simulation diagram can be stored in a file form. The file may have stored therein data used to construct the dynamic simulation diagram. And the access path of the dynamic simulation diagram is the access path of the file. The access path here may be a URL (uniform resource locator).
In some optional implementations of this embodiment, the dynamic simulation diagram may be generated by a target program. The target program can be computer aided manufacturing software Genesis on the aspect of the circuit board. By utilizing the target program, various industrial environments can be simulated, so that a dynamic simulation diagram is generated. The dynamic simulation diagram can be a dynamic diagram generated after simulation of various industrial environments. In practice, the above-mentioned oilfield environment dynamic simulation diagram may include, but is not limited to, at least one of the following: the oil field pipeline dynamic simulation diagram and the oil station site dynamic simulation diagram.
In some optional implementations of this embodiment, the dynamic simulation graph may be first stored to the target server. The target server may be a server accessible by other devices, such as a data storage server. Then, the access path of the dynamic simulation graph in the target server can be obtained. Here, the access path of the dynamic simulation diagram in the target server is the storage path of the dynamic simulation diagram in the target server. The storage path may be specified by a user prior to storage of the dynamic simulation graph.
And 102, setting a display area of the dynamic simulation diagram in the target page.
In this embodiment, the display area of the dynamic simulation diagram may be set in the target page. The target page can be any accessible page specified in advance. The page may be opened by the browser.
In this embodiment, any designated area in the target page may be used as a display area of the dynamic simulation diagram. The display area may be a rectangular area.
In some optional implementation manners of this embodiment, a display area of the dynamic simulation diagram may be set in the target page by adding a page element. In practice, the target page may be an HTML (HyperText Markup Language) page. At this time, the page element is an HTML element. In general, a page element may contain a start tag, element content, and an end tag. The start tag may include any number of attribute names of the tag and attribute values corresponding to the attribute names. The display area of the dynamic simulation diagram can be set in the target page by adding an HTML element (such as div element) for defining a partition of the document in the page data (i.e. HTML code) corresponding to the target page and setting the required attributes such as size in the element. Thus, the display area may be set by: first, a page element (e.g., div element) for defining a document partition is added to page data corresponding to a target page. And then setting attribute information of the page elements, wherein the attribute information comprises the width and the height of the display area.
In this embodiment, a target page element (e.g., an iframe element) for carrying the dynamic simulation diagram may be created, and in practice, the iframe element is used to define an in-line frame and may carry content such as text or images required by a page. Therefore, the dynamic simulation diagram can be borne through the iframe element.
After a target page element for carrying the dynamic simulation diagram is created, the attribute of the element can be set. The above attributes may include, but are not limited to: a width attribute (i.e., a width attribute), a height attribute (i.e., a height attribute), a path attribute (i.e., a scr attribute), an alignment attribute (i.e., an align attribute), a style attribute (i.e., a style attribute), etc.
In this embodiment, the attribute value of the path attribute (i.e., scr attribute) of the target page element may be set as the access path of the dynamic mimetic graph. Thus, a dynamic simulation graph may be obtained from the access path when the element is loaded.
In some optional implementation manners of this embodiment, after the target page element for bearing the dynamic simulation diagram is created, a width attribute and a height attribute of the target page element may also be set. Specifically, the attribute value of the width attribute may be set as the width of the display area, and the attribute value of the height attribute may be set as the height of the display area. Thereby, the display area can be fully utilized.
And 104, loading page data of the target page, adding the target page element in the page element corresponding to the display area, loading the target page element, and displaying the dynamic simulation diagram in the display area.
In this embodiment, the execution body may load the page data of the target page through a browser, and after loading the page data, add the target page element to the page element corresponding to the display area and load the target page element, so that the target page may be displayed in the browser, and the dynamic simulation diagram may be displayed in the display area of the target page.
As an example, the page data of the above-mentioned target page may be loaded first by the browser. Then, the target page element (iframe element) may be nested into the page element (e.g., div element) corresponding to the above-mentioned display area. And then, the updated page data can be analyzed through the browser, so that the target page can be displayed in the browser, and the dynamic simulation diagram can be displayed in a display area of the target page.
In some optional implementations of this embodiment, the executing entity may display the dynamic simulation diagram by:
firstly, loading page data of the target page through a browser, and rendering the target page.
It should be noted that the page data herein may not include the above target page element (i.e., iframe element). In practice, if the page is not rendered and the display area is not loaded in the page when the access path corresponding to the iframe element is loaded, the content acquired from the access path cannot be presented in the page at this time. Therefore, the page data without the target page element is loaded through the browser, the page is rendered at first, and the situation can be avoided.
And secondly, in response to the detection that the target page rendering is completed, emptying other page elements embedded in the page elements corresponding to the display area.
In practice, the clearing of other page elements embedded in the page element corresponding to the presentation area may be performed by executing a removeChild () method in a preset script code. The removeChild () method may be used to delete child nodes (e.g., page elements).
It should be noted that, after the rendering of the target page is completed, other page elements embedded in the page element (e.g., div element) corresponding to the display area are emptied, so that content duplication caused by loading multiple iframe elements can be prevented, and the loading speed of the browser is increased.
Here, optionally, whether the target page is completely rendered may be detected by listening for a target event (e.g., a window load event) indicating that the page load is complete. In practice, the window. Therefore, if the event is monitored, the target page rendering can be determined to be completed. Therefore, other page elements embedded in the page elements corresponding to the display area can be emptied; if the event is not monitored, it can be determined that the target page is not rendered, and monitoring of the event is continued.
And thirdly, adding the target page element into the page element corresponding to the display area.
In practice, a target page element (iframe element) may be added to a page element (e.g., div element) corresponding to the above-mentioned presentation area by executing an apendchild () method in a preset script code. Among them, the apendchild () method can be used to add elements.
And fourthly, loading the target page element, and displaying the dynamic simulation diagram in a display area of the target page.
Here, after the target page element is added to the page element corresponding to the display area, the browser may load the target page element, so as to display the dynamic simulation diagram in the display area of the target page.
In the method provided by the embodiment of the application, the access path of the dynamic simulation diagram is acquired, the display area of the dynamic simulation diagram is set in the target page, the target page element for bearing the dynamic simulation diagram is created, the attribute value of the path attribute of the target page element is set as the access path, finally page data of the target page is loaded, the target page element is added in the page element corresponding to the display area, and the target page element is loaded, so that the dynamic simulation diagram is displayed in the display area of the target page. Therefore, the dynamic simulation graph generated by the target program (such as Genesis) can be displayed in the page, a user can browse the dynamic simulation graph in the page through the browser without searching and starting other systems or manually loading data of the dynamic simulation graph in other systems, and the convenience of operation when the user views the dynamic simulation graph is improved.
With further reference to FIG. 2, a flow 200 of yet another embodiment of a dynamic simulation diagram presentation method is illustrated. The process 200 of the dynamic simulation diagram display method comprises the following steps:
In this embodiment, an execution subject (e.g., an electronic device such as a desktop computer, a laptop computer, etc.) of the dynamic simulation graph presentation method may obtain an access path of the dynamic simulation graph. Here, the dynamic simulation graph may be generated by the target program. The target program may be computer aided manufacturing software, Genesis, in the form of a circuit board. The target program can simulate the oil field environment to generate an oil field environment dynamic simulation diagram. In practice, the above-mentioned oilfield environment dynamic simulation diagram may include, but is not limited to, at least one of the following: the oil field pipeline dynamic simulation diagram and the oil station site dynamic simulation diagram.
In this embodiment, the dynamic simulation graph generated by the target program may be first stored in the target server. The target server may be a server accessible by other devices, such as a data storage server. Then, the access path of the dynamic simulation graph in the target server can be obtained. Here, the access path of the dynamic simulation diagram in the target server is the storage path of the dynamic simulation diagram in the target server. The storage path may be specified by a user prior to storage of the dynamic simulation graph.
In this embodiment, the display area of the dynamic simulation diagram may be set in the target page by adding a page element. In practice, the target page may be an HTML page. At this time, the page element is an HTML element. In general, a page element may contain a start tag, element content, and an end tag. The start tag may include any number of attribute names of the tag and attribute values corresponding to the attribute names. The display area of the dynamic simulation diagram can be set in the target page by adding an HTML element (such as a div element) for defining a partition of the document in page data (i.e. HTML code) corresponding to the target page.
In this embodiment, attribute information (including an attribute name, an attribute value, and the like) of the above-described page element (e.g., div element) may be set. In practice, attributes of the div element may include, but are not limited to, a height attribute (i.e., a height attribute), a width attribute (i.e., a width attribute), and the like. Here, the attribute value of the height attribute may be set to the height of the presentation area of the dynamic simulation diagram, and the attribute value of the width attribute may be set to the width of the presentation area of the dynamic simulation diagram.
The height and the width may be preset as needed, and specific values of the height and the width are not limited in the embodiments of the present application.
Step 204 in this embodiment can refer to step 103 in the embodiment shown in fig. 1, and is not described here again.
And step 205, loading the page data of the target page through the browser, and rendering the target page.
In this embodiment, page data (e.g., HTML data) of the target page may be loaded by the browser, so that the target page is rendered by the browser.
It should be noted that the page data herein may not include the above target page element (i.e., iframe element). In practice, if the page is not rendered and the display area is not loaded in the page when the access path corresponding to the iframe element is loaded, the content acquired from the access path cannot be presented in the page at this time. Therefore, the page data without the target page element is loaded through the browser, the page is rendered at first, and the situation can be avoided.
And step 206, in response to detecting that the rendering of the target page is completed, clearing other page elements embedded in the page elements corresponding to the display area.
In this embodiment, whether the rendering of the target page is completed may be detected by listening for a target event (e.g., a window load event) indicating that the page loading is completed. In practice, the window. Therefore, if the event is monitored, the target page rendering can be determined to be completed; if the event is not monitored, the target page can be determined not to be rendered, and monitoring is continued. And in response to monitoring the target event, emptying page elements in the page data corresponding to the display area.
In practice, the clearing of other page elements embedded in the page element corresponding to the presentation area may be performed by executing a removeChild () method in a preset script code. The removeChild () method may be used to delete child nodes (e.g., page elements).
It should be noted that, after the rendering of the target page is completed, other page elements embedded in the page element (e.g., div element) corresponding to the display area are emptied, so that content duplication caused by loading multiple iframe elements can be prevented, and the loading speed of the browser is increased.
And step 207, adding the target page element to the page element corresponding to the display area.
In this embodiment, a target page element (iframe element) may be added to a page element (e.g., div element) corresponding to the above-mentioned presentation area by executing an apendchild () method in a preset script code. Among them, the apendchild () method can be used to add elements.
And step 208, loading the target page element, and displaying the dynamic simulation diagram in the display area.
In this embodiment, after adding a target page element to a page element corresponding to the display area, the target page element may be loaded through a browser and a dynamic simulation diagram may be rendered, so that the dynamic simulation diagram is displayed in the display area of the target page.
As can be seen from fig. 2, the process of the dynamic simulation diagram display method in this embodiment relates to a step of loading, by a browser, page data that does not include a target page element, so that a page is rendered first, and then loading the target page element to render a dynamic simulation diagram. Meanwhile, the process of the dynamic simulated diagram display method in the embodiment also relates to a step of emptying other page elements embedded in the page elements (such as div elements) corresponding to the display area after the target page is rendered, and then adding the target page elements (iframe elements) into the page elements, so that content duplication caused by loading of a plurality of iframe elements can be prevented, and meanwhile, the loading speed of the browser is increased.
With further reference to fig. 3, as an implementation of the method shown in the above-mentioned figures, the present application provides an embodiment of a dynamic simulation diagram demonstration apparatus, which corresponds to the embodiment of the method shown in fig. 1, and which can be applied to various electronic devices.
As shown in fig. 3, the dynamic simulation diagram display apparatus 300 according to the present embodiment includes: an acquisition unit 301 configured to acquire an access path of a dynamic simulation graph; a setting unit 302 configured to set a display area of the dynamic simulation diagram in a target page; a creating unit 303, configured to create a target page element for bearing the dynamic simulation graph, and set an attribute value of a path attribute of the target page element as the access path; the display unit 304 is configured to load page data of the target page, add the target page element to a page element corresponding to the display area, load the target page element, and display the dynamic simulation diagram in the display area of the target page.
In some optional implementations of this embodiment, the obtaining unit 301 is further configured to: storing the dynamic simulation diagram to a target server; and acquiring an access path of the dynamic simulation graph in the target server.
In some optional implementations of the present embodiment, the setting unit 302 is further configured to: adding page elements for defining document partitions into page data corresponding to a target page; setting the attribute information of the page element for defining the document partition, wherein the attribute information comprises the width and the height of the display area.
In some optional implementations of this embodiment, the apparatus further includes: a width setting unit configured to set a width attribute of the target page element, an attribute value of the width attribute being a width of the presentation area; and the height setting unit is configured to set a height attribute of the target page element, wherein the attribute value of the height attribute is the height of the display area.
In some optional implementations of the present embodiment, the presentation unit 304 is further configured to: loading page data of the target page through a browser, and rendering the target page; clearing other page elements embedded in the page elements corresponding to the display area in response to the detection that the target page rendering is completed; adding the target page element into the page element corresponding to the display area; and loading the target page element, and displaying the dynamic simulation diagram in the display area of the target page.
In some optional implementations of the present embodiment, the presentation unit 304 is further configured to: monitoring a target event for indicating page loading completion; and in response to monitoring the target event, emptying other page elements embedded in the page elements corresponding to the display area.
In some optional implementations of the embodiment, the dynamic simulation map is generated by a target program, and the target program includes computer-aided manufacturing software, Genesis; and the dynamic simulation diagram is an oil field environment dynamic simulation diagram, and the oil field environment dynamic simulation diagram comprises at least one of the following items: the oil field pipeline dynamic simulation diagram and the oil station site dynamic simulation diagram.
The dynamic simulation diagram display device comprises a processor and a memory, wherein the acquisition unit, the setting unit, the creating unit, the display unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the convenience of operation when a user views the dynamic simulation diagram is improved by adjusting the kernel parameters.
An embodiment of the present invention provides a storage medium, on which a program is stored, and the program implements the dynamic simulation diagram display method when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the dynamic simulation diagram display method is executed when the program runs.
The embodiment of the present invention provides an electronic device 40, which includes at least one processor 401, at least one memory 403 connected to the processor, and a bus 402; the processor and the memory complete mutual communication through a bus; the processor is used for calling the program instructions in the memory to execute the dynamic simulation diagram display method. The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: acquiring an access path of the dynamic simulation diagram; setting a display area of the dynamic simulation diagram in a target page; creating a target page element for bearing the dynamic simulation diagram, and setting an attribute value of a path attribute of the target page element as the access path; and loading the page data of the target page, adding the target page element in the page element corresponding to the display area, loading the target page element, and displaying the dynamic simulation diagram in the display area of the target page.
Optionally, the obtaining an access path of the dynamic simulation diagram includes: storing the dynamic simulation diagram to a target server; and acquiring an access path of the dynamic simulation graph in the target server.
Optionally, the setting of the display area of the dynamic simulation diagram in the target page includes: adding page elements for defining document partitions into page data corresponding to a target page; setting attribute information of the page elements for defining the document partition, wherein the attribute information comprises the width and the height of the display area.
Optionally, the program, when executed on a data processing device, is adapted to perform a procedure for initializing the following method steps: setting a width attribute of the target page element, wherein the attribute value of the width attribute is the width of the display area; and setting a height attribute of the target page element, wherein the attribute value of the height attribute is the height of the display area.
Optionally, the loading the page data of the target page, adding the target page element to the page element corresponding to the display area, loading the target page element, and displaying the dynamic simulation graph in the display area of the target page includes: loading page data of the target page through a browser, and rendering the target page; clearing other page elements embedded in the page elements corresponding to the display area in response to detecting that the target page rendering is completed; adding the target page element to a page element corresponding to the display area; and loading the target page element, and displaying the dynamic simulation diagram in the display area of the target page.
Optionally, the emptying, in response to detecting that the rendering of the target page is completed, other page elements embedded in the page element corresponding to the display area includes: monitoring a target event for indicating page loading completion; and in response to the monitoring of the target event, emptying other page elements embedded in the page elements corresponding to the display area.
Optionally, the dynamic simulation diagram is generated by a target program, and the target program comprises computer-aided manufacturing software Genesis; and the dynamic simulation diagram is an oil field environment dynamic simulation diagram, and the oil field environment dynamic simulation diagram comprises at least one of the following items: the oil field pipeline dynamic simulation diagram and the oil station site dynamic simulation diagram.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that 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 an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (10)
1. A dynamic simulation diagram display method is characterized by comprising the following steps:
acquiring an access path of the dynamic simulation diagram;
setting a display area of the dynamic simulation diagram in a target page;
creating a target page element for bearing the dynamic simulation diagram, and setting an attribute value of a path attribute of the target page element as the access path;
and loading the page data of the target page, adding the target page element in the page element corresponding to the display area, loading the target page element, and displaying the dynamic simulation diagram in the display area of the target page.
2. The method of claim 1, wherein obtaining the access path of the dynamic simulation graph comprises:
storing the dynamic simulation diagram to a target server;
and acquiring an access path of the dynamic simulation graph in the target server.
3. The method according to claim 1, wherein the setting of the display area of the dynamic simulation diagram in the target page comprises:
adding page elements for defining document partitions into page data corresponding to a target page;
setting attribute information of the page elements for defining the document partition, wherein the attribute information comprises the width and the height of the display area.
4. The method of claim 3, wherein after the creating a target page element for carrying the dynamic simulation graph, the method further comprises:
setting a width attribute of the target page element, wherein the attribute value of the width attribute is the width of the display area;
and setting a height attribute of the target page element, wherein the attribute value of the height attribute is the height of the display area.
5. The method according to claim 1, wherein the loading the page data of the target page, adding the target page element to the page element corresponding to the display area, loading the target page element, and displaying the dynamic simulation graph in the display area of the target page comprises:
loading page data of the target page through a browser, and rendering the target page;
clearing other page elements embedded in the page elements corresponding to the display area in response to detecting that the target page rendering is completed;
adding the target page element to a page element corresponding to the display area;
and loading the target page element, and displaying the dynamic simulation diagram in the display area of the target page.
6. The method of claim 5, wherein emptying other page elements embedded in the page element corresponding to the presentation area in response to detecting that the target page rendering is complete comprises:
monitoring a target event for indicating page loading completion;
and in response to the monitoring of the target event, emptying other page elements embedded in the page elements corresponding to the display area.
7. The method of any one of claims 1-6, wherein the dynamic simulation graph is generated by an object program comprising computer-aided manufacturing software, Genesis; and the dynamic simulation diagram is an oil field environment dynamic simulation diagram, and the oil field environment dynamic simulation diagram comprises at least one of the following items: the oil field pipeline dynamic simulation diagram and the oil station site dynamic simulation diagram.
8. A dynamic simulation diagram presentation apparatus, the apparatus comprising:
an acquisition unit configured to acquire an access path of the dynamic simulation graph;
a setting unit configured to set a display area of the dynamic simulation diagram in a target page;
the creating unit is configured to create a target page element for bearing the dynamic simulation diagram, and set an attribute value of a path attribute of the target page element as the access path;
the display unit is configured to load page data of the target page, add the target page element to a page element corresponding to the display area, load the target page element, and display the dynamic simulation diagram in the display area of the target page.
9. An electronic device comprises at least one processor, at least one memory connected with the processor, and a bus; the processor and the memory complete mutual communication through the bus; the processor is configured to call program instructions in the memory to perform the dynamic simulation diagram presentation method of any of claims 1-7.
10. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910984213.5A CN112667934A (en) | 2019-10-16 | 2019-10-16 | Dynamic simulation diagram display method and device, electronic equipment and computer readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910984213.5A CN112667934A (en) | 2019-10-16 | 2019-10-16 | Dynamic simulation diagram display method and device, electronic equipment and computer readable medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112667934A true CN112667934A (en) | 2021-04-16 |
Family
ID=75400569
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910984213.5A Pending CN112667934A (en) | 2019-10-16 | 2019-10-16 | Dynamic simulation diagram display method and device, electronic equipment and computer readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112667934A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114020230A (en) * | 2021-11-09 | 2022-02-08 | 西安热工研究院有限公司 | Method, system, device and medium for displaying dynamic elements in VR panorama |
CN115309310A (en) * | 2022-08-31 | 2022-11-08 | 安世亚太科技股份有限公司 | Simulation graph display method and device and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070192686A1 (en) * | 2006-02-15 | 2007-08-16 | Microsoft Corporation | Figure sizing and positioning on dynamic pages |
CN104331474A (en) * | 2014-11-03 | 2015-02-04 | 百度在线网络技术(北京)有限公司 | Page processing method and device |
CN104850415A (en) * | 2014-02-13 | 2015-08-19 | 腾讯科技(深圳)有限公司 | Method and apparatus for loading pages |
CN108427597A (en) * | 2018-03-16 | 2018-08-21 | 崔红保 | Accelerate the method and device of page rendering |
CN109344352A (en) * | 2018-08-09 | 2019-02-15 | 广州优视网络科技有限公司 | Page loading method, device and electronic equipment |
-
2019
- 2019-10-16 CN CN201910984213.5A patent/CN112667934A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070192686A1 (en) * | 2006-02-15 | 2007-08-16 | Microsoft Corporation | Figure sizing and positioning on dynamic pages |
CN104850415A (en) * | 2014-02-13 | 2015-08-19 | 腾讯科技(深圳)有限公司 | Method and apparatus for loading pages |
CN104331474A (en) * | 2014-11-03 | 2015-02-04 | 百度在线网络技术(北京)有限公司 | Page processing method and device |
CN108427597A (en) * | 2018-03-16 | 2018-08-21 | 崔红保 | Accelerate the method and device of page rendering |
CN109344352A (en) * | 2018-08-09 | 2019-02-15 | 广州优视网络科技有限公司 | Page loading method, device and electronic equipment |
Non-Patent Citations (2)
Title |
---|
宋顺林: "《计算机动画技术》", 30 November 1995, 南京大学出版社, pages: 40 - 44 * |
王震江: "《XML程序设计》", 31 August 2015, 中国铁道出版社, pages: 274 - 281 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114020230A (en) * | 2021-11-09 | 2022-02-08 | 西安热工研究院有限公司 | Method, system, device and medium for displaying dynamic elements in VR panorama |
CN114020230B (en) * | 2021-11-09 | 2024-01-19 | 西安热工研究院有限公司 | Method, system, equipment and medium for displaying dynamic elements in VR panorama |
CN115309310A (en) * | 2022-08-31 | 2022-11-08 | 安世亚太科技股份有限公司 | Simulation graph display method and device and electronic equipment |
CN115309310B (en) * | 2022-08-31 | 2024-02-02 | 安世亚太科技股份有限公司 | Simulation graphic display method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110968824B (en) | Page data processing method and device | |
CN110069683B (en) | Method and device for crawling data based on browser | |
CN104077387A (en) | Webpage content display method and browser device | |
CN111680253A (en) | Page application data packet generation method and device, computer equipment and storage medium | |
US20170242665A1 (en) | Generation of hybrid enterprise mobile applications in cloud environment | |
CN106354483B (en) | Data processing method and device and electronic equipment | |
US9294538B1 (en) | Dynamic content injection | |
CN109460546A (en) | List generation method, device and electronic equipment | |
CN110968314B (en) | Page generation method and device | |
CN112612982A (en) | Webpage preloading method and device and computer equipment | |
CN107015986B (en) | Method and device for crawling webpage by crawler | |
CN113885935A (en) | Resource packaging method and device, electronic equipment and computer readable storage medium | |
CN112667934A (en) | Dynamic simulation diagram display method and device, electronic equipment and computer readable medium | |
CN105989126A (en) | Webpage displaying method and device | |
CN107391534B (en) | Page display method, page file return method, page display device, page file return device and computer storage medium | |
CN110365776B (en) | Picture batch downloading method and device, electronic equipment and storage medium | |
CN112384940B (en) | Mechanism for WEB crawling of e-commerce resource pages | |
CN103544271B (en) | Load Image in a kind of browser the method and apparatus for processing window | |
JP6505849B2 (en) | Generation of element identifier | |
CN112100036B (en) | Page performance monitoring method and system based on PaaS front-end engine | |
CN113742551A (en) | Dynamic data capture method based on script and puppeteer | |
US11443098B1 (en) | Federated recursive user interface element rendering | |
CN107704464B (en) | Method and device for analyzing path of static resource | |
CN110020297A (en) | A kind of loading method of web page contents, apparatus and system | |
CN112579947A (en) | Webpage element graph intercepting method and device and electronic equipment |
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 |