CN104932880A - Path building method in application and path building device in application - Google Patents

Path building method in application and path building device in application Download PDF

Info

Publication number
CN104932880A
CN104932880A CN201510287829.9A CN201510287829A CN104932880A CN 104932880 A CN104932880 A CN 104932880A CN 201510287829 A CN201510287829 A CN 201510287829A CN 104932880 A CN104932880 A CN 104932880A
Authority
CN
China
Prior art keywords
path
described
point
application
circuit picture
Prior art date
Application number
CN201510287829.9A
Other languages
Chinese (zh)
Inventor
胡晓天
赖武功
Original Assignee
广东小天才科技有限公司
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 广东小天才科技有限公司 filed Critical 广东小天才科技有限公司
Priority to CN201510287829.9A priority Critical patent/CN104932880A/en
Publication of CN104932880A publication Critical patent/CN104932880A/en

Links

Abstract

The invention provides a path building method in an application. The method comprises the following steps of: obtaining a route picture of a path to be generated in the application; tracking a moving operation triggered in the route picture to obtain correspondingly changed points; recording points conforming to the preset distance range to obtain path point information of the route picture; and writing in the path point information to obtain a path data file of the application. The invention also provides a path building device in the application, and the path building device in the application corresponds to the method. The path building method in the application and the path building device in the application have the advantages that the manual point-by-point recording is not needed, so that the workload is reduced, and the occurrence of errors is avoided.

Description

Path construction method in application and device

Technical field

The present invention relates to Computer Applied Technology field, particularly relate to the path construction method in a kind of application and device.

Background technology

Along with the exploitation of the application based on various function, increasing application shows for user provides various function by scene wherein, such as, during the application of written analogue class and game class are applied, the display of scene contains various path, such as, in game, virtual role carries out moving the path with change in location, and in written analogue, user triggers the path etc. of track input.

Therefore, correspond, in the exploitation of application, need the structure carrying out path according to the line chart picture related to.Existing path construction includes two kinds of modes, and the first is for the path of rule, and e.g., the paths such as garden circle, ellipse garden, calculate by comparatively simple mathematical formulae; It two is that then developer can only carry out manual pointwise record for comparatively complicated path, and workload is very large, and there is the defect being easy to occur error.

Summary of the invention

In addition, be necessary to provide one not need manual pointwise record, to reduce workload, avoid the path construction method occurred in the application of error.

In addition, there is a need to provide one not need manual pointwise record, to reduce workload, avoid the route construction device occurred in the application of error.

A path construction method in application, comprising:

Obtain the circuit picture in path to be generated in application;

Follow the tracks of the point that the mobile operation triggered in described circuit picture obtains respective change;

Record the point conformed to the distance range preset, to obtain the path point information of described circuit picture;

Write the path data file that described path point information obtains described application.

In one embodiment, the step that the mobile operation triggered in the described circuit picture of described tracking obtains the point of respective change comprises:

In described circuit picture, described point is to obtain the initial path point in path;

Intercept with the mobile operation that is start trigger of described initial path point, the mobile operation following the tracks of described triggering obtains the point of respective change.

In one embodiment, the point that described record conforms to the distance range preset, comprises with the step of the path point information obtaining described circuit picture:

The point of the change obtained described in computing and the distance above between a bit;

Judge whether described distance conforms to described default distance range, if yes, then

Obtain described corresponding path point information.

In one embodiment, the step that path point information described in said write obtains the path data file of described application comprises:

By the current path point information obtained with described circuit picture for index writes the path data file of described application successively.

In one embodiment, described method also comprises:

According to the circuit picture loaded read path dot information successively in the path data file of described application;

The path point information drawing path in described circuit picture obtained is read successively according to described.

A route construction device in application, comprising:

Circuit acquisition module, for obtaining the circuit picture in path to be generated in application;

Mobile processing module, obtains the point of respective change for following the tracks of the mobile operation triggered in described circuit picture;

Logging modle, for the point that the distance range recorded with preset conforms to, to obtain the path point information of described circuit picture;

Writing module, obtains the path data file of described application for writing described path point information.

In one embodiment, described mobile processing module comprises:

Described point processing unit, for described point in described circuit picture to obtain the initial path point in path;

Tracking cell, for intercepting with the mobile operation that is start trigger of described initial path point, the mobile operation following the tracks of described triggering obtains the point of respective change.

In one embodiment, described logging modle comprises:

Distance computation unit, for the point of change that obtains described in computing and upper a bit between distance;

Judging unit, for judging whether described distance conforms to described default distance range, if yes, then announcement information acquiring unit;

Described information acquisition unit is for obtaining described corresponding path point information.

In one embodiment, said write module to be further used for the current path point information obtained with described circuit picture as index writes the path data file of described application successively.

In one embodiment, described device also comprises:

Information reading module, for according to the circuit picture loaded read path dot information successively in the path data file of described application;

Path drawing module, for reading according to described the path point information drawing path in described circuit picture obtained successively.

Compared with prior art, the present invention has following beneficial effect:

For building the path of a certain scene in application, the circuit picture in path to be generated in application will be obtained, follow the tracks of the point that the mobile operation triggered in this circuit picture obtains respective change, the point that record conforms to the distance range preset in the point of respective change, to obtain the path point information of circuit picture, in the path data file that the path point information write obtained is applied, to complete the structure in path in this scene, manual pointwise record is carried out owing to not needing developer in the building process in this path, and mobile operation need be triggered according to the circuit in circuit picture, greatly decrease the workload of developer, avoid the appearance of error.

Accompanying drawing explanation

Fig. 1 is the process flow diagram of the path construction method in an embodiment in application;

Fig. 2 follows the tracks of the method flow diagram that the mobile operation triggered in circuit picture obtains the point of respective change in Fig. 1;

Fig. 3 is the point that in Fig. 1, record conforms to the distance range preset, to obtain the method flow diagram of the path point information of circuit picture;

Fig. 4 is the process flow diagram of the path construction method in another embodiment in application;

Fig. 5 is the structural schematic block diagram of the route construction device in an embodiment in application;

Fig. 6 is the structural schematic block diagram of mobile processing module in Fig. 5;

Fig. 7 is the structural schematic block diagram of logging modle in Fig. 5;

Fig. 8 is the structural schematic block diagram of the route construction device in another embodiment in application.

Embodiment

The exemplary embodiment embodying feature & benefits of the present invention will describe in detail in the following description.Be understood that the present invention can have various changes on different embodiments, it neither departs from the scope of the present invention, and explanation wherein and to be shown in be use when explain in essence, and be not used to limit the present invention.

As previously mentioned, for the realization that the various written analogue class application run for various terminals such as platform computer, smart mobile phones and game class are applied, such as, the anti-class game of tower, all contain the structure in various path, and each path point in existing path data file is all developers carries out manual markings and obtain, therefore, for the realization of each application, path construction all consumes larger workload, and be easy to make mistakes, therefore, the special path construction method proposed in a kind of application.The method can be dependent on computer program.

In one embodiment, concrete, the path construction method in this application as shown in Figure 1, comprising:

Step 110, obtains the circuit picture in path to be generated in application.

Application can be the application that arbitrary need carry out path construction, shows in this application for realizing in various scene and scene, and by pre-rendered various material, these pre-rendered materials will constitute the display of content in various scene in application and scene.Wherein, include circuit picture in pre-rendered material, such as, this circuit picture can be the background picture being provided with path in the anti-game of tower, also can be to be supplied to the copybook picture etc. that user carries out practising handwriting in written analogue application.

Path in application can be one or more shape, and such as, it by straight line, curve or can be made up of both simultaneously, can be simple shape, as line, circle, rectangle and star etc., also can be complicated shape, as the profile on mountain range or scribble etc.

In path construction in applying, will first import the circuit picture in path to be generated in this application, think that the circuit picture in each path to be generated carries out the structure in path respectively.

Step 130, follows the tracks of the point that the mobile operation triggered in circuit picture obtains respective change.

In the circuit picture acquired being imported by developer, developer triggers mobile operation by according to the circuit in circuit picture, such as, developer is by along the circuit rolling mouse in circuit picture, evolution is carried out along circuit to make cursor in circuit picture, therefore, the movement followed the tracks of in circuit picture obtains the point of respective change, i.e. the point at the cursor place of movement.

Step 150, records the point conformed to the distance range preset, to obtain the path point information of circuit picture.

Pre-set distance range, this distance range is relevant to the designing requirement of application, describes distance comparatively suitable between 2 by being used for.That is, along with the point at the trigger cursor place of operation mobile in circuit picture also will constantly change, now, only record and the distance between upper one point recorded meet the point of default distance range, and obtain this routing information corresponding to point.

By so a kind of mode, institute not in record circuit picture involved by mobile operation a little, to complicacy and the redundancy of path point information be effectively prevent, so that the path data file of follow-up generation lightweight, and then contribute to rapid operation and the response of application.

Path point information includes the coordinate of point in circuit image of this record, can realize the setting in path in application according to this path point information.

Step 170, the path data file that write paths dot information is applied.

By the path point information corresponding to the every bit of record successively in write paths data file, so that the setting in path in the subsequent applications scene of carrying out at operational process and scene.

By process as above, for developer, its needs import circuit picture as required and in circuit picture, trigger mobile operation, and do not need to carry out the record that path is carried out in loaded down with trivial details pointwise, greatly improve convenience and the efficiency of application and development, the cost of labor expended needed for reducing.

Further, in the present embodiment, as shown in Figure 2, above-mentioned steps 130 comprises:

Step 131, in circuit picture, described point is to obtain the initial path point in path.

In the circuit picture in path to be generated, described point is carried out to the starting point of circuit, to obtain the initial path point in the path of structure, and obtain the path point information of this initial path point.

Step 133, intercepts with the mobile operation that is start trigger of initial path point, follows the tracks of the point that the mobile operation triggered obtains respective change.

When intercepting trigger mobile operation by initial path point in circuit picture, will follow the tracks of the mobile operation triggered, wherein, the point of the cursor of movement or contact correspondence in circuit picture is the point of the respective change that current tracking obtains.

Further, in the present embodiment, as shown in Figure 3, above-mentioned steps 150 comprises:

Step 151, the point of the change that computing obtains and the distance above between a bit.

Step 153, judges whether this distance conforms to the distance range preset, and if yes, then enters step 155, if NO, then returns step 130.

Step 155, obtains the path point information of this some correspondence.

This path point information is directly obtained by this position acquisition in circuit picture.

In one embodiment, the detailed process of above-mentioned steps 170 is:

By the current path point information obtained with circuit picture for index writes the path data file of application successively.

For the path point information obtained successively along with the mobile operation triggered, write current obtained path point information successively by using circuit picture as index.

Wherein, in a preferred embodiment, this path point information forms the path data file of application, so that carry out storing easily in order with the form of array.

Built the path data file obtaining application by process as above, and then in the operation of subsequent applications, directly can read the path setting that this path data file can realize applications fields scape.

In the present embodiment, as shown in Figure 4, the method also comprises the steps:

Step 410, according to the circuit picture loaded read path dot information successively in the path data file of application.

In the operation of application, if redirect enters a certain scene of this application, then according to the circuit picture carrying out in this scene showing read path dot information one by one.

Step 430, according to reading the path point information drawing path in circuit picture obtained successively.

In one embodiment, also accordingly provide the route construction device in a kind of application, as shown in Figure 5, comprise circuit acquisition module 510, mobile processing module 530, logging modle 550 and writing module 570, wherein:

Circuit acquisition module 510, for obtaining the circuit picture in path to be generated in application.

Application can be the application that arbitrary need carry out path construction, shows in this application for realizing in various scene and scene, and by pre-rendered various material, these pre-rendered materials will constitute the display of content in various scene in application and scene.Wherein, include circuit picture in pre-rendered material, such as, this circuit picture can be the background picture being provided with path in the anti-game of tower, also can be to be supplied to the copybook picture etc. that user carries out practising handwriting in written analogue application.

Path in application can be one or more shape, and such as, it by straight line, curve or can be made up of both simultaneously, can be simple shape, as line, circle, rectangle and star etc., also can be complicated shape, as the profile on mountain range or scribble etc.

In path construction in applying, first circuit acquisition module 510 will import the circuit picture in path to be generated in this application, think that the circuit picture in each path to be generated carries out the structure in path respectively.

Mobile processing module 530, obtains the point of respective change for following the tracks of the mobile operation triggered in circuit picture.

In the circuit picture acquired being imported by developer, developer triggers mobile operation by according to the circuit in circuit picture, such as, developer is by along the circuit rolling mouse in circuit picture, evolution is carried out along circuit to make cursor in circuit picture, therefore, mobile processing module 530 movement followed the tracks of in circuit picture obtains the point of respective change, i.e. the point at the cursor place of movement.

Logging modle 550, for the point that the distance range recorded with preset conforms to, to obtain the path point information of circuit picture.

Pre-set distance range, this distance range is relevant to the designing requirement of application, describes distance comparatively suitable between 2 by being used for.That is, along with the point at the trigger cursor place of operation mobile in circuit picture also will constantly change, now, logging modle 550 distance only recorded between upper one point recorded meets the point of default distance range, and obtains this routing information corresponding to point.

By so a kind of mode, institute not in record circuit picture involved by mobile operation a little, to complicacy and the redundancy of path point information be effectively prevent, so that the path data file of follow-up generation lightweight, and then contribute to rapid operation and the response of application.

Path point information includes the coordinate of point in circuit image of this record, can realize the setting in path in application according to this path point information.

Writing module 570, for the path data file that write paths dot information is applied.

Writing module 570 is by the path point information corresponding to the every bit of record successively in write paths data file, so that the setting in path in the subsequent applications scene of carrying out at operational process and scene.

By process as above, for developer, its needs import circuit picture as required and in circuit picture, trigger mobile operation, and do not need to carry out the record that path is carried out in loaded down with trivial details pointwise, greatly improve convenience and the efficiency of application and development, the cost of labor expended needed for reducing.

Further, as shown in Figure 6, above-mentioned mobile processing module 530 comprises described point processing unit 531 and tracking cell 533, wherein:

Described point processing unit 531, for described point in circuit picture to obtain the initial path point in path.

In the circuit picture in path to be generated, the starting point of described point processing unit 531 pairs of circuits carries out described point, to obtain the initial path point in the path of structure, and obtains the path point information of this initial path point.

Tracking cell 533, for intercepting with the mobile operation that is start trigger of initial path point, follows the tracks of the point that the mobile operation triggered obtains respective change.

Tracking cell 533, when intercepting trigger mobile operation by initial path point in circuit picture, will follow the tracks of the mobile operation triggered, and wherein, the point of the cursor of movement or contact correspondence in circuit picture is the point of the respective change that current tracking obtains.

Further, as shown in Figure 7, above-mentioned logging modle 550 comprises distance computation unit 551, judging unit 553 and information acquisition unit 555, wherein:

Distance computation unit 551, the point of change obtained for computing and the distance above between a bit.

Whether judging unit 553, conform to the distance range preset for judging distance, if yes, then announcement information acquiring unit 555, if NO, then notifies mobile processing module 530.

Information acquisition unit 555, for obtaining the path point information of this some correspondence.

This path point information is directly obtained by this position acquisition in circuit picture.

In one embodiment, above-mentioned writing module 570 to be further used for the current path point information obtained with circuit picture as index writes the path data file of application successively.

For the path point information obtained successively along with the mobile operation triggered, writing module 570 writes current obtained path point information successively by using circuit picture as index.

Wherein, in a preferred embodiment, this path point information forms the path data file of application, so that carry out storing easily in order with the form of array.

Built the path data file obtaining application by process as above, and then in the operation of subsequent applications, directly can read the path setting that this path data file can realize applications fields scape.

In addition, as shown in Figure 8, device as above further comprises information reading module 810 and path drawing module 830, wherein:

Information reading module 810, for according to the circuit picture loaded read path dot information successively in the path data file of application.

In the operation of application, if redirect enters a certain scene of this application, then information reading module 810 is according to the circuit picture carrying out in this scene showing read path dot information one by one.

Path drawing module 830, for according to reading the path point information drawing path in circuit picture obtained successively.

One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.

These are only better possible embodiments of the present invention, not limit the scope of the invention that the equivalent structure change that all utilizations instructions of the present invention and accompanying drawing content are made all is included in protection scope of the present invention.

Claims (10)

1. the path construction method in application, is characterized in that, comprising:
Obtain the circuit picture in path to be generated in application;
Follow the tracks of the point that the mobile operation triggered in described circuit picture obtains respective change;
Record the point conformed to the distance range preset, to obtain the path point information of described circuit picture;
Write the path data file that described path point information obtains described application.
2. method according to claim 1, is characterized in that, the step that the mobile operation triggered in the described circuit picture of described tracking obtains the point of respective change comprises:
In described circuit picture, described point is to obtain the initial path point in path;
Intercept with the mobile operation that is start trigger of described initial path point, the mobile operation following the tracks of described triggering obtains the point of respective change.
3. method according to claim 1, is characterized in that, the point that described record conforms to the distance range preset, and comprises with the step of the path point information obtaining described circuit picture:
The point of the change obtained described in computing and the distance above between a bit;
Judge whether described distance conforms to described default distance range, if yes, then
Obtain described corresponding path point information.
4. method according to claim 1, is characterized in that, the step that path point information described in said write obtains the path data file of described application comprises:
By the current path point information obtained with described circuit picture for index writes the path data file of described application successively.
5. method according to claim 4, is characterized in that, described method also comprises:
According to the circuit picture loaded read path dot information successively in the path data file of described application;
The path point information drawing path in described circuit picture obtained is read successively according to described.
6. the route construction device in application, is characterized in that, comprising:
Circuit acquisition module, for obtaining the circuit picture in path to be generated in application;
Mobile processing module, obtains the point of respective change for following the tracks of the mobile operation triggered in described circuit picture;
Logging modle, for the point that the distance range recorded with preset conforms to, to obtain the path point information of described circuit picture;
Writing module, obtains the path data file of described application for writing described path point information.
7. device according to claim 6, is characterized in that, described mobile processing module comprises:
Described point processing unit, for described point in described circuit picture to obtain the initial path point in path;
Tracking cell, for intercepting with the mobile operation that is start trigger of described initial path point, the mobile operation following the tracks of described triggering obtains the point of respective change.
8. device according to claim 6, is characterized in that, described logging modle comprises:
Distance computation unit, for the point of change that obtains described in computing and upper a bit between distance;
Judging unit, for judging whether described distance conforms to described default distance range, if yes, then announcement information acquiring unit;
Described information acquisition unit is for obtaining described corresponding path point information.
9. device according to claim 6, is characterized in that, said write module to be further used for the current path point information obtained with described circuit picture as index writes the path data file of described application successively.
10. device according to claim 9, is characterized in that, described device also comprises:
Information reading module, for according to the circuit picture loaded read path dot information successively in the path data file of described application;
Path drawing module, for reading according to described the path point information drawing path in described circuit picture obtained successively.
CN201510287829.9A 2015-05-29 2015-05-29 Path building method in application and path building device in application CN104932880A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510287829.9A CN104932880A (en) 2015-05-29 2015-05-29 Path building method in application and path building device in application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510287829.9A CN104932880A (en) 2015-05-29 2015-05-29 Path building method in application and path building device in application

Publications (1)

Publication Number Publication Date
CN104932880A true CN104932880A (en) 2015-09-23

Family

ID=54120056

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510287829.9A CN104932880A (en) 2015-05-29 2015-05-29 Path building method in application and path building device in application

Country Status (1)

Country Link
CN (1) CN104932880A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019085832A1 (en) * 2017-10-31 2019-05-09 腾讯科技(深圳)有限公司 Object control apparatus and method, and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101308610A (en) * 2008-07-10 2008-11-19 中兴通讯股份有限公司 Calligraphy exercising method and apparatus based on mobile terminal
CN101308029A (en) * 2007-05-16 2008-11-19 北京英华慧通科技发展有限公司 Road network grid matching, road status messages and introduction route information acquisition method
CN101582078A (en) * 2009-02-27 2009-11-18 泰瑞数创科技(北京)有限公司 Tour route guiding method
US20110098087A1 (en) * 2009-10-28 2011-04-28 Google Inc. Mobile Computing Device Dock
US20130135344A1 (en) * 2011-11-30 2013-05-30 Nokia Corporation Method and apparatus for web-based augmented reality application viewer
CN103177041A (en) * 2011-12-26 2013-06-26 北京四维图新科技股份有限公司 Electronic map generation method, information publish method, road planning method and road planning device
CN103810507A (en) * 2014-02-13 2014-05-21 步步高教育电子有限公司 Automatic error correction equipment and method for word writing

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101308029A (en) * 2007-05-16 2008-11-19 北京英华慧通科技发展有限公司 Road network grid matching, road status messages and introduction route information acquisition method
CN101308610A (en) * 2008-07-10 2008-11-19 中兴通讯股份有限公司 Calligraphy exercising method and apparatus based on mobile terminal
CN101582078A (en) * 2009-02-27 2009-11-18 泰瑞数创科技(北京)有限公司 Tour route guiding method
US20110098087A1 (en) * 2009-10-28 2011-04-28 Google Inc. Mobile Computing Device Dock
US20130135344A1 (en) * 2011-11-30 2013-05-30 Nokia Corporation Method and apparatus for web-based augmented reality application viewer
CN103177041A (en) * 2011-12-26 2013-06-26 北京四维图新科技股份有限公司 Electronic map generation method, information publish method, road planning method and road planning device
CN103810507A (en) * 2014-02-13 2014-05-21 步步高教育电子有限公司 Automatic error correction equipment and method for word writing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李文翎 等: "基于GIS的广州城市时间地图研究", 《热带地理》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019085832A1 (en) * 2017-10-31 2019-05-09 腾讯科技(深圳)有限公司 Object control apparatus and method, and readable storage medium

Similar Documents

Publication Publication Date Title
US9875023B2 (en) Dial-based user interfaces
US9881396B2 (en) Displaying temporal information in a spreadsheet application
EP2813938A1 (en) Apparatus and method for selecting object by using multi-touch, and computer readable recording medium
Chatzopoulos et al. Mobile augmented reality survey: From where we are to where we go
US20130326499A1 (en) Automatically installing and removing recommended applications
US9536261B2 (en) Resolving conflicts within saved state data
US20170003133A1 (en) Applying a correct factor derivative method for determining an orientation of a portable electronic device based on sense gravitation component linear accelerate filter data obtained
US20160252358A1 (en) System and method for acquiring map portions based on expected signal strength of route segments
Abolfazli et al. Rich mobile applications: genesis, taxonomy, and open issues
US10109082B2 (en) System and method for generating signal coverage information from client metrics
JP5922307B2 (en) Method and system for providing roaming remote desktop
US8619049B2 (en) Monitoring interactions between two or more objects within an environment
US9069806B2 (en) Virtual block devices
US9003381B2 (en) Context-specific optimized code
US8966372B2 (en) Systems and methods for performing geotagging during video playback
WO2015143865A1 (en) Application scenario identification method, power consumption management method and apparatus and terminal device
US9824269B2 (en) Enhanced interpretation of character arrangements
US9510145B2 (en) Battery-saving in geo-fence context method and system
US10031893B2 (en) Transforming data to create layouts
US9201521B2 (en) Storing trace information
US9224218B2 (en) System and method for loading and rendering curved features in a map
US9307342B2 (en) Dynamic rendering for software applications
CN105283839A (en) Personalized community model for surfacing commands within productivity application user interfaces
CN105144094B (en) System and method for managing the navigation in application
US20110246922A1 (en) Enhanced Virtualization System

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination