CN109671133A - Generation method, device, electronic equipment and the storage medium of track - Google Patents

Generation method, device, electronic equipment and the storage medium of track Download PDF

Info

Publication number
CN109671133A
CN109671133A CN201811516353.1A CN201811516353A CN109671133A CN 109671133 A CN109671133 A CN 109671133A CN 201811516353 A CN201811516353 A CN 201811516353A CN 109671133 A CN109671133 A CN 109671133A
Authority
CN
China
Prior art keywords
track
node
painting canvas
coordinate data
clicking operation
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
CN201811516353.1A
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.)
Chengdu Sefon Software Co Ltd
Original Assignee
Chengdu Sefon Software 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 Chengdu Sefon Software Co Ltd filed Critical Chengdu Sefon Software Co Ltd
Priority to CN201811516353.1A priority Critical patent/CN109671133A/en
Publication of CN109671133A publication Critical patent/CN109671133A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Abstract

The present invention provides generation method, device, electronic equipment and the storage medium of a kind of track, which comprises obtains multiple clicking operations of the user on the painting canvas at Visual Production interface;Based on the multiple clicking operation, obtain and the one-to-one coordinate data of the multiple clicking operation;Click sequence based on the multiple coordinate data and the multiple clicking operation, successively shows and the one-to-one track node of the multiple coordinate data on the painting canvas;Click sequence based on the multiple clicking operation, shows connecting line between the two neighboring track node.Work is drawn by completing track on the painting canvas of visualization interface; it allows users to complete visual, quick track drafting, and track drafting mode is simple, simultaneously; it shows connecting line automatically between the two neighboring track node, improves track formation efficiency.

Description

Generation method, device, electronic equipment and the storage medium of track
Technical field
The present invention relates to data processing fields, in particular to a kind of generation method of track, device, electronic equipment And storage medium.
Background technique
When needing to track is generated on Background, the prior art is substantially directly modified on Background, or It is operated by softwares such as PhotoShop, editing is complicated, tediously long and be difficult to modify.
Summary of the invention
In consideration of it, the embodiment of the present invention provides generation method, device, electronic equipment and the storage medium of a kind of track, with It allows users to complete visual, quick track drafting, it is simple that mode is drawn in track.
In a first aspect, the embodiment of the present invention provides a kind of generation method of track, which comprises obtain user can Depending on metaplasia at multiple clicking operations on the painting canvas at interface;Based on the multiple clicking operation, obtains and grasped with the multiple click Make one-to-one coordinate data;Click sequence based on the multiple coordinate data and the multiple clicking operation, successively exists Display and the one-to-one track node of the multiple coordinate data on the painting canvas;Click based on the multiple clicking operation Sequentially, connecting line is shown between the two neighboring track node.It is drawn by completing track on the painting canvas of visualization interface Work processed allows users to complete visual, quick track drafting, and track drafting mode is simple, meanwhile, adjacent two Automatically connecting line is shown between a track node, improves track formation efficiency.
Based in a first aspect, in a kind of possible design, the click sequence based on the multiple clicking operation, adjacent Connecting line is shown between two track nodes, comprising: after first clicking operation of the click sequence, for every The corresponding track node of a clicking operation shows that first connects between the track node track node adjacent with the track node Wiring;And getting the moving operation by cursor from the track node motion to the cursor position different from the track node When, obtain the slope of line between the track node and the cursor position, and by the Adjusting Shape of first connecting line be with Second connecting line of the slope matched.The shape of the first connecting line can be changed by mobile cursor, it is easy to operate.
Based in a first aspect, in a kind of possible design, the click sequence based on the multiple clicking operation, adjacent After showing connecting line between two track nodes, the method also includes: by the multiple coordinate data, the click Sequence and multiple slopes and the corresponding relationship of track are stored;It is getting for characterizing the finger for showing the track When enabling, based on described instruction from the corresponding relationship, the multiple coordinate data corresponding with the track, the point are obtained Hit sequence and multiple slopes;Obtain pre-set track pattern parameter corresponding with the track, wherein the rail Mark pattern parameter is used to indicate the display effect of the track;It is sequentially and more based on the multiple coordinate data, the click A slope generates on the painting canvas and according to track described in the track pattern parameter display.By this way, it is obtaining When getting for characterizing the instruction for showing track, track described in simultaneously animated show can be quickly generated on the painting canvas, and Change the display effect of the track based on the trajectory parameters, so that keeping track more intuitive, clear, improves visual display effect Fruit.
Based in a first aspect, being based on the multiple coordinate data, multiple slopes, institute in a kind of possible design Click sequence is stated, is generated on the painting canvas and according to track described in the track pattern parameter display, comprising: based on described more A coordinate data and click sequence, successively show and the one-to-one track of the multiple coordinate data on the painting canvas Node;Based on the multiple track node, multiple slopes and the track pattern parameter, generated simultaneously on the painting canvas According to track described in the track pattern parameter display.By this way, accurately it can generate and show on the painting canvas The track.
Based in a first aspect, the track pattern parameter includes: trajectory shape, track face in a kind of possible design At least one parameter in color, track size and broadcasting speed is based on the multiple coordinate data, multiple slopes, institute Click sequence and the track pattern parameter are stated, is generated on the painting canvas and according to described in the track pattern parameter display Track, comprising: institute is generated on the painting canvas based on the multiple coordinate data, multiple slopes and click sequence State track;According to track described in the track pattern parameter display.By this way, the rail more can be intuitively shown Mark improves visual display effect.
Based in a first aspect, in a kind of possible design, the track pattern parameter further include: animation icon, in institute It states and is generated on painting canvas and according to track described in the track pattern parameter display, comprising: the animation icon is based on, in the picture The image for generating on cloth and being moved according to animation icon described in the track pattern parameter display along the track.It is dynamic by being arranged It draws and marks, allow users to determine the vehicles corresponding with the track based on the animation icon, improve user's body It tests.
Based in a first aspect, the painting canvas is transparent painting canvas in a kind of possible design, acquisition user is being visualized Before generating multiple clicking operations on the painting canvas at interface, the method also includes: generate the Visual Production interface;It obtains Background, wherein the painting canvas is covered on the Background.By this way, it allows users to do not needing to modify On the basis of Background, the track drafting on Background is realized, it is easy to operate.
Second aspect, the embodiment of the present invention provide a kind of generating means of track, and described device includes: that clicking operation obtains Unit, for obtaining multiple clicking operations of the user on the painting canvas at Visual Production interface;Coordinate acquiring unit, for being based on The multiple clicking operation obtains and the one-to-one coordinate data of the multiple clicking operation;Node display unit is used for base In the multiple coordinate data and the multiple clicking operation click sequence, successively on the painting canvas display with it is the multiple The one-to-one track node of coordinate data;Track display unit, sequentially for the click based on the multiple clicking operation, Connecting line is shown between the two neighboring track node.
Based on second aspect, in a kind of possible design, the track display unit is also used in the click sequence First clicking operation after, for the corresponding track node of each clicking operation, in the track node and the track node The first connecting line is shown between adjacent track node;And get by cursor from the track node motion to the track When the moving operation of the different cursor position of node, the slope of line between the track node and the cursor position is obtained, and By the second connecting line that the Adjusting Shape of first connecting line is with the slope matched.
Based on second aspect, in a kind of possible design, described device further include: storage unit, being used for will be described more A coordinate data, click sequence and multiple slopes and the corresponding relationship of track are stored;Data capture unit, For when getting for characterizing the instruction for showing the track, based on described instruction from the corresponding relationship, obtain with The corresponding the multiple coordinate data in the track, click sequence and multiple slopes;Track pattern acquiring unit, For obtaining pre-set track pattern parameter corresponding with the track, wherein the track pattern parameter is used to indicate The display effect of the track;Display unit, for sequentially and multiple described based on the multiple coordinate data, the click Slope generates on the painting canvas and according to track described in the track pattern parameter display.
Based on second aspect, in a kind of possible design, the display unit is also used to based on the multiple number of coordinates It sequentially, is successively shown and the one-to-one track node of the multiple coordinate data on the painting canvas according to the click;With And it is based on the multiple track node, multiple slopes and the track pattern parameter, it generates and presses on the painting canvas According to track described in the track pattern parameter display.
Based on second aspect, in a kind of possible design, the track pattern parameter includes: trajectory shape, track face At least one parameter in color, track size and broadcasting speed, the display unit are also used to, and are based on the multiple number of coordinates The track is generated on the painting canvas according to, multiple slopes and click sequence;And according to the track pattern Track described in parameter display.
Based on second aspect, in a kind of possible design, the track pattern parameter further include: animation icon, it is described Display unit is also used to, and is based on the animation icon, is generated on the painting canvas and according to track pattern parameter display institute State the image that animation icon is moved along the track.
Based on second aspect, in a kind of possible design, the painting canvas is transparent painting canvas, described device further include: Visual Production interface generation unit, for generating the Visual Production interface;Background acquiring unit, for obtaining background Figure, wherein the painting canvas is covered on the Background.
The third aspect, the embodiment of the present invention provides a kind of electronic equipment, including processor and is connected to the processor Memory, computer program is stored in the memory, when the computer program is executed by the processor, so that institute It states electronic equipment and executes method described in first aspect.
Fourth aspect, the embodiment of the present invention provide a kind of storage medium, are stored with computer program in the storage medium, When the computer program is run on computers, so that the computer executes method described in first aspect.
Other features and advantages of the present invention will be illustrated in subsequent specification, also, partly be become from specification It is clear that by implementing understanding of the embodiment of the present invention.The objectives and other advantages of the invention can be by written theory Specifically noted structure is achieved and obtained in bright book, claims and attached drawing.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the structural schematic diagram of electronic equipment provided in an embodiment of the present invention;
Fig. 2 is the flow chart of the generation method for the track that first embodiment of the invention provides;
Fig. 3 is the first schematic diagram of generating mode for the track that first embodiment of the invention provides;
Fig. 4 is the second schematic diagram of generating mode for the track that first embodiment of the invention provides;
Fig. 5 is the generating mode third schematic diagram for the track that first embodiment of the invention provides;
Fig. 6 is the 4th schematic diagram of generating mode for the track that first embodiment of the invention provides;
Fig. 7 is the structural schematic diagram of the generating means for the track that second embodiment of the invention provides.
Icon: 100- electronic equipment;110- memory;120- storage control;130- processor;140- Peripheral Interface; 150- input-output unit;160- audio unit;170- display unit;410- clicking operation acquiring unit;420- coordinate obtains Unit;430- node display unit;The track 440- display unit.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the invention In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
The embodiment of the present invention provides the structural schematic diagram of a kind of electronic equipment 100, and the electronic equipment 100 can be individual Computer (personal computer, PC), tablet computer, smart phone, personal digital assistant (personal digital Assistant, PDA) etc..
As shown in Figure 1, the electronic equipment 100 may include: the generating means of track, memory 110, storage control 120, processor 130, Peripheral Interface 140, input-output unit 150, audio unit 160, display unit 170.
The memory 110, storage control 120, processor 130, Peripheral Interface 140, input-output unit 150, sound Frequency unit 160 and each element of display unit 170 are directly or indirectly electrically connected between each other, with realize data transmission or Interaction.It is electrically connected for example, these elements can be realized between each other by one or more communication bus or signal wire.The rail The generating means of mark include at least one can be stored in the form of software or firmware (firmware) in the memory 110 or The software function module being solidificated in the operating device (operating system, OS) of client device.The processor 130 For executing the executable module stored in memory 110, such as the generating means software function module that includes of the track Or computer program.
Wherein, memory 110 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc.. Wherein, memory 110 is for storing program, and the processor 130 executes described program after receiving and executing instruction, aforementioned Method performed by the electronic equipment 100 for the flow definition that any embodiment of the embodiment of the present invention discloses can be applied to processor In 130, or realized by processor 130.
Processor 130 may be a kind of IC chip, the processing capacity with signal.Above-mentioned processor 130 can To be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;Can also be digital signal processor (DSP), specific integrated circuit (ASIC), Field programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hard Part component.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor It can be microprocessor or the processor be also possible to any conventional processor etc..
Various input/output devices are couple processor 130 and memory 110 by the Peripheral Interface 140.Some In embodiment, Peripheral Interface 140, processor 130 and storage control 120 can be realized in one single chip.Other one In a little examples, they can be realized by independent chip respectively.
Input-output unit 150 is used to be supplied to the interaction that user input data realizes user and electronic equipment 100.It is described Input-output unit 150 may be, but not limited to, mouse and keyboard etc..
Audio unit 160 provides a user audio interface, may include one or more microphones, one or more raises Sound device and voicefrequency circuit.
Display unit 170 provides an interactive interface (such as user interface) between electronic equipment 100 and user Or it is referred to for display image data to user.In the present embodiment, the display unit 170 can be liquid crystal display or touching Control display.It can be the touching of the capacitance type touch control screen or resistance-type of support single-point and multi-point touch operation if touch control display Control screen etc..Single-point and multi-point touch operation is supported to refer to that touch control display can sense on the touch control display one or more The touch control operation generated simultaneously at a position, and the touch control operation that this is sensed transfers to processor 130 to be calculated and handled.
First embodiment
Referring to figure 2., Fig. 2 is a kind of flow chart of the generation method for track that first embodiment of the invention provides, described Method is applied to electronic equipment 100 as shown in Figure 1, process shown in Fig. 2 will be described in detail below, the method packet It includes:
S100: multiple clicking operations of the user on the painting canvas at Visual Production interface are obtained.
As an implementation, the multiple clicking operation can be user by mouse in Visual Production circle Clicking operation on the painting canvas in face;As an implementation, described more when the display screen of electronic equipment is touching display screen A clicking operation can be user by hand or stylus in the click on the painting canvas at the Visual Production interface Operation;It as an implementation, include: paintbrush icon on the painting canvas, for characterizing the icon completed and being used for Characterization deletes at least one of the icon of image drawn;As an implementation, can also not scheme on the painting canvas Mark.It in the present embodiment, include: paintbrush icon on the painting canvas, for characterizing the icon completed and being deleted for characterization Except the icon of the image of drafting;In track drafting, user can by mouse click paintbrush icon to choose paintbrush, mouse Cursor becomes the pattern of paintbrush, and characterization starts to carry out painting mode, enterprising in the painting canvas by mouse control paintbrush in user When row clicking operation, multiple clicking operations of the user on the painting canvas at Visual Production interface are obtained.As an implementation, The painting canvas is opaque painting canvas;As an implementation, the painting canvas is transparent painting canvas.
In the present embodiment, the painting canvas is transparent painting canvas, wherein the painting canvas is the transparent painting canvas of blank, Before S100, the method also includes: generate the Visual Production interface, the Visual Production interface include: painting canvas and Editing area, wherein multiple functions component is integrated in the editing area, in the present embodiment, the multiple functions component includes: The type of at least one of Background component, player module, track styling component etc., component can be added to institute according to demand It states in editing area, the type of component is with no restriction;User can be clicked on electronic equipment by mouse, person's hand or stylus Icon is drawn in track, draws instruction to server to send, responds described instruction, generate Visual Production interface;Obtain background Figure, as an implementation, it is used can be by clicking the Background component in the editing area come from storage Background Background is chosen in file;Wherein, the Background can be the traffic roadmaps such as itinerant map, highway map, hydrographic chart, the back Scape figure may be circuit diagram, architectural drawing etc., wherein the pattern of Background is with no restriction;Wherein, the Visual Production interface Painting canvas be covered on the Background, when user is by the track drafting on the painting canvas, be considered as user described Track drafting on Background, it is easy to operate without directly carrying out any modification to Background.
By this way, it allows users on the basis of not needing modification Background, realization is drawn on Background Track, it is easy to operate.
S200: being based on the multiple clicking operation, obtains and the one-to-one coordinate data of the multiple clicking operation.
Wherein, with no restriction, the quantity of the clicking operation can be two, three to the quantity of the multiple clicking operation A, four, five etc., the corresponding coordinate data of a clicking operation, for example, need to draw A on A map in user When track, wherein the track A needs the point comprising 4 geographical locations, wherein the course bearing of the track A is A1- " A2- " A3- " A4, A1 are departure place, and A4 is destination, wherein painting canvas is covered on A map, and therefore, user's control paintbrush is in electronic equipment The position A1, the position A2, the position A3 and the position A4 on A map are successively clicked on the painting canvas at Visual Production interface, are successively obtained Clicking operation, and it is based on clicking operation, obtain coordinate data corresponding with the clicking operation, it is to be understood that exist in user When the position A1 on painting canvas carries out clicking operation, the coordinate data of the position A1 is obtained, is carried out in A2 position of the user on painting canvas When clicking operation, the coordinate data of the position A2 is obtained, wherein the coordinate data is two-dimensional coordinate data, in the present embodiment, It can be by establishing two-dimensional coordinate by origin of the center of painting canvas, in other embodiments, it can also be by with the lower-left of painting canvas Angle point is that origin establishes two-dimensional coordinate, can also be that origin establishes two-dimensional coordinate by the bottom right angle point of painting canvas, two-dimensional coordinate Establish mode with no restriction.
S300: the click sequence based on the multiple coordinate data and the multiple clicking operation, successively in the painting canvas Upper display and the one-to-one track node of the multiple coordinate data.
Wherein, in the present embodiment, the quantity of the multiple coordinate data can be two, three, four etc., coordinate Quantity with no restriction, in user when executing one click operation on painting canvas, obtains the corresponding coordinate data of the clicking operation, and Track corresponding with coordinate data node is shown on the painting canvas based on the coordinate data.For example, referring to figure 3. and Fig. 4 is needed in user when drawing the track A on the painting canvas for being covered on A map, wherein the course bearing of the track A is A1- " A2- " A3- " A4, user successively click covering A map painting canvas on the position A1, the position A2, the position A3 and the position A4, therefore, click Then sequence clicks the position A2 first to click the position A1, then click the position A3, finally clicks the position A4 and therefore presses on painting canvas According to click sequence, track node successively is shown on the position A1, the position A2, the position A3 and the position A4, it is to be understood that When electricity clicks the position A1, track node is shown in the position A1, wherein the shape of track node can be circle, square, origin Color Deng, track node is black, red, grey etc..Wherein, the shape, color of track node be with no restriction.
S400: the click sequence based on the multiple clicking operation, the company of display between the two neighboring track node Wiring.
As an implementation, referring to figure 3. and Fig. 4, it is the first click position A1 in click sequence, then clicks A2 It sets, then clicks the position A3, when finally clicking the position A4, when clicking the position A1, position corresponding with the position A1 is aobvious on painting canvas Show the track B1 node, when clicking the position A2, position corresponding with the position A2 shows the track B2 node on painting canvas, meanwhile, Connecting line is shown automatically between the track B1 node and the track B2 node, wherein the connecting line is for connecting the track B1 node and B2 Track node, when clicking A3 is position, position corresponding with the position A3 shows the track B3 node on painting canvas, meanwhile, in B2 Connecting line is shown automatically between track node and the track B3 node, it is corresponding with the position A4 on painting canvas when clicking A4 is position Position show the track B4 node, meanwhile, connecting line is shown automatically between the track B3 node and the track B4 node, in this implementation In example, which is straight line.As an implementation, which can be curve.Wherein, the shape of connecting line can be with Color for dotted line, solid line, connecting line can be black, grey, red etc., and thickness, shape, color of connecting line etc. can bases User demand setting.
By automatically generating the line between adjacent track node, track formation efficiency is improved.
As an implementation, S400 includes:
It, can for the corresponding track node of each clicking operation after first clicking operation of the click sequence With understanding, referring to figure 5. and Fig. 6, it is the first click position A1 in click sequence, then clicks the position A2, then click A3 It sets, when finally clicking the position A4, wherein the track node of the position A1 is B1, and the track node of the position A2 is B2, the rail of the position A3 Mark node is B3, and the track node of the position A4 is B4, and for track node be B2, track node is B3 and track node is B4 shows the first connecting line between the track node track node adjacent with the track node, and successively in track, node is The first connecting line is shown automatically between B2 and track node B1, shows automatically between B2 and track node B3 in track node One connecting line, and the first connecting line is shown automatically between B3 and track node B4 in track node, wherein the first connecting line For straight line, and getting the mobile behaviour by cursor from the track node motion to the cursor position different from the track node When making, the slope of line between the track node and the cursor position is obtained, it is to be understood that in cursor (paintbrush) from B3 When track node motion is to position (the C11 position) different from the track B3 node, obtains and connect between the track B3 node and the position C11 The slope of line, wherein such as coordinate of the track B3 node is (X1, Y1), when the coordinate of the position C11 is (X2, Y2), the track B3 section Slope k 1=(Y2-Y1)/(X2-X1) between point and the position C11, and be and the slope by the Adjusting Shape of first connecting line Matched second connecting line W, it is to be understood that the between the track B1 node and the track B2 node is adjusted based on the slope k 1 One connecting line is the second connecting line so that the first connecting line adjusted to cut rate equal with the slope k 1, be not 0 in slope k 1 When, the first connecting line adjusted is curve.
Work is drawn by completing track on the painting canvas of visualization interface, allows users to complete visual, quick Track drafting, and track is drawn and modification mode is simple, meanwhile, the company of display automatically between the two neighboring track node Wiring improves track formation efficiency.
As an implementation, after S400, the method also includes:
S500: by the corresponding relationship of the multiple coordinate data, click sequence and the multiple slopes and track It is stored.
In the track A, corresponding coordinate data is (A1, A2, A3), and click sequence is (first to click the position A1, click A2 again Set, finally click the position A3), the position A1 slope corresponding with the line of the position A2 is k1, the line pair of the position A2 and the position A3 The slope answered is k2, and the corresponding coordinate data in the track A, click sequence and slope are stored in A11 relationship column correspondingly In table.
In the track B, corresponding coordinate data is (B1, B2, B3), and click sequence is (first to click the position B1, click B2 again Set, finally click the position B3), the position B1 slope corresponding with the line of the position B2 is k3, and the position B2 is corresponding with the position B3 tiltedly Rate is k4, and the corresponding coordinate data in the track B, click sequence and slope are stored in correspondingly in B11 relation list.
It is understood that by inquiry A11 relation list, it will be able to get the corresponding multiple coordinate datas in the track A, The corresponding relationship of click sequence, multiple slopes and each slope and each coordinate data, improves search efficiency.
S600: when getting for characterizing the instruction for showing the track, described instruction is based on from the corresponding relationship In, obtain the multiple coordinate data corresponding with the track, click sequence and multiple slopes.
It is understood that responding described instruction, and be based on institute when getting for characterizing the instruction for showing the track A Instruction is stated from the corresponding relationship of the track and parameter information, finding the coordinate data being stored in A11 relation list is (A1, A2, A3), click sequence be (first click the position A1, click the position A2 again, finally click the position A3), the position A1 with A2 The corresponding slope of the line set is k1, and the position A2 slope corresponding with the line of the position A3 is k2.
S700: pre-set track pattern parameter corresponding with the track is obtained, wherein the track pattern parameter It is used to indicate the display effect of the track.
As an implementation, when user needs to show the track A, user can directly by electronic equipment can Depending on metaplasia at the data of input trajectory pattern parameter in the editing machine on interface, it is to be understood that user can also by Editing machine modifies the data of track pattern parameter, as an implementation, described instruction can be based on, from pre-stored A In the corresponding relationship of the corresponding track pattern parameter in track, the track pattern parameter of the track A is obtained.Wherein, the track Pattern parameter is used to indicate the display effect of the track.It is understood that track pattern parameter include: trajectory shape and When the color of track, for example, it is black that the shape of track node, which is round, Node color, in setting track, between the node of track When lines are dotted line, when line color is red, in the track A that is generated on the painting canvas shape of track node for it is round, Node color is that the lines between black, track node are dotted line and line color is red.
By this way, visual effect can be improved, track is more intuitively shown, while user can root Track pattern parameter is set according to oneself demand, it is easy to operate.
S800: raw on the painting canvas based on the multiple coordinate data, click sequence and multiple slopes At and according to track described in the track pattern parameter display.
As an implementation, S800 includes:
Based on the multiple coordinate data and click sequence, successively shown and the multiple coordinate on the painting canvas The one-to-one track node of data.
For example, coordinate data be (A1, A2, A3), click sequence be (first click the position A1, click the position A2 again, Finally click the position A3) when, successively show that track node A1, A2 coordinate position shows track section on the A1 coordinate position on painting canvas Track node A3 is shown on point A2 and A3 coordinate position, it is to be understood that the corresponding track node of a coordinate position.
It is raw on the painting canvas based on the multiple track node, multiple slopes and the track pattern parameter At and according to track described in the track pattern parameter display.
For example, A corresponding the multiple track node in track includes: track node A1, track node A2 and rail Mark node A3, multiple slopes include: that node A1 slope corresponding with the line of track node A2 in track is k1, track node A2 slope corresponding with the line of track node A3 is k2, based between slope k 1 track drafting node A1 and track node A2 Line, wherein line between track node A1 and track node A2 to cut rate equal with k1, be based on 2 track drafting section of slope k Line between point A2 and track node A3, wherein line between track node A2 and track node A3 cuts rate and k2 phase Deng then, based on the display effect of track pattern parameter instruction track A, and by track A in the enterprising action exhibition of paintings of painting canvas Show, it is to be understood that if the painting canvas is covered on A Background corresponding with track A, when carrying out animated show, By A Background and the track A what is meant by a body display, allow users to more intuitively watch the track.
As an implementation, the track pattern parameter include: trajectory shape, track color, track size and At least one parameter in broadcasting speed, S800 include:
As an implementation, in track, pattern parameter includes: that trajectory shape and/or track color and/or track are big Small and/or broadcasting speed.
As an implementation, in track, pattern parameter includes trajectory shape, track color, track size and broadcasting When speed, based on the multiple first coordinate data, the multiple first slope, first click sequence, the track shape Shape, the track color and the track size, generate the track on the painting canvas.
Wherein, the track pattern includes: track node shape and stripe shape, and the track color includes: track section Point color and line color, track size include: track node size and line weight.
According to the multiple coordinate data and click sequence, track node shape and color, successively in the painting canvas Upper display and the multiple coordinate data, track node shape and the one-to-one track node of color, and based on the multiple Track node, multiple slopes, stripe shape and color generate the track.
Based on the broadcasting speed on the painting canvas track described in animated show, wherein the broadcasting speed includes: line The broadcasting speed of item, the broadcasting speed of track node.
The track is played by way of animation, allows users to more intuitively watch the track.
As an implementation, the track pattern parameter further include: animation icon, S800 include:
Based on the animation icon, generated on the painting canvas and according to animation figure described in the track pattern parameter display Mark the image moved along the track.
Wherein, the animation icon can be dynamic from storage by clicking the animation icon component in Visual Production interface Animation icon is obtained in picture target file, wherein the animation icon can be aircraft, canoe etc., and the animation icon is used In being characterized in the vehicles that can be run on track, wherein in the present embodiment, the animation icon is small ship time, The image that simultaneously animated show canoe is moved along the track is generated on the painting canvas.
By the way that animation icon is arranged, allow users to determine friendship corresponding with the track based on the animation icon Logical tool, improves user experience.
Second embodiment
Fig. 7 is please referred to, Fig. 7 is a kind of structural block diagram of the generating means for track that second embodiment of the invention provides.Institute It states device and is stored in electronic equipment 100 as described in Figure 1, structural block diagram shown in Fig. 7 will be illustrated below, shown device Include:
Clicking operation acquiring unit 410, for obtaining multiple clicks behaviour of the user on the painting canvas at Visual Production interface Make.
Coordinate acquiring unit 420 obtains a pair of with the multiple clicking operation one for being based on the multiple clicking operation The coordinate data answered.
Node display unit 430, sequentially for the click based on the multiple coordinate data and the multiple clicking operation, Successively display and the one-to-one track node of the multiple coordinate data on the painting canvas.
Track display unit 440, for the click sequence based on the multiple clicking operation, in the two neighboring track Connecting line is shown between node.
As an implementation, track display unit 440 is also used to first clicking operation in the click sequence Later, for the corresponding track node of each clicking operation, the track node track node adjacent with the track node it Between show the first connecting line;And it is getting cursor from the track node motion to the cursor position different from the track node When the moving operation set, the slope of line between the track node and the cursor position is obtained, and by first connecting line Adjusting Shape is the second connecting line with the slope matched.
As an implementation, described device further include: storage unit, for by the multiple coordinate data, described Click sequence and multiple slopes and the corresponding relationship of track are stored;Data capture unit, for getting use When characterization shows the instruction of the track, based on described instruction from the corresponding relationship, obtain corresponding with the track The multiple coordinate data, click sequence and multiple slopes;Track pattern acquiring unit, sets in advance for obtaining The track pattern parameter corresponding with the track set, wherein the track pattern parameter is used to indicate the display of the track Effect;Display unit, for being based on the multiple coordinate data, click sequence and multiple slopes, in the picture It is generated on cloth and according to track described in the track pattern parameter display.
As an implementation, the display unit is also used to suitable based on the multiple coordinate data and the click Sequence is successively shown and the one-to-one track node of the multiple coordinate data on the painting canvas;And based on the multiple Track node, multiple slopes and the track pattern parameter generate on the painting canvas and according to the track pattern Track described in parameter display.
As an implementation, the track pattern parameter include: the track pattern parameter include: trajectory shape, At least one parameter in track color, track size and broadcasting speed, the display unit are also used to, based on the multiple Coordinate data, multiple slopes and click sequence generate the track on the painting canvas;And according to the rail Track described in mark pattern parameter display.As an implementation, the track pattern parameter further include: animation icon, it is described Display unit is also used to, and is based on the animation icon, is generated on the painting canvas and according to track pattern parameter display institute State the image that animation icon is moved along the track.
As an implementation, the painting canvas is transparent painting canvas, described device further include: Visual Production interface is raw At unit, for generating the Visual Production interface;Background acquiring unit, for obtaining Background, wherein the painting canvas It is covered on the Background.
The present embodiment realizes the process of respective function to each functional unit of the generating means of track, refers to above-mentioned Fig. 2 Content described in illustrated embodiment, details are not described herein again.
In addition, it is stored with computer program in the storage medium the embodiment of the invention also provides a kind of storage medium, When the computer program is run on computers, so that the computer executes any one of present invention embodiment and is provided Track generation method.
In conclusion the generation method of track, device, electronic equipment and storage medium that various embodiments of the present invention propose Beneficial effect is: the described method includes: obtaining multiple clicking operations of the user on the painting canvas at Visual Production interface;Based on institute Multiple clicking operations are stated, are obtained and the one-to-one coordinate data of the multiple clicking operation;Based on the multiple coordinate data With the click sequence of the multiple clicking operation, successively shown on the painting canvas one-to-one with the multiple coordinate data Track node;Click sequence based on the multiple clicking operation, shows connecting line between the two neighboring track node. Draw work by completing track on the painting canvas of visualization interface, allow users to complete it is visual, quickly draw rail Mark, and track drafting mode is simple, meanwhile, it shows connecting line automatically between the two neighboring track node, improves track Formation efficiency.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product, Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code Part, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be held Row instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacement The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes It can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chart The combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movement It realizes, or can realize using a combination of dedicated hardware and computer instructions in the device of hardware.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.

Claims (10)

1. a kind of generation method of track, which is characterized in that the described method includes:
Obtain multiple clicking operations of the user on the painting canvas at Visual Production interface;
Based on the multiple clicking operation, obtain and the one-to-one coordinate data of the multiple clicking operation;
Click based on the multiple coordinate data and the multiple clicking operation sequentially, is successively shown on the painting canvas and institute State the one-to-one track node of multiple coordinate datas;
Click sequence based on the multiple clicking operation, shows connecting line between the two neighboring track node.
2. the method according to claim 1, wherein the click based on the multiple clicking operation is sequentially, in phase Connecting line is shown between adjacent two track nodes, comprising:
After first clicking operation of the click sequence, for the corresponding track node of each clicking operation, in the rail The first connecting line is shown between the mark node track node adjacent with the track node;And
When getting the moving operation by cursor from the track node motion to the cursor position different from the track node, obtain The slope of line between the track node and the cursor position is taken, and is and the slope by the Adjusting Shape of first connecting line Matched second connecting line.
3. according to the method described in claim 2, it is characterized in that, the method also includes: be based on the multiple clicking operation Click sequence, after showing connecting line between the two neighboring track node, the method also includes:
The multiple coordinate data, click sequence and multiple slopes and the corresponding relationship of track are stored;
When getting for characterizing the instruction for showing the track, based on described instruction from the corresponding relationship, obtain with The corresponding the multiple coordinate data in the track, click sequence and multiple slopes;
Obtain pre-set track pattern parameter corresponding with the track, wherein the track pattern parameter is used to indicate The display effect of the track;
Based on the multiple coordinate data, the click sequence and multiple slopes, on the painting canvas generate and according to Track described in the track pattern parameter display.
4. according to the method described in claim 3, it is characterized in that, being based on the multiple coordinate data, multiple slopes, institute Click sequence is stated, is generated on the painting canvas and according to track described in the track pattern parameter display, comprising:
Based on the multiple coordinate data and click sequence, successively shown and the multiple coordinate data on the painting canvas One-to-one track node;
Based on the multiple track node, multiple slopes and the track pattern parameter, generated simultaneously on the painting canvas According to track described in the track pattern parameter display.
5. the method according to weighing and require 3, which is characterized in that the track pattern parameter includes: trajectory shape, track face At least one parameter in color, track size and broadcasting speed is based on the multiple coordinate data, multiple slopes, institute Click sequence and the track pattern parameter are stated, is generated on the painting canvas and according to described in the track pattern parameter display Track, comprising:
The rail is generated on the painting canvas based on the multiple coordinate data, multiple slopes and click sequence Mark;
According to track described in the track pattern parameter display.
6. according to the method described in claim 4, it is characterized in that, the track pattern parameter further include: animation icon, in institute It states and is generated on painting canvas and according to track described in the track pattern parameter display, comprising:
Based on the animation icon, generated on the painting canvas and according to animation icon edge described in the track pattern parameter display The mobile image in the track.
7. obtaining user visual the method according to claim 1, wherein the painting canvas is transparent painting canvas Before metaplasia is at multiple clicking operations on the painting canvas at interface, the method also includes:
Generate the Visual Production interface;
Obtain Background, wherein the painting canvas is covered on the Background.
8. a kind of generating means of track, which is characterized in that described device includes:
Clicking operation acquiring unit, for obtaining multiple clicking operations of the user on the painting canvas at Visual Production interface;
Coordinate acquiring unit, for being based on the multiple clicking operation, acquisition is sat correspondingly with the multiple clicking operation Mark data;
Node display unit successively exists for the click sequence based on the multiple coordinate data and the multiple clicking operation Display and the one-to-one track node of the multiple coordinate data on the painting canvas;
Track display unit, for based on the multiple clicking operation click sequence, the two neighboring track node it Between show connecting line.
9. a kind of electronic equipment, which is characterized in that including processor and the memory being connected to the processor, the storage Computer program is stored in device, when the computer program is executed by the processor, so that the electronic equipment right of execution Benefit requires method described in any one of 1-7.
10. a kind of storage medium, which is characterized in that computer program is stored in the storage medium, when the computer journey When sequence is run on computers, so that the computer executes the method as described in any one of claim 1-7.
CN201811516353.1A 2018-12-12 2018-12-12 Generation method, device, electronic equipment and the storage medium of track Pending CN109671133A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811516353.1A CN109671133A (en) 2018-12-12 2018-12-12 Generation method, device, electronic equipment and the storage medium of track

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811516353.1A CN109671133A (en) 2018-12-12 2018-12-12 Generation method, device, electronic equipment and the storage medium of track

Publications (1)

Publication Number Publication Date
CN109671133A true CN109671133A (en) 2019-04-23

Family

ID=66143835

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811516353.1A Pending CN109671133A (en) 2018-12-12 2018-12-12 Generation method, device, electronic equipment and the storage medium of track

Country Status (1)

Country Link
CN (1) CN109671133A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928474A (en) * 2019-09-20 2020-03-27 捷开通讯(深圳)有限公司 Junk file cleaning method and device, storage medium and terminal
CN112785083A (en) * 2021-02-04 2021-05-11 腾讯科技(深圳)有限公司 Arrival time estimation method and device, electronic equipment and storage medium
CN113407098A (en) * 2021-07-30 2021-09-17 广州朗国电子科技股份有限公司 Whiteboard anti-flicker method and device based on android
CN113590002A (en) * 2020-04-30 2021-11-02 京东方科技集团股份有限公司 Handwriting forming method, handwriting forming device and electronic equipment
CN113946262A (en) * 2020-07-15 2022-01-18 中移(苏州)软件技术有限公司 Color taking method and device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034439A (en) * 2012-11-30 2013-04-10 广东欧珀移动通信有限公司 Method and device for generating drawing file
CN105190697A (en) * 2012-12-21 2015-12-23 思杰系统有限公司 Systems and methods for presenting a free-form drawing
CN105677818A (en) * 2015-12-31 2016-06-15 华南师范大学 Drawing method and system based on mobile positioning and electronic map
CN106020653A (en) * 2016-04-29 2016-10-12 努比亚技术有限公司 Device and method for man-machine interaction
CN106023279A (en) * 2016-05-09 2016-10-12 广州视睿电子科技有限公司 Curve drawing method and system
CN107239216A (en) * 2016-03-28 2017-10-10 北大方正集团有限公司 Drawing modification method and apparatus based on touch-screen
CN108563673A (en) * 2018-02-01 2018-09-21 中国铁路设计集团有限公司 A method of the embedded railway line position in GIS map

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034439A (en) * 2012-11-30 2013-04-10 广东欧珀移动通信有限公司 Method and device for generating drawing file
CN105190697A (en) * 2012-12-21 2015-12-23 思杰系统有限公司 Systems and methods for presenting a free-form drawing
CN105677818A (en) * 2015-12-31 2016-06-15 华南师范大学 Drawing method and system based on mobile positioning and electronic map
CN107239216A (en) * 2016-03-28 2017-10-10 北大方正集团有限公司 Drawing modification method and apparatus based on touch-screen
CN106020653A (en) * 2016-04-29 2016-10-12 努比亚技术有限公司 Device and method for man-machine interaction
CN106023279A (en) * 2016-05-09 2016-10-12 广州视睿电子科技有限公司 Curve drawing method and system
CN108563673A (en) * 2018-02-01 2018-09-21 中国铁路设计集团有限公司 A method of the embedded railway line position in GIS map

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928474A (en) * 2019-09-20 2020-03-27 捷开通讯(深圳)有限公司 Junk file cleaning method and device, storage medium and terminal
CN113590002A (en) * 2020-04-30 2021-11-02 京东方科技集团股份有限公司 Handwriting forming method, handwriting forming device and electronic equipment
WO2021218448A1 (en) * 2020-04-30 2021-11-04 京东方科技集团股份有限公司 Handwriting forming method and apparatus, and electronic device
US20220261146A1 (en) * 2020-04-30 2022-08-18 Boe Technology Group Co., Ltd. Handwriting Forming Method and Apparatus, and Electronic Device
US11809701B2 (en) * 2020-04-30 2023-11-07 Boe Technology Group Co., Ltd. Handwriting forming method and apparatus, and electronic device
CN113590002B (en) * 2020-04-30 2024-04-16 京东方科技集团股份有限公司 Handwriting forming method, handwriting forming device and electronic equipment
CN113946262A (en) * 2020-07-15 2022-01-18 中移(苏州)软件技术有限公司 Color taking method and device and storage medium
CN113946262B (en) * 2020-07-15 2024-04-09 中移(苏州)软件技术有限公司 Color taking method and device and storage medium
CN112785083A (en) * 2021-02-04 2021-05-11 腾讯科技(深圳)有限公司 Arrival time estimation method and device, electronic equipment and storage medium
CN112785083B (en) * 2021-02-04 2022-05-10 腾讯科技(深圳)有限公司 Arrival time estimation method and device, electronic equipment and storage medium
CN113407098A (en) * 2021-07-30 2021-09-17 广州朗国电子科技股份有限公司 Whiteboard anti-flicker method and device based on android
CN113407098B (en) * 2021-07-30 2021-12-03 广州朗国电子科技股份有限公司 Whiteboard anti-flicker method and device based on android

Similar Documents

Publication Publication Date Title
CN109671133A (en) Generation method, device, electronic equipment and the storage medium of track
Langner et al. Multiple coordinated views at large displays for multiple users: Empirical findings on user behavior, movements, and distances
US9268423B2 (en) Definition and use of node-based shapes, areas and windows on touch screen devices
KR102184269B1 (en) Display apparatus, portable apparatus and method for displaying a screen thereof
CN104137043A (en) Method for human-computer interaction on a graphical user interface (gui)
CN104423799B (en) Interface arrangement and interface method
Lee et al. SketchInsight: Natural data exploration on interactive whiteboards leveraging pen and touch interaction
Austin et al. Elicitation study investigating hand and foot gesture interaction for immersive maps in augmented reality
AU2014318661A1 (en) Simultaneous hover and touch interface
CN110362231B (en) Head-up touch device, image display method and device
CN104081307A (en) Image processing apparatus, image processing method, and program
CN103049934A (en) Roam mode realizing method in three-dimensional scene simulation system
KR20150024247A (en) Method and apparatus for executing application using multiple input tools on touchscreen device
CN104615366B (en) A kind of gesture interaction method towards many equipment
EP3679825A1 (en) A printing method and system of a nail printing apparatus, and a medium thereof
CN104412213A (en) Image display device and image display system
CN106600664B (en) drawing method and device of symmetric graph
JP2022530145A (en) Virtual paint brush implementation method, device and computer readable storage medium
CN111061381A (en) Screen global input control system and method
CN105243469A (en) Method for mapping from multidimensional space to low-dimensional space, and display method and system
JP6295519B2 (en) Display processing apparatus, system, and display processing program
CN104951223B (en) A kind of touch screen realizes the method, apparatus and host of magnifying glass
CN113741775A (en) Image processing method and device and electronic equipment
CN105740456A (en) Device for displaying plurality of webpages or applications and multi-screen display method and device
EP2887195A1 (en) A computer-implemented method for designing a three-dimensional modeled object

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190423

RJ01 Rejection of invention patent application after publication