CN107562337A - A kind of yard element overturns processing method and processing device - Google Patents
A kind of yard element overturns processing method and processing device Download PDFInfo
- Publication number
- CN107562337A CN107562337A CN201710722995.6A CN201710722995A CN107562337A CN 107562337 A CN107562337 A CN 107562337A CN 201710722995 A CN201710722995 A CN 201710722995A CN 107562337 A CN107562337 A CN 107562337A
- Authority
- CN
- China
- Prior art keywords
- upset
- region
- yard
- coordinate
- yard element
- 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.)
- Granted
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention discloses a kind of yard element to overturn processing method and processing device, and method includes:Obtain the origin coordinates of upset instruction and upset region and terminate coordinate;The yard element in region, which is overturn, described according to the origin coordinates in the upset region and terminating coordinate pair carries out legitimacy detection;If judging to know that the yard element in the upset region is legal, upset processing is carried out to each yard element in the upset region according to the upset instruction.Device includes:First acquisition module, first detection module and flip module.After the embodiment of the present invention confirms that the yard element progress in upset region is legal by origin coordinates and termination coordinate, instructed according to upset and upset processing is carried out to each yard element automatically, realize the effect that yard element is quickly overturn.
Description
Technical field
The present embodiments relate to technical field of rail traffic, and in particular to a kind of yard element upset processing method and dress
Put.
Background technology
In train automatic monitoring system, yard element such as semaphore, Link, section, track switch, station name mark, stood
Platform, shield door, train opposing sections position etc. are to enter edlin using yard edit tool in advance to preserve, and then, are adjusted starting
When spending platform work station, maintenance work station, operation element station, initialization loading yard element simultaneously operationally receives background server
Data, train data etc. are interlocked, carries out yard state real-time update, to realize to online train, trackside unit, station platform etc.
Simulation shows effect.
Traditional yard interface editing instrument be not carried out to yard element (semaphore, track switch, platform, shield door,
LINK, section etc.) upset and mobile function (turn over function here refer to limit in the range of overall upset, up and down, left and right
Overturn and move up and down).Traditional yard interface editing instrument can only realize the position for once changing an element, it is impossible to
All elements in enough flip canvas simultaneously.The position of overall element is substantially relatively in traditional yard interface editing instrument
Fixed, it is impossible to change the position of a range of multiple elements with the change of demand, and after change in location, business is patrolled
It is difficult unaffected to collect, and such as the track switch in position location is after evolution, when track switch is in positioning states, graphics shape phase
Section does not occur obvious deformation.
Traditional yard element drawing process is as follows:According to product demand, draw respectively the position of yard element, color,
Shape, realize yard initial effect;The relative position of the yard element drawn out and yard painting canvas is fixed, it is impossible to is changed
The relative position of overall or local element.When designer carries out station and yard design, often it is designed with the custom of oneself,
Or modified with original design drawing;But when in successive projects project use, the trend of yard is often according to work
Cheng Shiji and change, such as during design using left side be garage parking using right side as garage door, and engineering it is actual using left side as
Garage door is more convenient by garage parking of right side, and at this moment the whole yards design of cloth picture will waste time and energy again again.Traditional method
The position of multiple yard elements can not be changed simultaneously, when needing the position of a large amount of change yard elements, can only be one by one
Change the position of yard element;After overall element is drawn successfully, it is impossible to which effectively being drawn in the optional position of painting canvas needs
Yard element.
During the embodiment of the present invention is realized, inventor has found that existing method operating efficiency is low, can not quickly, greatly
Batch changes the position of yard element.
The content of the invention
Because existing method has above mentioned problem, the embodiment of the present invention proposes a kind of yard element upset processing method and dress
Put.
In a first aspect, the embodiment of the present invention proposes a kind of yard element upset processing method, including:
Obtain the origin coordinates of upset instruction and upset region and terminate coordinate;
The yard element in region is overturn described according to the origin coordinates in the upset region and terminating coordinate pair to be closed
Method detects;
If judge to know that the yard element in the upset region is legal, according to the upset instruction to the upset
Each yard element in region carries out upset processing.
Alternatively, if the judgement knows that the yard element in the upset region is legal, referred to according to the upset
Make and upset processing is carried out to each yard element in the upset region, specifically include:
If judging to know that the yard element in the upset region is legal, the upset instruction is parsed, is overturn
Pattern;
Upset processing is carried out to each yard element in the upset region according to the inverted pattern;
Wherein, the inverted pattern includes X-axis upset, Y-axis upset and the upset of XY axles.
Alternatively, it is described that all yard elements in the upset region are carried out at upset according to the inverted pattern
Reason, is specifically included:
If judging to know that the inverted pattern overturns as X-axis, keep the Y-coordinate of each yard element constant, according to described
The X-coordinate of the X-coordinate of origin coordinates, the X-coordinate and each yard element for terminating coordinate, respectively in the upset region
The X-coordinate of each yard element carries out upset processing.
Alternatively, it is described that all yard elements in the upset region are carried out at upset according to the inverted pattern
Reason, is specifically included:
If judging to know the inverted pattern as Y-axis upset or the upset of XY axles, according to default supplement offset, described
The Y-coordinate of the Y-coordinate of beginning coordinate, the Y-coordinate and each yard element for terminating coordinate, respectively to each in the upset region
The Y-coordinate of yard element carries out upset processing;
If judging to know that the inverted pattern overturns as Y-axis, according to predetermined angle offset in the upset region
The inclination angle of each yard element carry out upset processing.
Alternatively, the yard in region is overturn described in the origin coordinates and termination coordinate pair according to the upset region
Element carries out legitimacy detection, specifically includes:
According to the origin coordinates and termination coordinate pair physical zone in the upset region, the institute of logic block and meter shaft section
The yard element stated in upset region carries out legitimacy detection.
Alternatively, methods described also includes:
Obtain the origin coordinates of translation instruction and transitional zone and terminate coordinate;
Yard element described according to the origin coordinates of the transitional zone and terminating coordinate pair in transitional zone is closed
Method detects;
If judgement knows that the yard element in the transitional zone is legal, according to the translation instruction to the translation
Each yard element in region carries out translation processing.
Alternatively, methods described also includes:
If judging to know that the yard element in the upset region or the transitional zone is illegal, alarm signal is generated
Breath.
Alternatively, the yard in region is overturn described in the origin coordinates and termination coordinate pair according to the upset region
Element carries out legitimacy detection, specifically includes:
The upset region is determined according to the origin coordinates and the termination coordinate;
Judge whether all yard elements in the upset region are truncated;
If all yard elements in the upset region are not truncated, the yard element in the upset region closes
Method;
If the upset region internal memory is truncated in yard element, the yard element in the upset region is illegal.
Second aspect, the embodiment of the present invention also propose a kind of yard element upset processing unit, including:
First acquisition module, for obtaining the origin coordinates of upset instruction and upset region and terminating coordinate;
First detection module, for being overturn described in the origin coordinates according to the upset region and termination coordinate pair in region
Yard element carry out legitimacy detection;
Flip module, if for judging to know that the yard element in the upset region is legal, according to the upset
Instruct and upset processing is carried out to each yard element in the upset region.
Alternatively, the flip module specifically includes:
Resolution unit, if for judging to know that the yard element in the upset region is legal, parse the upset
Instruction, obtains inverted pattern;
Roll-over unit, for being carried out according to the inverted pattern to each yard element in the upset region at upset
Reason;
Wherein, the inverted pattern includes X-axis upset, Y-axis upset and the upset of XY axles.
Alternatively, if the roll-over unit is specifically used for judging to know that the inverted pattern overturns as X-axis, each station is kept
The Y-coordinate of field element is constant, according to the X of the X-coordinate of the origin coordinates, the X-coordinate and each yard element for terminating coordinate
Coordinate, upset processing is carried out to the X-coordinate of each yard element in the upset region respectively.
Alternatively, the roll-over unit specifically includes:
First upset subelement, if for judging to know the inverted pattern as Y-axis upset or the upset of XY axles, according to pre-
If offset, the Y-coordinate of the origin coordinates, the Y-coordinate of the Y-coordinate and each yard element for terminating coordinate are supplemented, respectively
Upset processing is carried out to the Y-coordinate of each yard element in the upset region;
Second upset subelement, if for judging to know that the inverted pattern overturns as Y-axis, offset according to predetermined angle
Measure and upset processing is carried out to the inclination angle of each yard element in the upset region.
Alternatively, the first detection module is specifically used for origin coordinates and termination coordinate pair according to the upset region
Yard element in the upset region of physical zone, logic block and meter shaft section carries out legitimacy detection.
Alternatively, described device also includes:
Second acquisition module, for obtaining the origin coordinates of translation instruction and transitional zone and terminating coordinate;
Second detection module, for the origin coordinates according to the transitional zone and terminate described in coordinate pair in transitional zone
Yard element carry out legitimacy detection;
Translation module, if for judging to know that the yard element in the transitional zone is legal, according to the translation
Instruction carries out translation processing to each yard element in the transitional zone.
Alternatively, described device also includes:
Alarm module, if for judging to know that the yard element in the upset region or the transitional zone is illegal,
Then generate warning message.
Alternatively, the first detection module specifically includes:
Area determination unit, for determining the upset region according to the origin coordinates and the termination coordinate;
Judging unit, for judging whether all yard elements in the upset region are truncated;
Valid unit, if not being truncated for all yard elements in the upset region, the upset region
Interior yard element is legal;
Illegal unit, if being truncated for the upset region internal memory in yard element, in the upset region
Yard element is illegal.
The third aspect, the embodiment of the present invention also propose a kind of electronic equipment, including:
At least one processor;And
At least one memory being connected with the processor communication, wherein:
The memory storage has and by the programmed instruction of the computing device, the processor described program can be called to refer to
Order is able to carry out the above method.
Fourth aspect, the embodiment of the present invention also propose a kind of non-transient computer readable storage medium storing program for executing, the non-transient meter
Calculation machine readable storage medium storing program for executing stores computer program, and the computer program makes the computer perform the above method.
As shown from the above technical solution, the embodiment of the present invention by origin coordinates and is terminated in coordinate confirmation upset region
After the progress of yard element is legal, upset processing is carried out to each yard element automatically according to upset instruction, realizes that yard element is quick
The effect of upset.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these figures.
Fig. 1 is the schematic flow sheet that a kind of yard element that one embodiment of the invention provides overturns processing method;
Fig. 2 is the schematic flow sheet that a kind of yard element that another embodiment of the present invention provides overturns processing method;
Fig. 3 is that a kind of X-axis for semaphore that one embodiment of the invention provides overturns the schematic flow sheet of processing method;
Fig. 4 is that a kind of Y-axis for semaphore that one embodiment of the invention provides overturns the schematic flow sheet of processing method;
Fig. 5 is that a kind of XY axles for semaphore that one embodiment of the invention provides overturn the schematic flow sheet of processing method;
Fig. 6 is a kind of schematic flow sheet for yard member primitive translation processing method that one embodiment of the invention provides;
Fig. 7 is the structural representation that a kind of yard element that one embodiment of the invention provides overturns processing unit;
Fig. 8 is the logic diagram for the electronic equipment that one embodiment of the invention provides.
Embodiment
Below in conjunction with the accompanying drawings, the embodiment of the present invention is further described.Following examples are only used for more
Clearly demonstrate technical scheme, and can not be limited the scope of the invention with this.
Fig. 1 shows a kind of schematic flow sheet for yard element upset processing method that the present embodiment provides, including:
S101, the origin coordinates for obtaining upset instruction and upset region and termination coordinate.
Wherein, the instruction overturn to selected upset region that the upset instruction inputs for user.
The upset region is the origin coordinates inputted according to user and terminates the region that coordinate determines.
The yard element in region is overturn described in S102, the origin coordinates according to the upset region and termination coordinate pair to enter
Row legitimacy detects.
Wherein, the legitimacy is detected as detecting whether the upset region is effective coverage, that is, detects whether station be present
Field element can not be blocked by the upset region.
If S103, judgement know that the yard element in the upset region is legal, according to the upset instruction to institute
Each yard element stated in upset region carries out upset processing.
The upset processing that the present embodiment provides can realize the turn over function of whole yard elements, or local yard element
Turn over function, or yard painting canvas up and down, left and right turn over function, the difference of painting canvas and element can also be changed as needed
Relative position, or relative change is carried out to the position of element according to method for turning.
After the present embodiment confirms that the yard element progress in upset region is legal by origin coordinates and termination coordinate, according to
Upset instruction carries out upset processing to each yard element automatically, realizes the effect that yard element is quickly overturn.
Further, on the basis of above method embodiment, S103 is specifically included:
If S1031, judgement know that the yard element in the upset region is legal, the upset instruction is parsed, is obtained
To inverted pattern;
S1032, according to the inverted pattern to it is described upset region in each yard element carry out upset processing;
Wherein, the inverted pattern includes X-axis upset, Y-axis upset and the upset of XY axles.
Specifically as shown in Fig. 2 user clicks on yard painting canvas " upset " submenu first;Then software responses are clicked on, and are recalled
" upset is set " dialog box;Then wait for user to input starting X/Y coordinates, terminate X/Y coordinates, flip button is clicked in selection;Root
Flip button is clicked on according to user, judges inverted pattern;Obtain starting X/Y coordinates and terminate X/Y coordinates;Battlefield management class is called,
Begin turning yard element;All logical elements of yard are finally traveled through, and call the Reverse methods of the element to pass through identification
Upset corresponding to different inverted patterns is handled, and can realize a variety of upsets.
Specifically, as shown in Fig. 2 the flow of the upset processing method of yard element is as follows:
A1, software detection to user click on menu, and ejection yard upset sets dialog interface.
A2, the starting X/Y coordinates inputted according to user, the inverted pattern for terminating X/Y coordinates and user's selection, set yard
Manage object related parameter.
A3, inverted pattern set according to the click of user respectively, then set in the range of each element inverted pattern.
Inverted pattern has three kinds:X-axis upset, Y-axis upset, the upset of XY axles, three kinds of modes use different method for turning, finally presented
Effect is also different.
After A4, setting inverted pattern, into upset flow.
A5, starting elemental X/Y coordinates, termination X/Y coordinates that user is set are obtained, be saved in yard element management class object
In.
All yard logical elements (semaphore, track switch, section, platform etc.) of A6, traversal, call its method for turning.
Further, on the basis of above method embodiment, S1032 is specifically included:
If S10321, judging to know that the inverted pattern overturns as X-axis, keep the Y-coordinate of each yard element constant, root
According to the X-coordinate of the origin coordinates, the X-coordinate of the X-coordinate and each yard element for terminating coordinate, respectively to the Flip Zone
The X-coordinate of each yard element in domain carries out upset processing.
Further, on the basis of above method embodiment, S1032 is specifically included:
If S10322, judge to know that the inverted pattern as Y-axis upset or the upset of XY axles, is offset according to default supplement
Amount, the Y-coordinate of the origin coordinates, the Y-coordinate of the Y-coordinate and each yard element for terminating coordinate, respectively to the upset
The Y-coordinate of each yard element in region carries out upset processing;
If S10323, judge to know that the inverted pattern overturns as Y-axis, according to predetermined angle offset to the upset
The inclination angle of each yard element in region carries out upset processing.
Specifically, the upset processing of yard element refers to the X-coordinate scope and Y-coordinate scope inputted according to user, will be
Yard element (semaphore, track switch, section, station etc.) in this region, centered on regional center point, realizes all elements position
Put upper and lower, the left and right upset with shape.Realize that the position of yard element changes function.The function is put down based on yard edit tool
What platform was realized.
By taking semaphore as an example, Fig. 3,4,5 are respectively X, Y, XY axle upset processing for a kind of semaphore that the present embodiment provides
The schematic flow sheet of method.
Specifically, as shown in figure 3, the flow of the X-axis upset processing method of semaphore is as follows:
B1, obtain upset range start point coordinate, terminal point coordinate.
B2, obtain inverted pattern (X-axis upset).
B3, judge that this semaphore origin (boundary rectangle upper left angle point) coordinate whether in the range of upset, such as exists, execution is turned over
Turn;Do not exist, then terminate.
B4, the new origin for calculating this semaphore, Y-coordinate is constant, and the new X-coordinate of origin=yard upset starting X is sat
Mark+yard upset terminates the old origin X-coordinate of X-coordinate-semaphore.
B5, setting signal machine opening direction mark and original are in opposite direction.
B6, setting signal machine title X/Y relative coordinates are opposite with former coordinate value.
B7, setting signal machine overturning mark are opposite with former mark.
B8, the upset of semaphore X-axis terminate.
Specifically, as shown in figure 4, the flow of the Y-axis upset processing method of semaphore is as follows:
C1, obtain upset range start point Y-coordinate and terminate Y-coordinate.
C2, obtain inverted pattern (Y-axis upset).
C3, judge that this semaphore origin (boundary rectangle upper left angle point) coordinate whether in the range of upset, such as exists, execution is turned over
Turn;Do not exist, then terminate.
C4, the new origin for calculating this semaphore, X-coordinate is constant, and the new Y-coordinate of origin=yard upset starting Y is sat
Mark+yard upset terminates the old origin Y-coordinate+20 of Y-coordinate-semaphore.
C5, whether judge semaphore inclination angle>0 ° and<90 °, in this way, inclination angle is increased by 270 °;
C6, such as semaphore inclination angle<0 ° or>90 °, then judge whether this semaphore inclination angle is more than 270 degree, in this way, then will
The semaphore angle subtracts 270 °, whether otherwise judges this semaphore inclination angle>=90 ° and<=270 °.
If C7, this semaphore inclination angle>=90 ° and<=270 °, then the semaphore angle be 360 ° subtract primary dip
Angle.
C8, the upset of semaphore Y-axis terminate.
Specifically, as shown in figure 4, the flow of the XY axles upset processing method of semaphore is as follows:
D1, obtain upset range start point coordinate, terminal point coordinate.
D2, obtain inverted pattern (upset of XY axles).
D3, judge that this semaphore origin (boundary rectangle upper left angle point) coordinate whether in the range of upset, such as exists, execution is turned over
Turn;Do not exist, then terminate.
D4, the new origin for calculating this semaphore, origin X-coordinate=yard upset starting X-coordinate+yard upset is eventually
The only old origin X-coordinate of X-coordinate-semaphore, the new Y-coordinate of origin=yard upset starting Y-coordinate+yard upset termination Y-coordinate-
The old origin Y-coordinate+12 of semaphore.
D5, setting signal machine opening direction and original are in opposite direction.
D6, setting signal machine title are that former relative coordinate values are opposite with respect to X-coordinate, relative Y-coordinate.
D7, the upset of semaphore XY axles terminate.
Further, on the basis of above method embodiment, S102 is specifically included:
According to the origin coordinates and termination coordinate pair physical zone in the upset region, the institute of logic block and meter shaft section
The yard element stated in upset region carries out legitimacy detection.
Legitimacy detection is carried out by the upset region to multiple sections, enables to each section all to meet to require.
Further, on the basis of above method embodiment, S102 is specifically included:
S1021, according to the origin coordinates and it is described termination coordinate determine the upset region;
S1022, judge whether all yard elements in the upset region are truncated;
If all yard elements in S1023, the upset region are not truncated, the yard in the upset region
Element is legal;
If S1024, the upset region internal memory are truncated in yard element, the yard element in the upset region is not
It is legal.
It should be noted that yard element includes point packetized elementary and wire element, point packetized elementary is for example vehicle-mounted, vehicle, wire
Element such as section.
For a packetized elementary, judge whether all packetized elementaries in the upset region are truncated, i.e., described Flip Zone
Each point packetized elementary in domain must be positioned in upset region, it is not possible to a packetized elementary part be present in upset region,
A part is not in upset region.If a part for some point packetized elementary, in upset region, a part is not or not upset region
It is interior, then it is illegal.
For wire element, judge whether all wire elements in the upset region are truncated, that is, judge wire member
Whether the key point of element is in upset region.For example, if the starting point of section is in upset region, and terminal does not exist, by
In the starting point of section be the key point of section, so now the section is not truncated;, whereas if the starting point and terminal of section are equal
Not in upset region, and interrupt unit is being overturn in region, because the interrupt unit of section is not the key point of section, so
Now the section is truncated.
By carrying out turning operation again after judging whether all yard elements in the upset region are truncated, avoid out
Now overturn the maloperation in region.
Further, on the basis of above method embodiment, methods described also includes:
S104, the origin coordinates for obtaining translation instruction and transitional zone and termination coordinate;
Yard element in S105, the origin coordinates according to the transitional zone and transitional zone described in termination coordinate pair enters
Row legitimacy detects;
If S106, judgement know that the yard element in the transitional zone is legal, according to the translation instruction to institute
Each yard element stated in transitional zone carries out translation processing.
Specifically, mobile processing overall to the yard element progress in range of translation can move to left, entirety moves to right, on the whole
Move, entirety moves down.The function is also based on the realization of yard editing tool platform.
Specifically, as shown in fig. 6, the flow of yard member primitive translation processing method is as follows:
E1, software detection to user click on " painting canvas movement " submenu, and dialog box is set into mobile.
E2, treat that user inputs X offsets, offset starting point, click on skew, into translation response method.
E3, translation start, travel through all yard logical elements in deviation range, for platform, transfer/transformer station/
Grade separation symbol figure, virtual function buttons, shield door, station name, semaphore, meter shaft section, track switch, parking area:Such as left avertence
Move, then all elements origin X-coordinate is subtracted into offset;Such as move to right, then element origin X-coordinate is added into offset;Such as move up,
Element origin Y-coordinate is then subtracted into offset;Such as move down, then element origin Y-coordinate is added into offset.
E4, for physical zone/logic block/meter shaft section, if origin is in range of translation, move to right, then by inner wire
Duan Qidian increases offset, moves to left, internal line segment starting point then subtracts offset.
E5, translation terminate.
Upset processing and mobile processing be mainly used in the display location for changing yard interface element but service logic not by
Influence.First, the layout of yard element, the function and visual effect at whole yard interface can be influenceed, such as needs yard interface beautiful
See and be applicable again, it is necessary to carry out rational deployment to element position, then the effect of method for turning and moving method is essential;Secondly,
Upset processing and mobile processing are advantageous to the cost that saves manpower and time, as project planner need not repaint element,
And only the figure in the range of certain need to be overturn or be converted and can reach effect.
The present embodiment solves the problems, such as existing method flexible interface difference, and after interface is drawn successfully, interface can be entered
Efficient, the feasible movement of row;Mobile or upset element number is unlimited, scope is unlimited, can according to demand can be to upset
Scope is configured, and is handled according to upset and movement handles and the change of appropriateness real-time to element position;Greatly reduce interface
The time of maintenance, improve the efficiency of work;It is simple, effective when yard interface needs to change element position on a large scale.
The present embodiment overturns processing by yard element and mobile processing is changed to the position of yard element, yard circle
The element in face is handled according to upset or mobile processing obtains new position coordinates, realizes the effect of upset and the movement of yard element
Fruit.Secondly, whole yard software is more intelligent, more reliable, and the data that the software can easily adapt to various demands are shown very much, right
It is very helpful in man-machine interaction.
Further, on the basis of above method embodiment, methods described also includes:
If S107, judgement know that the yard element in the upset region or the transitional zone is illegal, generation report
Alert information.
By generating warning message, user is known that the selection in upset region is wrong, be easy to user to change in time.
Fig. 7 shows a kind of structural representation for yard element upset processing unit that the present embodiment provides, described device
Including:First acquisition module 701, first detection module 702 and flip module 703, wherein:
First acquisition module 701 is used to obtain the origin coordinates of upset instruction and upset region and terminates coordinate;
The first detection module 702 is used for the upset according to the origin coordinates and termination coordinate pair in the upset region
Yard element in region carries out legitimacy detection;
If the flip module 703 is used to judge to know that the yard element in the upset region is legal, according to institute
State upset instruction and upset processing is carried out to each yard element in the upset region.
Specifically, first acquisition module 701 obtains the origin coordinates of upset instruction and upset region and terminated and sits
Mark;The first detection module 702 is overturn in region according to the origin coordinates and termination coordinate pair in the upset region
Yard element carries out legitimacy detection;If the flip module 703 judges to know that the yard element in the upset region closes
Method, then upset processing is carried out to each yard element in the upset region according to the upset instruction.
After the present embodiment confirms that the yard element in upset region is legal by origin coordinates and termination coordinate, according to upset
Instruction carries out upset processing to each yard element automatically, realizes the effect that yard element is quickly overturn.
Further, on the basis of said apparatus embodiment, the flip module 703 specifically includes:
Resolution unit, if for judging to know that the yard element in the upset region is legal, parse the upset
Instruction, obtains inverted pattern;
Roll-over unit, for being carried out according to the inverted pattern to each yard element in the upset region at upset
Reason;
Wherein, the inverted pattern includes X-axis upset, Y-axis upset and the upset of XY axles.
Further, on the basis of said apparatus embodiment, if the roll-over unit be specifically used for judging knowing it is described
Inverted pattern overturns for X-axis, then keeps the Y-coordinate of each yard element constant, according to the X-coordinate of the origin coordinates, the end
The only X-coordinate of coordinate and the X-coordinate of each yard element, the X-coordinate of each yard element in the upset region is carried out respectively
Upset is handled.
Further, on the basis of said apparatus embodiment, the roll-over unit specifically includes:
First upset subelement, if for judging to know the inverted pattern as Y-axis upset or the upset of XY axles, according to pre-
If offset, the Y-coordinate of the origin coordinates, the Y-coordinate of the Y-coordinate and each yard element for terminating coordinate are supplemented, respectively
Upset processing is carried out to the Y-coordinate of each yard element in the upset region;
Second upset subelement, if for judging to know that the inverted pattern overturns as Y-axis, offset according to predetermined angle
Measure and upset processing is carried out to the inclination angle of each yard element in the upset region.
Further, on the basis of said apparatus embodiment, the first detection module 702 is specifically used for according to
Station in the origin coordinates for overturning region and the upset region for terminating coordinate pair physical zone, logic block and meter shaft section
Field element carries out legitimacy detection.
Further, on the basis of said apparatus embodiment, described device also includes:
Second acquisition module, for obtaining the origin coordinates of translation instruction and transitional zone and terminating coordinate;
Second detection module, for the origin coordinates according to the transitional zone and terminate described in coordinate pair in transitional zone
Yard element carry out legitimacy detection;
Translation module, if for judging to know that the yard element in the transitional zone is legal, according to the translation
Instruction carries out translation processing to each yard element in the transitional zone.
Further, on the basis of said apparatus embodiment, described device also includes:
Alarm module, if for judging to know that the yard element in the upset region or the transitional zone is illegal,
Then generate warning message.
Described in the present embodiment yard element upset processing unit can be used for perform above method embodiment, its principle and
Technique effect is similar, and here is omitted.
Reference picture 8, the electronic equipment, including:Processor (processor) 801, memory (memory) 802 and total
Line 803;
Wherein,
The processor 801 and memory 802 complete mutual communication by the bus 803;
The processor 801 is used to call the programmed instruction in the memory 802, to perform above-mentioned each method embodiment
The method provided.
The present embodiment discloses a kind of computer program product, and the computer program product includes being stored in non-transient calculating
Computer program on machine readable storage medium storing program for executing, the computer program include programmed instruction, when described program instruction is calculated
When machine performs, computer is able to carry out the method that above-mentioned each method embodiment is provided.
The present embodiment provides a kind of non-transient computer readable storage medium storing program for executing, the non-transient computer readable storage medium storing program for executing
Computer instruction is stored, the computer instruction makes the computer perform the method that above-mentioned each method embodiment is provided.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can
To be or may not be physically separate, it can be as the part that unit is shown or may not be physics list
Member, you can with positioned at a place, or can also be distributed on multiple NEs.It can be selected according to the actual needs
In some or all of module realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying creativeness
Work in the case of, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
Realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on such understanding, on
The part that technical scheme substantially in other words contributes to prior art is stated to embody in the form of software product, should
Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some fingers
Make to cause a computer equipment (can be personal computer, server, or network equipment etc.) to perform each implementation
Method described in some parts of example or embodiment.
It should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although reference
The present invention is described in detail previous embodiment, it will be understood by those within the art that:It still can be right
Technical scheme described in foregoing embodiments is modified, or carries out equivalent substitution to which part technical characteristic;And this
A little modifications are replaced, and the essence of appropriate technical solution is departed from the spirit and model of various embodiments of the present invention technical scheme
Enclose.
Claims (10)
1. a kind of yard element overturns processing method, it is characterised in that including:
Obtain the origin coordinates of upset instruction and upset region and terminate coordinate;
The yard element in region, which is overturn, described according to the origin coordinates in the upset region and terminating coordinate pair carries out legitimacy
Detection;
If judge to know that the yard element in the upset region is legal, according to the upset instruction to the upset region
Interior each yard element carries out upset processing.
2. according to the method for claim 1, it is characterised in that if the yard member in the upset region is known in the judgement
Element is legal, then carries out upset processing to each yard element in the upset region according to the upset instruction, specifically include:
If judging to know that the yard element in the upset region is legal, the upset instruction is parsed, obtains inverted pattern;
Upset processing is carried out to each yard element in the upset region according to the inverted pattern;
Wherein, the inverted pattern includes X-axis upset, Y-axis upset and the upset of XY axles.
3. according to the method for claim 2, it is characterised in that described to be overturn according to the inverted pattern to described in region
All yard elements carry out upset processing, specifically include:
If judging to know that the inverted pattern overturns as X-axis, keep the Y-coordinate of each yard element constant, according to the starting
The X-coordinate of the X-coordinate of coordinate, the X-coordinate and each yard element for terminating coordinate, respectively to each station in the upset region
The X-coordinate of field element carries out upset processing.
4. according to the method for claim 2, it is characterised in that described to be overturn according to the inverted pattern to described in region
All yard elements carry out upset processing, specifically include:
If judge to know that the inverted pattern as Y-axis upset or the upset of XY axles, is sat according to default supplement offset, the starting
The Y-coordinate of target Y-coordinate, the Y-coordinate and each yard element for terminating coordinate, respectively to each yard in the upset region
The Y-coordinate of element carries out upset processing;
If judging to know that the inverted pattern overturns as Y-axis, according to predetermined angle offset to each in the upset region
The inclination angle of yard element carries out upset processing.
5. according to the method for claim 1, it is characterised in that the origin coordinates and termination according to the upset region
The yard element overturn described in coordinate pair in region carries out legitimacy detection, specifically includes:
Turned over described according to the origin coordinates in the upset region and terminating coordinate pair physical zone, logic block and meter shaft section
The yard element turned in region carries out legitimacy detection.
6. according to the method for claim 1, it is characterised in that methods described also includes:
Obtain the origin coordinates of translation instruction and transitional zone and terminate coordinate;
Yard element described according to the origin coordinates of the transitional zone and terminating coordinate pair in transitional zone carries out legitimacy
Detection;
If judgement knows that the yard element in the transitional zone is legal, according to the translation instruction to the transitional zone
Interior each yard element carries out translation processing.
7. according to the method for claim 6, it is characterised in that methods described also includes:
If judging to know that the yard element in the upset region or the transitional zone is illegal, warning message is generated.
8. according to the method for claim 1, it is characterised in that the origin coordinates and termination according to the upset region
The yard element overturn described in coordinate pair in region carries out legitimacy detection, specifically includes:
The upset region is determined according to the origin coordinates and the termination coordinate;
Judge whether all yard elements in the upset region are truncated;
If all yard elements in the upset region are not truncated, the yard element in the upset region is legal;
If the upset region internal memory is truncated in yard element, the yard element in the upset region is illegal.
9. a kind of yard element overturns processing unit, it is characterised in that including:
First acquisition module, for obtaining the origin coordinates of upset instruction and upset region and terminating coordinate;
First detection module, for overturning the station in region described in the origin coordinates according to the upset region and termination coordinate pair
Field element carries out legitimacy detection;
Flip module, if for judging to know that the yard element in the upset region is legal, instructed according to the upset
Upset processing is carried out to each yard element in the upset region.
10. a kind of non-transient computer readable storage medium storing program for executing, it is characterised in that the non-transient computer readable storage medium storing program for executing is deposited
Computer program is stored up, the computer program makes the computer perform the method as described in claim 1 to 8 is any.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710722995.6A CN107562337B (en) | 2017-08-22 | 2017-08-22 | Station yard element overturning processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710722995.6A CN107562337B (en) | 2017-08-22 | 2017-08-22 | Station yard element overturning processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107562337A true CN107562337A (en) | 2018-01-09 |
CN107562337B CN107562337B (en) | 2020-03-27 |
Family
ID=60976629
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710722995.6A Active CN107562337B (en) | 2017-08-22 | 2017-08-22 | Station yard element overturning processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107562337B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112316431A (en) * | 2020-10-16 | 2021-02-05 | 北京冰封互娱科技有限公司 | Interface editing method, device, system, equipment and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102750080A (en) * | 2011-03-30 | 2012-10-24 | 三星电子株式会社 | Electronic apparatus to display a guide with 3d view and method thereof |
CN102975743A (en) * | 2012-11-28 | 2013-03-20 | 北京交控科技有限公司 | Method for automatically arranging trackside equipment |
CN103677550A (en) * | 2012-09-11 | 2014-03-26 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN105912569A (en) * | 2016-03-29 | 2016-08-31 | 网易传媒科技(北京)有限公司 | Method and device for displaying webpage element contained in 3D target scene |
CN106843630A (en) * | 2015-12-07 | 2017-06-13 | 广联达软件股份有限公司 | The display methods of BUILDINGS MODELS and the display system of BUILDINGS MODELS |
-
2017
- 2017-08-22 CN CN201710722995.6A patent/CN107562337B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102750080A (en) * | 2011-03-30 | 2012-10-24 | 三星电子株式会社 | Electronic apparatus to display a guide with 3d view and method thereof |
CN103677550A (en) * | 2012-09-11 | 2014-03-26 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN102975743A (en) * | 2012-11-28 | 2013-03-20 | 北京交控科技有限公司 | Method for automatically arranging trackside equipment |
CN106843630A (en) * | 2015-12-07 | 2017-06-13 | 广联达软件股份有限公司 | The display methods of BUILDINGS MODELS and the display system of BUILDINGS MODELS |
CN105912569A (en) * | 2016-03-29 | 2016-08-31 | 网易传媒科技(北京)有限公司 | Method and device for displaying webpage element contained in 3D target scene |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112316431A (en) * | 2020-10-16 | 2021-02-05 | 北京冰封互娱科技有限公司 | Interface editing method, device, system, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN107562337B (en) | 2020-03-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105718750B (en) | A kind of prediction technique and system of vehicle driving trace | |
CN109754639A (en) | It parks storage method and device | |
CN106325100B (en) | A kind of lifting analogy method based on crane locomotive borne control system | |
CN109284674A (en) | A kind of method and device of determining lane line | |
CN103513981B (en) | The system and method for the mobile equipment of guiding | |
CN104025091A (en) | Aircraft part control system | |
CN111634636A (en) | Full-automatic material taking control system of bucket wheel machine | |
CN109878511A (en) | Processing method, vehicle and the server of vehicle driving model switching | |
WO2014027478A1 (en) | Road environment recognition device | |
CN103456047A (en) | Electronic toll collection lane system and method based on dynamic vehicle detection technology | |
CN110104036A (en) | Tramcar the simulative running system and tramcar dry run method | |
CN115686014B (en) | Subway inspection robot based on BIM model | |
CN110026820A (en) | Lathe collision-proof method and the system for applying it | |
CN107562337A (en) | A kind of yard element overturns processing method and processing device | |
CN111531536A (en) | Robot control method, robot, electronic device, and readable storage medium | |
CN106385444A (en) | Car toll method based on car networking, terminal and server | |
CN108687767A (en) | Offline programming device and off-line programing method | |
CN107516157A (en) | A kind of service chart conflict checks processing method and processing device | |
CN109460757A (en) | Seal location recognition method and device | |
CN114730192A (en) | Object moving system | |
CN107316485A (en) | Reminding method, suggestion device and the terminal device of road state | |
CN107506733A (en) | A kind of obstacle recognition method, mist node and system | |
CN113051969A (en) | Object recognition model training method and vehicle-mounted device | |
CN109801489A (en) | A kind of method and server of auxiliary driving | |
CN105261222A (en) | Urban road traffic network control method and system |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |