CN105426077A - Change ratio determination method and device based on cocos2dx framework - Google Patents

Change ratio determination method and device based on cocos2dx framework Download PDF

Info

Publication number
CN105426077A
CN105426077A CN201510746642.0A CN201510746642A CN105426077A CN 105426077 A CN105426077 A CN 105426077A CN 201510746642 A CN201510746642 A CN 201510746642A CN 105426077 A CN105426077 A CN 105426077A
Authority
CN
China
Prior art keywords
axis
change ratio
starting point
point
spacing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510746642.0A
Other languages
Chinese (zh)
Other versions
CN105426077B (en
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.)
Vtron Technologies Ltd
Original Assignee
Vtron Technologies 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 Vtron Technologies Ltd filed Critical Vtron Technologies Ltd
Priority to CN201510746642.0A priority Critical patent/CN105426077B/en
Publication of CN105426077A publication Critical patent/CN105426077A/en
Application granted granted Critical
Publication of CN105426077B publication Critical patent/CN105426077B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a change ratio determination method and device based on a cocos2dx framework, and solves the technical problem that low zoom experience is always caused for a user in the zoom process due to the problems that touch point position information is neglected and the change ratio differences of an X-axis direction and a Y-axis direction in a zoom process are neglected and the like in the prior art that a default anchor point of a node element is taken as a zoom center point at present and change information between two movement points is taken as a change ratio. The change ratio determination method based on the cocos2dx framework comprises the following steps: through an interface screen, determining a plurality of starting points corresponding to a plurality of touch tracks, and calculating a first interval between every two starting points; through the interface screen, determining a plurality of movement points corresponding to the plurality of touch tracks, and calculating a second interval between every two movement points; and according to the first interval and the second interval, combining with a corresponding angle to be mapped to an x axis and an y axis, and determining the change ratio corresponding to the x axis and the y axis.

Description

A kind of change ratio-dependent method based on cocos2dx framework and device
Technical field
The present invention relates to software algorithm technical field, particularly relate to a kind of change ratio-dependent method based on cocos2dx framework and device.
Background technology
Cocos2dx is a mobile 2D game frame of increasing income, and issues under MIT licence.This is the version of a C++Cocos2d-iPhone project.The emphasis of Cocos2dX development is cross-platform around Cocos2d, the framework that Cocos2dx provides.
Along with large-scale spelling wall is applied and the fast development of Mobile solution more and more widely, and cocos2dx framework is cross-platform according to it and the advantage of increasing income, and has become the selection that wall Mobile solution is spelled in exploitation.But in gesture algorithm, obtain interface because cocos2dx only provides basic touch information, and general categories be anchor point that node elements is given tacit consent to as convergent-divergent central point, then according to the change information of mobile point-to-point transmission as change ratio.
But, the above-mentioned anchor point given tacit consent to by node elements mentioned is as convergent-divergent central point, then according to mobile point-to-point transmission change information as change ratio prior art, exist and ignore touch point positional information, and ignore the problem such as X-axis and Y direction change proportional difference in convergent-divergent process, easily the technical matters that in convergent-divergent process, convergent-divergent experience property is low is caused to user.
Summary of the invention
Embodiments provide a kind of change ratio-dependent method based on cocos2dx framework and device, solve the current anchor point given tacit consent to by node elements as convergent-divergent central point, then according to mobile point-to-point transmission change information as change ratio prior art, exist and ignore touch point positional information, and ignore the problem such as X-axis and Y direction change proportional difference in convergent-divergent process, easily the technical matters that in convergent-divergent process, convergent-divergent experience property is low is caused to user.
A kind of change ratio-dependent method based on cocos2dx framework that the embodiment of the present invention provides, comprising:
Determine by interface screen a plurality of starting points that a plurality of touch track is corresponding, and calculate the first spacing of described starting point between two;
Determine by described interface screen a plurality of transfer points that a plurality of touch track is corresponding, and calculate the second spacing of described transfer point between two;
Combine corresponding angle map to x-axis and y-axis according to described first spacing and described second spacing, and determine the corresponding change ratio with described x-axis and described y-axis.
Alternatively, determine a plurality of starting points that a plurality of touch track is corresponding, and the first spacing calculating described starting point between two comprises:
The triggering of described touch track detected by described interface screen, determine the positional information of starting point, and the positional information of described starting point is marked, stored in starting point set;
Judge the described starting point quantity in current described starting point set, if 1, then current 1 described starting point is set as starting point for subsequent use, until the described starting point in described starting point set is 2, then according to described first spacing of positional information calculation two described starting points of described starting point;
If judge, the described starting point quantity in current described starting point set is 2, then described first spacing of direct positional information calculation two described starting points according to described starting point;
Obtain the connecting line of 2 described starting points and the initial angle of X-axis, described initial angle is not more than 90 °.
Alternatively, determine a plurality of transfer points that a plurality of touch track is corresponding, and the second spacing calculating described transfer point between two specifically comprises:
The movement of described starting point based on described touch track is detected by described interface screen, determine the positional information of 2 described transfer points, and the positional information of described transfer point is marked, stored in described transfer point set, described transfer point is the definition after described starting point moves;
According to described second spacing of positional information calculation two described transfer points of described transfer point.
Alternatively, the movement of described starting point based on described touch track detected, determine that the positional information of 2 described transfer points specifically comprises:
The movement of described starting point based on described touch track is detected by described interface screen, judge the described transfer point quantity in current transfer point set, if 1, then by current described starting point set, determine not based on the described starting point of described touch track movement, and arrange not movement described starting point be transfer point described in another;
If 2, then determine the positional information of 2 described transfer points.
Alternatively, combine corresponding angle map to x-axis and y-axis according to described first spacing and described second spacing, and determine specifically to comprise with the corresponding change ratio of described x-axis and described y-axis:
Described second spacing and described first spacing are divided by and obtain trail change ratio;
Carry out tangent value calculating according to the positional information of 2 described transfer points and the mapping relations of described x-axis and described y-axis, determine the connecting line of 2 described transfer points and the mobile angle of described x-axis;
Positional information according to 2 described transfer points is modified to new anchor point position to anchor point;
According to described trail change ratio and the described mobile angle determination correspondence mappings x-axis change ratio to described x-axis, and be mapped to the y-axis change ratio of described y-axis;
Carry out the adjustment of interface ratio according to correspondence direction according to described x-axis change ratio and described y-axis change ratio.
Alternatively, according to described trail change ratio and the described mobile angle determination correspondence mappings x-axis change ratio to described x-axis, and the y-axis change ratio being mapped to described y-axis specifically comprises:
Judge whether described mobile angle is 90 ° or 0 °, if be not all 90 ° and 0 °, then described x-axis change ratio is the product of trail change ratio and described initial included angle cosine value, and described y-axis change ratio is the product of trail change ratio and described mobile angle cosine value;
If 90 °, then described x-axis change ratio is preset initial transformation ratio, and described y-axis change ratio is the product of trail change ratio and described mobile angle cosine value;
If 0 °, then described y-axis change ratio is preset initial transformation ratio, and described x-axis change ratio is the product of trail change ratio and described initial included angle cosine value.
A kind of change ratio-dependent device based on cocos2dx framework that the embodiment of the present invention provides, comprising:
First computing unit, for being determined a plurality of starting points that a plurality of touch track is corresponding by interface screen, and calculates the first spacing of described starting point between two;
Second computing unit, for being determined a plurality of transfer points that a plurality of touch track is corresponding by described interface screen, and calculates the second spacing of described transfer point between two;
Change ratio-dependent unit, for combining corresponding angle map to x-axis and y-axis according to described first spacing and described second spacing, and determines the corresponding change ratio with described x-axis and described y-axis.
Alternatively, the first computing unit specifically comprises:
Starting point triggers unit, for the triggering of described touch track being detected by described interface screen, is determined the positional information of starting point, and the positional information of described starting point is marked, stored in starting point set;
Starting point judgment sub-unit, for judging the described starting point quantity in current described starting point set, if 1, then current 1 described starting point is set as starting point for subsequent use, until the described starting point in described starting point set is 2, then according to described first spacing of positional information calculation two described starting points of described starting point;
Described starting point judgment sub-unit, if also for judging that the described starting point quantity in current described starting point set is 2, then described first spacing of direct positional information calculation two described starting points according to described starting point;
First obtains subelement, and for the initial angle of the connecting line and X-axis that obtain 2 described starting points, described initial angle is not more than 90 °;
Second computing unit specifically comprises:
Transfer point triggers unit, for the movement of described starting point based on described touch track being detected by described interface screen, determine the positional information of 2 described transfer points, and the positional information of described transfer point is marked, stored in described transfer point set, described transfer point is the definition after described starting point moves;
Determine subelement, for described second spacing of positional information calculation two the described transfer points according to described transfer point;
Wherein, transfer point triggers unit specifically comprises:
Transfer point judge module, for the movement of described starting point based on described touch track being detected by described interface screen, judge the described transfer point quantity in current transfer point set, if 1, then by current described starting point set, determine not based on the described starting point of described touch track movement, and what arrange the described starting point of not movement is transfer point described in another, if 2, then determine the positional information of 2 described transfer points;
Mark module, for the positional information of described transfer point being marked, stored in described transfer point set, described transfer point is the definition after described starting point moves.
Alternatively, change ratio-dependent unit specifically to comprise:
Trail change ratio obtains subelement, obtains trail change ratio for described second spacing and described first spacing being divided by;
Mobile angle determination subelement, for carrying out tangent value calculating according to the positional information of 2 described transfer points and the mapping relations of described x-axis and described y-axis, determines the connecting line of 2 described transfer points and the mobile angle of described x-axis;
Anchor point correction subelement, is modified to new anchor point position for the positional information according to 2 described transfer points to anchor point;
Map subelement, for according to described trail change ratio and the described mobile angle determination correspondence mappings x-axis change ratio to described x-axis, and the y-axis being mapped to described y-axis changes ratio;
Adjustment subelement, for carrying out the adjustment of interface ratio according to correspondence direction according to described x-axis change ratio and described y-axis change ratio.
Alternatively, map subelement specifically to comprise:
Mobile angle judge module, for judging whether described mobile angle is 90 ° or 0 °, if be not all 90 ° and 0 °, then triggers the first ratio-dependent module, if 90 °, then triggers the second ratio-dependent module, if 0 °, then triggers the 3rd ratio-dependent module;
Described first ratio-dependent module, be the product of trail change ratio and described initial included angle cosine value for described x-axis change ratio, described y-axis change ratio is the product of trail change ratio and described mobile angle cosine value;
Described second ratio-dependent module, be preset initial transformation ratio for described x-axis change ratio, described y-axis change ratio is the product of trail change ratio and described mobile angle cosine value;
Described 3rd ratio-dependent module, be preset initial transformation ratio for described y-axis change ratio, described x-axis change ratio is the product of trail change ratio and described initial included angle cosine value.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages:
A kind of change ratio-dependent method based on cocos2dx framework that the embodiment of the present invention provides and device, change ratio-dependent method wherein based on cocos2dx framework comprises: determine by interface screen a plurality of starting points that a plurality of touch track is corresponding, and calculate the first spacing of starting point between two; Determine by interface screen a plurality of transfer points that a plurality of touch track is corresponding, and calculate the second spacing of transfer point between two; Combine corresponding angle map to x-axis and y-axis according to the first spacing and the second spacing, and determine the corresponding change ratio with x-axis and y-axis.In the present embodiment, corresponding angle map is combined to x-axis and y-axis by the second spacing of the first spacing of starting point between two and transfer point between two, and determine the corresponding change ratio with x-axis and y-axis, solve the current anchor point given tacit consent to by node elements as convergent-divergent central point, then according to mobile point-to-point transmission change information as change ratio prior art, exist and ignore touch point positional information, and ignore the problem such as X-axis and Y direction change proportional difference in convergent-divergent process, easily the technical matters that in convergent-divergent process, convergent-divergent experience property is low is caused to user.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The schematic flow sheet of an embodiment of a kind of change ratio-dependent method based on cocos2dx framework that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of another embodiment of a kind of change ratio-dependent method based on cocos2dx framework that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet of another embodiment of a kind of change ratio-dependent method based on cocos2dx framework that Fig. 3 provides for the embodiment of the present invention;
The structural representation of an embodiment of a kind of change ratio-dependent device based on cocos2dx framework that Fig. 4 provides for the embodiment of the present invention;
The structural representation of another embodiment of a kind of change ratio-dependent device based on cocos2dx framework that Fig. 5 provides for the embodiment of the present invention.
Embodiment
Embodiments provide a kind of change ratio-dependent method based on cocos2dx framework and device, solve the current anchor point given tacit consent to by node elements as convergent-divergent central point, then according to mobile point-to-point transmission change information as change ratio prior art, exist and ignore touch point positional information, and ignore the problem such as X-axis and Y direction change proportional difference in convergent-divergent process, easily the technical matters that in convergent-divergent process, convergent-divergent experience property is low is caused to user.
For making goal of the invention of the present invention, feature, advantage can be more obvious and understandable, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, the embodiments described below are only the present invention's part embodiments, and the embodiment of not all.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, an embodiment of a kind of change ratio-dependent method based on cocos2dx framework that the embodiment of the present invention provides comprises:
101, determine by interface screen a plurality of starting points that a plurality of touch track is corresponding, and calculate the first spacing of starting point between two;
In the present embodiment, when user needs to realize the function of convergent-divergent or amplification by touch gestures, need to determine by interface screen a plurality of starting points that a plurality of touch track is corresponding, and calculate the first spacing of starting point between two.
102, determine by interface screen a plurality of transfer points that a plurality of touch track is corresponding, and calculate the second spacing of transfer point between two;
When being determined a plurality of starting points that a plurality of touch track is corresponding by interface screen, and after calculating the first spacing of starting point between two, need to determine by interface screen a plurality of transfer points that a plurality of touch track is corresponding, and calculate the second spacing of transfer point between two.
103, combine corresponding angle map to x-axis and y-axis according to the first spacing and the second spacing, and determine the corresponding change ratio with x-axis and y-axis.
When being determined a plurality of transfer points that a plurality of touch track is corresponding by interface screen, and after calculating the second spacing of transfer point between two, combine corresponding angle map to x-axis and y-axis according to the first spacing and the second spacing, and determine the corresponding change ratio with x-axis and y-axis.
In the present embodiment, corresponding angle map is combined to x-axis and y-axis by the second spacing of the first spacing of starting point between two and transfer point between two, and determine the corresponding change ratio with x-axis and y-axis, solve the current anchor point given tacit consent to by node elements as convergent-divergent central point, then according to mobile point-to-point transmission change information as change ratio prior art, exist and ignore touch point positional information, and ignore the problem such as X-axis and Y direction change proportional difference in convergent-divergent process, easily the technical matters that in convergent-divergent process, convergent-divergent experience property is low is caused to user.
The above is described in detail based on the process of the change ratio-dependent method of cocos2dx framework, be described in detail to the deterministic process of starting point and transfer point below, refer to Fig. 2, another embodiment of a kind of change ratio-dependent method based on cocos2dx framework that the embodiment of the present invention provides comprises:
201, the triggering of touch track detected by interface screen, determine the positional information of starting point, and the positional information of starting point is marked, stored in starting point set;
In the present embodiment, when user needs to realize the function of convergent-divergent or amplification by touch gestures, need the triggering by touch track being detected by interface screen, determine the positional information of starting point, and the positional information of starting point is marked, stored in starting point set.
202, judge the starting point quantity in current starting point set, if 1, then perform step 203, if 2, then perform step 204;
When the triggering of touch track being detected by interface screen, determine the positional information of starting point, and the positional information of starting point is marked, after starting point set, need the starting point quantity judged in current starting point set, if 1, then perform step 203, if 2, then perform step 204.
203, current 1 starting point is set as starting point for subsequent use, until the starting point in starting point set is 2, then according to the first spacing of positional information calculation two starting points of starting point;
When judging that the starting point quantity in current starting point set is 1, then need current 1 starting point to be set as starting point for subsequent use, until the starting point in starting point set is 2, then according to the first spacing of positional information calculation two starting points of starting point.
204, directly according to the first spacing of positional information calculation two starting points of starting point;
When judging that the starting point quantity in current starting point set is 2, then need directly according to the first spacing of positional information calculation two starting points of starting point.
205, the connecting line of 2 starting points and the initial angle of X-axis is obtained;
After step 203 and 204, need the connecting line of acquisition 2 starting points and the initial angle of X-axis, initial angle is not more than 90 °
206, the movement of starting point based on touch track detected by interface screen, judge the transfer point quantity in current transfer point set, if 1, then perform step 207, if 2, then perform step 208;
After the connecting line of acquisition 2 starting points and the initial angle of X-axis, need the movement of starting point based on touch track to be detected by interface screen, judge the transfer point quantity in current transfer point set, if 1, then perform step 207, if 2, then perform step 208.
207, by current starting point set, determine not based on the starting point of touch track movement, and what arrange the starting point of not movement is another transfer point;
When judging that the transfer point quantity in current transfer point set is 1, then by current starting point set, determine not based on the starting point of touch track movement, and what arrange the starting point of not movement is another transfer point
208, the positional information of 2 transfer points is determined;
When judging that the transfer point quantity in current transfer point set is 2, then determine the positional information of 2 transfer points.
209, the positional information of transfer point is marked, stored in transfer point set;
After step 208 or 209, need the positional information of transfer point to mark, stored in transfer point set, transfer point is the definition after starting point moves.
210, according to the second spacing of positional information calculation two transfer points of transfer point;
When the positional information of transfer point is marked, after transfer point set, need the positional information of transfer point to be marked, stored in transfer point set.
211, combine corresponding angle map to x-axis and y-axis according to the first spacing and the second spacing, and determine the corresponding change ratio with x-axis and y-axis.
After the first spacing and the second spacing are determined, need to combine corresponding angle map to x-axis and y-axis according to the first spacing and the second spacing, and determine the corresponding change ratio with x-axis and y-axis.
In the present embodiment, corresponding angle map is combined to x-axis and y-axis by the second spacing of the first spacing of starting point between two and transfer point between two, and determine the corresponding change ratio with x-axis and y-axis, solve the current anchor point given tacit consent to by node elements as convergent-divergent central point, then according to mobile point-to-point transmission change information as change ratio prior art, exist and ignore touch point positional information, and ignore the problem such as X-axis and Y direction change proportional difference in convergent-divergent process, easily the technical matters that in convergent-divergent process, convergent-divergent experience property is low is caused to user, multiple judgements of starting point and transfer point simultaneously, further increase the precision of change ratio.
The above is described in detail the deterministic process of starting point and transfer point, corresponding angle map is combined to x-axis and y-axis below by according to the first spacing and the second spacing, and determine to be described in detail with the process of the corresponding change ratio of x-axis and y-axis, refer to Fig. 3, another embodiment of a kind of change ratio-dependent method based on cocos2dx framework that the embodiment of the present invention provides comprises:
301, the triggering of touch track detected by interface screen, determine the positional information of starting point, and the positional information of starting point is marked, stored in starting point set;
In the present embodiment, when user needs to realize the function of convergent-divergent or amplification by touch gestures, need the triggering by touch track being detected by interface screen, determine the positional information of starting point, and the positional information of starting point is marked, stored in starting point set.
302, judge the starting point quantity in current starting point set, if 1, then perform step 303, if 2, then perform step 304;
When the triggering of touch track being detected by interface screen, determine the positional information of starting point, and the positional information of starting point is marked, after starting point set, need the starting point quantity judged in current starting point set, if 1, then perform step 303, if 2, then perform step 304.
303, current 1 starting point is set as starting point for subsequent use, until the starting point in starting point set is 2, then according to the first spacing of positional information calculation two starting points of starting point;
When judging that the starting point quantity in current starting point set is 1, then need current 1 starting point to be set as starting point for subsequent use, until the starting point in starting point set is 2, then according to the first spacing of positional information calculation two starting points of starting point.
304, directly according to the first spacing of positional information calculation two starting points of starting point;
When judging that the starting point quantity in current starting point set is 2, then need directly according to the first spacing of positional information calculation two starting points of starting point.
305, the connecting line of 2 starting points and the initial angle of X-axis is obtained;
After step 303 and 304, need the connecting line of acquisition 2 starting points and the initial angle of X-axis, initial angle is not more than 90 °.
306, the movement of starting point based on touch track detected by interface screen, judge the transfer point quantity in current transfer point set, if 1, then perform step 207, if 2, then perform step 308;
After the connecting line of acquisition 2 starting points and the initial angle of X-axis, need the movement of starting point based on touch track to be detected by interface screen, judge the transfer point quantity in current transfer point set, if 1, then perform step 207, if 2, then perform step 308.
307, by current starting point set, determine not based on the starting point of touch track movement, and what arrange the starting point of not movement is another transfer point;
When judging that the transfer point quantity in current transfer point set is 1, then by current starting point set, determine not based on the starting point of touch track movement, and what arrange the starting point of not movement is another transfer point
308, the positional information of 2 transfer points is determined;
When judging that the transfer point quantity in current transfer point set is 2, then determine the positional information of 2 transfer points.
309, the positional information of transfer point is marked, stored in transfer point set;
After step 308 or 309, need the positional information of transfer point to mark, stored in transfer point set, transfer point is the definition after starting point moves.
310, according to the second spacing of positional information calculation two transfer points of transfer point;
When the positional information of transfer point is marked, after transfer point set, need the positional information of transfer point to be marked, stored in transfer point set.
311, the second spacing and the first spacing are divided by obtain trail change ratio;
After the first spacing and the second spacing are determined, needing the second spacing and the first spacing to be divided by obtains trail change ratio.
312, carry out tangent value calculating according to the positional information of 2 transfer points and the mapping relations of x-axis and y-axis, determine the connecting line of 2 transfer points and the mobile angle of x-axis;
After obtaining trail change ratio when the second spacing and the first spacing being divided by, needing to carry out tangent value calculating according to the positional information of 2 transfer points and the mapping relations of x-axis and y-axis, determining the connecting line of 2 transfer points and the mobile angle of x-axis.
313, according to the positional information of 2 transfer points, new anchor point position is modified to anchor point;
When carrying out tangent value calculating according to the positional information of 2 transfer points and the mapping relations of x-axis and y-axis, after determining the connecting line of 2 transfer points and the mobile angle of x-axis, need to be modified to new anchor point position according to the positional information of 2 transfer points to anchor point.
314, according to trail change ratio and the mobile angle determination correspondence mappings x-axis change ratio to x-axis, and the y-axis change ratio of y-axis is mapped to;
After according to the positional information of 2 transfer points new anchor point position being modified to anchor point, needing according to trail change ratio and the mobile angle determination correspondence mappings x-axis change ratio to x-axis, and be mapped to the y-axis change ratio of y-axis.
It should be noted that, after according to the positional information of 2 transfer points new anchor point position being modified to anchor point, need according to trail change ratio and the mobile angle determination correspondence mappings x-axis change ratio to x-axis, and the y-axis being mapped to y-axis changes ratio and can further include:
Judge whether mobile angle is 90 ° or 0 °, if be not all 90 ° and 0 °, then x-axis change ratio is the product of trail change ratio and initial included angle cosine value, and y-axis change ratio is the product of trail change ratio and mobile angle cosine value;
If 90 °, then x-axis change ratio is preset initial transformation ratio, and y-axis change ratio is the product of trail change ratio and mobile angle cosine value;
If 0 °, then y-axis change ratio is preset initial transformation ratio, and x-axis change ratio is the product of trail change ratio and initial included angle cosine value.
315, to carry out the adjustment of interface ratio according to correspondence direction according to x-axis change ratio and y-axis change ratio.
When according to trail change ratio and the mobile angle determination correspondence mappings x-axis change ratio to x-axis, and after the y-axis change ratio being mapped to y-axis, need the adjustment carrying out interface ratio according to x-axis change ratio and y-axis change ratio according to correspondence direction.
In the present embodiment, corresponding angle map is combined to x-axis and y-axis by the second spacing of the first spacing of starting point between two and transfer point between two, and determine the corresponding change ratio with x-axis and y-axis, solve the current anchor point given tacit consent to by node elements as convergent-divergent central point, then according to mobile point-to-point transmission change information as change ratio prior art, exist and ignore touch point positional information, and ignore the problem such as X-axis and Y direction change proportional difference in convergent-divergent process, easily the technical matters that in convergent-divergent process, convergent-divergent experience property is low is caused to user, multiple judgements of starting point and transfer point simultaneously, further increase the precision of change ratio, central point between considering touch point in convergent-divergent or amplification process is as the central point of anchor point and convergent-divergent, and original convergent-divergent or magnification ratio are mapped to x-axis and y-axis, the convergent-divergent of different directions or magnification ratio are arranged respectively, reach and improve user's object that convergent-divergent or amplification are experienced in actual mechanical process, the basis of cocos2dx original gesture logic proposes a kind of improvement strategy, namely by considering the factors such as touch point positional information and different directions convergent-divergent or magnification ratio there are differences, in conjunction with original convergent-divergent strategy, improve the naturality at convergent-divergent or amplification process interior joint convergent-divergent, reach the mobile wall of spelling of improvement and be applied in the object experienced in user.
For the ease of understanding, be described embodiment illustrated in fig. 3 with an embody rule scene below, application examples comprises:
I. starting point set is obtained:
1) touch point information detected, then distinguish according to touch point Property ID, and be stored in starting point set T;
2) if when touch point number is 2, then can directly this 2 dot information be stored in starting point set T, the rule wherein stored be by Property ID be 0 touch point be stored in T 1, Property ID be 1 touch point be stored in T 2in;
3) if when touch point number is 1, then carry out differentiation touch point according to Property ID, and be stored into T corresponding in starting point set T according to this Property ID xin (wherein x is 0 or 1), when the number of starting point set T is 2, then show that now starting point set T is ready, then trigger current scale logic;
1) to 3) touch point be starting point.
Ii. scaling is calculated:
1) according to starting point set T, calculate the initial distance D between two starting points, original zoom than S=1.0, two starting points connect the initial angle theta of straight line and X-axis x(need ensure that angle is for being less than 90 degree, i.e. 0 < θ by revising x< 90 °);
2) when the touch point information of two movements being detected, then touch point information is preserved respectively to transfer point set M according to touch point Property ID, and two transfer point information corresponding M respectively 1, M 2;
3) utilize starting point set T and transfer point set M, then can calculate the distance D'=M between mobile rear two transfer points 1-M 2, node scaling S'=D'/D and two transfer points connect angle tangent value between straight line and X-axis tan&theta; &prime; x = M 2 y - M 1 y M 2 x - M 1 x ;
4) revising node anchor point is P a', reset the new position of node is Pos'=Pos+ (P simultaneously a'-P a) (wherein Pos is the original position of node, P afor the former anchor point information of node), ensure that the display position of node in scene remains unchanged with this;
5) according to change ratio S' and angle theta ' x, then the change ratio S' that scaling is mapped to X-axis can be obtained x=S'*cos θ x, and and be mapped to the change ratio S' of Y-axis y=S'*cos θ ' x;
6) if modification rule for angle of arrival be 90 ° time, then by the original scale ratio assignment of now X-axis to change ratio; In like manner, if when angle of arrival is 0 °, then by the original scale ratio assignment of now Y-axis to change ratio, ensure not occur infinity or be 0 change ratio;
7) the scaling S' of X-axis is obtained x, and the scaling S' of Y-axis yafter, node scaling is in different directions set, convergent-divergent process is carried out to node;
8) will this moment 2 distance D' as initial distance D, scaling S' as initial scaling S, angle θ ' xas start angle θ x, carry out next round detection and calculating;
10) if when detecting that mobile touch point number is single-point, judge as in starting point set, which point is moving according to touch point Property ID, and will not detect that touch point is from starting point set T, and this value is set to the M in corresponding transfer point set M 1or M 2, jump to 3 of ii simultaneously).
Refer to Fig. 4, an embodiment of a kind of change ratio-dependent device based on cocos2dx framework provided in the embodiment of the present invention comprises:
First computing unit 401, for being determined a plurality of starting points that a plurality of touch track is corresponding by interface screen, and calculates the first spacing of starting point between two;
Second computing unit 402, for being determined a plurality of transfer points that a plurality of touch track is corresponding by interface screen, and calculates the second spacing of transfer point between two;
Change ratio-dependent unit 403, for combining corresponding angle map to x-axis and y-axis according to the first spacing and the second spacing, and determines the corresponding change ratio with x-axis and y-axis.
In the present embodiment, by the first computing unit 401, second spacing of the first spacing of the starting point between two that the second computing unit 402 and change ratio-dependent unit 403 are determined and between two transfer point, in conjunction with corresponding angle map to x-axis and y-axis, and determine the corresponding change ratio with x-axis and y-axis, solve the current anchor point given tacit consent to by node elements as convergent-divergent central point, then according to mobile point-to-point transmission change information as change ratio prior art, exist and ignore touch point positional information, and ignore the problem such as X-axis and Y direction change proportional difference in convergent-divergent process, easily the technical matters that in convergent-divergent process, convergent-divergent experience property is low is caused to user.
The above is described in detail each unit of the change ratio-dependent device based on cocos2dx framework, below sub-unit is described in detail, refer to Fig. 5, an embodiment of a kind of change ratio-dependent device based on cocos2dx framework provided in the embodiment of the present invention comprises:
First computing unit 501, for being determined a plurality of starting points that a plurality of touch track is corresponding by interface screen, and calculates the first spacing of starting point between two;
First computing unit 501 specifically comprises:
Starting point triggers unit 5011, for the triggering of touch track being detected by interface screen, is determined the positional information of starting point, and the positional information of starting point is marked, stored in starting point set;
Starting point judgment sub-unit 5012, for judging the starting point quantity in current starting point set, if 1, then current 1 starting point is set as starting point for subsequent use, until the starting point in starting point set is 2, then according to the first spacing of positional information calculation two starting points of starting point;
Starting point judgment sub-unit 5012, if also for judging that the starting point quantity in current starting point set is 2, then the first spacing of direct positional information calculation two starting points according to starting point;
First obtains subelement 5013, and for the initial angle of the connecting line and X-axis that obtain 2 starting points, initial angle is not more than 90 °.
Second computing unit 502, for being determined a plurality of transfer points that a plurality of touch track is corresponding by interface screen, and calculates the second spacing of transfer point between two;
Second computing unit 502 specifically comprises:
Transfer point triggers unit 5021, for the movement of starting point based on touch track being detected by interface screen, determine the positional information of 2 transfer points, and the positional information of transfer point is marked, stored in transfer point set, transfer point is the definition after starting point moves;
Determine subelement 5022, for the second spacing of positional information calculation two transfer points according to transfer point;
Wherein, transfer point triggers unit 5021 specifically comprises:
Transfer point judge module 5021a, for the movement of starting point based on touch track being detected by interface screen, judge the transfer point quantity in current transfer point set, if 1, then by current starting point set, determine not based on the starting point of touch track movement, and what arrange the starting point of not movement is another transfer point, if 2, then determine the positional information of 2 transfer points;
Mark module 5021b, for the positional information of transfer point being marked, stored in transfer point set, transfer point is the definition after starting point moves.
Change ratio-dependent unit 503, for combining corresponding angle map to x-axis and y-axis according to the first spacing and the second spacing, and determines the corresponding change ratio with x-axis and y-axis.
Change ratio-dependent unit 503 specifically comprises:
Trail change ratio obtains subelement 5031, obtains trail change ratio for the second spacing and the first spacing being divided by;
Mobile angle determination subelement 5032, for carrying out tangent value calculating according to the positional information of 2 transfer points and the mapping relations of x-axis and y-axis, determines the connecting line of 2 transfer points and the mobile angle of x-axis;
Anchor point correction subelement 5033, is modified to new anchor point position for the positional information according to 2 transfer points to anchor point;
Map subelement 5034, for according to trail change ratio and the mobile angle determination correspondence mappings x-axis change ratio to x-axis, and the y-axis being mapped to y-axis changes ratio;
Map subelement 5034 specifically to comprise:
Mobile angle judge module 5034a, for judging whether mobile angle is 90 ° or 0 °, if be not all 90 ° and 0 °, then trigger the first ratio-dependent module 5034b, if 90 °, then trigger the second ratio-dependent module 5034c, if 0 °, then trigger the 3rd ratio-dependent module 5034d;
First ratio-dependent module 5034a, be the product of trail change ratio and initial included angle cosine value for x-axis change ratio, y-axis change ratio is the product of trail change ratio and mobile angle cosine value;
Second ratio-dependent module 5034b is preset initial transformation ratio for x-axis change ratio, and y-axis change ratio is the product of trail change ratio and mobile angle cosine value;
3rd ratio-dependent module 5034c is preset initial transformation ratio for y-axis change ratio, and x-axis change ratio is the product of trail change ratio and initial included angle cosine value.
Adjustment subelement 5035, for carrying out the adjustment of interface ratio according to correspondence direction according to x-axis change ratio and y-axis change ratio.
In the present embodiment, by the first computing unit 501, second spacing of the first spacing of the starting point between two that the second computing unit 502 and change ratio-dependent unit 503 are determined and between two transfer point, in conjunction with corresponding angle map to x-axis and y-axis, and determine the corresponding change ratio with x-axis and y-axis, solve the current anchor point given tacit consent to by node elements as convergent-divergent central point, then according to mobile point-to-point transmission change information as change ratio prior art, exist and ignore touch point positional information, and ignore the problem such as X-axis and Y direction change proportional difference in convergent-divergent process, easily the technical matters that in convergent-divergent process, convergent-divergent experience property is low is caused to user, and ignore the problem such as X-axis and Y direction change proportional difference in convergent-divergent process, easily the technical matters that in convergent-divergent process, convergent-divergent experience property is low is caused to user, multiple judgements of starting point and transfer point simultaneously, further increase the precision of change ratio, central point between considering touch point in convergent-divergent or amplification process is as the central point of anchor point and convergent-divergent, and original convergent-divergent or magnification ratio are mapped to x-axis and y-axis, the convergent-divergent of different directions or magnification ratio are arranged respectively, reach and improve user's object that convergent-divergent or amplification are experienced in actual mechanical process, the basis of cocos2dx original gesture logic proposes a kind of improvement strategy, namely by considering the factors such as touch point positional information and different directions convergent-divergent or magnification ratio there are differences, in conjunction with original convergent-divergent strategy, improve the naturality at convergent-divergent or amplification process interior joint convergent-divergent, reach the mobile wall of spelling of improvement and be applied in the object experienced in user.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
The above, above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1., based on a change ratio-dependent method for cocos2dx framework, it is characterized in that, comprising:
Determine by interface screen a plurality of starting points that a plurality of touch track is corresponding, and calculate the first spacing of described starting point between two;
Determine by described interface screen a plurality of transfer points that a plurality of touch track is corresponding, and calculate the second spacing of described transfer point between two;
Combine corresponding angle map to x-axis and y-axis according to described first spacing and described second spacing, and determine the corresponding change ratio with described x-axis and described y-axis.
2. requires the change ratio-dependent method based on cocos2dx framework described in 1 according to claim, it is characterized in that, determine a plurality of starting points that a plurality of touch track is corresponding, and the first spacing calculating described starting point between two comprises:
The triggering of described touch track detected by described interface screen, determine the positional information of starting point, and the positional information of described starting point is marked, stored in starting point set;
Judge the described starting point quantity in current described starting point set, if 1, then current 1 described starting point is set as starting point for subsequent use, until the described starting point in described starting point set is 2, then according to described first spacing of positional information calculation two described starting points of described starting point;
If judge, the described starting point quantity in current described starting point set is 2, then described first spacing of direct positional information calculation two described starting points according to described starting point;
Obtain the connecting line of 2 described starting points and the initial angle of X-axis, described initial angle is not more than 90 °.
3. requires the change ratio-dependent method based on cocos2dx framework described in 1 according to claim, it is characterized in that, determine a plurality of transfer points that a plurality of touch track is corresponding, and the second spacing calculating described transfer point between two specifically comprises:
The movement of described starting point based on described touch track is detected by described interface screen, determine the positional information of 2 described transfer points, and the positional information of described transfer point is marked, stored in described transfer point set, described transfer point is the definition after described starting point moves;
According to described second spacing of positional information calculation two described transfer points of described transfer point.
4. require the change ratio-dependent method based on cocos2dx framework described in 3 according to claim, it is characterized in that, the movement of described starting point based on described touch track detected, determine that the positional information of 2 described transfer points specifically comprises:
The movement of described starting point based on described touch track is detected by described interface screen, judge the described transfer point quantity in current transfer point set, if 1, then by current described starting point set, determine not based on the described starting point of described touch track movement, and arrange not movement described starting point be transfer point described in another;
If 2, then determine the positional information of 2 described transfer points.
5. require the change ratio-dependent method based on cocos2dx framework in 1 to 4 described in any one according to claim, it is characterized in that, combine corresponding angle map to x-axis and y-axis according to described first spacing and described second spacing, and determine specifically to comprise with the corresponding change ratio of described x-axis and described y-axis:
Described second spacing and described first spacing are divided by and obtain trail change ratio;
Carry out tangent value calculating according to the positional information of 2 described transfer points and the mapping relations of described x-axis and described y-axis, determine the connecting line of 2 described transfer points and the mobile angle of described x-axis;
Positional information according to 2 described transfer points is modified to new anchor point position to anchor point;
According to described trail change ratio and the described mobile angle determination correspondence mappings x-axis change ratio to described x-axis, and be mapped to the y-axis change ratio of described y-axis;
Carry out the adjustment of interface ratio according to correspondence direction according to described x-axis change ratio and described y-axis change ratio.
6. require the change ratio-dependent method based on cocos2dx framework described in 5 according to claim, it is characterized in that, according to described trail change ratio and the described mobile angle determination correspondence mappings x-axis change ratio to described x-axis, and the y-axis change ratio being mapped to described y-axis specifically comprises:
Judge whether described mobile angle is 90 ° or 0 °, if be not all 90 ° and 0 °, then described x-axis change ratio is the product of trail change ratio and described initial included angle cosine value, and described y-axis change ratio is the product of trail change ratio and described mobile angle cosine value;
If 90 °, then described x-axis change ratio is preset initial transformation ratio, and described y-axis change ratio is the product of trail change ratio and described mobile angle cosine value;
If 0 °, then described y-axis change ratio is preset initial transformation ratio, and described x-axis change ratio is the product of trail change ratio and described initial included angle cosine value.
7., based on a change ratio-dependent device for cocos2dx framework, it is characterized in that, comprising:
First computing unit, for being determined a plurality of starting points that a plurality of touch track is corresponding by interface screen, and calculates the first spacing of described starting point between two;
Second computing unit, for being determined a plurality of transfer points that a plurality of touch track is corresponding by described interface screen, and calculates the second spacing of described transfer point between two;
Change ratio-dependent unit, for combining corresponding angle map to x-axis and y-axis according to described first spacing and described second spacing, and determines the corresponding change ratio with described x-axis and described y-axis.
8. the change ratio-dependent device based on cocos2dx framework according to claim 7, it is characterized in that, the first computing unit specifically comprises:
Starting point triggers unit, for the triggering of described touch track being detected by described interface screen, is determined the positional information of starting point, and the positional information of described starting point is marked, stored in starting point set;
Starting point judgment sub-unit, for judging the described starting point quantity in current described starting point set, if 1, then current 1 described starting point is set as starting point for subsequent use, until the described starting point in described starting point set is 2, then according to described first spacing of positional information calculation two described starting points of described starting point;
Described starting point judgment sub-unit, if also for judging that the described starting point quantity in current described starting point set is 2, then described first spacing of direct positional information calculation two described starting points according to described starting point;
First obtains subelement, and for the initial angle of the connecting line and X-axis that obtain 2 described starting points, described initial angle is not more than 90 °;
Second computing unit specifically comprises:
Transfer point triggers unit, for the movement of described starting point based on described touch track being detected by described interface screen, determine the positional information of 2 described transfer points, and the positional information of described transfer point is marked, stored in described transfer point set, described transfer point is the definition after described starting point moves;
Determine subelement, for described second spacing of positional information calculation two the described transfer points according to described transfer point;
Wherein, transfer point triggers unit specifically comprises:
Transfer point judge module, for the movement of described starting point based on described touch track being detected by described interface screen, judge the described transfer point quantity in current transfer point set, if 1, then by current described starting point set, determine not based on the described starting point of described touch track movement, and what arrange the described starting point of not movement is transfer point described in another, if 2, then determine the positional information of 2 described transfer points;
Mark module, for the positional information of described transfer point being marked, stored in described transfer point set, described transfer point is the definition after described starting point moves.
9. the change ratio-dependent device based on cocos2dx framework according to claim 7 or 8, is characterized in that, change ratio-dependent unit specifically comprises:
Trail change ratio obtains subelement, obtains trail change ratio for described second spacing and described first spacing being divided by;
Mobile angle determination subelement, for carrying out tangent value calculating according to the positional information of 2 described transfer points and the mapping relations of described x-axis and described y-axis, determines the connecting line of 2 described transfer points and the mobile angle of described x-axis;
Anchor point correction subelement, is modified to new anchor point position for the positional information according to 2 described transfer points to anchor point;
Map subelement, for according to described trail change ratio and the described mobile angle determination correspondence mappings x-axis change ratio to described x-axis, and the y-axis being mapped to described y-axis changes ratio;
Adjustment subelement, for carrying out the adjustment of interface ratio according to correspondence direction according to described x-axis change ratio and described y-axis change ratio.
10. the change ratio-dependent device based on cocos2dx framework according to claim 9, is characterized in that, maps subelement and specifically comprises:
Mobile angle judge module, for judging whether described mobile angle is 90 ° or 0 °, if be not all 90 ° and 0 °, then triggers the first ratio-dependent module, if 90 °, then triggers the second ratio-dependent module, if 0 °, then triggers the 3rd ratio-dependent module;
Described first ratio-dependent module, be the product of trail change ratio and described initial included angle cosine value for described x-axis change ratio, described y-axis change ratio is the product of trail change ratio and described mobile angle cosine value;
Described second ratio-dependent module, be preset initial transformation ratio for described x-axis change ratio, described y-axis change ratio is the product of trail change ratio and described mobile angle cosine value;
Described 3rd ratio-dependent module, be preset initial transformation ratio for described y-axis change ratio, described x-axis change ratio is the product of trail change ratio and described initial included angle cosine value.
CN201510746642.0A 2015-11-03 2015-11-03 A kind of variation ratio-dependent method and device based on cocos2dx frame Active CN105426077B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510746642.0A CN105426077B (en) 2015-11-03 2015-11-03 A kind of variation ratio-dependent method and device based on cocos2dx frame

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510746642.0A CN105426077B (en) 2015-11-03 2015-11-03 A kind of variation ratio-dependent method and device based on cocos2dx frame

Publications (2)

Publication Number Publication Date
CN105426077A true CN105426077A (en) 2016-03-23
CN105426077B CN105426077B (en) 2019-01-29

Family

ID=55504315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510746642.0A Active CN105426077B (en) 2015-11-03 2015-11-03 A kind of variation ratio-dependent method and device based on cocos2dx frame

Country Status (1)

Country Link
CN (1) CN105426077B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114265526A (en) * 2021-12-10 2022-04-01 北京金堤科技有限公司 Map scaling method and device, storage medium and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100250115A1 (en) * 2007-12-21 2010-09-30 Sony Corporation Electronic apparatus and navigation method
CN102096831A (en) * 2009-12-15 2011-06-15 华中师范大学 Method for identifying graph dynamic relationship

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100250115A1 (en) * 2007-12-21 2010-09-30 Sony Corporation Electronic apparatus and navigation method
CN101903742A (en) * 2007-12-21 2010-12-01 索尼公司 Electronic device and navigation device
CN102096831A (en) * 2009-12-15 2011-06-15 华中师范大学 Method for identifying graph dynamic relationship

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114265526A (en) * 2021-12-10 2022-04-01 北京金堤科技有限公司 Map scaling method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN105426077B (en) 2019-01-29

Similar Documents

Publication Publication Date Title
KR101714145B1 (en) Apparatus for identifying peripheral vehicle and method thereof
CN111854771B (en) Map quality detection processing method and device, electronic equipment and storage medium
CN105554876B (en) A kind of mobile terminal locating method and mobile terminal
CN104777984A (en) Touch trajectory tracking method and device and touch screen device
CN106569245A (en) Vehicle positioning method and device
JP2021173745A (en) Method, apparatus, device and storage medium for determining lane occupied by vehicle
CN105554702A (en) Cross network positioning system and method, positioning server and mobile terminal
US20100145618A1 (en) Vehicle collision management systems and methods
CN105426443A (en) Map data processing method, device and system
CN102750035B (en) The determination method and apparatus of display position of cursor
CN110017840B (en) Navigation data processing method and device, electronic equipment and computer readable medium
CN104142786A (en) Prompt box display method and terminal
CN105094287A (en) Information processing method and electronic device
CN107452043B (en) Network graph connection method, application and visual terminal
KR102395298B1 (en) Apparatus and method for controlling communication of vehicle
CN104423632A (en) Method and system for positioning electronic pen
CN105426077A (en) Change ratio determination method and device based on cocos2dx framework
CN103853348A (en) Operation method, operation control method and related device of air input device
CN108287354B (en) Automatic data error correction method and device and navigation equipment
CN104484113A (en) Screen word-capturing method, screen word-capturing device and mobile terminal
CN104613970A (en) Simulative navigation data generation method and client
US9950270B2 (en) Electronic device and method for controlling toy using the same
CN111027423B (en) Automatic driving lane line detection method and device and electronic equipment
CN104007865A (en) Recognition method and electronic device
CN104540098A (en) Crowdsourcing-based position positioning method and system and server

Legal Events

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