CN115048697A - Primitive link relation determining method and device, electronic equipment and storage medium - Google Patents

Primitive link relation determining method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115048697A
CN115048697A CN202210672966.4A CN202210672966A CN115048697A CN 115048697 A CN115048697 A CN 115048697A CN 202210672966 A CN202210672966 A CN 202210672966A CN 115048697 A CN115048697 A CN 115048697A
Authority
CN
China
Prior art keywords
primitive
determining
target
position information
turnout
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
CN202210672966.4A
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.)
CRSC Urban Rail Transit Technology Co Ltd
Original Assignee
CRSC Urban Rail Transit 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 CRSC Urban Rail Transit Technology Co Ltd filed Critical CRSC Urban Rail Transit Technology Co Ltd
Priority to CN202210672966.4A priority Critical patent/CN115048697A/en
Publication of CN115048697A publication Critical patent/CN115048697A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9024Graphs; Linked lists
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Databases & Information Systems (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Structural Engineering (AREA)
  • Civil Engineering (AREA)
  • Architecture (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a method and a device for determining a primitive link relation, electronic equipment and a storage medium, wherein the method comprises the following steps: determining the position information of a key point corresponding to a target turnout primitive based on the position information of the target turnout primitive and the equipment attribute information corresponding to the target turnout primitive; determining the relative position information of the associated equipment graphic elements corresponding to the target turnout graphic elements based on the position information of the key points; and determining the link relation between the target turnout primitive and the associated equipment primitive based on the relative position information of the associated equipment primitive. The method, the device, the electronic equipment and the storage medium for determining the primitive link relationship can quickly determine the link relationship of the turnout primitive, improve the drawing efficiency, simplify the determination process of the link relationship and reduce the error rate of the link relationship generation.

Description

Primitive link relation determining method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for determining a primitive link relation, an electronic device and a storage medium.
Background
In Computer Aided Design (CAD) drawing of urban rail transit, devices such as signal machines, rails, turnouts and the like are often required to be drawn in scenes such as main lines or vehicle sections. Wherein, switch equipment comprises the multipart, usually adopts the mode of picture block to insert to the drawing in to set up the need that the switch equipment was drawn in order to satisfy different angles in the switch picture block.
Because the CAD drawing of the urban rail transit contains a large number of turnout devices, the urban rail transit is particularly suitable for scenes such as vehicle sections or parking lots. The process of manually determining the link relation of the turnout equipment is complicated and repeated, a large amount of time is consumed, and the accuracy of the link relation cannot be guaranteed.
Disclosure of Invention
The invention provides a method and a device for determining a primitive link relation, electronic equipment and a storage medium, which are used for solving the technical problems of complex process and low efficiency of manually determining the link relation of turnout equipment in the prior art.
The invention provides a method for determining a primitive link relation, which comprises the following steps:
determining the position information of a key point corresponding to a target turnout primitive based on the position information of the target turnout primitive and the equipment attribute information corresponding to the target turnout primitive;
determining the relative position information of the associated equipment graphic elements corresponding to the target turnout graphic elements based on the position information of the key points;
and determining the link relation between the target turnout primitive and the associated equipment primitive based on the relative position information of the associated equipment primitive.
In some embodiments, the determining, based on the location information of the key point, the relative location information of the associated device primitive corresponding to the target switch primitive includes:
determining a target graph entity based on the position information of the key point and the end point of the target turnout primitive;
based on the target graphics entity, relative position information for the associated device primitive is determined at a target orientation.
In some embodiments, the determining the link relationship between the target switch element and the associated device element based on the relative position information of the associated device element includes:
determining the relative position relationship between the associated equipment graphic element and the target turnout graphic element based on the relative position information of the associated equipment graphic element;
and determining the link relation between the target turnout primitive and the associated equipment primitive based on the relative position relation of the equipment.
In some embodiments, after determining the link relationship between the target switch element and the associated device element based on the relative position information of the associated device element, the method further includes:
under the condition that the to-be-drawn pixel and the target turnout pixel are of the same equipment type, obtaining a current drawing pixel based on the target turnout pixel;
updating the equipment attribute information of the current drawing primitive based on the primitive link relation contained in the current drawing primitive;
and the link relation between the target turnout primitive and the associated equipment primitive is the same as the primitive link relation contained in the current drawing primitive.
In some embodiments, after determining the link relationship between the target switch element and the associated device element based on the relative position information of the associated device element, the method further includes:
and under the condition that the equipment attribute information of the target turnout primitive is updated, updating the link relation between the target turnout primitive and the associated equipment primitive.
In some embodiments, the target position comprises at least one of: the front fork, the back fork and the back fork are reversed and positioned.
The invention also provides a device for determining the primitive link relation, which comprises:
the first determining module is used for determining the position information of a key point corresponding to a target turnout primitive based on the position information of the target turnout primitive and the equipment attribute information corresponding to the target turnout primitive;
the second determining module is used for determining the relative position information of the associated equipment graphic element corresponding to the target turnout graphic element based on the position information of the key point;
and the third determining module is used for determining the link relation between the target turnout primitive and the associated equipment primitive based on the relative position information of the associated equipment primitive.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the method for determining the primitive link relation.
The present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method for determining a primitive linkage relationship as described in any one of the above.
The present invention also provides a computer program product comprising a computer program, which when executed by a processor implements the method for determining primitive linkage relationship as described in any of the above.
According to the method, the device, the electronic equipment and the storage medium for determining the primitive link relation, the link relation between the target turnout primitive and the associated equipment primitive can be rapidly determined by acquiring the position information of the key point of the target turnout primitive, the determination process of the link relation can be simplified while the drawing efficiency is improved, and the error rate of generation of the link relation is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a method for determining primitive link relationship provided in the present invention;
FIG. 2 is a schematic diagram of device attribute information for applying the method for determining primitive link relationship provided by the present invention;
FIG. 3 is a schematic diagram of a key point of a primitive link relation determining method provided by the present invention;
FIG. 4 is a diagram illustrating a primitive link relationship according to the method for determining primitive link relationship of the present invention;
FIG. 5 is a second diagram illustrating a primitive link relationship determined by the method of the present invention;
FIG. 6 is a schematic structural diagram of a primitive link relation determining apparatus provided in the present invention;
fig. 7 is a schematic physical structure diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. 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 invention.
Fig. 1 is a schematic flow diagram of a method for determining a primitive link relationship according to the present invention. Referring to fig. 1, an embodiment of the present invention provides a method for determining a primitive link relationship, where the method may include: step 110, step 120 and step 130.
It should be noted that the execution subject of the primitive link relation determining method provided by the present invention may be an electronic device, a component in an electronic device, an integrated circuit, or a chip. The electronic device may be a mobile electronic device or a non-mobile electronic device. By way of example, the Mobile electronic device may be a Mobile phone, a tablet Computer, a notebook Computer, a palm top Computer, a vehicle-mounted electronic device, a wearable device, an Ultra-Mobile Personal Computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-Mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), and the like, and the present invention is not limited in particular.
The following describes the technical solution of the present invention in detail by taking a computer as an example to execute the method for determining primitive link relation provided by the present invention.
And step 110, determining the position information of the key point corresponding to the target turnout primitive based on the position information of the target turnout primitive and the equipment attribute information corresponding to the target turnout primitive.
It can be understood that the CAD can be developed secondarily by using the AutoLISP language embedded in the CAD to obtain an algorithm capable of automatically generating the connection relation of the turnout primitive, and the algorithm can be applied to the embodiment of the invention.
The AutoLISP language is a programming language formed by expanding a plurality of functions suitable for CAD application on the basis of the common LISP language. It is an explanatory evaluation language, slow in speed, hard to keep secret, able to be edited by any word editing software and stored in pure text format.
Before the signal plane layout drawing is carried out, a local drawing base can be established, namely each equipment primitive is drawn based on a primitive standard base. The standard primitives of various types of equipment are stored locally, for example: switch primitives, track primitives, or semaphore primitives, etc., which are not specifically limited herein.
In step 110, the position information of the target switch element may be represented by coordinates of the insertion point of the target switch element, and similarly, the position information of other device elements may also be represented by coordinates of each device element in the signal plane layout diagram.
The device attribute information may include a device number, a device name, a device belonging zone, a belonging concentration area, a belonging interlocking area, a belonging station, or the like, and is related to characteristics of the device itself. The device attribute information of the target switch element is shown in fig. 2.
Since the link relationship of the target switch primitive needs equipment attribute information such as the equipment number of the switch peripheral equipment, before the link relationship of the target switch primitive is generated, the equipment attribute information such as the equipment number of the switch peripheral equipment, such as the equipment name of the track equipment, needs to be determined. If the attribute of the related device is not filled in, the link relation is null.
The position information of the target turnout primitive can be obtained by calling a function in the AutoLISP function library, and similarly, the position information of the key point of the target turnout primitive can also be obtained by using the function in the AutoLISP function library.
In actual implementation, the coordinates of the insertion point of the target turnout primitive can be obtained first, then the key point is determined according to the coordinates of the insertion point of the target turnout primitive and the length of the turnout, so that the relative position coordinates of the key point corresponding to the target turnout primitive relative to the insertion point of the target turnout primitive are determined, and finally the absolute coordinates of the key point are determined according to the relative coordinates.
Because operations such as primitive scaling and turning exist in the drawing process of the target turnout primitive, the influence of the situation needs to be considered when the position information is acquired, otherwise, an incorrect link relation may be generated.
As shown in FIG. 3, there is a primitive insertion point B in rectangular box 310, a primitive node A in rectangular box 320 (which is a dynamic block), a primitive node C in rectangular box 330, a primitive node D in rectangular box 340, and a primitive node E in rectangular box 350.
Acquiring the position information of key points A, C, D and E by the following method:
(1) acquiring the coordinate of the primitive insertion point B by calling a function in an Autolisp function library;
(2) respectively acquiring relative position coordinates of a point A, a point C, a point D and a point E relative to a primitive insertion point B;
(3) since the primitive may have operations such as flipping during rendering, the primitive is modified according to the relevant parameters on the basis of (2), for example: regarding the x-axis inversion, the relative position coordinates in (2) need to be corrected to obtain actual coordinates.
(4) And (4) respectively calculating absolute coordinates of the point A, the point C, the point D and the point E according to the coordinates of the insertion point B and the relative position coordinates of the point A, the point C, the point D and the point E obtained in the step (3).
And step 120, determining the relative position information of the associated equipment graphic elements corresponding to the target turnout graphic elements based on the position information of the key points.
After the position information of the key point is determined, the associated equipment primitives and the relative position information of the associated equipment primitives which accord with the rules can be obtained through filtering according to the equipment types, and the obtained information is used for updating the equipment attribute information of the target turnout primitive.
And the relative position information is the position information of the associated equipment primitive relative to the target turnout primitive.
And step 130, determining the link relation between the target turnout element and the associated equipment element based on the relative position information of the associated equipment element.
After the accurate position information of the turnout key point is obtained, the link relation between the target turnout primitive and the associated equipment primitive can be automatically calculated, and finally the link relation is stored into the equipment attribute information of the target turnout primitive.
The method for determining the primitive link relation can rapidly determine the link relation between the target turnout primitive and the associated equipment primitive by acquiring the position information of the key point of the target turnout primitive, improve the drawing efficiency, simplify the determination process of the link relation and reduce the error rate of the generation of the link relation.
In some embodiments, determining the relative position information of the associated device primitive corresponding to the target switch primitive based on the position information of the key point includes:
determining a target graph entity based on the position information of the key points and the end points of the target turnout primitive;
based on the target graphics entity, relative position information for the associated device primitive is determined at the target orientation.
In actual implementation, after the position information of the key points of the target turnout primitive is obtained, a selection set is formed by adopting a proper target graphic entity at the end point of the target turnout primitive.
Common target graphic entities may include line segments, rectangles, polygons, and circles. And then filtering the selection set to obtain associated equipment primitives of the target turnout primitives in the target azimuth, and finally obtaining and storing the link relation between the target turnout primitives and the associated equipment primitives.
As shown in FIG. 3, the target graphical entity may include a dashed segment 360, a dashed segment 370, and a dashed segment 380 in the figure. The dotted lines may correspond to different target orientations.
The method for determining the primitive link relation can rapidly determine the associated equipment primitive and the position information of the associated equipment primitive by using the position information of the end point and the key point of the target turnout primitive without considering the primitive drawing sequence through the target graphic entity.
In some embodiments, the target position includes at least one of: the front fork, the back fork and the back fork are reversed and positioned.
The associated connected device primitives corresponding in target orientation may be determined by the target graphics entity. The graphic entity at the target orientation may include a fork front portion, a fork rear flip portion, and a fork rear positioning portion.
As shown in fig. 3, the broken line segment 360 corresponds to the front branch portion, the broken line segment 370 corresponds to the rear branch positioning portion, and the broken line segment 380 corresponds to the rear branch reversed portion. And determining the associated equipment graphic elements connected with the target graphic entity through the position information of the key points and the end points of the target turnout graphic elements.
As shown in fig. 4, for the devices connected to the front branch portion (solid line segment 420) and the rear branch positioning portion (solid line segment 410), for example: a rectangle may be drawn at the key point a, and an associated device primitive (e.g., track C) intersecting the rectangle may be selected according to the rectangle, and filtered according to the device type to obtain a device primitive meeting the rules. The track C is the rear device behind the fork, and the information of the track C can be filled in the rear device in fig. 2.
As shown in fig. 5, for the device connected to the switch back transposition portion, it is necessary to obtain the coordinates of the points C and D, extend the line segment CD to the point F, draw a line segment with the point F as the center, select the intersecting device according to the line segment, and then filter to obtain a device that meets the rules, where the track a is the switch back transposition device, and the information of the track a can be filled into the transposition device in fig. 2.
In some embodiments, determining the link relationship between the target switch primitive and the associated device primitive based on the position information of the associated device primitive comprises:
determining the relative position relation of the associated equipment primitive and the target turnout primitive based on the relative position information of the associated equipment primitive;
and determining the link relation between the target turnout primitive and the associated equipment primitive based on the relative position relation of the equipment.
In an actual implementation, after determining the relative position information of the associated device primitive, the device relative position relationship of the associated device primitive and the target switch primitive may be determined, and the device relative position relationship may include a front device, a rear device, and a flip device. Based on the relative position relationship of the equipment, the link relationship between the target turnout primitive and the associated equipment primitive can be automatically generated.
In some embodiments, after determining the link relationship between the target switch primitive and the associated device primitive based on the relative position information of the associated device primitive, the method further includes:
and under the condition of updating the equipment attribute information of the target turnout primitive, updating the link relation between the target turnout primitive and the associated equipment primitive.
Under the condition of modifying the equipment attribute information of the target turnout primitive or modifying the primitive attribute information, a new equipment relative position relation corresponding to the target turnout primitive can be generated, so that the link relation between the target turnout primitive and the associated equipment primitive can be updated, and the updated link relation is stored into the equipment attribute information of the target turnout primitive.
The method for determining the primitive link relation can automatically complete the update of the turnout link relation when the equipment attribute information of the target turnout primitive is updated, and improves the efficiency and the accuracy.
In some embodiments, after determining the link relationship between the target switch primitive and the associated device primitive based on the relative position information of the associated device primitive, the method further includes:
under the condition that the to-be-drawn primitive and the target turnout primitive are the same in equipment type, obtaining a current drawing primitive based on the target turnout primitive;
updating the equipment attribute information of the current drawing primitive based on the primitive link relation contained in the current drawing primitive;
and the link relation between the target turnout primitive and the associated equipment primitive is the same as the link relation of the primitive contained in the current drawing primitive.
In actual implementation, a line usually has a partially similar primitive arrangement and a plurality of site maps, and when other similar primitives are drawn, the drawing can be performed in a copying manner, and at this time, the device attribute information and the link relationship of the primitives are automatically copied.
Under the condition that the to-be-drawn primitive and the target turnout primitive are the same in equipment type, the target turnout primitive is copied, the current drawing primitive can be obtained, and the current drawing primitive is displayed on the drawing.
It can be understood that the link relationship between the target switch primitive and the associated device primitive is the same as the primitive link relationship contained in the current drawing primitive, and the primitive link relationship contained in the current drawing primitive can be directly stored in the device attribute information of the current drawing primitive.
Under the condition of modifying the equipment attribute information such as the equipment number of the current drawing primitive and the like, a new equipment relative position relation corresponding to the current drawing primitive can be generated, so that the primitive link relation contained in the current drawing primitive can be updated, and the updated primitive link relation is stored into the equipment attribute information of the current drawing primitive.
The method for determining the primitive link relation can support the drawing of the current drawing primitive by copying the target turnout junction diagram, and obviously improves the drawing efficiency.
In some embodiments, the automatic generation method of the switch primitive link relationship under CAD secondary development based on the AutoLISP may include the following two application scenarios.
Automatic generation link relation of turnout
(1) Opening the CAD loading drawing plug-in, drawing a CAD station drawing containing turnout primitives, and setting attributes such as equipment numbers and the like for the turnout primitives;
(2) and opening an equipment attribute setting menu, clicking the front-back relation of the generation equipment, and automatically filling and storing the link relation of the turnout primitive to the corresponding attribute of the turnout primitive, as shown in figure 2.
Second, automatically generating link relation when copying graphic elements
(1) Usually, a line has partially similar primitive arrangement and a plurality of station graphs, when other similar primitives are drawn, the other similar primitives can be drawn in a copying mode, and at the moment, the attributes and the link relation of the primitives can be automatically copied;
(2) modifying attributes such as the number of the copied primitive equipment;
(3) and clicking to generate the front-back relationship of the equipment, and automatically updating and storing the connection relationship of the turnout primitives to the corresponding attributes of the turnout primitives.
The automatic generation method of the turnout primitive link relation under CAD secondary development based on the AutoLISP has the following effects:
1. in the embodiment of the invention, when the CAD graph is drawn by using the primitives such as turnout points and the like, a certain primitive connection error is allowed to exist. And after the drawing of the graphic elements is finished, filling necessary information such as corresponding graphic element equipment numbers and the like, and automatically calculating the link relation of the turnout graphic elements according to the position information of the graphic elements.
2. When the drawing of the position of the primitive is correct, the embodiment of the invention supports the rapid completion of CAD drawing by copying the primitive, then modifies the attributes such as equipment number and the like, and finally automatically calculates the value link relation of the turnout primitive through the front-back relation of the equipment primitive to automatically acquire and store the turnout primitive.
3. According to the embodiment of the invention, when the primitive is updated or the attribute is updated, the switch link relation can be updated by one key, so that the efficiency and the accuracy are improved.
The primitive link relationship determining apparatus provided in the present invention is described below, and the primitive link relationship determining apparatus described below and the primitive link relationship determining method described above may be referred to in correspondence with each other.
Fig. 6 is a schematic structural diagram of a primitive link relation determining apparatus provided in the present invention. As shown in fig. 6, an embodiment of the present invention provides an apparatus for determining primitive link relation, where the apparatus may include: a first determination module 610, a second determination module 620, and a third determination module 630.
The first determining module 610 is configured to determine, based on the position information of the target switch primitive and the device attribute information corresponding to the target switch primitive, the position information of the key point corresponding to the target switch primitive;
a second determining module 620, configured to determine, based on the location information of the key point, the relative location information of the associated device primitive corresponding to the target switch primitive;
a third determining module 630, configured to determine, based on the relative position information of the associated device primitive, a link relationship between the target switch primitive and the associated device primitive.
The primitive link relation determining device provided by the invention can rapidly determine the link relation between the target turnout primitive and the associated equipment primitive by acquiring the position information of the key point of the target turnout primitive, improves the drawing efficiency, simplifies the determining process of the link relation and reduces the error rate of the generation of the link relation.
In some embodiments, the second determining module 620 is further configured to:
determining a target graph entity based on the position information of the key point and the end point of the target turnout primitive;
based on the target graphics entity, relative position information for the associated device primitive is determined at a target orientation.
In some embodiments, the third determining module 630 is further configured to:
determining the relative position relationship between the associated equipment graphic element and the target turnout graphic element based on the position information of the associated equipment graphic element;
and determining the link relation between the target turnout primitive and the associated equipment primitive based on the relative position relation of the equipment.
In some embodiments, the apparatus further comprises:
the fourth determination module is used for obtaining a current drawing primitive based on the target turnout primitive under the condition that the primitive to be drawn and the target turnout primitive are the same equipment type;
the first updating module is used for updating the equipment attribute information of the current drawing primitive based on the primitive link relation contained in the current drawing primitive;
and the link relation between the target turnout primitive and the associated equipment primitive is the same as the link relation of the primitive contained in the current drawing primitive.
In some embodiments, the apparatus further comprises:
and the second updating module is used for updating the link relation between the target turnout primitive and the associated equipment primitive under the condition that the equipment attribute information of the target turnout primitive is updated.
In some embodiments, the target position comprises at least one of: the front fork, the back fork and the back fork are reversed and positioned.
Fig. 7 illustrates a physical structure diagram of an electronic device, and as shown in fig. 7, the electronic device may include: a processor (processor)710, a communication Interface (Communications Interface)720, a memory (memory)730, and a communication bus 740, wherein the processor 710, the communication Interface 720, and the memory 730 communicate with each other via the communication bus 740. Processor 710 may call logic instructions in memory 730 to perform a primitive linkage determination method comprising:
determining the position information of a key point corresponding to a target turnout primitive based on the position information of the target turnout primitive and the equipment attribute information corresponding to the target turnout primitive;
determining the relative position information of the associated equipment graphic elements corresponding to the target turnout graphic elements based on the position information of the key points;
and determining the link relation between the target turnout primitive and the associated equipment primitive based on the relative position information of the associated equipment primitive.
In addition, the logic instructions in the memory 730 can be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention or a part thereof which substantially contributes to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. 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 other various media capable of storing program codes.
In another aspect, the present invention further provides a computer program product, where the computer program product includes a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, a computer can execute the primitive link relation determining method provided by the above methods, and the method includes:
determining the position information of a key point corresponding to a target turnout primitive based on the position information of the target turnout primitive and the equipment attribute information corresponding to the target turnout primitive;
determining the relative position information of the associated equipment graphic elements corresponding to the target turnout graphic elements based on the position information of the key points;
and determining the link relation between the target turnout primitive and the associated equipment primitive based on the relative position information of the associated equipment primitive.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to execute the primitive link relation determining method provided by the above methods, the method including:
determining the position information of a key point corresponding to a target turnout primitive based on the position information of the target turnout primitive and the equipment attribute information corresponding to the target turnout primitive;
determining the relative position information of the associated equipment graphic elements corresponding to the target turnout graphic elements based on the position information of the key points;
and determining the link relation between the target turnout primitive and the associated equipment primitive based on the relative position information of the associated equipment primitive.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for determining primitive link relation is characterized by comprising the following steps:
determining the position information of a key point corresponding to a target turnout primitive based on the position information of the target turnout primitive and the equipment attribute information corresponding to the target turnout primitive;
determining the relative position information of the associated equipment graphic elements corresponding to the target turnout graphic elements based on the position information of the key points;
and determining the link relation between the target turnout primitive and the associated equipment primitive based on the relative position information of the associated equipment primitive.
2. The method for determining primitive linkage relationship according to claim 1, wherein the determining the relative position information of the associated device primitive corresponding to the target switch primitive based on the position information of the key point includes:
determining a target graph entity based on the position information of the key point and the end point of the target turnout primitive;
based on the target graphics entity, relative position information for the associated device primitive is determined at a target orientation.
3. The method for determining primitive link relation according to claim 1, wherein the determining the link relation between the target switch primitive and the associated device primitive based on the relative position information of the associated device primitive comprises:
determining the relative position relationship between the associated equipment primitive and the target turnout primitive based on the relative position information of the associated equipment primitive;
and determining the link relation between the target turnout primitive and the associated equipment primitive based on the relative position relation of the equipment.
4. The method for determining the primitive link relation according to any one of claims 1 to 3, wherein after determining the link relation between the target switch primitive and the associated device primitive based on the relative position information of the associated device primitive, the method further comprises:
under the condition that the to-be-drawn pixel and the target turnout pixel are of the same equipment type, obtaining a current drawing pixel based on the target turnout pixel;
updating the equipment attribute information of the current drawing primitive based on the primitive link relation contained in the current drawing primitive;
and the link relation between the target turnout primitive and the associated equipment primitive is the same as the primitive link relation contained in the current drawing primitive.
5. The method for determining primitive linking relationship according to any one of claims 1-3, wherein after determining the linking relationship between the target switch primitive and the associated device primitive based on the relative position information of the associated device primitive, the method further comprises:
and under the condition that the equipment attribute information of the target turnout primitive is updated, updating the link relation between the target turnout primitive and the associated equipment primitive.
6. The method according to claim 2, wherein the target orientation includes at least one of: the front fork, the back fork and the back fork are reversed and positioned.
7. A primitive linkage relation determining apparatus, comprising:
the first determining module is used for determining the position information of a key point corresponding to a target turnout primitive based on the position information of the target turnout primitive and the equipment attribute information corresponding to the target turnout primitive;
the second determining module is used for determining the relative position information of the associated equipment graphic element corresponding to the target turnout graphic element based on the position information of the key point;
and the third determining module is used for determining the link relation between the target turnout primitive and the associated equipment primitive based on the relative position information of the associated equipment primitive.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for determining primitive linking relationships according to any one of claims 1 to 6 when executing the program.
9. A non-transitory computer-readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the primitive linkage relationship determination method according to any one of claims 1 to 6.
10. A computer program product comprising a computer program, wherein the computer program when executed by a processor implements the primitive linking relationship determination method according to any one of claims 1 to 6.
CN202210672966.4A 2022-06-14 2022-06-14 Primitive link relation determining method and device, electronic equipment and storage medium Pending CN115048697A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210672966.4A CN115048697A (en) 2022-06-14 2022-06-14 Primitive link relation determining method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210672966.4A CN115048697A (en) 2022-06-14 2022-06-14 Primitive link relation determining method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115048697A true CN115048697A (en) 2022-09-13

Family

ID=83160818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210672966.4A Pending CN115048697A (en) 2022-06-14 2022-06-14 Primitive link relation determining method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115048697A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5986669A (en) * 1996-09-10 1999-11-16 Intergraph Corporation Graphics processing with efficient clipping
CN105468802A (en) * 2014-09-12 2016-04-06 株洲南车时代电气股份有限公司 Station graph editing method
CN110516354A (en) * 2019-08-27 2019-11-29 湖南中车时代通信信号有限公司 A kind of method, apparatus automatically generating yards design and computer-readable medium
CN110851956A (en) * 2019-10-11 2020-02-28 南昌大学 Automatic calculation, labeling and plotting method for construction engineering pipeline construction positioning information
CN111382483A (en) * 2018-12-29 2020-07-07 比亚迪股份有限公司 Station yard graph engineering method, device and equipment
CN112464903A (en) * 2020-12-16 2021-03-09 广联达科技股份有限公司 Primitive identification method and device of municipal construction drawing and electronic equipment
CN112613395A (en) * 2020-12-18 2021-04-06 湖南特能博世科技有限公司 Primitive position relation matching method and device and computer equipment
CN112632651A (en) * 2020-12-28 2021-04-09 广西交控智维科技发展有限公司 Rail transit station map generation method and system, electronic device and storage medium
CN113609627A (en) * 2021-05-24 2021-11-05 交控科技股份有限公司 Line topology design method and device for modular rail transit
CN113724571A (en) * 2021-11-04 2021-11-30 比亚迪股份有限公司 Generation method and generation device of rail transit station map and electronic equipment
CN113836612A (en) * 2021-08-25 2021-12-24 通号城市轨道交通技术有限公司 Equipment associated information extraction method and device, electronic equipment and storage medium
CN114444185A (en) * 2022-01-28 2022-05-06 广联达科技股份有限公司 In-situ labeling identification method and device and electronic equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5986669A (en) * 1996-09-10 1999-11-16 Intergraph Corporation Graphics processing with efficient clipping
CN105468802A (en) * 2014-09-12 2016-04-06 株洲南车时代电气股份有限公司 Station graph editing method
CN111382483A (en) * 2018-12-29 2020-07-07 比亚迪股份有限公司 Station yard graph engineering method, device and equipment
CN110516354A (en) * 2019-08-27 2019-11-29 湖南中车时代通信信号有限公司 A kind of method, apparatus automatically generating yards design and computer-readable medium
CN110851956A (en) * 2019-10-11 2020-02-28 南昌大学 Automatic calculation, labeling and plotting method for construction engineering pipeline construction positioning information
CN112464903A (en) * 2020-12-16 2021-03-09 广联达科技股份有限公司 Primitive identification method and device of municipal construction drawing and electronic equipment
CN112613395A (en) * 2020-12-18 2021-04-06 湖南特能博世科技有限公司 Primitive position relation matching method and device and computer equipment
CN112632651A (en) * 2020-12-28 2021-04-09 广西交控智维科技发展有限公司 Rail transit station map generation method and system, electronic device and storage medium
CN113609627A (en) * 2021-05-24 2021-11-05 交控科技股份有限公司 Line topology design method and device for modular rail transit
CN113836612A (en) * 2021-08-25 2021-12-24 通号城市轨道交通技术有限公司 Equipment associated information extraction method and device, electronic equipment and storage medium
CN113724571A (en) * 2021-11-04 2021-11-30 比亚迪股份有限公司 Generation method and generation device of rail transit station map and electronic equipment
CN114444185A (en) * 2022-01-28 2022-05-06 广联达科技股份有限公司 In-situ labeling identification method and device and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
史海鸥等: "城市轨道交通设计BIM技术应用研究与实践", vol. 1, 31 October 2020, 西南交通大学出版社, pages: 107 - 108 *

Similar Documents

Publication Publication Date Title
US20080198158A1 (en) 3D map display system, 3D map display method and display program
CN113390407A (en) Method, device and equipment for constructing lane-level navigation map and storage medium
CN109544658B (en) Map rendering method and device, storage medium and electronic device
CN112717414B (en) Game scene editing method and device, electronic equipment and storage medium
CN110975292A (en) Game map drawing method and system based on PSD (position sensitive Detector) file
CN110782774A (en) Crowdsourcing road data distributed processing method and device
CN115048697A (en) Primitive link relation determining method and device, electronic equipment and storage medium
CN112131327A (en) Motion trail generation method and device
CN116029263A (en) DWG object importing method, device, equipment and medium
CN116630555A (en) Terrain height map generation method and device and electronic equipment
CN112435330B (en) 3D model simplification method and device, electronic equipment and storage medium
CN113434526B (en) Road network data updating method and device, electronic equipment and storage medium
CN112862936B (en) Expression model processing method and device, electronic equipment and storage medium
CN115619904A (en) Image processing method, device and equipment
CN112307692B (en) Station interlocking annunciator circuit drawing generation method and device
CN115624747A (en) Method, device and equipment for processing topographic data and storage medium
CN115082505A (en) Network territory map adjusting method and device, electronic equipment and storage medium
CN113836612A (en) Equipment associated information extraction method and device, electronic equipment and storage medium
CN116049505B (en) Screen space tag collision detection method and device, computer equipment and storage medium
JP7538880B2 (en) Method, device, equipment and storage medium for constructing lane-level navigation map
CN116932120B (en) Method and device for zooming visual page of map base map and electronic equipment
CN117407964B (en) BIM parameterization design method for foundation pit of open-cut tunnel based on two-dimensional and three-dimensional interaction
CN118657889B (en) Method and device for constructing three-dimensional virtual scene and electronic equipment
CN116630436B (en) Camera external parameter correction method, camera external parameter correction device, electronic equipment and computer readable medium
CN115937454B (en) Method and device for automatically placing tree models in large-scale city scene

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