CN114528615A - Method, device and equipment for displaying station yard graph and storage medium - Google Patents

Method, device and equipment for displaying station yard graph and storage medium Download PDF

Info

Publication number
CN114528615A
CN114528615A CN202111608785.7A CN202111608785A CN114528615A CN 114528615 A CN114528615 A CN 114528615A CN 202111608785 A CN202111608785 A CN 202111608785A CN 114528615 A CN114528615 A CN 114528615A
Authority
CN
China
Prior art keywords
equipment
primitive
primitives
preset
tag
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
CN202111608785.7A
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.)
Tonghao Guangdong Hong Kong Macao Guangzhou Transportation Technology Co ltd
Original Assignee
Tonghao Guangdong Hong Kong Macao Guangzhou Transportation 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 Tonghao Guangdong Hong Kong Macao Guangzhou Transportation Technology Co ltd filed Critical Tonghao Guangdong Hong Kong Macao Guangzhou Transportation Technology Co ltd
Priority to CN202111608785.7A priority Critical patent/CN114528615A/en
Publication of CN114528615A publication Critical patent/CN114528615A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Civil Engineering (AREA)
  • Structural Engineering (AREA)
  • Computational Mathematics (AREA)
  • Architecture (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a display method, a device, equipment and a storage medium of a station yard graph, wherein a preset basic primitive is combined and transformed to obtain an equipment primitive, an xml tag is added to the equipment primitive to obtain a target equipment primitive, and the xml tag is used for describing display state change parameters of the equipment primitive and/or describing equipment information of equipment corresponding to the equipment primitive, so that the target equipment primitive displays different states to facilitate subsequent dynamic display; and then, based on a plurality of target equipment primitives, generating a site map file of the site map, loading the site map file to a preset extensible canvas, dynamically displaying the site map by presetting the extensible canvas, wherein the preset extensible canvas comprises a plurality of interactive operation interfaces, so that the site map can be dynamically displayed, and meanwhile, the interactive operation interfaces of the preset extensible canvas can be utilized for user interaction, and meanwhile, the requirement of real-time display and user interaction is met.

Description

Method, device and equipment for displaying station yard graph and storage medium
Technical Field
The present application relates to the field of rail transit technologies, and in particular, to a method, an apparatus, a device, and a storage medium for displaying a station yard graph.
Background
The rail transit system station map is a core display interface of a rail transit system, comprises all important equipment of the whole rail transit, such as signal lamps, turnouts, trains and the like, and is usually displayed in a large screen of each rail transit command center so as to visually and clearly display the information of each equipment of the whole rail transit line and provide good sensory experience for users.
At present, a traditional station yard graph is drawn through AutoCAD software, the obtained station yard graph is usually a static picture, the current working state of each device cannot be dynamically displayed in real time, and part of the station yard graphs only provide a display function, so that user interaction is difficult. It can be seen that the display mode of the current station map cannot adapt to the current real-time display and user interaction requirements.
Disclosure of Invention
The application provides a display method, a display device and a storage medium of a station yard graph, which aim to solve the technical problem that the current display mode of the station yard graph cannot meet the current real-time display and user interaction requirements.
In order to solve the above technical problem, an embodiment of the present application provides a method for displaying a station yard graph, including:
combining and transforming preset basic primitives to obtain equipment primitives;
adding an xml tag to the equipment primitive to obtain a target equipment primitive, wherein the xml tag is used for describing display state change parameters of the equipment primitive and/or describing equipment information of equipment corresponding to the equipment primitive;
generating a station yard graph file of the station yard graph based on the plurality of target equipment primitives;
and loading the site map file to a preset extensible canvas, and dynamically displaying the site map in the preset extensible canvas, wherein the preset extensible canvas comprises a plurality of interactive operation interfaces.
In this embodiment, a preset basic primitive is combined and transformed to obtain an equipment primitive, and an xml tag is added to the equipment primitive to obtain a target equipment primitive, where the xml tag is used to describe a display state change parameter of the equipment primitive or describe equipment information of equipment corresponding to the equipment primitive, so that the target equipment primitive displays different states, thereby facilitating subsequent dynamic display; and then generating a station yard graph file of the station yard graph based on the plurality of target equipment primitives, loading the station yard graph file to a preset extensible canvas, dynamically displaying the station yard graph in the preset extensible canvas, wherein the preset extensible canvas comprises a plurality of interactive operation interfaces, so that the station yard graph can be dynamically displayed, and simultaneously, the interactive operation interfaces of the preset extensible canvas can be used for user interaction, and the requirement of real-time display and user interaction can be met.
In an embodiment, loading the site map file into a preset extensible canvas, and dynamically displaying the site map in the preset extensible canvas includes:
loading the site map file to a preset extensible canvas so as to display the site map on the preset extensible canvas;
determining an xml tag corresponding to the current equipment state based on the current equipment state of each equipment;
and dynamically refreshing the site graph in the preset extensible canvas according to the xml label corresponding to the current equipment state.
In the embodiment, the site diagram is displayed on the expandable canvas, and compared with the current static display, the embodiment can enable a user to interact with the graphics primitives; the current equipment state of the equipment is utilized to dynamically refresh the preset extensible canvas so as to meet the requirement of dynamically displaying the latest station diagram in real time and improve the sensory experience of the user.
In an embodiment, adding an xml tag to a device primitive to obtain a target device primitive includes:
based on an xml format of Scalable Vector Graphics (SVG), adding a state display tag to the equipment primitive according to multiple equipment states of the equipment primitive to obtain an intermediate equipment primitive;
and configuring the attribute tag of the intermediate device graphic element based on the xml format of Scalable Vector Graphics (SVG) to obtain the target device graphic element.
The embodiment utilizes the SVG technology to set the graphics primitives into scalable vector graphics, so that the graphics primitives can be modified and configured with data, thereby reflecting the working state of each device in the current station diagram in real time, and simultaneously realizing interaction with a user during display, thereby meeting the interaction requirements of the user.
In an embodiment, the state display tags include a base primitive tag and an action tag, and the adding the state display tags to the device primitives according to multiple device states of the device primitives based on an xml format of Scalable Vector Graphics (SVG) to obtain intermediate device primitives includes:
adding basic primitive labels to the equipment primitives based on an xml format of SVG, wherein the basic primitive labels are used for representing the basic primitives of the equipment primitives;
adding an action tag to the equipment primitive according to various equipment states of the equipment primitive to obtain the intermediate equipment primitive, wherein the action tag comprises a plurality of operation tags, the action tag is used for representing the equipment primitive to operate, and the operation tag is used for describing operation contents corresponding to the equipment states.
In one embodiment, configuring attribute tags of the intermediate device primitives based on an xml format of scalable vector graphics, SVG, to obtain the target device primitives, includes:
and responding to target configuration parameters input by a user, configuring attribute tags of the intermediate device primitives based on an xml format of Scalable Vector Graphics (SVG), and obtaining the target device primitives, wherein the device information comprises device ID information, device name information and device feature information.
In an embodiment, the combining and transforming a preset basic primitive to obtain an equipment primitive includes:
responding to a primitive size proportion parameter input by a user, and carrying out size transformation on the basic primitives to obtain a plurality of intermediate basic primitives;
and responding to the primitive position parameters input by the user, and adjusting the positions of the plurality of intermediate basic primitives to obtain the equipment primitives.
In an embodiment, the loading the site map file to a preset extensible canvas, and after the preset extensible canvas and the dynamic display of the site map, further comprising:
responding to the primitive interactive operation acting on the preset extensible canvas, and calling an interactive operation interface;
and executing a preset interactive program corresponding to the primitive interactive operation based on the interactive operation interface.
In a second aspect, an embodiment of the present application provides a station yard chart display apparatus, including:
the combination module is used for combining and transforming the preset basic primitives to obtain equipment primitives;
the adding module is used for adding an xml tag to the equipment primitive to obtain a target equipment primitive, wherein the xml tag is used for describing a display state change parameter of the equipment primitive and/or describing equipment information of equipment corresponding to the equipment primitive;
the generating module is used for generating a station field graph file of the station field graph based on a plurality of target equipment primitives;
and the display module is used for loading the station yard graph file to a preset extensible canvas, dynamically displaying the station yard graph in the preset extensible canvas, and the preset extensible canvas comprises a plurality of interactive operation interfaces.
In a third aspect, an embodiment of the present application provides a computer device, including a processor and a memory, where the memory is used to store a computer program, and the computer program, when executed by the processor, implements the method for displaying a station yard graph according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the method for displaying a station yard map according to the first aspect.
Please refer to the relevant description of the first aspect for the beneficial effects of the second to fourth aspects, which are not repeated herein.
Drawings
Fig. 1 is a schematic flow chart of a method for displaying a station yard chart according to an embodiment of the present disclosure;
FIG. 2 is a diagram of a base primitive provided in an embodiment of the present application;
FIG. 3 is a state diagram of a device primitive provided in an embodiment of the present application;
FIG. 4 is a diagram illustrating another state of a device primitive provided in an embodiment of the present application;
FIG. 5 is a schematic view of a configuration interface for attribute information provided in an embodiment of the present application;
FIG. 6 is a schematic view of another configuration interface for attribute information provided in an embodiment of the present application;
FIG. 7 is a diagram of a canvas for primitive interaction operations provided in an embodiment of the present application;
fig. 8 is a schematic flow chart of a display device of a station yard chart according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
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 only a part of the embodiments of the present application, and not all of the 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.
As described in the related art, the conventional station yard graph is drawn by AutoCAD software, the obtained station yard graph is a static picture, the current working state of each device cannot be dynamically displayed in real time, and part of the station yard graph only provides a display function, so that user interaction is difficult. It can be seen that the display mode of the current station yard graph cannot adapt to the current real-time display and user interaction requirements.
Therefore, the embodiment of the application provides a method, a device, equipment and a storage medium for displaying a station yard graph, wherein a preset basic primitive is combined and transformed to obtain an equipment primitive, an xml tag and attribute information are added to the equipment primitive to obtain a target equipment primitive, the xml tag is used for describing display state change parameters of the equipment primitive, and the attribute information is used for describing equipment information of equipment corresponding to the equipment primitive, so that the target equipment primitive displays different states, and is convenient for subsequent dynamic display; and then generating a station yard graph file of the station yard graph based on a plurality of target equipment primitives, and loading the station yard graph file to a preset extensible canvas, dynamically displaying the station yard graph by the preset extensible canvas, wherein the preset extensible canvas comprises a plurality of interactive operation interfaces, so that the station yard graph can be dynamically displayed, and meanwhile, the interactive operation interfaces of the preset extensible canvas can be utilized for user interaction, and the requirements of real-time display and user interaction are met.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a method for displaying a station yard chart according to an embodiment of the present disclosure. The display method of the embodiment of the application can be applied to computer equipment, including but not limited to smart phones, notebook computers, tablet computers, desktop computers and the like. As shown in fig. 1, the method for displaying a station yard chart of the present embodiment includes steps S101 to S104, which are detailed as follows:
and S101, combining and transforming preset basic primitives to obtain equipment primitives.
In this step, the device primitives are generated by primitive production software. Such as the base primitives shown in fig. 2, including, but not limited to, line segments, rectangles, circles, and the like. The combining and transforming includes, but is not limited to, primitive stitching, position adjustment, layer adjustment, size transformation, and rotation transformation.
Optionally, responding to a primitive size proportion parameter input by a user, and performing size transformation on the basic primitive to obtain a plurality of intermediate basic primitives; and responding to the primitive position parameters input by the user, and adjusting the positions of the plurality of intermediate basic primitives to obtain the equipment primitives.
In this alternative embodiment, the equipment primitives include, but are not limited to, switch primitives, train primitives, traffic signal primitives, and stop primitives. The equipment primitives shown in fig. 3 are subjected to size transformation and position adjustment to make the three parts (cars, car heads and tracks) of the train primitives shown in fig. 3 more consistent. It will be appreciated that in other embodiments, more or fewer steps may be included to generate a device primitive.
And step S102, adding an xml tag to the equipment primitive to obtain a target equipment primitive, wherein the xml tag is used for describing display state change parameters of the equipment primitive and/or describing equipment information of equipment corresponding to the equipment primitive.
In this embodiment, the xml tag may be a data tag configured based on the xml format of scalable vector graphics SVG, and the display status change parameter includes display parameters of the device in different statuses, for example, the train display color is off-white when the train is in normal operation, and the train display color is red when the train is in failure. The device information includes, but is not limited to, device ID information, device name, and device characteristic information, which may be, for example, a train type, a device identification code, and the like.
And step S103, generating a station yard graph file of the station yard graph based on the plurality of target equipment primitives.
In this step, a plurality of target device primitives are combined and transformed to obtain a station yard graph, and the station yard graph is output as a station yard graph file, wherein the station yard graph file can be an SVG file. The combination and transformation includes, but is not limited to, size transformation, position adjustment, rotation transformation, and hierarchy adjustment.
And step S104, loading the site diagram file to a preset extensible canvas, dynamically displaying the site diagram in the preset extensible canvas, wherein the preset extensible canvas comprises a plurality of interactive operation interfaces.
In this step, the extensible canvas is preset as a display screen capable of performing interactive operation. And loading the SVG file of the station yard graph into software operated by a preset extensible canvas, and dynamically displaying the station yard graph on the canvas. Optionally, the primitive interaction operations corresponding to the interaction operation interface include a double-click operation, a move-in primitive operation, a move-out primitive operation, and the like. The dynamic display and interactive operation are carried out through the station yard graph, and the interactive requirements of the user and the station yard graph can be met.
Optionally, the loading the site map file to a preset extensible canvas, and after the preset extensible canvas dynamically displays the site map, further including:
responding to the primitive interactive operation acting on the preset extensible canvas, and calling the interactive operation interface;
and executing a preset interactive program corresponding to the primitive interactive operation based on the interactive operation interface.
In this optional embodiment, the bottom layer of the site map is a canvas containing a plurality of device primitives, a mouse performs hit operation on the device primitives when moving in the canvas, if the primitives are hit, corresponding events are triggered, corresponding interfaces are called, and the content of the corresponding events can be customized through the implementation interfaces.
Illustratively, as shown in fig. 7, the device primitive is right-clicked through a mouse to trigger the invoking of the interactive operation interface, and the custom menu is displayed. When the equipment primitive R is selected to be moved in, the interactive operation interface adds the equipment primitive R to the preset extensible canvas. It will be appreciated that for other operation options in the custom menu, the interactive operation interface will execute the interactive program and make dynamic display operation changes on the preset extensible canvas.
In an embodiment, based on the embodiment shown in fig. 1, the step S102 includes:
based on an xml format of Scalable Vector Graphics (SVG), adding a state display tag to the equipment primitive according to multiple equipment states of the equipment primitive to obtain an intermediate equipment primitive;
and configuring the attribute tag of the intermediate device graphic element based on the xml format of Scalable Vector Graphics (SVG) to obtain the target device graphic element.
In this embodiment, the XML tags include status display tags and attribute tags, and the basic primitives in different states are subjected to tag configuration by adding new tags in an SVG-based XML format, so as to implement changes of the device primitives in different states. In which, because the change of the basic primitive is finally expressed as a part of the change of the equipment primitive, as shown in fig. 3 and 4, taking a train in a station yard graph as an example, fig. 3 and 4 respectively correspond to two different states of the train primitive. When the tag state of the equipment primitive is configured, the display state of the base primitive is configured, for example, different colors of the base primitive are configured when the equipment state is different, that is, the train display colors in fig. 3 and fig. 4 are different.
It should be noted that the device primitives may be multiplexed during the generation of other site maps.
Optionally, the state display tag includes a basic primitive tag and an action tag, and the adding the state display tag to the device primitive according to multiple device states of the device primitive based on an xml format of scalable vector graphics SVG to obtain an intermediate device primitive includes: adding basic primitive labels to the equipment primitives based on an xml format of SVG, wherein the basic primitive labels are used for representing the basic primitives of the equipment primitives; adding an action tag to the equipment primitive according to various equipment states of the equipment primitive to obtain the intermediate equipment primitive, wherein the action tag comprises a plurality of operation tags, the action tag is used for representing the equipment primitive to operate, and the operation tag is used for describing operation contents corresponding to the equipment states.
The basic primitive tag may be a path tag, the action tag may be an action tag, the action tag includes multiple operation tags, the action tag is used to represent that the device primitive performs an operation, and the operation tag is used to describe operation content corresponding to the device state, for example, to update a display color of the device primitive to red.
In this optional embodiment, taking the train primitive shown in fig. 3 as an example, the train primitive includes 3 portions of a car primitive, and a track primitive, and then a < path > tag is added to the car primitive, and the track primitive, respectively, to represent the 3 portions of the train primitive; the < Action > tag represents the display operation of 3 parts in the equipment graphic element, and the < Action > tag comprises a plurality of < operation > tags to represent specific operation content.
Optionally, in response to a target configuration parameter input by a user, configuring an attribute tag of the intermediate device primitive based on an xml format of scalable vector graphics SVG to obtain the target device primitive, where the device information includes device ID information, device name information, and device feature information.
In this alternative embodiment, as shown in fig. 5, the train on the left side of fig. 5 is a primitive in the yard graph, and the attribute information (i.e., attribute tag) of the primitive of the train is on the right side. By default, the train primitive will be accompanied by Device ID attribute Device ID information and DeviceName attribute, i.e., Device ID information and Device name information. As shown in fig. 6, proprietary attributes, i.e. device information, such as the device identification list and type shown on the right side of fig. 6, may be added to the train element.
In an embodiment, based on the embodiment shown in fig. 1, the step S104 includes:
loading the station yard graph file to the preset extensible canvas so as to display the station yard graph on the preset extensible canvas;
determining the xml tag corresponding to the current equipment state based on the current equipment state of each equipment;
and dynamically refreshing the site graph in the preset extensible canvas according to the xml tag corresponding to the current equipment state.
In this embodiment, the current device state of each device is obtained through the traffic track system, the xml tag of the corresponding device is determined according to the corresponding relationship between the device state and the xml tag, and the canvas is updated by using the xml tag. For example, when the current equipment state of the train A is a train fault, an xml tag B of the train A is determined from a station diagram file, then an < operation > tag C corresponding to the train fault in the xml tag is determined, the display color of the train primitive of the train A is updated to be red according to the < operation > tag C, and meanwhile, the preset expandable canvas is dynamically refreshed, so that the purpose of dynamically refreshing and displaying is achieved.
In order to implement the display method of the station yard graph corresponding to the above method embodiment, corresponding functions and technical effects are realized. Referring to fig. 8, fig. 8 is a block diagram illustrating a structure of a station yard chart display apparatus according to an embodiment of the present application. For convenience of explanation, only the parts related to the present embodiment are shown, and the station diagram display apparatus provided in the embodiment of the present application includes:
the combination module 201 is configured to combine and transform a preset basic primitive to obtain an equipment primitive;
an adding module 202, configured to add an xml tag to the device primitive to obtain a target device primitive, where the xml tag is used to describe a display state change parameter of the device primitive and/or describe device information of a device corresponding to the device primitive;
a generating module 203, configured to generate a site map file of a site map based on a plurality of target device primitives;
the display module 204 is configured to load the site diagram file into a preset extensible canvas, and the preset extensible canvas is used for dynamically displaying the site diagram, where the preset extensible canvas includes a plurality of interactive operation interfaces.
In one embodiment, the display module 204 includes:
the loading unit is used for loading the station yard graph file to the preset extensible canvas so as to display the station yard graph on the preset extensible canvas;
a determining unit, configured to determine, based on a current device state of each device, the xml tag corresponding to the current device state;
and the refreshing unit is used for dynamically refreshing the site diagram in the preset extensible canvas according to the xml label corresponding to the current equipment state.
In one embodiment, the adding module 202 includes:
the adding unit is used for adding a display state label to the equipment primitive according to multiple equipment states of the equipment primitive based on an xml format of Scalable Vector Graphics (SVG) to obtain an intermediate equipment primitive;
and the configuration unit is used for configuring the attribute tag of the intermediate device primitive based on the xml format of Scalable Vector Graphics (SVG) to obtain the target device primitive.
In one embodiment, the status display tag includes a base primitive tag and an action tag, and the adding unit includes:
a first adding subunit, configured to add, based on an xml format of SVG, basic primitive tags to the device primitives, where the basic primitive tags are used to represent each of the basic primitives of the device primitives;
and the second adding subunit is configured to add an action tag to the device primitive according to multiple device states of the device primitive to obtain the intermediate device primitive, where the action tag includes multiple operation tags, the action tag is used to represent that the device primitive is operated, and the operation tag is used to describe operation content corresponding to the device state.
In an embodiment, the configuration unit is specifically configured to:
and responding to target configuration parameters input by a user, configuring attribute tags of the intermediate device primitives based on an xml format of Scalable Vector Graphics (SVG), and obtaining the target device primitives, wherein the device information comprises device ID information, device name information and device feature information.
In one embodiment, the combining module 201 includes:
the transformation unit is used for responding to a primitive size proportion parameter input by a user and carrying out size transformation on the basic primitives to obtain a plurality of intermediate basic primitives;
and the adjusting unit is used for responding to the primitive position parameters input by the user and adjusting the positions of the plurality of intermediate basic primitives to obtain the equipment primitives.
In one embodiment, the display apparatus further comprises:
the calling module is used for responding to the primitive interactive operation acted on the preset extensible canvas and calling the interactive operation interface;
and the execution module is used for executing a preset interactive program corresponding to the primitive interactive operation based on the interactive operation interface.
The station diagram display device can implement the station diagram display method of the method embodiment. The alternatives in the above-described method embodiments are also applicable to this embodiment and will not be described in detail here. The rest of the embodiments of the present application may refer to the contents of the above method embodiments, and in this embodiment, details are not described again.
Fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 9, the computer device 3 of this embodiment includes: at least one processor 30 (only one shown in fig. 9), a memory 31, and a computer program 32 stored in the memory 31 and executable on the at least one processor 30, the processor 30 implementing the steps of any of the above-described method embodiments when executing the computer program 32.
The computer device 3 may be a computing device such as a smart phone, a tablet computer, a desktop computer, and a cloud server. The computer device may include, but is not limited to, a processor 30, a memory 31. Those skilled in the art will appreciate that fig. 9 is merely an example of the computer device 3, and does not constitute a limitation of the computer device 3, and may include more or less components than those shown, or combine some of the components, or different components, such as input and output devices, network access devices, etc.
The Processor 30 may be a Central Processing Unit (CPU), and the Processor 30 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 31 may in some embodiments be an internal storage unit of the computer device 3, such as a hard disk or a memory of the computer device 3. The memory 31 may also be an external storage device of the computer device 3 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the computer device 3. Further, the memory 31 may also include both an internal storage unit and an external storage device of the computer device 3. The memory 31 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 31 may also be used to temporarily store data that has been output or is to be output.
In addition, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in any of the method embodiments described above.
The embodiments of the present application provide a computer program product, which when running on a terminal device, enables the terminal device to implement the steps in the above method embodiments when executed.
In several embodiments provided herein, it will be understood that each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a terminal device to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
The above-mentioned embodiments are provided to further explain the objects, technical solutions and advantages of the present application in detail, and it should be understood that the above-mentioned embodiments are only examples of the present application and are not intended to limit the scope of the present application. It should be understood that any modifications, equivalents, improvements and the like, which come within the spirit and principle of the present application, may occur to those skilled in the art and are intended to be included within the scope of the present application.

Claims (10)

1. A method for displaying a station yard graph is characterized by comprising the following steps:
combining and transforming preset basic primitives to obtain equipment primitives;
adding an xml tag to the equipment primitive to obtain a target equipment primitive, wherein the xml tag is used for describing display state change parameters of the equipment primitive and/or describing equipment information of equipment corresponding to the equipment primitive;
generating a station yard graph file of the station yard graph based on a plurality of target equipment primitives;
and loading the station yard graph file to a preset extensible canvas, wherein the preset extensible canvas is used for dynamically displaying the station yard graph, and the preset extensible canvas comprises a plurality of interactive operation interfaces.
2. The method for displaying the site map according to claim 1, wherein the loading the site map file to a preset extensible canvas and dynamically displaying the site map on the preset extensible canvas comprises:
loading the station yard graph file to the preset extensible canvas so as to display the station yard graph on the preset extensible canvas;
determining the xml tag corresponding to the current equipment state based on the current equipment state of each equipment;
and dynamically refreshing the site graph in the preset extensible canvas according to the xml tag corresponding to the current equipment state.
3. The method for displaying the station yard graph as claimed in claim 1, wherein said adding xml tags to the equipment primitives to obtain target equipment primitives, comprises:
based on an xml format of Scalable Vector Graphics (SVG), adding a state display tag to the equipment primitive according to multiple equipment states of the equipment primitive to obtain an intermediate equipment primitive;
and configuring the attribute tag of the intermediate device graphic element based on the xml format of Scalable Vector Graphics (SVG) to obtain the target device graphic element.
4. A method for displaying a station yard graph as claimed in claim 3, wherein said status display labels comprise a base primitive label and an action label, and said SVG scalable vector graphics (xml) format adds a status display label to said device primitive according to a plurality of device statuses of said device primitive to obtain an intermediate device primitive, comprising:
adding basic primitive labels to the equipment primitives based on an xml format of SVG, wherein the basic primitive labels are used for representing the basic primitives of the equipment primitives;
adding an action tag to the equipment primitive according to various equipment states of the equipment primitive to obtain the intermediate equipment primitive, wherein the action tag comprises a plurality of operation tags, the action tag is used for representing the equipment primitive to operate, and the operation tag is used for describing operation contents corresponding to the equipment states.
5. A method for displaying a station yard graph as claimed in claim 3, wherein said configuring the attribute labels of said intermediate device primitives to obtain said target device primitives based on the xml format of Scalable Vector Graphics (SVG) comprises:
and responding to target configuration parameters input by a user, configuring attribute tags of the intermediate device primitives based on an xml format of Scalable Vector Graphics (SVG), and obtaining the target device primitives, wherein the device information comprises device ID information, device name information and device feature information.
6. A method as claimed in any one of claims 1 to 5, wherein the step of combining and transforming the preset basic primitives to obtain the device primitives includes:
responding to a primitive size proportion parameter input by a user, and carrying out size transformation on the basic primitives to obtain a plurality of intermediate basic primitives;
and responding to the primitive position parameters input by the user, and adjusting the positions of the plurality of intermediate basic primitives to obtain the equipment primitives.
7. The method for displaying the site map according to any one of claims 1 to 5, wherein the loading the site map file into a preset extensible canvas and after the preset extensible canvas dynamically displays the site map, further comprising:
responding to the primitive interactive operation acting on the preset extensible canvas, and calling the interactive operation interface;
and executing a preset interactive program corresponding to the primitive interactive operation based on the interactive operation interface.
8. A display device for a station yard map, comprising:
the combination module is used for combining and transforming the preset basic primitives to obtain equipment primitives;
the adding module is used for adding an xml tag to the equipment primitive to obtain a target equipment primitive, wherein the xml tag is used for describing display state change parameters of the equipment primitive and/or describing equipment information of equipment corresponding to the equipment primitive;
the generating module is used for generating a station field graph file of the station field graph based on a plurality of target equipment primitives;
and the display module is used for loading the site map file to a preset extensible canvas, the preset extensible canvas is used for dynamically displaying the site map, and the preset extensible canvas comprises a plurality of interactive operation interfaces.
9. A computer device comprising a processor and a memory for storing a computer program which, when executed by the processor, implements the method of presenting a site map as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that it stores a computer program which, when executed by a processor, implements the station diagram presentation method according to any one of claims 1 to 7.
CN202111608785.7A 2021-12-24 2021-12-24 Method, device and equipment for displaying station yard graph and storage medium Pending CN114528615A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111608785.7A CN114528615A (en) 2021-12-24 2021-12-24 Method, device and equipment for displaying station yard graph and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111608785.7A CN114528615A (en) 2021-12-24 2021-12-24 Method, device and equipment for displaying station yard graph and storage medium

Publications (1)

Publication Number Publication Date
CN114528615A true CN114528615A (en) 2022-05-24

Family

ID=81619665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111608785.7A Pending CN114528615A (en) 2021-12-24 2021-12-24 Method, device and equipment for displaying station yard graph and storage medium

Country Status (1)

Country Link
CN (1) CN114528615A (en)

Similar Documents

Publication Publication Date Title
US8694900B2 (en) Static definition of unknown visual layout positions
CN109032722B (en) Method, device, equipment and medium for updating display effect of UI component
CN113368492B (en) Rendering method and device
CN111459501B (en) SVG-based Web configuration picture storage and display system, method and medium
US9563971B2 (en) Composition system thread
EP2997547B1 (en) Primitive-based composition
CN114675925A (en) Configuration image processing method and device, computer equipment and storage medium
CN114528615A (en) Method, device and equipment for displaying station yard graph and storage medium
US7743387B2 (en) Inheritance context for graphics primitives
US10529100B2 (en) Interaction-driven format for graph visualization
CN113419806B (en) Image processing method, device, computer equipment and storage medium
CN104915198A (en) Human-computer interface capable of defining layout and content flexibly of SACDA upper computer
CN116932103A (en) Method for changing application interface and related equipment
CN112667410A (en) Cross-process communication method, terminal and computer readable storage medium
US11908049B2 (en) Data processing device and method, electronic apparatus for data visualization
KR20210046967A (en) Method, apparatus and computer readable recording medium of rroviding authoring platform for authoring augmented reality contents
CN105354295B (en) Dynamic display device and method for three-dimensional dynamic plotting point labels
JP2004126286A (en) Plotting processor, plotting processing method and plotting processing program
CN117115382B (en) Map road drawing method, device, computer equipment and storage medium
US11907503B2 (en) Switching display of page between a window of a graphical user interface and an independent child window
Earle et al. PROOF Animation: Better animation for your simulation
CN112070868A (en) Animation playing method based on iOS system, electronic equipment and medium
CN111813404B (en) Application method, medium and client based on mixed graphic display
CN114265528A (en) Linux-based cursor drawing method, device and medium
CN114201251A (en) Method, apparatus, device and medium for reducing writing trace display delay

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