CN107977147A - Sliding trace display methods and device - Google Patents
Sliding trace display methods and device Download PDFInfo
- Publication number
- CN107977147A CN107977147A CN201711375389.8A CN201711375389A CN107977147A CN 107977147 A CN107977147 A CN 107977147A CN 201711375389 A CN201711375389 A CN 201711375389A CN 107977147 A CN107977147 A CN 107977147A
- Authority
- CN
- China
- Prior art keywords
- point
- width
- cross
- sliding
- goal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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
Abstract
The disclosure is directed to a kind of sliding trace display methods and device, belong to display technology field.The described method includes:According to a slide for display screen, multiple points of the sliding trace for characterizing slide are determined successively;Determine each to put corresponding sliding speed in multiple points;Show the figure of sliding trace, the change of the change sliding speed corresponding with multiple points of the width of the figure of sliding trace is negatively correlated.The disclosure solves the problems, such as that the display effect of the figure of sliding trace and the difference of hand-written effect are larger.The disclosure is used to show sliding trace.
Description
Technical field
This disclosure relates to display technology field, more particularly to a kind of sliding trace display methods and device.
Background technology
With the development of display technology, with the development of display technology, more and more terminals are provided with paintbrush function.Tool
The terminal for having paintbrush function can show the cunning for being used for characterizing the slide according to the slide for display screen in terminal
The figure of dynamic rail mark.
In correlation technique, user can also be operated in terminal to select the target trajectory width of paintbrush.Afterwards, Yong Huke
To be slided on a display screen with finger, so that terminal determines multiple points successively according to the slide.Further, terminal is also
It according to the plurality of point, can show the figure for the sliding trace for including the plurality of point, institute is each put in the figure of the sliding trace
Width in position is the target trajectory width for the paintbrush that user selectes.
But in correlation technique the figure for the sliding trace that terminal is shown and user slided using pen on paper it is obtained
Graphics distinction is larger, and the display effect of the figure of sliding trace is distinguished larger with hand-written effect.
The content of the invention
This application provides a kind of sliding trace display methods and device, the display that can solve the figure of sliding trace is imitated
The problem of fruit and larger hand-written effect difference.The technical solution is as follows:
First aspect, there is provided a kind of sliding trace display methods, the described method includes:
According to a slide for display screen, sliding trace for characterizing the slide is determined successively
Multiple points;
Determine each to put corresponding sliding speed in the multiple point;
Show the figure of the sliding trace, the change of the width of the figure of the sliding trace is corresponding with the multiple point
Sliding speed change it is negatively correlated.
Optionally, the basis is directed to a slide of display screen, determines to be used to characterize the slide successively
Sliding trace multiple points, including:
According to a slide for display screen, will start position changes first after the slide point and its
Point afterwards is determined as the multiple point.
Optionally, the figure of the display sliding trace, including:
According to it is described each put corresponding sliding speed determine it is described each put corresponding track width, each point pair
The track width answered each puts corresponding sliding speed negative correlation with described;
According to each corresponding track width of target point and the corresponding rail of a upper point of each target point
Stitch width, shows the corresponding quadrangle of each target point, and the figure of the sliding trace includes each target point pair
The quadrangle answered, the target point are the point after first point in the multiple point;
Wherein, the target point in the multiple point include the multiple point in j-th point, j >=2, described j-th point
A upper point is -1 point of jth in the multiple point, and the j-th point of corresponding quadrangle includes:It is parallel to each other and relatively
First while and when second, described -1 point of jth is located at the midpoint on first side, and described j-th point is located at second side
Midpoint, the length on first side is equal to the corresponding track width of described -1 point of jth, and the length on second side is equal to institute
State j-th point of corresponding track width.
Optionally, the method further includes:
Determine the sliding type each put, wherein, w >=1, w-th point in the multiple point with the w-1 point
In the preset coordinate system on the display screen abscissa distance be more than ordinate apart from when, described w-th point of slip side
Formula is slides laterally mode, in the described w-th point abscissa with the w-1 point in the preset coordinate system apart from small
In or equal to ordinate apart from when, described w-th point of sliding type is longitudinal sliding motion mode;
A upper point according to each corresponding track width of target point and each target point corresponds to
Track width, show each corresponding quadrangle of target point, including:
It is wide according to the corresponding track of a upper point of the corresponding track width of each target point, each target point
The sliding type of degree and each target point, shows the corresponding quadrangle of each target point;Wherein, in the jth
When the sliding type of a point slides laterally mode for described in, the first side of the j-th point of corresponding quadrangle is parallel to described
The axis of ordinates of preset coordinate system;When described j-th point of sliding type is the longitudinal sliding motion mode, described j-th point
Axis of abscissas of first side of corresponding quadrangle parallel to the preset coordinate system.
Optionally, the method further includes:
After receiving width and instruction is set, determine that the width sets the indicated target trajectory width of instruction;
It is described according to it is described each put corresponding sliding speed determine it is described each put corresponding track width, including:
The corresponding maximum width of the target trajectory width and minimum widith, institute are determined according to default width correspondence
Stating width correspondence includes the corresponding maximum width of at least one track width and minimum widith, and the track width and its
The corresponding equal positive correlation of maximum width and minimum widith;
According to reference width determine formula determine it is described each put corresponding reference width, wherein, the w in the multiple point
The corresponding reference width of a point is Lcw, w >=1, the reference width determines that formula isLmax
For the corresponding maximum width of the target trajectory width, LminFor the corresponding minimum widith of the target trajectory width, VwTo be described
W-th point of corresponding sliding speed, VyTo preset sliding speed;
Described put the corresponding minimum widith of the target trajectory width and each width maximum in corresponding reference width
Degree, is determined as described each putting corresponding expected width;
When each point meets the first preset condition, determine described each to put corresponding expected width to be described each
The corresponding track width of point, first preset condition include:Each point is first point in the multiple point.
Optionally, it is described according to it is described each put corresponding sliding speed determine it is described each put corresponding track width,
Further include:
When each point meets the second preset condition, determine that formula determines that each point corresponds to according to the first width
Track width, second preset condition includes:Each point is the point in the multiple point after first point;
Wherein, i-th point of corresponding track width in the multiple point is Gi, i >=2, first width determines public affairs
Formula is:
& represent and, Gi-1For the corresponding track width of the i-th -1 point, YiFor the i-th point of corresponding expected width, institute
It is the i-th point of corresponding distance to state at i-th point with the distance of the i-th -1 point, described i-th point corresponding expected wide
The absolute value of the difference of corresponding with the i-th -1 point track width of degree is the i-th point of corresponding absolute value, ZiFor institute
State i-th point of corresponding distance and minimization of the sum of absolute value.
Optionally, first preset condition further includes:The slide is to receive the width setting instruction
First time slide afterwards, it is described each to put corresponding sliding speed according to described and determine described each to put corresponding track
Width, further includes:
When each point is unsatisfactory for first preset condition and second preset condition, each point is determined
Corresponding expected width is last corresponding track width of point for characterizing the sliding trace of last slide.
Optionally, the method further includes:
When the multiple point includes cross-goal point, the corresponding square of the cross-goal point is shown, it is the multiple
Point includes next point of the cross-goal point, and under the sliding type of cross-goal point and the cross-goal point
The sliding type of one point is different;
Wherein, the corresponding four square vertex of the cross-goal point include:The cross-goal point corresponding four
Two of first side in two endpoints when second in shape, and the corresponding quadrangle of next point of cross-goal point
Endpoint.
Optionally, the method further includes:
When the multiple point includes cross-goal point, the corresponding square of the cross-goal point is shown, it is the multiple
Point includes next point of the cross-goal point, and under the sliding type of cross-goal point and the cross-goal point
The sliding type of one point is different;
Wherein, three vertex of the corresponding right angled triangle of the cross-goal point include:The cross-goal point, it is described
An endpoint on the second side in the corresponding quadrangle of cross-goal point, and next point corresponding four of cross-goal point
Endpoint when first in shape, and to be respectively positioned on the cross-goal point corresponding for any point in the right angled triangle
Outside the corresponding quadrangle of next point of quadrangle and cross-goal point.
Optionally, the method further includes:
Determine next point of the cross-goal point and a upper point be the cross-goal point comparison point;
By in the vertex identical with the coordinates of targets of the cross-goal point in the corresponding square of the cross-goal point,
It is determined as the datum vertex of each comparison point close to the vertex of each comparison point of the cross-goal point, wherein, work as institute
The sliding type of each comparison point is stated as when sliding laterally mode, the coordinates of targets is the vertical seat in the preset coordinate system
Mark, when the sliding type of each comparison point is longitudinal sliding motion mode, the coordinates of targets is in the preset coordinate system
Abscissa;
Determine identical with the sliding type of each comparison point in the multiple point and continuous at least one traversal point,
Wherein, at least one traversal point includes each comparison point and does not include each cross-goal point, and it is described extremely
The coordinates of targets of few traversal point is arranged successively along the direction of the coordinates of targets away from the cross-goal point;
The coordinates of targets in the crosspoint and each ratio are respectively positioned in the coordinates of targets of at least one traversal point
During compared between the coordinates of targets of the datum vertex of point, the reference with each comparison point at least one traversal point is determined
The traversal point of the distance minimum of the coordinates of targets on vertex travels through point for target;
According to the datum vertex of each comparison point and target traversal point, the reference of each comparison point is shown
The auxiliary triangle shape of vertex correspondence, wherein, three vertex of the corresponding auxiliary triangle shape of datum vertex of each comparison point
Including:The datum vertex of each comparison point, and target traversal point described in the corresponding quadrangle of target traversal point
Two endpoints on place side.
Second aspect, there is provided a kind of sliding trace display device, the sliding trace display device include:
First determining module, for according to a slide for being directed to display screen, determining to be used to characterize the cunning successively
Multiple points of the sliding trace of dynamic operation;
Second determining module, for determining each to put corresponding sliding speed in the multiple point;
First display module, for showing the figure of the sliding trace, the change of the width of the figure of the sliding trace
The change for changing sliding speed corresponding with the multiple point is negatively correlated.
Optionally, first determining module is used for:According to a slide for display screen, the cunning will be started
Position changes first after dynamic operation point and its point afterwards are determined as the multiple point.
Optionally, first display module includes:
Determination unit, for each putting corresponding sliding speed according to described and determining that described each to put corresponding track wide
Degree, it is described each to put corresponding track width and each put corresponding sliding speed negative correlation with described;
Display unit, for upper one according to each corresponding track width of target point and each target point
The corresponding track width of a point, shows the corresponding quadrangle of each target point, and the figure of the sliding trace includes described
The corresponding quadrangle of each target point, the target point are the point after first point in the multiple point;
Wherein, the target point in the multiple point include the multiple point in j-th point, j >=2, described j-th point
A upper point is -1 point of jth in the multiple point, and the j-th point of corresponding quadrangle includes:It is parallel to each other and relatively
First while and when second, described -1 point of jth is located at the midpoint on first side, and described j-th point is located at second side
Midpoint, the length on first side is equal to the corresponding track width of described -1 point of jth, and the length on second side is equal to institute
State j-th point of corresponding track width.
Optionally, the sliding trace display device further includes:
3rd determining module, for determining the sliding type each put, wherein, w >=1, in the multiple point
W-th point with the w-1 point in the preset coordinate system on the display screen abscissa distance be more than ordinate apart from when, institute
The sliding type for stating at w-th point is to slide laterally mode, in described w-th point and the w-1 point in the preset coordinate
In system abscissa distance be less than or equal to ordinate apart from when, described w-th point of sliding type is longitudinal sliding motion mode;
The display unit is used for:
It is wide according to the corresponding track of a upper point of the corresponding track width of each target point, each target point
The sliding type of degree and each target point, shows the corresponding quadrangle of each target point;Wherein, in the jth
When the sliding type of a point slides laterally mode for described in, the first side of the j-th point of corresponding quadrangle is parallel to described
The axis of ordinates of preset coordinate system;When described j-th point of sliding type is the longitudinal sliding motion mode, described j-th point
Axis of abscissas of first side of corresponding quadrangle parallel to the preset coordinate system.
Optionally, the sliding trace display device further includes:
4th determining module, for after receiving width and setting instruction, determining that the width is set indicated by instruction
Target trajectory width;
The determination unit is used for:
The corresponding maximum width of the target trajectory width and minimum widith, institute are determined according to default width correspondence
Stating width correspondence includes the corresponding maximum width of at least one track width and minimum widith, and the track width and its
The corresponding equal positive correlation of maximum width and minimum widith;
According to reference width determine formula determine it is described each put corresponding reference width, wherein, in the multiple point
W-th point of corresponding reference width is Lcw, w >=1, the reference width determines that formula is
LmaxFor the corresponding maximum width of the target trajectory width, LminFor the corresponding minimum widith of the target trajectory width, VwFor
The w-th point of corresponding sliding speed, VyTo preset sliding speed;
Described put the corresponding minimum widith of the target trajectory width and each width maximum in corresponding reference width
Degree, is determined as described each putting corresponding expected width;
When each point meets the first preset condition, determine described each to put corresponding expected width to be described each
The corresponding track width of point, first preset condition include:Each point is first point in the multiple point.
Optionally, the determination unit is additionally operable to:
When each point meets the second preset condition, determine that formula determines that each point corresponds to according to the first width
Track width, second preset condition includes:Each point is the point in the multiple point after first point;
Wherein, i-th point of corresponding track width in the multiple point is Gi, i >=2, first width determines public affairs
Formula is:
& represent and, Gi-1For the corresponding track width of the i-th -1 point, YiFor the i-th point of corresponding expected width, institute
It is the i-th point of corresponding distance to state at i-th point with the distance of the i-th -1 point, described i-th point corresponding expected wide
The absolute value of the difference of corresponding with the i-th -1 point track width of degree is the i-th point of corresponding absolute value, ZiFor institute
State i-th point of corresponding distance and minimization of the sum of absolute value.
Optionally, first preset condition further includes:The slide is to receive the width setting instruction
First time slide afterwards, the determination unit are additionally operable to:
When each point is unsatisfactory for first preset condition and second preset condition, each point is determined
Corresponding expected width is last corresponding track width of point for characterizing the sliding trace of last slide.
Optionally, the sliding trace display device further includes:
Second display module, for when the multiple point includes cross-goal point, showing that the cross-goal point corresponds to
Square, the multiple point includes next point of the cross-goal point, and the sliding type of cross-goal point with
The sliding type of next point of the cross-goal point is different;
Wherein, the corresponding four square vertex of the cross-goal point include:The cross-goal point corresponding four
Two of first side in two endpoints when second in shape, and the corresponding quadrangle of next point of cross-goal point
Endpoint.
Optionally, the sliding trace display device further includes:
3rd display module, for when the multiple point includes cross-goal point, showing that the cross-goal point corresponds to
Square, the multiple point includes next point of the cross-goal point, and the sliding type of cross-goal point with
The sliding type of next point of the cross-goal point is different;
Wherein, three vertex of the corresponding right angled triangle of the cross-goal point include:The cross-goal point, it is described
An endpoint on the second side in the corresponding quadrangle of cross-goal point, and next point corresponding four of cross-goal point
Endpoint when first in shape, and to be respectively positioned on the cross-goal point corresponding for any point in the right angled triangle
Outside the corresponding quadrangle of next point of quadrangle and cross-goal point.
Optionally, the sliding trace display device further includes:
5th determining module, next point and a upper point for determining the cross-goal point are the intersection mesh
The comparison point of punctuate;
6th determining module, for by target with the cross-goal point in the corresponding square of the cross-goal point
In the identical vertex of coordinate, it is determined as the ginseng of each comparison point close to the vertex of each comparison point of the cross-goal point
Vertex is examined, wherein, when the sliding type of each comparison point is slides laterally mode, the coordinates of targets is described default
Ordinate in coordinate system, when the sliding type of each comparison point is longitudinal sliding motion mode, the coordinates of targets is institute
State the abscissa in preset coordinate system;
7th determining module is identical and continuous with the sliding type of each comparison point in the multiple point for determining
At least one traversal point, wherein, at least one traversal point includes each comparison point and does not include each friendship
Pitch target point, and it is described it is at least one traversal point coordinates of targets along away from the cross-goal point coordinates of targets direction according to
Secondary arrangement;
8th determining module, for being respectively positioned on the target in the crosspoint in the coordinates of targets of at least one traversal point
When between the coordinates of targets of coordinate and the datum vertex of each comparison point, determine at least one traversal point with it is described
The traversal point of the distance minimum of the coordinates of targets of the datum vertex of each comparison point travels through point for target;
4th display module, travels through point for the datum vertex according to each comparison point and the target, shows institute
The corresponding auxiliary triangle shape of datum vertex of each comparison point is stated, wherein, the datum vertex of each comparison point is corresponding auxiliary
Helping three vertex of triangle includes:The datum vertex of each comparison point, and corresponding four side of target traversal point
Two endpoints on side where the traversal of target described in shape point.
The third aspect, there is provided a kind of sliding trace display device, the sliding trace display device include:
Processing component;
Memory for the executable instruction for storing the processing component;
Wherein, the processing component is configured as:
According to a slide for display screen, sliding trace for characterizing the slide is determined successively
Multiple points;
Determine each to put corresponding sliding speed in the multiple point;
Show the figure of the sliding trace, the change of the width of the figure of the sliding trace is corresponding with the multiple point
Sliding speed change it is negatively correlated.
Fourth aspect, there is provided a kind of readable storage medium storing program for executing, is stored with instruction in the readable storage medium storing program for executing, when it is described can
Storage medium is read when being run on processing component so that processing component performs method as described in relation to the first aspect.
The technical solution that the disclosure provides can include the following benefits:
In the sliding trace display methods provided due to the embodiment of the present disclosure, each point at least one point is previously determined
Corresponding sliding speed, and then when according to the figure for each putting corresponding sliding speed display sliding trace, enable to this
The change of the change sliding speed corresponding with multiple points of the width of the figure of sliding trace is negatively correlated, so that sliding trace
Figure and user to slide on paper obtained figure using pen more similar, so, the display effect of the figure of sliding trace
Fruit and the difference of hand-written effect are smaller, and the figure for the sliding trace that terminal is shown uses pen in paper compared with picture in the embodiment of the present disclosure
It is upper to slide obtained figure.In addition, terminal can also show the vigour of style in writing of sliding trace in the embodiment of the present disclosure, enrich
Display effect.
It should be appreciated that the general description and following detailed description of the above are only exemplary, this can not be limited
It is open.
Brief description of the drawings
In order to illustrate more clearly of embodiment of the disclosure, attached drawing needed in embodiment description will be made below
Simply introduce, it should be apparent that, drawings in the following description are only some embodiments of the present disclosure, common for this area
For technical staff, without creative efforts, other attached drawings can also be obtained according to these attached drawings.
Fig. 1 is a kind of method flow diagram of the sliding trace display methods provided according to an exemplary embodiment;
Fig. 2 is the method flow diagram of another sliding trace display methods provided according to an exemplary embodiment;
Fig. 3 is a kind of method flow diagram of the definite track width provided according to an exemplary embodiment;
Fig. 4 is a kind of schematic diagram of the j-th point of corresponding quadrangle provided according to an exemplary embodiment;
Fig. 5 is a kind of principle schematic of the figure of display sliding trace according to an exemplary embodiment;
Fig. 6 is a kind of j-th point corresponding square schematic diagram provided according to an exemplary embodiment;
Fig. 7 is a kind of schematic diagram of target traversal point according to an exemplary embodiment;
Fig. 8 is a kind of schematic diagram of auxiliary triangle shape according to an exemplary embodiment;
Fig. 9 is the schematic diagram of another auxiliary triangle shape according to an exemplary embodiment;
Figure 10 be according to an exemplary embodiment the first according to slide show figure principle schematic;
Figure 11 is second of principle schematic that figure is shown according to slide according to an exemplary embodiment;
Figure 12 be according to an exemplary embodiment the third according to slide show figure principle schematic;
Figure 13 is the 4th kind of principle schematic that figure is shown according to slide according to an exemplary embodiment;
Figure 14 is the 5th kind of principle schematic that figure is shown according to slide according to an exemplary embodiment;
Figure 15 is the 6th kind of principle schematic that figure is shown according to slide according to an exemplary embodiment;
Figure 16 is the 7th kind of principle schematic that figure is shown according to slide according to an exemplary embodiment;
Figure 17 is the 8th kind of principle schematic that figure is shown according to slide according to an exemplary embodiment;
Figure 18 is a kind of pictorial diagram shown according to slide according to an exemplary embodiment;
Figure 19 is a kind of pictorial diagram for sliding trace that correlation technique provides;
Figure 20 is a kind of structure diagram of the sliding trace display device provided according to an exemplary embodiment;
Figure 21 is a kind of structure diagram of first display module provided according to an exemplary embodiment;
Figure 22 is the structure diagram of another sliding trace display device provided according to an exemplary embodiment;
Figure 23 is the structure diagram of another the sliding trace display device provided according to an exemplary embodiment;
Figure 24 is the structure diagram of another the sliding trace display device provided according to an exemplary embodiment;
Figure 25 is a kind of structure diagram of the sliding trace display device provided according to another exemplary embodiment;
Figure 26 is the structure diagram of another sliding trace display device provided according to another exemplary embodiment;
Figure 27 is a kind of block diagram for sliding trace display device according to an exemplary embodiment.
Attached drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure
Example, and be used to together with specification to explain the principle of the disclosure.
Embodiment
In order to make the purpose, technical scheme and advantage of the disclosure clearer, the disclosure is made below in conjunction with attached drawing into
One step it is described in detail, it is clear that described embodiment is only disclosure part of the embodiment, rather than whole implementation
Example.Based on the embodiment in the disclosure, what those of ordinary skill in the art were obtained without making creative work
All other embodiment, belongs to the scope of disclosure protection.
With the development of display technology, more and more terminals are provided with paintbrush function.There is the terminal energy of paintbrush
Enough slides according to for display screen, display are used for the figure for characterizing the sliding trace of the slide.It is exemplary, the pin
Slide to display screen can be:For the touch-control slide of touching display screen, alternatively, by mouse on a display screen
Slide.
Fig. 1 is according to a kind of method flow diagram of sliding trace display methods of exemplary embodiment offer, the slip
Track display method can be used for terminal.As shown in Figure 1, the sliding trace display methods can include:
In a step 101, according to a slide for display screen, the cunning for characterizing slide is determined successively
Multiple points of dynamic rail mark.
In the embodiments of the present disclosure, " point " refers to the point on display screen with position feature, its position feature can be adopted
With the coordinate representation in the preset coordinate system on display screen.
In a step 102, determine each to put corresponding sliding speed in multiple points.
In step 103, the figure of sliding trace is shown, the change of the width of the figure of sliding trace is corresponding with multiple points
Sliding speed change it is negatively correlated.
The figure of the sliding trace refers to the figure for the form for reflecting the sliding trace.
In conclusion in the sliding trace display methods provided due to the embodiment of the present disclosure, it is previously determined at least one
Corresponding sliding speed is each put in point, and then when according to the figure for each putting corresponding sliding speed display sliding trace,
Enable to the change of the change sliding speed corresponding with multiple points of the width of the figure of the sliding trace negatively correlated, so that
Figure and the user of sliding trace to slide on paper obtained figure using pen more similar, so, the figure of sliding trace
The display effect of shape is distinguished smaller with hand-written effect.
Fig. 2 is according to the method flow diagram of another sliding trace display methods of exemplary embodiment offer, the cunning
Dynamic track display method can be used for terminal.As shown in Fig. 2, the sliding trace display methods can include:
In step 201, after width instructions are received, the target trajectory width indicated by width instructions is obtained.
When user needs the paintbrush function in using terminal, user can set operation in the enterprising line width of terminal, with
Triggering terminal generation is instructed for indicating that the width of target trajectory width is set, and is obtained the width and set indicated by instruction
Target trajectory width.It that is to say, user needs to set the target trajectory width of paintbrush in terminal.
In step 202, according to a slide for display screen, the cunning for characterizing slide is determined successively
Multiple points of dynamic rail mark.
Terminal can carry out one-time detection every preset time period to display screen, to determine to be directed to display screen in each detection
The corresponding point of operation.During user carries out a slide for display screen, terminal can carry out display screen
Multiple touch point collection is with the corresponding z point of the definite slide, z >=1, when this z point is continuous z collection in sequential
Point determined by quarter.It should be noted that terminal can record this point on a display screen in each point in determining z point
Coordinate in preset coordinate system, and the coordinate of z point can be according to time order and function sequential storage.
When a slide for display screen is the touch-control slide for touching display screen, user is for aobvious
During slide of display screen, touch control object (such as finger or stylus) can be pressed touch-control successively and shown by user
Screen, slide on touching display screen and lift touch control object from touching display screen.In this process, what terminal determined should
The corresponding z point of slide includes:The initial point determined when touch control object is pressed touching display screen, the position with the initial point
Identical point, and start position changes first after slide point and its point afterwards.
When a slide for display screen is by mouse slide on a display screen, user is for aobvious
During slide of display screen, user can control mouse to click on display screen successively, clicking on the state of display screen
Under slide on a display screen and stop click on display screen.In this process, the slide that terminal determines is z corresponding
Point includes:Mouse clicks on the initial point determined during display screen, the point identical with the position of the initial point, and starts slide
The point and its point afterwards that position changes first afterwards.
The point that terminal can by the point of position change first after beginning slide and its afterwards in step 202, is determined as
Multiple points for the sliding trace for characterizing slide.It should be noted that the z point that terminal determines under normal conditions can be with
Including a point identical with the position of the initial point, it is usually the case that sliding trace for characterizing slide is more
A point is the point after second point in z point.
In step 203, determine each to put corresponding sliding speed in multiple points.
Corresponding sliding speed is each put in multiple points is:The slip that the upper point each put each is put to this
Speed.Terminal is after each point is determined, it is possible to determines that this each puts corresponding sliding speed.It should be noted that should
A upper point for first point in multiple points is:A upper point for the point in z point.Assuming that z point includes:Initial point,
A point identical with initial point position and multiple points of the sliding trace for characterizing slide, then in the plurality of point
A upper point for one point is a point identical with initial point position.Assuming that i >=2, i-th point in the plurality of point upper
One point is:The i-th -1 point in the plurality of point.
Exemplary, terminal is after i-th point in determining multiple points, it is possible to obtains the in and multiple points at i-th point
The coordinate of i-1 point, and obtain determine i-th point and the i-th -1 point time, and then according to i-th point of coordinate, i-th -
The time of the coordinate of 1 point, the time for determining at i-th point and definite the i-th -1 point determines i-th point of corresponding slip speed
Degree.Wherein, i-th point of corresponding sliding speedd(i-1,i)For i-th point and the distance of the i-th -1 point, t(i-1,i)
To determine the absolute value of the time difference of and the i-th -1 point at i-th point.
For example, it is assumed that d(i-1,i)About 71.81010064149748 unit lengths (such as the corresponding length of a pixel
For a unit length), t(i-1,i)For 17 milliseconds, then i-th point of corresponding sliding speed be about 4.2241235 unit lengths/
Millisecond.
In step 204, corresponding sliding speed is each put according in target trajectory width and multiple points, determined multiple
Corresponding track width is each put in point.
It should be noted that each putting corresponding track width each puts corresponding sliding speed negative correlation with this, and should
Each put corresponding track width and target trajectory width positive correlation.It that is to say, when user is faster in the sliding speed of some point
When, the corresponding track width of point is smaller, and when user is slower in the sliding speed of some point, which gets over
Greatly.
Optionally, Fig. 3 is a kind of method flow diagram of the definite track width provided according to an exemplary embodiment.w≥
1, w-th point in multiple points is any one point in multiple points, in Fig. 3 will with determine in multiple points w-th point it is corresponding
Exemplified by track width, step 204 is explained.As shown in figure 3, step 204 can include:
In step 2041, the corresponding maximum width of target trajectory width and most is determined according to default width correspondence
Small width.
Width correspondence can be preset with terminal, which can include at least one track width pair
The maximum width and minimum widith answered, and track width corresponding maximum width and minimum widith in the width correspondence
Equal positive correlation.Terminal is after definite target trajectory width, it is possible to according to the default width correspondence, determines the target track
The corresponding maximum width of stitch width and minimum widith.
In step 2042, determine that formula determines w-th point of corresponding reference width according to reference width.
W-th point of corresponding reference width in the plurality of point is Lcw, which determines that formula is
LmaxFor the corresponding maximum width of target trajectory width, LminFor target trajectory
The corresponding minimum widith of width, VwFor the w-th point of corresponding sliding speed, VyTo preset sliding speed.Exemplary, this is default
Sliding speed can be 4 unit lengths/millisecond.
If formula is determined according to the reference width it is known that VwMore than Vy, then LcwIt is less than Lmin;If VwIt is equal to
Vy, then LcwIt is equal to Lmin;If VwLess than Vy, and VwMore than zero, then LcwIt is greater than Lmin;If VwIt is zero, then LcwJust
Equal to Lmax。
In step 2043, by the corresponding minimum widith of target trajectory width and w-th point of corresponding reference width most
Big width, is determined as w-th point of corresponding expected width.
Terminal is in the corresponding minimum widith of definite target trajectory width, can be with and after w-th point of corresponding reference width
Compare the size of the minimum widith and the reference width, and the minimum widith and width maximum in the reference width are determined as
W-th point of corresponding expected width.
It should be noted that terminal, after w-th point of corresponding expected width is determined, terminal also needs to judge at w-th point
Whether meet the first preset condition, and judge whether meet the second preset condition at w-th point.Wherein, the first preset condition can
With including:W-th point is first point in multiple points, and this slide be after receiving width and instruction be set the
Slide;Second preset condition can include:W-th point is the point after first point in multiple points.
In step 2044, when meeting the first preset condition at w-th point, determine that w-th point of corresponding expected width is
W-th point of corresponding track width.
It is first point in multiple points when w-th point, and this slide is after receiving width and setting instruction
First time slide when, terminal can determine that w-th point of corresponding expected width is w-th point of corresponding track width.
At this time, the w-th point of corresponding track width sliding speed corresponding with w-th point that terminal is determined is negatively correlated.
In practical application, when meeting the first preset condition at w-th point, terminal can also be to first point in step 2044
Corresponding expected width is handled, such as the corresponding expected width of first point add, subtracted, multiplied and except at least one of
Computing.Afterwards, terminal may determine that the corresponding expected width of first point after processing, should whether in the range of predetermined width
The upper limit of predetermined width scope is less than the corresponding maximum width of target trajectory width, and the lower limit of predetermined width scope is more than target track
The corresponding minimum widith of stitch width.If the result of above-mentioned judgement is:The corresponding expected width of first point after processing is positioned at pre-
If in width range, then terminal can be directly corresponding as first point using the corresponding expected width of first point after processing
Track width;If the result of above-mentioned judgement is:The corresponding expected width of first point after processing is located at outside predetermined width scope,
Then terminal can take a width at random as the corresponding track width of first point directly in the range of predetermined width.
In step 2045, when meeting the second preset condition at w-th point, determine that formula determines w according to the first width
The corresponding track width of a point.
Wherein, i-th point of corresponding track width in multiple points is Gi, i >=2, the first width determines that formula is:
& represent and, Gi-1For the corresponding track width of the i-th -1 point, YiFor i-th point of corresponding expected width, i-th
Point is i-th point of corresponding distance with the distance of the i-th -1 point, and i-th point of corresponding expected width is corresponding with the i-th -1 point
The absolute value of the difference of track width is i-th point of corresponding absolute value, ZiFor in i-th point of corresponding distance and absolute value
Minimum value.
It that is to say, be the point (such as during w=2) in multiple points after first point when w-th point, terminal can determine the
W point meets the second preset condition, and according to w-th point of track width corresponding with the distance of the w-1 point, the w-1 point,
W-th point of corresponding expected width and the first width determine formula, determine the w-th point of corresponding track width.At this time, eventually
The w-th point of corresponding track width determined and target trajectory width positive correlation, sliding speed corresponding with w-th point is held to bear
Correlation, and track width corresponding to the w-1 point is related.
In step 2046, when being unsatisfactory for the first preset condition and the second preset condition at w-th point, determine at w-th point
Corresponding expected width is last corresponding track width of point for characterizing the sliding trace of last slide.
It is first point (namely w=1) in multiple points when w-th point, and this slide is not to receive width
When degree sets the first time slide after instruction, terminal can determine that be unsatisfactory for the first preset condition and second pre- at w-th point
If condition.At this time, terminal can obtain last corresponding rail of point of the sliding trace for characterizing last slide
Stitch width, and determine that last puts corresponding track width to w-th point of corresponding track width for this.
In practical application, in first corresponding track width of point in determining multiple points, this cunning can not also be judged
It is dynamic operation whether be receive width set instruction after first time slide, but directly execution step 2044.
In step 205, the sliding type each put in multiple points is determined.
Terminal is after determining at w-th point, it is possible to obtains w-th point of coordinate and the seat of the w-1 point in multiple points
Mark, and then w-th point of sliding type is determined according to w-th point of coordinate and the coordinate of the w-1 point.
Wherein, w-th point and the w-1 point abscissa distance be more than ordinate apart from when, w-th point of slip side
Formula is slides laterally mode (namely for tend to slide laterally caused point on a display screen) at w-th point, at w-th point and the
W-1 point in preset coordinate system abscissa distance be less than or equal to ordinate apart from when, w-th point of sliding type is vertical
To sliding type (namely w-th point is to tend to point caused by longitudinal sliding motion on a display screen).
For example, it is assumed that coordinate of the w-1 point in preset coordinate system is (1,2), w-th point in preset coordinate system
Coordinate is (3,3), then terminal can determine that the abscissa distance of w-th point and the w-1 point is 2, and w-th point a with w-1
The ordinate distance of point is 1, namely the abscissa distance of w-th point and the w-1 point is more than ordinate distance, and terminal can at this time
To determine w-th point of sliding type as in a manner of sliding laterally.
Assuming that coordinate of the w-1 point in preset coordinate system is (1,2), the w-th point of coordinate in preset coordinate system
For (2,4), then terminal can determine that the abscissa distance of w-th point and the w-1 point is 1, w-th point with the w-1 point
Ordinate distance is 2, namely the abscissa distance of w-th point and the w-1 point is less than ordinate distance, and terminal can be true at this time
Sliding type w-th point fixed is longitudinal sliding motion mode.
In step 206, according to each putting corresponding track width in multiple points, and the slip side of each target point
Formula, shows the figure of sliding trace.
Optionally, the point in the plurality of point in addition to first point can be determined as target point by terminal.It is namely multiple
Target point in point includes at j-th point in multiple points, j >=2.Terminal can according to the corresponding track width of each target point,
The each upper corresponding track width of a point of target point and the sliding type of each target point, show that each target point corresponds to
Quadrangle.Wherein, j-th point of a upper point is -1 point of jth in multiple points, and j-th point of corresponding quadrangle includes:
Be parallel to each other and opposite first while and when second, -1 point of jth is located at the midpoint on the first side, and j-th point positioned at the second side
Midpoint, the length on the first side are equal to the corresponding track width of -1 point of jth, and the length on the second side is equal to j-th point of corresponding rail
Stitch width.
Fig. 4 is a kind of schematic diagram of the j-th point of corresponding quadrangle provided according to an exemplary embodiment, such as Fig. 4 institutes
Show, j-th point of corresponding quadrangle includes:Be parallel to each other and opposite first in B1 and second B2, -1 point of jth is positioned at the
The midpoint of one side B1, the j-th point of midpoint for being located at the second side B2, the length of the first side B1 are equal to the corresponding track of -1 point of jth
Width, the length of the second side B2 are equal to j-th point of corresponding track width.
It should be noted that when j-th point of sliding type is slides laterally mode, j-th point of corresponding quadrangle
First in B1 and second axis of ordinates Ys of the B2 each parallel to preset coordinate system;It is longitudinal direction in j-th point of sliding type
During sliding type, j-th point of corresponding quadrangle first in B1 and second horizontal seats of the B2 each parallel to preset coordinate system
Parameter X.In Fig. 4 by taking j-th point of sliding type is in a manner of longitudinal sliding motion as an example.
Shown in terminal when finishing the corresponding quadrangle of each target point, all quadrangles composition that terminal is shown slides rail
The figure of mark, at this time, the plurality of point are respectively positioned in the figure of sliding trace, and each in the plurality of point in the figure of sliding trace
The width of point position is equal to this and each puts corresponding track width (namely each point place of this in quadrangle where each point
The length on side).
For example, Fig. 5 is a kind of principle schematic of the figure of display sliding trace according to an exemplary embodiment,
Glide direction at this time is direction F1 as shown in Figure 5, and terminal shows each corresponding quadrangle of target point in multiple points, and
And the plurality of point is located on the side of these quadrangles, but initial point is not in these quadrangles.
Step 207, when multiple points include cross-goal point, the corresponding square of display cross-goal point, wherein, it is multiple
Point includes next point of cross-goal point, and the slip of the sliding type of cross-goal point and next point of cross-goal point
Mode is different.
Optionally, terminal is after the corresponding quadrangle of each target point is shown, if multiple points include the next of the target point
It is a, then it may determine that whether the sliding type of the target point is identical with the sliding type of its next point, and in the target point
Sliding type it is different from the sliding type of its next point when, it is cross-goal point to determine the target point, and shows intersection mesh
The corresponding square of punctuate.Wherein, the corresponding four square vertex of cross-goal point include:Cross-goal point corresponding four
Two ends on the first side in two endpoints when second in shape, and the corresponding quadrangle of next point of cross-goal point
Point.
Fig. 6 is a kind of j-th point corresponding square schematic diagram provided according to an exemplary embodiment.Terminal is aobvious
After showing the corresponding quadrangle of+1 point of jth, as shown in fig. 6, the sliding type for working as at j-th point is longitudinal sliding motion mode, jth+1
The sliding type of point shows j-th of target point for when sliding laterally mode, then terminal determines that be cross-goal point at j-th point
Corresponding square.Wherein, this j-th point corresponding four square vertex include:In j-th point of corresponding quadrangle
Two the endpoints D1 and D2 on two sides, and in the corresponding quadrangle of+1 point of jth the first side two endpoints D3 and D4.Namely
It is that the place that sliding type switches in the figure of sliding trace can there are triangle white space K, terminal can show jth
A point is corresponding square to make up triangle white space K, so that multiple quadrangle energy in the figure of sliding trace
Enough gentle transition.
Optionally, the embodiment of the present disclosure is with when multiple points include cross-goal point, terminal shows that cross-goal point corresponds to
Square exemplified by.In practical application, terminal can also show that cross-goal point corresponds to when multiple points include cross-goal point
Right angled triangle.At this time, three vertex of the j-th point of corresponding right angled triangle include:J-th point, j-th point of correspondence
Quadrangle in the second side an endpoint, and in the corresponding quadrangle of+1 point of jth the first side an endpoint, and right angle
Any point in triangle is located at outside j-th point of corresponding quadrangle and the corresponding quadrangle of+1 point of jth.
In a step 208, determine next point of cross-goal point and a upper point be cross-goal point comparison point.
Last point of terminal in the plurality of point is determined, and show the corresponding quadrangle of each target point, and
After the corresponding square of cross-goal point, it may be determined that next point of cross-goal point and a upper point are the cross-goal
The comparison point of point.Please continue to refer to Fig. 6, j-th point is a cross-goal point, and terminal can be by -1 point of jth and jth+1
Point is determined as j-th point of comparison point, namely determines that each point adjacent with cross-goal point is the cross-goal point
Comparison point.
In step 209, will be identical with the coordinates of targets of the cross-goal point in the corresponding square of cross-goal point
In vertex, the close vertex of each comparison point of the cross-goal point is determined as the datum vertex of each comparison point.
Wherein, when the sliding type of each comparison point is slides laterally mode, coordinates of targets is in preset coordinate system
Ordinate, when the corresponding sliding type of each comparison point is longitudinal sliding motion mode, coordinates of targets is in preset coordinate system
Abscissa.Terminal is it needs to be determined that the datum vertex of each comparison point.
Please continue to refer to Fig. 6, j-th point of corresponding square has four vertex, is respectively D1, D2, D3 and D4.This four
The abscissa of D1 and D2 in a vertex are identical with j-th point of abscissa, D3 and the ordinate of D4 and j-th point of ordinate
It is identical.When comparison point for jth -1 when, if the sliding type of -1 point of jth is longitudinal sliding motion mode (as shown in Figure 6),
Terminal can be using the reference in the D1 and D2 in this four vertex close to the vertex (such as D1) of -1 point of jth as -1 point of jth
Vertex.In addition, if the sliding type of -1 point of jth is slides laterally mode, terminal can by the D3 in this four vertex and
Close to datum vertex of the vertex of -1 point of jth as -1 point of jth in D4.
It should be noted that when comparison point for jth+1 when terminal determine+1 point of jth datum vertex process,
May be referred to when comparison point for jth -1 when terminal determine -1 point of jth datum vertex process, the embodiment of the present disclosure exists
This is not repeated.
In step 210, determine identical with the sliding type of each comparison point in multiple points and continuous at least one
Point is traveled through, wherein, at least one traversal point includes each comparison point and does not include each cross-goal point, and at least one
The coordinates of targets for traveling through point is arranged successively along the direction of the coordinates of targets away from cross-goal point.
After the datum vertex of+1 point of jth is determined, terminal can judge in multiple points successively since+1 point of jth
Whether+1 point of jth and each point after it meet at least one first condition in three first conditions.It is exemplary, this
Three first conditions can include:(1) point currently judged is last point in multiple points;(2) multiple points include jth+1
Point after a point, and when the point after+1 point of jth in multiple points judges, the sliding type of the point currently judged and
The sliding type of j+1 point is different;(3) multiple points include the point after+1 point of jth, and+1 point of jth in multiple points
When point afterwards judges, the coordinates of targets of the point currently judged and the coordinates of targets of cross-goal point are all higher than judgement
The coordinates of targets of point, or the coordinates of targets of the coordinates of targets of the point currently judged and cross-goal point are respectively less than a judgement
Point coordinates of targets, or the point currently judged coordinates of targets be equal to upper one judgement point coordinates of targets.
When some point meets at least one first condition in three first conditions, terminal can stop to jth+1
Point and its point afterwards are judged, and will currently have determined the condition (2) being unsatisfactory in these three first conditions and bar
The point of part (3) is as at least one traversal point.So that slip side of the sliding type of each traversal point with+1 point of jth
Formula is identical, and at least one traversal point is continuous, and the coordinates of targets of these traversal points is more and more far away from cross-goal point
Coordinates of targets.
After the datum vertex of -1 point of jth is determined, terminal can judge in multiple points successively since -1 point of jth
Whether -1 point of jth and each point before it meet at least one second condition in three second conditions.It is exemplary, this
Three second conditions can include:(1) point currently judged is first point in multiple points;(2) multiple points include jth -1
Point before point, the and when point before -1 point of jth in multiple points judges, the sliding type and jth of the point currently judged -
The sliding type of 1 point is different;(3) multiple points include -1 point of jth before point, and in multiple points -1 point of jth it
When preceding point judges, the coordinates of targets of the point currently judged and the coordinates of targets of cross-goal point are all higher than a point judged
Coordinates of targets, or the coordinates of targets of the coordinates of targets of the point currently judged and cross-goal point be respectively less than one judgement
Point coordinates of targets, or the point currently judged coordinates of targets be equal to upper one judgement point coordinates of targets.
When some point meets at least one second condition in three second conditions, terminal can stop to jth -1
Point and its point before are judged, and will currently have determined the condition (2) and condition being unsatisfactory in three second conditions
(3) point is as at least one traversal point.The sliding type of each traversal point is identical with the sliding type of -1 point of jth, and
At least one traversal point is continuous, and the coordinates of targets of these traversal points is more and more far away from the coordinates of targets of cross-goal point.
In step 211, the coordinates of targets of cross-goal point is respectively positioned on being somebody's turn to do in the coordinates of targets of at least one traversal point
When between the coordinates of targets of the datum vertex of each comparison point, the target time of each comparison point at least one traversal point is determined
Go through a little.
Terminal can also judge the coordinates of targets of these traversal points after at least one traversal point of each comparison point is determined
Whether it is respectively positioned between the coordinates of targets of the coordinates of targets of cross-goal point and the datum vertex of each comparison point.At each time
The coordinates of targets gone through a little be respectively positioned on the coordinates of targets of cross-goal point and the datum vertex of each comparison point coordinates of targets it
Between when, it is mesh that terminal, which can be determined at least one traversal point with the traversal point of the distance minimum of the coordinates of targets of the datum vertex,
Mark traversal point.
As shown in fig. 6, the sliding type of+1 point of jth is to slide laterally mode.When+1 point of jth is comparison point, jth
At least one traversal point of+1 point includes:+ 6+2 points of jth ,+3 points of jth ,+4 points of jth ,+5 points of jth, jth points
With+7 points of jth, terminal can determine that the abscissa of+1 point of jth ,+2 points of jth and+3 points of jth is respectively positioned at j-th point
Between the abscissa of abscissa and datum vertex D2 ,+4 points of jth ,+5 points of jth, the horizontal seat of+7 points of+6 points of jth and jth
Mark is not between j-th point of abscissa and the abscissa of datum vertex D2, and at this time, terminal not can determine whether jth+1
The target traversal point of point.Please continue to refer to Fig. 6, the sliding type of -1 point of jth is longitudinal sliding motion mode, with -1 point of jth
Sliding type is identical and continuously at least one traversal point includes -1 point of jth, and terminal can determine the vertical seat of -1 point of the jth
Mark is between j-th point of ordinate and the ordinate of datum vertex D4, and the target traversal point of -1 point of definite jth is
- 1 point of jth.
As shown in Figure 7, it is assumed that the glide direction of slide is the direction F2 in Fig. 7, and the sliding type of+1 point of jth is
Longitudinal sliding motion mode.It is identical with the sliding type of+1 point of jth and continuous at least one when+1 point of jth is comparison point
Traversal point includes+2 points of+1 point of jth and jth, and terminal can determine that the ordinate of+1 point of jth and+2 points of jth is respectively positioned on
Between j-th point of ordinate and the ordinate of datum vertex D4, and definite target traversal point is+2 points of jth.Continuing with
With reference to figure 7, the sliding type of -1 point of jth to slide laterally mode, it is identical with the sliding type of -1 point of jth and it is continuous extremely
Few traversal point includes:- 5-1 point of jth ,-2 points of jth ,-3 points of jth ,-4 points of jth and jth points, terminal can be with
Determine that the abscissa of -1 point of jth, -2 points of jth, -3 points of jth, -4 points of jth and -5 points of jth is respectively positioned at j-th point
Between the abscissa of abscissa and datum vertex D2, and definite target traversal point is -5 points of jth.
In the step 212, point is traveled through according to the datum vertex of each comparison point and target, shows the ginseng of each comparison point
Examine the auxiliary triangle shape of vertex correspondence.
Terminal is after figure as shown in Figure 6 is shown, as shown in figure 8, terminal is determining the datum vertex D4 of -1 point of jth
After target traversal point (- 1 point of jth), the corresponding auxiliary triangle shapes of datum vertex D4 can be shown, the three of the auxiliary triangle shape
A vertex includes:In datum vertex D4, and j-th point of corresponding quadrangle two endpoint D5 on side where -1 point of jth and
D6。
Terminal is after figure as shown in Figure 7 is shown, as shown in figure 9, terminal is determining the datum vertex D2 of -1 point of jth
After target traversal point (- 5 points of jth), the corresponding auxiliary triangle shapes of datum vertex D2 can be shown, the three of the auxiliary triangle shape
A vertex includes:Two endpoint D7 on side where -5 points of jth in datum vertex D2, and the corresponding quadrangle of -4 points of jth
And D8.Terminal can be shown with reference to top after the datum vertex D4 of+1 point of jth and target traversal point (+2 points of jth) is determined
The corresponding auxiliary triangle shapes of point D4, three vertex of the auxiliary triangle shape include:Datum vertex D4, and+2 points of jth correspond to
Quadrangle in side where+2 points of jth two endpoints D9 and D10.
Since under normal conditions, the auxiliary triangle shape that terminal is shown can occur at the edge of the figure of sliding trace, this is auxiliary
Helping triangle, therefore, terminal can also be to the pen of sliding trace in the embodiment of the present disclosure equivalent to the vigour of style in writing of this sliding trace
Cutting edge of a knife or a sword is shown, enriches display effect.
In practical application, terminal each point is judged in step 210 is performed (as judge+1 point of jth and its it
Whether point afterwards meets three first conditions, and judges whether -1 point of jth and its point before meet three second conditions)
When, whether the point that can also judge currently to judge meets third condition.The third condition can include:The reference top of the comparison point
The coordinates of targets of point is located at the coordinates of targets of cross-goal point between the coordinates of targets of point that currently judges.If some point meets
Third condition, then stop judging others point, and forbids performing step 211 and step 212.
It should be noted that terminal is in display quadrangle, square, triangle (such as above-mentioned auxiliary in the embodiment of the present disclosure
Triangle or above-mentioned right angled triangle) when, can show solid figure (figure surrounded by sequentially connected lines,
And filled in figure), or the hollow figure of display (figure surrounded by sequentially connected lines, and in figure
It is not filled), the embodiment of the present disclosure is not construed as limiting this.
It is exemplary, when user carries out the process of a slide (stroke is write such as in terminal) in terminal
In, the method that terminal can use the embodiment of the present disclosure to provide shows the figure of this slide.And according to different slips
Operation, the figure for the slide that terminal is shown are different.Different cunnings exemplary, that terminal is shown according to different slides
The principle of the figure of dynamic operation can be as shown in any one width figures of Fig. 8 to Figure 16, the figure of the slide shown in every width figure
It can include:The figure of above-mentioned sliding trace, above-mentioned square and above-mentioned auxiliary triangle shape.
After user is carrying out multiple slide in terminal, terminal can show that the figure of each slide is (including upper
State the figure of sliding trace, above-mentioned square and above-mentioned auxiliary triangle shape).It is exemplary, the figure energy of the multiple slide
Enough form a word (word " phase " as shown in figure 17), or multiple words (two words " wrist-watch " as shown in figure 18).
Since the width of the figure for the sliding trace that terminal is shown in the embodiment of the present disclosure can change with sliding speed
Become, therefore, the figure for the sliding trace that terminal is shown is more in line with user and slides obtained figure on paper with pen.It is and related
The figure for the sliding trace that terminal in technology is shown can be as shown in figure 19, and the width of the figure of the sliding trace remains
Unanimously, the figure of the sliding trace slides obtained figure on paper with pen with user and differs larger.It can be sent out by contrast
It is existing, display effect and the hand-written effect area of the figure of the sliding trace in the sliding trace display methods that the embodiment of the present disclosure provides
It is not smaller, and in the embodiment of the present disclosure sliding trace that terminal is shown figure it is obtained compared with as being slided on paper using pen
Figure.
It should be noted that the sliding trace display methods that the embodiment of the present disclosure provides can be used for being provided with various operations
The terminal of system, so that the sliding trace display methods that the embodiment of the present disclosure provides can be used in various operating systems.
It should also be noted that, terminal shows at least one target point corresponding at least one four in the embodiment of the present disclosure
Side shape, optionally, terminal, can also be according to positions first in the z point determined in step 201 after first quadrangle is shown
Point before the point of change shows initial graphics.Exemplary, the point before the point that position changes first in z point can be respectively positioned on
The first coordinate points that preset coordinate is fastened, the initial graphics can be where the points that position changes first of this in first quadrangle
Target side, and connect the curve (or broken line) at the target side both ends and surround.First coordinate points are located in the initial graphics, and
First coordinate points are before the distance on the direction on target side with the curve (or broken line), the point changed with position first
Point number positive correlation.
In conclusion in the sliding trace display methods provided due to the embodiment of the present disclosure, it is previously determined at least one
Corresponding sliding speed is each put in point, and then when according to the figure for each putting corresponding sliding speed display sliding trace,
Enable to the change of the change sliding speed corresponding with multiple points of the width of the figure of the sliding trace negatively correlated, so that
Figure and the user of sliding trace to slide on paper obtained figure using pen more similar, so, the figure of sliding trace
The display effect of shape is distinguished smaller with hand-written effect.
Figure 20 is according to a kind of structure diagram of sliding trace display device of exemplary embodiment offer, such as Figure 20
Shown, which can include:
First determining module 2001, for according to a slide for being directed to display screen, determining to be used to characterize cunning successively
Multiple points of the sliding trace of dynamic operation;
Second determining module 2002, for determining each to put corresponding sliding speed degree in the multiple point;
First display module 2003, for showing the figure of the sliding trace, the width of the figure of the sliding trace
Corresponding with the multiple point sliding speed of change change negative correlation.
In conclusion in the sliding trace display device provided due to the embodiment of the present disclosure, the second determining module is true in advance
Determine each to put corresponding sliding speed at least one point, and then the first display module is fast according to corresponding slip is each put
When degree shows the figure of sliding trace, the change slip corresponding with multiple points of the width of the figure of the sliding trace is enabled to
The change of speed is negatively correlated, so that the figure of sliding trace slides obtained figure more using pen with user on paper
It is similar, so, improve the display effect of the figure of sliding trace.
Optionally, first determining module 2001 is used for:According to a slide for display screen, by starting
State position changes first after slide point and its point afterwards is determined as the multiple point.
Figure 21 is a kind of structure diagram of first display module provided according to an exemplary embodiment, such as Figure 21 institutes
Show, the first display module 2003 can include:
Determination unit 20031, for each putting corresponding sliding speed according to described and determining described each to put corresponding rail
Stitch width, it is described each to put corresponding track width and described each to put corresponding sliding speed negatively correlated;
Display unit 20032, for according to the corresponding track width of each target point and each target point
The corresponding track width of one point, shows the corresponding quadrangle of each target point, and the figure of the sliding trace includes institute
The corresponding quadrangle of each target point is stated, target point is the point after first point in multiple points;
Wherein, the target point in the multiple point include the multiple point in j-th point, j >=2, described j-th point
A upper point is -1 point of jth in the multiple point, and the j-th point of corresponding quadrangle includes:It is parallel to each other and relatively
First while and when second, described -1 point of jth is located at the midpoint on first side, and described j-th point is located at second side
Midpoint, the length on first side is equal to the corresponding track width of described -1 point of jth, and the length on second side is equal to institute
State j-th point of corresponding track width.
Figure 22 is the structure diagram of another sliding trace display device provided according to an exemplary embodiment, is such as schemed
Shown in 22, on the basis of Figure 20, which can also include:
3rd determining module 2004, for determining the sliding type each put, wherein, w >=1, in the multiple point
In the w-th point of preset coordinate system with the w-1 point on the display screen in abscissa distance be more than ordinate distance
When, described w-th point of sliding type is preset to slide laterally mode, at described w-th point with the w-1 point described
In coordinate system abscissa distance be less than or equal to ordinate apart from when, described w-th point of sliding type is longitudinal sliding motion side
Formula;
Display unit 20032 can be used for:According to the corresponding track width of each target point, each target point
The corresponding track width of a upper point and each target point sliding type, show that each target point is corresponding
Quadrangle;Wherein, when described j-th point of sliding type slides laterally mode for described in, j-th point of corresponding four side
Axis of ordinates of first side of shape parallel to the preset coordinate system;It is sliding for the longitudinal direction in described j-th point of sliding type
During flowing mode, the axis of abscissas of the first side of the j-th point of corresponding quadrangle parallel to the preset coordinate system.
Figure 23 is the structure diagram of another the sliding trace display device provided according to an exemplary embodiment, is such as schemed
Shown in 23, on the basis of Figure 22, which can also include:
4th determining module 2005, for after receiving width and setting instruction, determining that width is set indicated by instruction
Target trajectory width;
Determination unit 2003 can be used for:
The corresponding maximum width of target trajectory width and minimum widith, width pair are determined according to default width correspondence
It should be related to including the corresponding maximum width of at least one track width and minimum widith, and the maximum width that track width is corresponding
Degree and the equal positive correlation of minimum widith;
According to reference width determine formula determine it is described each put corresponding reference width, wherein, in the multiple point
W-th point of corresponding reference width is Lcw, w >=1, the reference width determines that formula is
LmaxFor the corresponding maximum width of the target trajectory width, LminFor the corresponding minimum widith of the target trajectory width, VwFor
The w-th point of corresponding sliding speed, VyTo preset sliding speed;
Width maximum in corresponding reference width is put the corresponding minimum widith of target trajectory width and each, be determined as
Each put corresponding expected width;
When each point meets the first preset condition, determine described each to put corresponding expected width to be described each
The corresponding track width of point, first preset condition include:Each point is first point in the multiple point.
Optionally, determination unit 2003 is additionally operable to:
When each point meets the second preset condition, determine that formula determines that each point corresponds to according to the first width
Track width, second preset condition includes:Each point is the point in the multiple point after first point;
Wherein, i-th point of corresponding track width in the multiple point is Gi, i >=2, first width determines public affairs
Formula is:
& represent and, Gi-1For the corresponding track width of the i-th -1 point, YiFor the i-th point of corresponding expected width, institute
It is the i-th point of corresponding distance to state at i-th point with the distance of the i-th -1 point, described i-th point corresponding expected wide
The absolute value of the difference of corresponding with the i-th -1 point track width of degree is the i-th point of corresponding absolute value, ZiFor institute
State i-th point of corresponding distance and minimization of the sum of absolute value.
Optionally, the first preset condition further includes:Slide is the first time after receiving width and setting instruction
Slide, determination unit 2003 can be also used for:
When each point is unsatisfactory for first preset condition and second preset condition, each point is determined
Corresponding expected width is last corresponding track width of point for characterizing the sliding trace of last slide.
Figure 24 is the structure diagram of another the sliding trace display device provided according to an exemplary embodiment, is such as schemed
Shown in 24, on the basis of Figure 22, which can also include:
Second display module 2006, for when the multiple point includes cross-goal point, showing the cross-goal point
Corresponding square, the multiple point include next point of the cross-goal point, and the slip side of cross-goal point
Formula is different from the sliding type of next point of the cross-goal point;
Wherein, the corresponding four square vertex of the cross-goal point include:The cross-goal point corresponding four
Two of first side in two endpoints when second in shape, and the corresponding quadrangle of next point of cross-goal point
Endpoint.
Figure 25 is a kind of structure diagram of the sliding trace display device provided according to another exemplary embodiment, is such as schemed
Shown in 25, on the basis of Figure 22, which can also include:
3rd display module 2007, for when the multiple point includes cross-goal point, showing the cross-goal point
Corresponding square, the multiple point include next point of the cross-goal point, and the slip side of cross-goal point
Formula is different from the sliding type of next point of the cross-goal point;
Wherein, three vertex of the corresponding right angled triangle of the cross-goal point include:The cross-goal point, it is described
An endpoint on the second side in the corresponding quadrangle of cross-goal point, and next point corresponding four of cross-goal point
Endpoint when first in shape, and to be respectively positioned on the cross-goal point corresponding for any point in the right angled triangle
Outside the corresponding quadrangle of next point of quadrangle and cross-goal point.
Figure 26 is the structure diagram of another sliding trace display device provided according to another exemplary embodiment, such as
Shown in Figure 26, on the basis of Figure 24, which can also include:
5th determining module 2008, next point and a upper point for determining the cross-goal point are the friendship
Pitch the comparison point of target point;
6th determining module 2009, for by the cross-goal point it is corresponding square in the cross-goal point
In the identical vertex of coordinates of targets, it is determined as each comparison point close to the vertex of each comparison point of the cross-goal point
Datum vertex, wherein, when the sliding type of each comparison point is slides laterally mode, the coordinates of targets is described
Ordinate in preset coordinate system, when the sliding type of each comparison point is longitudinal sliding motion mode, the coordinates of targets
For the abscissa in the preset coordinate system;
7th determining module 2010, for determine it is identical with the sliding type of each comparison point in the multiple point and
Continuous at least one traversal point, wherein, at least one traversal point includes each comparison point and does not include described every
A cross-goal point, and side of the coordinates of targets of at least one traversal point along the coordinates of targets away from the cross-goal point
To arranging successively;
8th determining module 2011, for being respectively positioned on the crosspoint in the coordinates of targets of at least one traversal point
When between the coordinates of targets of coordinates of targets and the datum vertex of each comparison point, determine at least one traversal point with
The traversal point of the distance minimum of the coordinates of targets of the datum vertex of each comparison point travels through point for target;
4th display module 2012, travels through point for the datum vertex according to each comparison point and the target, shows
Show the corresponding auxiliary triangle shape of datum vertex of each comparison point, wherein, the datum vertex of each comparison point corresponds to
Three vertex of auxiliary triangle shape include:The datum vertex of each comparison point, and target traversal point are corresponding
Two endpoints on side where the traversal of target described in quadrangle point.
In conclusion in the sliding trace display device provided due to the embodiment of the present disclosure, the second determining module is true in advance
Determine each to put corresponding sliding speed at least one point, and then the first display module is fast according to corresponding slip is each put
When degree shows the figure of sliding trace, the change slip corresponding with multiple points of the width of the figure of the sliding trace is enabled to
The change of speed is negatively correlated, so that the figure of sliding trace slides obtained figure more using pen with user on paper
It is similar, so, the display effect of the figure of sliding trace is distinguished smaller with hand-written effect.
Figure 27 is a kind of block diagram for sliding trace display device 2700 according to an exemplary embodiment.Example
Such as, device 2700 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, and tablet is set
It is standby, Medical Devices, body-building equipment, personal digital assistant etc..
With reference to Figure 27, device 2700 can include following one or more assemblies:Processing component 2702, memory 2704,
Power supply module 2706, multimedia component 2708, audio component 2710, the interface 2712 of input/output (j/O), sensor component
2714, and communication component 2716.
The integrated operation of the usual control device 2700 of processing component 2702, such as with display, call, data communication,
The operation that camera operation and record operation are associated.Processing component 2702 can be performed including one or more processors 2720
Instruction, to complete all or part of step of above-mentioned method.In addition, processing component 2702 can include one or more moulds
Block, easy to the interaction between processing component 2702 and other assemblies.For example, processing component 2702 can include multi-media module,
To facilitate the interaction between multimedia component 2708 and processing component 2702.
Memory 2704 is configured as storing various types of data to support the operation in device 2700.These data
Example includes being used for the instruction of any application program or method operated on device 2700, contact data, telephone book data,
Message, picture, video etc..Memory 2704 can by any kind of volatibility or non-volatile memory device or they
Combination is realized, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can
Program read-only memory (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash memory
Reservoir, disk or CD.
Power supply module 2706 provides electric power for the various assemblies of device 2700.Power supply module 2706 can include power management
System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 2700.
Multimedia component 2708 is included in the screen of one output interface of offer between described device 2700 and user.
In some embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel,
Screen may be implemented as touch-screen, to receive input signal from the user.Touch panel includes one or more touch and passes
Sensor is to sense the gesture on touch, slip and touch panel.The touch sensor can not only sense touch or slide dynamic
The border of work, but also detection and the duration and pressure associated with the touch or slide operation.In certain embodiments, it is more
Media component 2708 includes a front camera and/or rear camera.When device 2700 is in operator scheme, mould is such as shot
When formula or video mode, front camera and/or rear camera can receive exterior multi-medium data.Each preposition shooting
Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 2710 is configured as output and/or input audio signal.For example, audio component 2710 includes a wheat
Gram wind (MjC), when device 2700 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone quilt
It is configured to receive external audio signal.The received audio signal can be further stored in memory 2704 or via communication
Component 2716 is sent.In certain embodiments, audio component 2710 further includes a loudspeaker, for exports audio signal.
J/O interfaces 2712 provide interface, above-mentioned peripheral interface module between processing component 2702 and peripheral interface module
Can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and
Locking press button.
Sensor component 2714 includes one or more sensors, and the state for providing various aspects for device 2700 is commented
Estimate.For example, sensor component 2714 can detect opening/closed mode of device 2700, the relative positioning of component, such as institute
The display and keypad that component is device 2700 are stated, sensor component 2714 can be with detection device 2700 or device 2,700 1
The position of a component changes, the existence or non-existence that user contacts with device 2700,2700 orientation of device or acceleration/deceleration and dress
Put 2700 temperature change.Sensor component 2714 can include proximity sensor, be configured in no any physics
Presence of nearby objects is detected during contact.Sensor component 2714 can also include optical sensor, as CMOS or ccd image are sensed
Device, for being used in imaging applications.In certain embodiments, which can also include acceleration sensing
Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 2716 is configured to facilitate the communication of wired or wireless way between device 2700 and other equipment.Dress
The wireless network based on communication standard, such as WjFj, 2G or 3G, or combinations thereof can be accessed by putting 2700.It is exemplary at one
In embodiment, communication component 2716 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel
Information.In one exemplary embodiment, the communication component 2716 further includes near-field communication (NFC) module, to promote short distance
Communication.For example, radio frequency identification (RFjD) technology, Infrared Data Association (jrDA) technology, ultra wide band can be based in NFC module
(UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 2700 can be by one or more application application-specific integrated circuit (ASjC), numeral
Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the memory 2704 of instruction, above-metioned instruction can be performed to complete the above method by the processor 2720 of device 2700.Example
Such as, the non-transitorycomputer readable storage medium can be ROM, it is random access memory (RAM), CD-ROM, tape, soft
Disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of device 2700
When device performs so that device 2700 is able to carry out above-mentioned sliding trace display methods.
It should be noted that the embodiment of the method that the embodiment of the present disclosure provides can mutually join with corresponding device embodiment
Examine, the embodiment of the present disclosure does not limit this.
The sequencing for the embodiment of the method step that the embodiment of the present disclosure provides can be adjusted suitably, and step also can
According to circumstances accordingly increased and decreased, any one skilled in the art, can in the technical scope that the disclosure discloses
The method for readily occurring in change, should all cover within the protection domain of the disclosure, therefore repeat no more.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention disclosed herein
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope and spirit of the disclosure will by right
Ask and point out.
It should be appreciated that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by appended claim.
Claims (22)
- A kind of 1. sliding trace display methods, it is characterised in that the described method includes:According to a slide for display screen, the multiple of sliding trace for characterizing the slide are determined successively Point;Determine each to put corresponding sliding speed in the multiple point;Show the figure of the sliding trace, the change of the width of the figure of sliding trace cunning corresponding with the multiple point The change of dynamic speed is negatively correlated.
- 2. according to the method described in claim 1, it is characterized in that, the basis be directed to display screen a slide, according to Multiple points of the secondary sliding trace determined for characterizing the slide, including:According to a slide for display screen, position changes first after the slide point and its afterwards will be started Point be determined as the multiple point.
- 3. according to the method described in claim 2, it is characterized in that, the figure of the display sliding trace, including:According to it is described each put corresponding sliding speed determine it is described each put corresponding track width, it is described each put it is corresponding Track width each puts corresponding sliding speed negative correlation with described;According to the corresponding track width of each target point and the corresponding track width of a upper point of each target point, show Show the corresponding quadrangle of each target point, the figure of the sliding trace includes each corresponding four side of target point Shape, the target point are the point after first point in the multiple point;Wherein, the target point in the multiple point include the multiple point in j-th point, j >=2, upper the one of described j-th point A point is -1 point of jth in the multiple point, and the j-th point of corresponding quadrangle includes:It is parallel to each other and opposite While with the second side, described -1 point of jth is located at the midpoint on first side, and described j-th point is located in second side Point, the length on first side are equal to the corresponding track width of described -1 point of jth, and the length on second side is equal to described the The corresponding track width of j point.
- 4. according to the method described in claim 3, it is characterized in that, the method further includes:Determine the sliding type each put, wherein, w >=1, w-th point in the multiple point with the w-1 point in institute State the abscissa distance in the preset coordinate system on display screen be more than ordinate apart from when, described w-th point of sliding type is Slide laterally mode, be less than in the described w-th point abscissa distance with the w-1 point in the preset coordinate system or Equal to ordinate apart from when, described w-th point of sliding type is longitudinal sliding motion mode;It is described according to each corresponding track width of target point and the corresponding rail of a upper point of each target point Stitch width, shows the corresponding quadrangle of each target point, including:According to the corresponding track width of a upper point of each corresponding track width of target point, each target point with And the sliding type of each target point, show the corresponding quadrangle of each target point;Wherein, at described j-th point Sliding type for it is described slide laterally mode when, the first side of the j-th point of corresponding quadrangle is parallel to described default The axis of ordinates of coordinate system;When described j-th point of sliding type is the longitudinal sliding motion mode, the j-th point of correspondence Quadrangle the first side parallel to the preset coordinate system axis of abscissas.
- 5. according to the method described in claim 3, it is characterized in that, the method further includes:After receiving width and instruction is set, determine that the width sets the indicated target trajectory width of instruction;It is described according to it is described each put corresponding sliding speed determine it is described each put corresponding track width, including:The corresponding maximum width of the target trajectory width and minimum widith, the width are determined according to default width correspondence Degree correspondence includes the corresponding maximum width of at least one track width and minimum widith, and the track width is corresponding Maximum width and the equal positive correlation of minimum widith;According to reference width determine formula determine it is described each put corresponding reference width, wherein, w-th in the multiple point The corresponding reference width of point is Lcw, w >=1, the reference width determines that formula isLmax For the corresponding maximum width of the target trajectory width, LminFor the corresponding minimum widith of the target trajectory width, VwTo be described W-th point of corresponding sliding speed, VyTo preset sliding speed;By the corresponding minimum widith of the target trajectory width and it is described each put width maximum in corresponding reference width, really It is set to and described each puts corresponding expected width;When each point meets the first preset condition, determine described each to put corresponding expected width as each point pair The track width answered, first preset condition include:Each point is first point in the multiple point.
- 6. according to the method described in claim 5, it is characterized in that, described each put corresponding sliding speed and determine according to described It is described each to put corresponding track width, further include:When each point meets the second preset condition, determine that formula determines described each to put corresponding rail according to the first width Stitch width, second preset condition include:Each point is the point in the multiple point after first point;Wherein, i-th point of corresponding track width in the multiple point is Gi, i >=2, first width determines that formula is:& represent and, Gi-1For the corresponding track width of the i-th -1 point, YiFor the i-th point of corresponding expected width, described i-th A point and the distance of the i-th -1 point are the i-th point of corresponding distance, the i-th point of corresponding expected width with The absolute value of the difference of the corresponding track width of the i-th -1 point is the i-th point of corresponding absolute value, ZiFor described The corresponding distance of i point and minimization of the sum of absolute value.
- 7. according to the method described in claim 6, it is characterized in that, first preset condition further includes:The slide It is described each to put corresponding slip speed according to described for the first time slide after receiving the width and setting instruction Degree determine it is described each put corresponding track width, further include:When each point is unsatisfactory for first preset condition and second preset condition, determine that each point corresponds to Expected width be that last for characterizing the sliding trace of last slide puts corresponding track width.
- 8. according to the method described in claim 4, it is characterized in that, the method further includes:When the multiple point includes cross-goal point, the corresponding square of the cross-goal point, the multiple point bag are shown Include next point of the cross-goal point, and the sliding type of cross-goal point and the cross-goal point is next The sliding type of point is different;Wherein, the corresponding four square vertex of the cross-goal point include:The corresponding quadrangle of the cross-goal point In the second side two endpoints, and two of the first side ends in the corresponding quadrangle of next point of cross-goal point Point.
- 9. according to the method described in claim 4, it is characterized in that, the method further includes:When the multiple point includes cross-goal point, the corresponding square of the cross-goal point, the multiple point bag are shown Include next point of the cross-goal point, and the sliding type of cross-goal point and the cross-goal point is next The sliding type of point is different;Wherein, three vertex of the corresponding right angled triangle of the cross-goal point include:The cross-goal point, the intersection An endpoint on the second side in the corresponding quadrangle of target point, and the corresponding quadrangle of next point of cross-goal point In the first side an endpoint, and any point in the right angled triangle is respectively positioned on corresponding four side of the cross-goal point Outside the corresponding quadrangle of next point of shape and cross-goal point.
- 10. according to the method described in claim 8, it is characterized in that, the method further includes:Determine next point of the cross-goal point and a upper point be the cross-goal point comparison point;It is close by the vertex identical with the coordinates of targets of the cross-goal point in the corresponding square of the cross-goal point The vertex of each comparison point of the cross-goal point is determined as the datum vertex of each comparison point, wherein, when described every The sliding type of a comparison point is when sliding laterally mode, and the coordinates of targets is the ordinate in the preset coordinate system, when When the sliding type of each comparison point is longitudinal sliding motion mode, the coordinates of targets is the horizontal seat in the preset coordinate system Mark;Determine identical with the sliding type of each comparison point in the multiple point and continuous at least one traversal point, its In, at least one traversal point includes each comparison point and does not include each cross-goal point, and it is described at least The coordinates of targets of one traversal point is arranged successively along the direction of the coordinates of targets away from the cross-goal point;The coordinates of targets in the crosspoint and each comparison point are respectively positioned in the coordinates of targets of at least one traversal point Datum vertex coordinates of targets between when, determine the datum vertex with each comparison point at least one traversal point Coordinates of targets distance minimum traversal point for target travel through point;According to the datum vertex of each comparison point and target traversal point, the datum vertex of display each comparison point Corresponding auxiliary triangle shape, wherein, three vertex of the corresponding auxiliary triangle shape of datum vertex of each comparison point include: The datum vertex of each comparison point, and side where target traversal point described in the corresponding quadrangle of target traversal point Two endpoints.
- 11. a kind of sliding trace display device, it is characterised in that the sliding trace display device includes:First determining module, for according to a slide for being directed to display screen, determining to be used to characterize the slip behaviour successively Multiple points of the sliding trace of work;Second determining module, for determining each to put corresponding sliding speed in the multiple point;First display module, for showing the figure of the sliding trace, the change of the width of the figure of the sliding trace with The change of the corresponding sliding speed of the multiple point is negatively correlated.
- 12. sliding trace display device according to claim 11, it is characterised in that first determining module is used for: According to a slide for display screen, position changes first after the slide point and its point afterwards will be started It is determined as the multiple point.
- 13. sliding trace display device according to claim 12, it is characterised in that first display module includes:Determination unit, for each putting corresponding sliding speed according to described and determining described each to put corresponding track width, institute State the corresponding track width of each point and each put corresponding sliding speed negative correlation with described;Display unit, for being corresponded to according to a upper point for the corresponding track width of each target point and each target point Track width, show each corresponding quadrangle of target point, the figure of the sliding trace includes each target The corresponding quadrangle of point, the target point are the point after first point in the multiple point;Wherein, the target point in the multiple point include the multiple point in j-th point, j >=2, upper the one of described j-th point A point is -1 point of jth in the multiple point, and the j-th point of corresponding quadrangle includes:It is parallel to each other and opposite While with the second side, described -1 point of jth is located at the midpoint on first side, and described j-th point is located in second side Point, the length on first side are equal to the corresponding track width of described -1 point of jth, and the length on second side is equal to described the The corresponding track width of j point.
- 14. sliding trace display device according to claim 13, it is characterised in that the sliding trace display device is also Including:3rd determining module, for determining the sliding type each put, wherein, w >=1, w-th in the multiple point Point and abscissa of the w-1 point in the preset coordinate system on the display screen apart from more than ordinate apart from when, the w The sliding type of a point to slide laterally mode, described w-th point with the w-1 point in the preset coordinate system Abscissa distance be less than or equal to ordinate apart from when, described w-th point of sliding type is longitudinal sliding motion mode;The display unit is used for:According to each corresponding track width of target point, upper one of each target point The sliding type of the corresponding track width of point and each target point, shows the corresponding quadrangle of each target point; Wherein, described j-th point sliding type for it is described slide laterally mode when, the of the j-th point of corresponding quadrangle While the axis of ordinates parallel to the preset coordinate system;It is the longitudinal sliding motion mode in described j-th point of sliding type When, the axis of abscissas of the first side of the j-th point of corresponding quadrangle parallel to the preset coordinate system.
- 15. sliding trace display device according to claim 13, it is characterised in that the sliding trace display device is also Including:4th determining module, for after receiving width and setting instruction, determining that the width sets the indicated target of instruction Track width;The determination unit is used for:The corresponding maximum width of the target trajectory width and minimum widith, the width are determined according to default width correspondence Degree correspondence includes the corresponding maximum width of at least one track width and minimum widith, and the track width is corresponding Maximum width and the equal positive correlation of minimum widith;According to reference width determine formula determine it is described each put corresponding reference width, wherein, w-th in the multiple point The corresponding reference width of point is Lcw, w >=1, the reference width determines that formula isLmax For the corresponding maximum width of the target trajectory width, LminFor the corresponding minimum widith of the target trajectory width, VwTo be described W-th point of corresponding sliding speed, VyTo preset sliding speed;By the corresponding minimum widith of the target trajectory width and it is described each put width maximum in corresponding reference width, really It is set to and described each puts corresponding expected width;When each point meets the first preset condition, determine described each to put corresponding expected width as each point pair The track width answered, first preset condition include:Each point is first point in the multiple point.
- 16. sliding trace display device according to claim 15, it is characterised in that the determination unit is additionally operable to:When each point meets the second preset condition, determine that formula determines described each to put corresponding rail according to the first width Stitch width, second preset condition include:Each point is the point in the multiple point after first point;Wherein, i-th point of corresponding track width in the multiple point is Gi, i >=2, first width determines that formula is:& represent and, Gi-1For the corresponding track width of the i-th -1 point, YiFor the i-th point of corresponding expected width, described i-th A point and the distance of the i-th -1 point are the i-th point of corresponding distance, the i-th point of corresponding expected width with The absolute value of the difference of the corresponding track width of the i-th -1 point is the i-th point of corresponding absolute value, ZiFor described The corresponding distance of i point and minimization of the sum of absolute value.
- 17. sliding trace display device according to claim 16, it is characterised in that first preset condition is also wrapped Include:The slide is the first time slide after receiving the width and setting instruction, and the determination unit is also For:When each point is unsatisfactory for first preset condition and second preset condition, determine that each point corresponds to Expected width be that last for characterizing the sliding trace of last slide puts corresponding track width.
- 18. sliding trace display device according to claim 14, it is characterised in that the sliding trace display device is also Including:Second display module, for when the multiple point includes cross-goal point, showing that the cross-goal point is corresponding just Square, the multiple point includes next point of the cross-goal point, and the sliding type of cross-goal point with it is described The sliding type of next point of cross-goal point is different;Wherein, the corresponding four square vertex of the cross-goal point include:The corresponding quadrangle of the cross-goal point In the second side two endpoints, and two of the first side ends in the corresponding quadrangle of next point of cross-goal point Point.
- 19. sliding trace display device according to claim 14, it is characterised in that the sliding trace display device is also Including:3rd display module, for when the multiple point includes cross-goal point, showing that the cross-goal point is corresponding just Square, the multiple point includes next point of the cross-goal point, and the sliding type of cross-goal point with it is described The sliding type of next point of cross-goal point is different;Wherein, three vertex of the corresponding right angled triangle of the cross-goal point include:The cross-goal point, the intersection An endpoint on the second side in the corresponding quadrangle of target point, and the corresponding quadrangle of next point of cross-goal point In the first side an endpoint, and any point in the right angled triangle is respectively positioned on corresponding four side of the cross-goal point Outside the corresponding quadrangle of next point of shape and cross-goal point.
- 20. sliding trace display device according to claim 18, it is characterised in that the sliding trace display device is also Including:5th determining module, next point and a upper point for determining the cross-goal point are the cross-goal point Comparison point;6th determining module, for by coordinates of targets with the cross-goal point in the corresponding square of the cross-goal point In identical vertex, it is determined as the reference top of each comparison point close to the vertex of each comparison point of the cross-goal point Point, wherein, when the sliding type of each comparison point is slides laterally mode, the coordinates of targets is the preset coordinate Ordinate in system, when the sliding type of each comparison point is longitudinal sliding motion mode, the coordinates of targets is described pre- If the abscissa in coordinate system;7th determining module, for determine in the multiple point it is identical with the sliding type of each comparison point and it is continuous extremely Few traversal point, wherein, at least one point that travels through includes each comparison point and does not include each intersection mesh Punctuate, and the coordinates of targets of at least one traversal point is arranged successively along the direction of the coordinates of targets away from the cross-goal point Cloth;8th determining module, for being respectively positioned on the coordinates of targets in the crosspoint in the coordinates of targets of at least one traversal point When between the coordinates of targets of the datum vertex of each comparison point, determine at least one traversal point with it is described each The traversal point of the distance minimum of the coordinates of targets of the datum vertex of comparison point travels through point for target;4th display module, travels through point for the datum vertex according to each comparison point and the target, shows described every The corresponding auxiliary triangle shape of datum vertex of a comparison point, wherein, the corresponding auxiliary three of datum vertex of each comparison point Three angular vertex include:In the datum vertex of each comparison point, and the corresponding quadrangle of target traversal point Two endpoints on side where the target traversal point.
- 21. a kind of sliding trace display device, it is characterised in that the sliding trace display device includes:Processing component;Memory for the executable instruction for storing the processing component;Wherein, the processing component is configured as:According to a slide for display screen, the multiple of sliding trace for characterizing the slide are determined successively Point;Determine each to put corresponding sliding speed in the multiple point;Show the figure of the sliding trace, the change of the width of the figure of sliding trace cunning corresponding with the multiple point The change of dynamic speed is negatively correlated.
- 22. a kind of readable storage medium storing program for executing, it is characterised in that instruction is stored with the readable storage medium storing program for executing, readable is deposited when described Storage media on processing component when running so that processing component performs the method as described in claims 1 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711375389.8A CN107977147B (en) | 2017-12-19 | 2017-12-19 | Sliding track display method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711375389.8A CN107977147B (en) | 2017-12-19 | 2017-12-19 | Sliding track display method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107977147A true CN107977147A (en) | 2018-05-01 |
CN107977147B CN107977147B (en) | 2021-07-23 |
Family
ID=62006998
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711375389.8A Active CN107977147B (en) | 2017-12-19 | 2017-12-19 | Sliding track display method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107977147B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112230786A (en) * | 2020-11-18 | 2021-01-15 | 广州市华用智能科技有限公司 | Light selection method and device based on mouse sliding track and computer equipment |
CN113448486A (en) * | 2021-09-01 | 2021-09-28 | 广州朗国电子科技股份有限公司 | Method and device for realizing pen point of electronic whiteboard, storage medium and electronic whiteboard |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101308578A (en) * | 2008-06-20 | 2008-11-19 | 华南理工大学 | Beautifying method for hand-written Chinese characters |
CN103744555A (en) * | 2014-01-06 | 2014-04-23 | 溢洋光电(深圳)有限公司 | Bidirectional display and reduction method for instant messaging handwriting as well as related system and method |
CN104035681A (en) * | 2014-06-30 | 2014-09-10 | 可牛网络技术(北京)有限公司 | Webpage sliding method and browser |
US20150062600A1 (en) * | 2013-08-27 | 2015-03-05 | Canon Kabushiki Kaisha | Image processing apparatus and method thereof |
CN106293232A (en) * | 2016-08-11 | 2017-01-04 | 江苏中威科技软件系统有限公司 | A kind of hand-written inputting method realizing vigour of style in writing effect and system |
-
2017
- 2017-12-19 CN CN201711375389.8A patent/CN107977147B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101308578A (en) * | 2008-06-20 | 2008-11-19 | 华南理工大学 | Beautifying method for hand-written Chinese characters |
US20150062600A1 (en) * | 2013-08-27 | 2015-03-05 | Canon Kabushiki Kaisha | Image processing apparatus and method thereof |
CN103744555A (en) * | 2014-01-06 | 2014-04-23 | 溢洋光电(深圳)有限公司 | Bidirectional display and reduction method for instant messaging handwriting as well as related system and method |
CN104035681A (en) * | 2014-06-30 | 2014-09-10 | 可牛网络技术(北京)有限公司 | Webpage sliding method and browser |
CN106293232A (en) * | 2016-08-11 | 2017-01-04 | 江苏中威科技软件系统有限公司 | A kind of hand-written inputting method realizing vigour of style in writing effect and system |
Non-Patent Citations (1)
Title |
---|
陈露开: ""基于轮廓方法的实时手写美化技术及应用"", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112230786A (en) * | 2020-11-18 | 2021-01-15 | 广州市华用智能科技有限公司 | Light selection method and device based on mouse sliding track and computer equipment |
CN113448486A (en) * | 2021-09-01 | 2021-09-28 | 广州朗国电子科技股份有限公司 | Method and device for realizing pen point of electronic whiteboard, storage medium and electronic whiteboard |
CN113448486B (en) * | 2021-09-01 | 2021-12-24 | 广州朗国电子科技股份有限公司 | Method and device for realizing pen point of electronic whiteboard, storage medium and electronic whiteboard |
WO2023029694A1 (en) * | 2021-09-01 | 2023-03-09 | 广州朗国电子科技股份有限公司 | Electronic whiteboard pen stroke implementation method and apparatus, and storage medium and electronic whiteboard |
Also Published As
Publication number | Publication date |
---|---|
CN107977147B (en) | 2021-07-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7324813B2 (en) | Systems, methods, and graphical user interfaces for interacting with augmented and virtual reality environments | |
JP6991283B2 (en) | Avatar creation user interface | |
JP2022084635A (en) | User interface camera effect | |
EP2680110B1 (en) | Method and apparatus for processing multiple inputs | |
EP3547218B1 (en) | File processing device and method, and graphical user interface | |
WO2016082586A1 (en) | Webpage update method and apparatus | |
CN104182127B (en) | icon moving method and device | |
CN105045504B (en) | Picture material extracting method and device | |
US11366582B2 (en) | Screenshot capturing method, device, electronic device and computer-readable medium | |
CN109242765B (en) | Face image processing method and device and storage medium | |
CN107368810A (en) | Method for detecting human face and device | |
KR20140125218A (en) | Method for controlling function using electronic pen and an electronic device thereof | |
CN107680033A (en) | Image processing method and device | |
CN110727496B (en) | Layout method and device of graphical user interface, electronic equipment and storage medium | |
CN103176744B (en) | A kind of display equipment and its information processing method | |
CN110069204A (en) | Graphic processing method, device, equipment and storage medium based on handwriting trace | |
CN106445354A (en) | Terminal equipment touch control method and terminal equipment touch control device | |
US20130162516A1 (en) | Apparatus and method for providing transitions between screens | |
US20150063785A1 (en) | Method of overlappingly displaying visual object on video, storage medium, and electronic device | |
KR102134882B1 (en) | Method for controlling contents play and an electronic device thereof | |
CN107704190A (en) | Gesture identification method, device, terminal and storage medium | |
CN107657590A (en) | Image processing method and device | |
CN106598429A (en) | Method and device for adjusting window of mobile terminal | |
CN107729880A (en) | Method for detecting human face and device | |
CN109215098A (en) | Handwriting erasing method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |