Display method and device of movement track, storage medium and electronic device

文档序号:1847773 发布日期:2021-11-16 浏览:19次 中文

阅读说明:本技术 移动轨迹的显示方法、装置、存储介质及电子装置 (Display method and device of movement track, storage medium and electronic device ) 是由 王童 翁文斌 马海花 袁晴 王桂玲 王娟 陈明珠 徐锡芳 于 2021-08-23 设计创作,主要内容包括:本发明实施例提供了一种移动轨迹的显示方法、装置、存储介质及电子装置,其中,该方法包括:在确定触控件在目标设备上移动的情况下,检测触控件的当前点位;在当前点位为除触控件的起始点位以及触控件的终止点位的情况下,确定当前点位相对第一点位的目标偏移量,其中,第一点位为在当前点位之前检测到的,触控件在目标设备上的且与当前点位相邻的标记点位;在目标偏移量大于第一偏移量的情况下,基于当前点位以及第一点位确定第一待填充区域;填充第一待填充区域,以在目标设备上显示触控件的移动轨迹。通过本发明,解决了相关技术中存在的显示出的轨迹不能还原实际轨迹的问题,达到准确还原触控件触发的实际轨迹的效果。(The embodiment of the invention provides a display method, a display device, a storage medium and an electronic device of a moving track, wherein the method comprises the following steps: detecting the current point position of the touch control piece under the condition that the touch control piece is determined to move on the target equipment; determining a target offset of the current point location relative to a first point location under the condition that the current point location is a starting point location except for the touch control piece and an ending point location except for the touch control piece, wherein the first point location is a mark point location which is detected before the current point location and is adjacent to the current point location and is on the target equipment; under the condition that the target offset is larger than the first offset, determining a first area to be filled based on the current point location and the first point location; and filling the first area to be filled to display the movement track of the touch control piece on the target equipment. According to the invention, the problem that the displayed track can not restore the actual track in the related technology is solved, and the effect of accurately restoring the actual track triggered by the touch control piece is achieved.)

1. A display method of a movement track is characterized by comprising the following steps:

under the condition that the touch control piece is determined to move on the target equipment, detecting the current point position of the touch control piece;

determining a target offset of the current point location relative to a first point location when the current point location is a starting point location excluding the touch control and an ending point location excluding the touch control, wherein the first point location is detected before the current point location, and the touch control is a mark point location on the target device and adjacent to the current point location;

determining a first area to be filled based on the current point location and the first point location under the condition that the target offset is greater than a first offset;

and filling the first area to be filled so as to display the movement track of the touch control piece on the target equipment.

2. The method of claim 1, wherein determining a first region to be filled based on the current point location and the first point location comprises:

determining a first pressure value corresponding to the touch control at the current point location;

determining a second pressure value corresponding to the touch control at the first point position;

determining a first circle with the current point location as a circle center based on the first pressure value;

determining a second circle with the first point location as a circle center based on the second pressure value;

determining the first area to be filled based on the first circle and the second circle.

3. The method of claim 2, wherein determining the first area to be filled based on the first circle and the second circle comprises:

determining a first external tangent and a second external tangent of the first circle and the second circle;

determining a first tangent point of the first external tangent line and the first circle to form a second tangent point of the second circle;

determining a third tangent point of the second tangent line to the first circle and a fourth tangent point to the second circle;

determining a first straight line where the current point location and the first tangent point are located and a second straight line where the current point location and the third tangent point are located;

determining a third straight line where the first point location and the second tangent point are located and a fourth straight line where the first point location and the fourth tangent point are located;

determining an area surrounded by the first external tangent line, the second external tangent line, the first straight line, the second straight line, the third straight line and the fourth straight line as the first area to be filled.

4. The method of claim 2,

determining a first circle with the current point location as a center based on the first pressure value comprises: determining a corresponding relation between a pressure value and a radius, determining a first radius corresponding to the first pressure value based on the corresponding relation, and determining the first circle based on the first radius;

determining a second circle centered on the first point location based on the second pressure value comprises: and determining a second radius corresponding to the second pressure value based on the corresponding relation, and determining the second circle based on the second radius.

5. The method of claim 2,

determining a first pressure value corresponding to the touch control at the current point location includes: determining a third pressure value generated by the touch control at the current point location, determining a relation between the third pressure value and a preset pressure value interval, determining the third pressure value as the first pressure value when the third pressure value is within the preset pressure value interval, determining the minimum value as the first pressure value when the third pressure value is smaller than the minimum value in the preset pressure value interval, and determining the maximum value as the first pressure value when the third pressure value is larger than the maximum value in the preset pressure value interval;

determining a second pressure value corresponding to the touch control at the first point location comprises: determining a fourth pressure value generated by the touch control at the first point location, determining a relation between the fourth pressure value and the preset pressure value interval, determining the fourth pressure value as the second pressure value under the condition that the fourth pressure value is in the preset pressure value interval, determining the minimum value as the second pressure value under the condition that the fourth pressure value is smaller than the minimum value in the preset pressure value interval, and determining the maximum value as the second pressure value under the condition that the fourth pressure value is larger than the maximum value in the preset pressure value interval.

6. The method of claim 1, wherein determining the target offset of the current point location from the first point location comprises:

acquiring a target area corresponding to target mark points, wherein the target mark points include mark points which are closest to the current point acquisition time in the acquired mark points, the starting point is determined as a first point in the acquired mark points, and the last point in the target area is determined as other mark points in the acquired mark points, and the target area is determined by the following method: dividing the region where the target marking point location is located into equal target quantity portions by taking the target marking point location as an origin to obtain sub-regions of the target quantity, and determining the sub-region where the next point location of the target marking point location in the sub-regions of the target quantity is located as the target region;

determining the position relation between the current point location and the target area;

and determining the target offset under the condition that the position relation indicates that the current point position is located in the target area.

7. The method of claim 6, wherein after determining the positional relationship of the current point location to the target area, the method further comprises:

determining a second region to be filled based on the other marking point positions and the target marking point position under the condition that the position relation indicates that the current point position is in other regions except the target region;

and filling the second area to be filled so as to display the movement track of the touch control piece on the target equipment.

8. The method of claim 7, wherein the other marker points and the target marker point comprise:

determining an average radius of a circle determined by taking a middle point position as a circle center, wherein the middle point position is a point position acquired between the target mark point position and the other mark point positions;

determining an initial average circle which takes the target mark point position as a circle center and the average radius as a radius;

sequentially determining other average circles except the initial average circle to obtain a plurality of average circles by: determining an intersection point of a latest determined average circle included in the average circle and a connecting line of the middle point positions, and determining a next average circle which passes through the intersection point and is tangent to the latest determined average circle and has a radius of the average radius;

determining circumscribed arcs of all average circles included in the average circle to obtain a first circumscribed arc and a second circumscribed arc;

and determining an area surrounded by the first circumscribed circular arc, the second circumscribed circular arc, the initial average circle and a finally generated average circle included in the average circle as the second area to be filled.

9. The method of claim 1, wherein after determining the current point location of the touch control, the method further comprises:

under the condition that the current point location is the starting point location, determining a fifth pressure value of the touch control piece at the starting point location, determining a third circle taking the starting point location as a circle center based on the fifth pressure value, collecting a next point location of the starting point location, determining a fourth circle taking the next point location as a circle center based on a sixth pressure value of the touch control piece at the next point location, determining a third external tangent and a fourth external tangent of the third circle and the fourth circle, and determining a third area to be filled based on the third circle, the third external tangent and the fourth external tangent; filling the third area to be filled so as to display the moving track of the touch control piece on the target equipment;

under the condition that the current point location is the termination point location, determining a sixth pressure value of the touch control piece at the termination point location, determining a fifth circle with the termination point location as a circle center based on the sixth pressure value, acquiring a previous point location of the termination point location, determining a sixth circle with the previous point location as the circle center based on the sixth pressure value of the touch control piece at the previous point location, determining a fifth external tangent and a sixth external tangent of the fifth circle and the sixth circle, and determining a fourth area to be filled based on the sixth circle, the fifth external tangent and the sixth external tangent; and filling the fourth area to be filled so as to display the movement track of the touch control piece on the target equipment.

10. The method of claim 9, wherein determining a third area to fill based on the third circle, the third outer tangent, and the fourth outer tangent comprises one of:

determining a first tangent point of a third external tangent line and the third circle, determining a second tangent point of a fourth external tangent line and the third circle, and determining an area surrounded by a straight line where the first tangent point and the second tangent point are located and a first arc included in the third circle as the third area to be filled, wherein the first arc is an arc far away from the third external tangent line and the fourth external tangent line;

determining a seventh circle with the starting point position as a circle center, determining a first intersection point of an extension line of a line segment formed by the starting point position and the next point position and the seventh circle, and determining a region surrounded by the first intersection point, the first tangent point and the second tangent point as the third region to be filled, wherein the radius of the seventh circle is a target multiple of the radius of the third circle, and the target multiple is a positive number smaller than 1.

11. The method of claim 9, wherein determining a fourth region to be filled based on the sixth circle, the fifth circumscribed line, and the sixth circumscribed line comprises one of:

determining a third tangent point of a fifth external tangent line and the sixth circle, determining a fourth tangent point of the sixth external tangent line and the sixth circle, and determining an area surrounded by a straight line where the third tangent point and the fourth tangent point are located and a second arc included in the sixth circle as the fourth area to be filled, wherein the second arc is an arc away from the fifth external tangent line and the sixth external tangent line;

determining an eighth circle taking the termination point as a circle center, determining a second intersection point of an extension line of a line segment formed by the termination point and the previous point and the eighth circle, and determining a region surrounded by the second intersection point, the third tangent point and the fourth tangent point as a fourth region to be filled, wherein the radius of the eighth circle is a target multiple of the radius of the fourth circle, and the target multiple is a positive number smaller than 1.

12. A display device of a movement locus, comprising:

the detection module is used for detecting the current point position of the touch control piece under the condition that the touch control piece is determined to move on the target equipment;

a first determining module, configured to determine, when the current point location is a starting point location excluding the touch control and an ending point location of the touch control, a target offset of the current point location with respect to a first point location, where the first point location is detected before the current point location, and the touch control is on the target device and is adjacent to the current point location;

a second determining module, configured to determine, when the target offset is greater than a first offset, a first region to be filled based on the current point location and the first point location;

and the display module is used for filling the first area to be filled so as to display the moving track of the touch control piece on the target equipment.

13. A computer-readable storage medium, in which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 11.

14. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 11.

Technical Field

The embodiment of the invention relates to the field of touch control, in particular to a method and a device for displaying a moving track, a storage medium and an electronic device.

Background

With the rapid development of society, the traditional teaching and conference system has been gradually replaced by the emerging electronic products. The modes of cloud teaching, cloud conference and the like are more and more well known and accepted by the public, and the touch display device electronic whiteboard has come to be produced. The novel blackboard chalk replaces traditional non-electronic equipment of blackboard chalk types, greatly saves cost and is environment-friendly, and rich and diverse teaching or meeting requirements can be met by better butt joint with a cloud end. However, in the related art, most whiteboard software or screens write with uniform thickness of written characters, which does not reflect the writing features of everyone, such as writing style or clerical style, but the electronic presentation completely erases the aesthetic feeling of the part, and thus the whiteboard software or the screens are lost in enjoying beauty for writers and readers.

It can be seen that there is a problem in the related art that the displayed trajectory cannot restore the actual trajectory.

In view of the above problems in the related art, no effective solution has been proposed.

Disclosure of Invention

The embodiment of the invention provides a display method and device of a moving track, a storage medium and an electronic device, which are used for at least solving the problem that the track displayed in the related art can not restore the actual track.

According to an embodiment of the present invention, there is provided a display method of a movement trajectory, including: under the condition that the touch control piece is determined to move on the target equipment, detecting the current point position of the touch control piece; determining a target offset of the current point location relative to a first point location when the current point location is a starting point location excluding the touch control and an ending point location excluding the touch control, wherein the first point location is detected before the current point location, and the touch control is a mark point location on the target device and adjacent to the current point location; determining a first area to be filled based on the current point location and the first point location under the condition that the target offset is greater than a first offset; and filling the first area to be filled so as to display the movement track of the touch control piece on the target equipment.

According to another embodiment of the present invention, there is provided a display device of a movement trajectory, including: the detection module is used for detecting the current point position of the touch control piece under the condition that the touch control piece is determined to move on the target equipment; a first determining module, configured to determine, when the current point location is a starting point location excluding the touch control and an ending point location excluding the starting point location, a target offset of the current point location with respect to a first point location, where the first point location is detected before the current point location, and the touch control is a mark point location on the target device and adjacent to the current point location; a second determining module, configured to determine, when the target offset is greater than a first offset, a first region to be filled based on the current point location and the first point location; and the display module is used for filling the first area to be filled so as to display the moving track of the touch control piece on the target equipment.

According to yet another embodiment of the invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program, when executed by a processor, implements the steps of the method as set forth in any of the above.

According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.

According to the method and the device, under the condition that the touch control piece is determined to move on the target equipment, the current point position of the touch control piece is detected, under the condition that the current point position is the starting point position and the ending point position of the touch control piece, the target offset of the current point position relative to the first point position is determined, under the condition that the target offset is larger than the first offset, the first area to be filled is determined based on the current point position and the first point position, and the determined first area to be filled is filled, so that the moving track of the touch control piece is displayed on the target equipment. When the offset between the current point location and the first point location is larger than the first offset, the area to be displayed can be determined according to the first point location and the current point location, and the area is filled, so that the problem that the displayed track cannot restore the actual track in the related technology can be solved, and the effect of accurately restoring the actual track triggered by the touch control piece is achieved.

Drawings

Fig. 1 is a block diagram of a hardware structure of a mobile terminal of a display method of a movement trajectory according to an embodiment of the present invention;

fig. 2 is a flowchart of a display method of a movement trajectory according to an embodiment of the present invention;

fig. 3 is a schematic diagram of a first region to be filled according to an exemplary embodiment of the present invention;

FIG. 4 is a schematic diagram of region division where a target mark point is located according to an exemplary embodiment of the present invention;

fig. 5 is a schematic diagram of a third region to be filled i according to an exemplary embodiment of the present invention;

fig. 6 is a schematic diagram of a third region to be filled according to an exemplary embodiment of the present invention;

fig. 7 is a first schematic diagram of a fourth region to be filled according to an exemplary embodiment of the present invention;

fig. 8 is a schematic diagram of a fourth region to be filled according to an exemplary embodiment of the present invention;

fig. 9 is a flowchart of a service processing of a display method of a movement trajectory according to an embodiment of the present invention;

FIG. 10 is a flowchart of a method for displaying a movement trajectory according to an embodiment of the present invention;

fig. 11 is a block diagram of a display device of a movement trajectory according to an embodiment of the present invention.

Detailed Description

Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.

It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.

The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking the operation on the mobile terminal as an example, fig. 1 is a hardware structure block diagram of the mobile terminal of the display method of the movement track according to the embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.

The memory 104 may be used to store a computer program, for example, a software program and a module of application software, such as a computer program corresponding to the display method of the movement track in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.

The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.

In this embodiment, a method for displaying a moving track is provided, and fig. 2 is a flowchart of the method for displaying a moving track according to the embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:

step S202, detecting the current point position of a touch control piece under the condition that the touch control piece is determined to move on target equipment;

step S204, under the condition that the current point location is the starting point location except the touch control and the ending point location except the touch control, determining the target offset of the current point location relative to a first point location, wherein the first point location is detected before the current point location, and the touch control is on the target equipment and is adjacent to the marking point location of the current point location;

step S206, determining a first area to be filled based on the current point and the first point under the condition that the target offset is greater than a first offset;

step S208, filling the first area to be filled to display the movement track of the touch control on the target device.

In the above embodiments, the touch-control member may be a stylus, a mouse, a finger, and the like, and the target device may be an electronic whiteboard, an electronic blackboard, and the like. The user may write, draw, etc. in the target device through the touch control. The moving track of the touch control can be a track of writing, drawing and the like in the target device by the user through the touch control.

In the above embodiment, when the user moves on the target device using the touch control, the current point location of the touch control may be detected, when the current point location is not the start point location and the end point location, the target offset between the first point location and the first point location is determined, and when the target offset is greater than the first offset, the region to be filled is determined according to the current point location and the first point location. The first point location is acquired before the current point location and is a mark point location acquired at the acquisition time closest to the acquisition time of the current point location. It should be noted that, when the touch control moves in the target device, the initial mark point location is a start point location of the touch control on the target device, the second mark point location is collected after the initial mark point, and the first mark point location … … that satisfies that a distance from the start point location exceeds a first offset, where the first offset is a parameter that can be preset, and the first offset can be set in a user-defined manner according to the size of the touch control and the size of the target device, which is not limited by the present invention.

In the above embodiment, the target offset may include at least one of: the offset between the abscissa of the current point location and the abscissa of the first point location, and the offset between the ordinate of the current point location and the ordinate of the first point location. The target device may first acquire a first point behind the touch screen. And then continuously acquiring the next point, wherein the acquired interval is calculated according to the preset coordinate offset (delta x, delta y). When any tool capable of writing characters, such as a finger or a writing pen, moves, when the absolute value of the coordinate difference value of any one of the abscissa Xi and the ordinate Yi following a point is greater than the offset (Δ x, Δ y), the point is collected.

In the above embodiment, after the first area to be filled is determined, the first area to be filled may be filled with a target color to display the movement track of the touch control in the target device.

Optionally, the main body of the above steps may be a target device, a background processor, or other devices with similar processing capabilities, and may also be a machine integrated with at least a data processing device, where the data processing device may include a terminal such as a computer, a mobile phone, and the like, but is not limited thereto.

According to the method and the device, under the condition that the touch control piece is determined to move on the target equipment, the current point position of the touch control piece is detected, under the condition that the current point position is the starting point position and the ending point position of the touch control piece, the target offset of the current point position relative to the first point position is determined, under the condition that the target offset is larger than the first offset, the first area to be filled is determined based on the current point position and the first point position, and the determined first area to be filled is filled, so that the moving track of the touch control piece is displayed on the target equipment. When the offset between the current point location and the first point location is larger than the first offset, the area to be displayed can be determined according to the first point location and the current point location, and the area is filled, so that the problem that the displayed track cannot restore the actual track in the related technology can be solved, and the effect of accurately restoring the actual track triggered by the touch control piece is achieved.

In one exemplary embodiment, determining a first region to be filled based on the current point location and the first point location comprises: determining a first pressure value corresponding to the touch control at the current point location; determining a second pressure value corresponding to the touch control at the first point position; determining a first circle with the current point location as a circle center based on the first pressure value; determining a second circle with the first point location as a circle center based on the second pressure value; determining the first area to be filled based on the first circle and the second circle. In this embodiment, when the first region to be filled is determined, a first pressure value of the touch control at the current point location and a second pressure value of the touch control at the first point location may be determined, a first circle centered around the current point location is determined according to the first pressure value, and a second circle centered around the first point location is determined according to the second pressure value. And determining a first area to be filled according to the first circle and the second circle. That is, after the points Ai and Fi meeting the requirement are collected, for the coordinates of each collection point, a drawing may be performed in which the preset value R0 is used as a radius to obtain an area Si pi R02Circle of (1), (b)The preset value can be adjusted according to the actual effect, and the minimum pixel unit of the display screen can also be adopted). For the Ai point (i.e. the first point and the current point), a radius R0 may be preset, and when the force at this point is Fi, the current force is converted into a final diffusion circle. For example, if the final circle radius of the acquisition point is defined as R, then a mathematical formula may be used, such as R ═ Fi/(ak)3+ b) + R0, where a, k, b are constants after debugging. R0 is the minimum unit value of each preset collection point, when the pressure is infinitely small and approaches to 0, the R of the collection point is finally infinitely close to R0, namely, a circular area with the minimum unit value as the radius is finally displayed on the display screen.

In one exemplary embodiment, determining the first area to be filled based on the first circle and the second circle includes: determining a first external tangent and a second external tangent of the first circle and the second circle; determining a first tangent point of the first external tangent line and the first circle to form a second tangent point of the second circle; determining a third tangent point of the second tangent line to the first circle and a fourth tangent point to the second circle; determining a first straight line where the current point location and the first tangent point are located and a second straight line where the current point location and the third tangent point are located; determining a third straight line where the first point location and the second tangent point are located and a fourth straight line where the first point location and the fourth tangent point are located; determining an area surrounded by the first external tangent line, the second external tangent line, the first straight line, the second straight line, the third straight line and the fourth straight line as the first area to be filled. In this embodiment, after the radius of each acquisition point draws a circular area, each two adjacent circles are subjected to an outer tangent processing, and a first outer tangent and a second outer tangent are determined. And connecting the current point location with the first tangent point to obtain a first straight line, connecting the current point location with the third tangent point to obtain a second straight line, connecting the first point location with the second tangent point to obtain a third straight line, and connecting the first point location with the fourth tangent line to obtain a fourth straight line. And determining a region surrounded by the first external tangent line, the second external tangent line, the first straight line, the second straight line, the third straight line and the fourth straight line as a first region to be filled. Referring to fig. 3, as shown in fig. 3, a schematic diagram of the first region to be filled is shown, and a region similar to a trapezoid in the diagram is the first region to be filled.

In the above embodiment, the area where the two radii of the two circles and the outer tangent of the two sides form may be regarded as a quadrangle. As the distance between acquisition points (i.e., the distance between the two circle centers) becomes smaller, the quadrilateral and trapezoidal areas approach infinitely. The area of the region deviates less from the area of the trapezoid as long as the offset (Δ x, Δ y) of the acquisition points is defined to be sufficiently small. As shown in fig. 3, in the case of 2 adjacent circles, the whole area of the part can be split into three parts:

1) left semicircular part with R1 as radius

2) Right semicircular part with radius of R2

3) In FIG. 3, two circle diameters and two external tangents to two sides form a part

Combining the above ideas, the area size of the whole region can be approximately equivalent to:

wherein Δ L can be calculated from the difference in coordinates between two points (x1-x2)2+(y1-y2)2=ΔL2Therefore, it is

Substituting Δ L into the formula, after simplification

This is the case when only the first 2 points are acquired, and when the third point is acquired, the areas corresponding to the 2 nd and 3 rd points are:

along with the writing process, when the collected points are enough, the area formed by integrating the points according to the time sequence is the area range formed by the discrete points according to the Ri determined by the current stress condition and taking the Ri as the radius, and the corresponding handwriting display area can be determined according to the information. The formula is as follows:

in summary, the total area of the moving track, the area between each two adjacent points, and the contained acquisition point information can be calculated. Therefore, on the display screen, only the area formed by the part is filled and displayed.

In one exemplary embodiment, determining a first circle centered at the current point location based on the first pressure value includes: determining a corresponding relation between a pressure value and a radius, determining a first radius corresponding to the first pressure value based on the corresponding relation, and determining the first circle based on the first radius; determining a second circle centered on the first point location based on the second pressure value comprises: and determining a second radius corresponding to the second pressure value based on the corresponding relation, and determining the second circle based on the second radius. In this embodiment, a corresponding relationship between the pressure value and the radius may be obtained first, the radius corresponding to the pressure value is determined according to the corresponding relationship, and then the first circle and the second circle are determined according to the radius and the center of the circle. Wherein, the corresponding relation between the pressure value and the radius can be R ═ Fi/(ak)3+ b) + R0, where a, k, b are constants after debugging. R0 is the minimum unit value of each preset collection point, when the pressure is infinitely small and approaches to 0, the R of the collection point is finally infinitely close to R0, namely, a circular area with the minimum unit value as the radius is finally displayed on the display screen.

In an exemplary embodiment, determining a first pressure value corresponding to the touch control at the current point location includes: determining a third pressure value generated by the touch control at the current point location, determining a relation between the third pressure value and a preset pressure value interval, determining the third pressure value as the first pressure value when the third pressure value is within the preset pressure value interval, determining the minimum value as the first pressure value when the third pressure value is smaller than the minimum value in the preset pressure value interval, and determining the maximum value as the first pressure value when the third pressure value is larger than the maximum value in the preset pressure value interval; determining a second pressure value corresponding to the touch control at the first point location comprises: determining a fourth pressure value generated by the touch control at the first point location, determining a relation between the fourth pressure value and the preset pressure value interval, determining the fourth pressure value as the second pressure value under the condition that the fourth pressure value is in the preset pressure value interval, determining the minimum value as the second pressure value under the condition that the fourth pressure value is smaller than the minimum value in the preset pressure value interval, and determining the maximum value as the second pressure value under the condition that the fourth pressure value is larger than the maximum value in the preset pressure value interval. In this embodiment, when determining the pressure value that the touch control piece corresponds on the target equipment point location, can acquire the pressure value that the touch control piece produced on the target equipment point location earlier, compare the pressure value with the preset pressure value interval, determine final pressure value. Namely, the pressure value of the current point location is judged by combining the maximum value and the minimum value of the preset pressure value interval. And if the current Fi value is within the preset pressure value interval, keeping the current Fi value. And if the minimum value is smaller than the preset Fmin, taking the minimum value Fmin as the current Fi value. And if the current Fi is larger than the preset Fmax, taking the maximum Fmax as the current Fi value. And then determining a radius according to the final pressure value, and determining a circle according to the radius and the circle center so as to determine a first track to be filled.

In one exemplary embodiment, determining the target offset of the current point location from the first point location comprises: acquiring a target area corresponding to target mark points, wherein the target mark points include mark points which are closest to the current point acquisition time in the acquired mark points, the starting point is determined as a first point in the acquired mark points, and the last point in the target area is determined as other mark points in the acquired mark points, and the target area is determined by the following method: dividing the region where the target marking point location is located into equal target quantity portions by taking the target marking point location as an origin to obtain sub-regions of the target quantity, and determining the sub-region where the next point location of the target marking point location in the sub-regions of the target quantity is located as the target region; determining the position relation between the current point location and the target area; and determining the target offset under the condition that the position relation indicates that the current point position is located in the target area. In this embodiment, when point locations of the touch control on the target device are collected, the mark point location may be determined among the collected point locations. The initial point location of the touch control on the target device may be determined as a mark point location, and then a next mark point location may be determined according to the latest determined mark point location. When the next marking point position is determined, a coordinate system can be established by taking the latest determined marking point position as an origin, and the 360-degree coordinate system where the marking point position is located is divided into equal parts of the target number, so that the sub-regions of the target number are obtained. And determining a sub-region where the next point position of the target mark point positions is located, and determining the sub-region as a target region. And the next point position of the target marking point positions is the point position which is acquired after the target marking point position and has the closest acquisition time to the target marking point position.

In the above embodiment, after the target area corresponding to the target mark point location is determined, the position relationship between the current point location and the target area may be determined, and the target offset is determined when the position relationship indicates that the current point location is in the target area.

In the above embodiment, the area where the target mark point is located may be divided into 60 equal parts or 180 equal parts (this value is only an exemplary illustration, the target number may be set by a user according to an application scenario, or may be determined by combining radii corresponding to points other than the mark point, for example, 30 equal parts, 90 equal parts, 270 equal parts, 360 equal parts, and the like, which is not limited in this disclosure). The schematic diagram of the area division where the target mark point is located can be seen in fig. 4.

In the above embodiment, when the touch piece forms the first point location on the target device, that is, the coordinate system is established with the starting point location as the origin. A coordinate system that is equally divided by 360 degrees, such as 60 equally divided or 180 equally divided. The angle corresponding to each aliquot region is 6 degrees or 2 degrees. When the next point basic acquisition point of the target marking point is determined, the equal-division interval sub-area of which angle in the coordinate system can be definitely used as the target area. All the point locations within the range of the target area of the interval are taken as basic points. When the first point position exceeding the bisection angle range of the target area occurs, the last acquisition point adjacent to the first exceeding point position is determined as the mark point position of the second important acquisition point. And optimally filling the starting points of the two marking point positions and the second important acquisition point to reduce burrs. And then, taking the mark point position determined latest in the second acquisition as an origin, continuously establishing a coordinate system, equally dividing by 60 or 180 degrees, and determining the range of the next mark point position of the third acquisition point. The equal division range can be defined by self, the larger the equal division is, the more accurate the handwriting effect is, but the significance of important acquisition points is lost by combining with the range of R determined by the basic acquisition points.

It should be noted that the coordinates between two adjacent points and the corresponding pressure values may be collected by using a fixed offset. It is also possible to add more than one offset amount, depending on the effect, in the form of a base acquisition point (corresponding to a point other than the above-mentioned marking point) offset amount (Δ x, Δ y) and an important acquisition point (Δ x ', Δ y') (corresponding to the above-mentioned marking point). In the case of basic acquisition points, a very detailed handwriting tracing process is acquired. In the case of an important acquisition point, the corresponding strength and radius and the preset radius are the range and specific gravity which can increase the strength and radius. The handwriting effect formed in this way is formed by overlapping a plurality of basic acquisition points and important acquisition points, and the transition of handwriting is more natural and has key points. Similarly, for the first acquisition point and the last acquisition point, a special optimization treatment can be performed on the relation between the preset radius and the corresponding radius of the force, or the radius of two points before and after the preset start and stop point is rounded, so that the start and stop point has handwriting characteristics. Each scene can be adjusted according to needs, and important acquisition points can also have more than one definition, such as important acquisition points, secondary important acquisition points and basic acquisition points. The corresponding offset is changed from large to small, a plurality of similar concepts can be added in the middle until the minimum basic acquisition point unit is refined, and the obtained handwriting effect is smoother and close to the actual effect.

In an exemplary embodiment, after determining the position relationship between the current point location and the target area, the method further includes: determining a second region to be filled based on the other marking point positions and the target marking point position under the condition that the position relation indicates that the current point position is in other regions except the target region; and filling the second area to be filled so as to display the movement track of the touch control piece on the target equipment. In this embodiment, when the current point location is outside the target area, a second area to be filled may be determined according to the last point location and the target mark point location collected before the current point location and located in the target area, and the second filled area is filled, so as to display the movement trajectory of the touch control on the target device.

In the above embodiment, when the first area to be filled is determined, the target offset between the current point location and the first point location is smaller than the first offset, the collected point locations are relatively dense point locations, which may be referred to as basic collection points, and when the current point location is located in another area outside the target area, it may be considered that the current point location has a relatively large offset from the starting point location, that is, the point location collected before the current point location and the last point location located in the target area may be determined as another marked point location. And determining the collected point positions according to the first offset, namely acquiring a very detailed handwriting tracing process when collecting the basic collection points. Under the condition that the current point location is located in other areas outside the target area, namely under the condition that the marked point location is collected, the corresponding strength, the radius and the preset radius can increase the range and the specific gravity of the marked point location. The handwriting effect formed in this way is formed by overlapping a plurality of basic acquisition points and important acquisition points, and the transition of handwriting is more natural and has key points.

In an exemplary embodiment, the other marking point locations and the target marking point location include: determining an average radius of a circle determined by taking a middle point position as a circle center, wherein the middle point position is a point position acquired between the target mark point position and the other mark point positions; determining an initial average circle which takes the target mark point position as a circle center and the average radius as a radius; sequentially determining other average circles except the initial average circle to obtain a plurality of average circles by: determining an intersection point of a latest determined average circle included in the average circle and a connecting line of the middle point positions, and determining a next average circle which passes through the intersection point and is tangent to the latest determined average circle and has a radius of the average radius; determining circumscribed arcs of all average circles included in the average circle to obtain a first circumscribed arc and a second circumscribed arc; and determining an area surrounded by the first circumscribed circular arc, the second circumscribed circular arc, the initial average circle and a finally generated average circle included in the average circle as the second area to be filled. In this embodiment, a middle point position between the target mark point position and the other mark point positions may be determined, a radius of a circle formed with the middle point position as a center of the circle may be determined, and an average radius of the plurality of radii may be calculated. And determining an initial average circle by taking the target mark point position as the center of a circle and the average radius as the radius. And determining the intersection point of the initial average circle and the connecting line of the intermediate point positions, determining the next average circle which is tangent to the initial average circle and has the radius of the average radius through the intersection point, and determining the average circle as the latest determined average circle. And then determining the intersection point of the average circle and the connecting line of the intermediate point, determining a next average circle … … which is tangent to the average circle and has the radius of the average radius through the intersection point, and sequentially determining the average circles according to the above mode to obtain a plurality of average circles. The middle point position connecting line is a connecting line formed by connecting the target marking point position, the middle point position and other marking point positions by smooth lines. The intersection point of the mean circle and the connecting line of the middle point positions is the tangent point of two adjacent mean circles.

In the above embodiment, after determining a series of average circles, the circumscribed arcs of all the average circles may be determined, that is, the points at the extreme edges of each side of all the average circles are connected by a smooth arc along the direction of the connecting line of the middle point, so as to obtain two tangent arcs. And determining an area surrounded by the two circumscribed arcs, the initial average circle and the last average circle included in all the average circles as a second area to be filled.

In an exemplary embodiment, after determining the current point location of the touch control, the method further comprises: under the condition that the current point location is the starting point location, determining a fifth pressure value of the touch control piece at the starting point location, determining a third circle taking the starting point location as a circle center based on the fifth pressure value, collecting a next point location of the starting point location, determining a fourth circle taking the next point location as a circle center based on a sixth pressure value of the touch control piece at the next point location, determining a third external tangent and a fourth external tangent of the third circle and the fourth circle, and determining a third area to be filled based on the third circle, the third external tangent and the fourth external tangent; filling the third area to be filled so as to display the moving track of the touch control piece on the target equipment; under the condition that the current point location is the termination point location, determining a sixth pressure value of the touch control piece at the termination point location, determining a fifth circle with the termination point location as a circle center based on the sixth pressure value, acquiring a previous point location of the termination point location, determining a sixth circle with the previous point location as the circle center based on the sixth pressure value of the touch control piece at the previous point location, determining a fifth external tangent and a sixth external tangent of the fifth circle and the sixth circle, and determining a fourth area to be filled based on the sixth circle, the fifth external tangent and the sixth external tangent; and filling the fourth area to be filled so as to display the movement track of the touch control piece on the target equipment. In this embodiment, when the current point location is the starting point location, the second region to be filled may be determined according to the current point location and a point location next to the current point location. The next point is the point with the offset larger than the first offset from the current point. The pressure values of the touch control piece at the current point location and the next point location can be determined, the third circle and the fourth circle are determined according to the pressure values, the external tangent lines of the third circle and the fourth circle are determined, and the second region to be filled is determined according to the external tangent lines. Similarly, when the current point location is the termination point location, the third region to be filled may be determined according to the current point location and the previous point location. And filling the second region to be filled and the third region to be filled respectively so as to display the moving track of the touch control piece on the target equipment.

In an exemplary embodiment, determining a third area to be filled based on the third circle, the third outer tangent and the fourth outer tangent comprises one of: determining a first tangent point of a third external tangent line and the third circle, determining a second tangent point of a fourth external tangent line and the third circle, and determining an area surrounded by a straight line where the first tangent point and the second tangent point are located and a first arc included in the third circle as the third area to be filled, wherein the first arc is an arc far away from the third external tangent line and the fourth external tangent line; determining a seventh circle with the starting point position as a circle center, determining a first intersection point of an extension line of a line segment formed by the starting point position and the next point position and the seventh circle, and determining a region surrounded by the first intersection point, the first tangent point and the second tangent point as the third region to be filled, wherein the radius of the seventh circle is a target multiple of the radius of the third circle, and the target multiple is a positive number smaller than 1. In this embodiment, referring to fig. 5, a region formed by the third circle and the fourth circle is a region to be filled, as shown in fig. 5, a straight line AB is a third external tangent line, a point a is a first tangent point, a straight line CD is a fourth external tangent line, a point C is a second tangent point, and a region surrounded by a straight line where the AC is located and an arc of the third circle, which is far away from the third external tangent line and the fourth external tangent line, is a third region to be filled. That is, in fig. 5, a diagonal line is drawn.

In the above embodiment, a circle may be drawn with the start point as a center, and as shown in fig. 6, an area surrounded by an intersection E of an extension line of a line segment formed by the center O1O2 and the seventh circle, the first tangent point a, and the second tangent line C may be determined as a third area to be filled, that is, a triangle EAC in fig. 6.

In an exemplary embodiment, determining a fourth region to be filled based on the sixth circle, the fifth outer tangent and the sixth outer tangent comprises one of: determining a third tangent point of a fifth external tangent line and the sixth circle, determining a fourth tangent point of the sixth external tangent line and the sixth circle, and determining an area surrounded by a straight line where the third tangent point and the fourth tangent point are located and a second arc included in the sixth circle as the fourth area to be filled, wherein the second arc is an arc away from the fifth external tangent line and the sixth external tangent line; determining an eighth circle taking the termination point as a circle center, determining a second intersection point of an extension line of a line segment formed by the termination point and the previous point and the eighth circle, and determining a region surrounded by the second intersection point, the third tangent point and the fourth tangent point as a fourth region to be filled, wherein the radius of the eighth circle is a target multiple of the radius of the fourth circle, and the target multiple is a positive number smaller than 1. In this embodiment, referring to fig. 7, a region formed by the fifth circle and the sixth circle is shown in fig. 7, as shown in fig. 7, a straight line FG is a fifth external tangent line, a point F is a third tangent point, a straight line MN is a sixth external tangent line, a point M is a fourth tangent point, and a region surrounded by a straight line where FM is located and an arc of the sixth circle far from the fifth external tangent line and the sixth external tangent line is a fourth region to be filled. That is, in fig. 7, a diagonal line is drawn.

In the above embodiment, a circle may be drawn with the termination point as a center, and as shown in fig. 8, an area surrounded by an intersection I of an extension line of a line segment formed by the center O3O4 and the eighth circle, the third tangent point F, and the fourth tangent point M may be determined as the fourth area to be filled, i.e., the triangle IFM in fig. 8.

The following describes a display method of a movement trajectory with reference to a specific embodiment:

fig. 9 is a flowchart of a service processing of a display method of a movement trajectory according to an embodiment of the present invention, as shown in fig. 9, the method includes:

1. presetting offset and threshold: this is a parameter that the system can set. And (4) presetting the offset of the point location coordinates to be (delta x, delta y), and acquiring and storing the next point location between the two point locations when any abscissa or ordinate is larger than the offset. And presetting a minimum value Fmin and a maximum value Fmax of a pressure threshold, and storing adjacent maximum values or minimum values when the acquired pressure exceeds the range.

2. Touch control multipoint acquisition module: this is the foremost end of the point location information processing, and the point location where the current movement position is located is gradually taken according to the preset offset (Δ x, Δ y). The offset can be set or adjusted in actual use, and can also be a fixed value after debugging is finished when the program leaves a factory.

3. A touch pressure acquisition module: the most front end of the pressure information processing is to acquire and store the touch pressure value corresponding to the current point location based on the acquired point location information.

4. A data storage module: and establishing a one-to-one corresponding relation between the initially acquired point location, the corresponding pressure and the time three dimensional data, and storing the point location, the corresponding pressure and the time three dimensional data into a memory or a program.

5. A central processing module: and reestablishing a corresponding relation after optimizing each acquisition point position, pressure and time through a built-in algorithm or program and a preset value and through the program or algorithm. And (3) forming a mathematical relation between the pressure and the size of the point and the diameter of the circle, drawing the circle by using each acquisition point as the center of the circle and calculating the tangent line between two adjacent circles, so as to determine the area range left on the display screen after the handwriting moves, and finally filling the area and finally displaying the area as the handwriting. In the process, the externally preset adjustable threshold parameter is supported to ensure that the force intensity or the contact area can be adjusted and optimized to a certain extent through a program or an algorithm. And displaying the movement track recorded and drawn by the core processing module on a screen.

The flowchart of the display method of the movement track can be seen in fig. 10.

In the foregoing embodiment, based on the preset radius of the collection point, the mathematical relationship obtained by converting the pressure radius of the collection point is used to draw circles one by one, based on the circumscribed line between two adjacent collection points, the area covered by the two points is then drawn and solved, and the final positioning display is performed according to the coordinates of each collection point. A handwriting drawing process obtained by mining and modeling through a multi-point touch control algorithm is used as a supplement to a handwriting display scheme based on a touch screen from another dimension, and the defects that pressure is obtained according to speed or single character conversion and display are overcome. And the mode of using different weight collection points can preset a plurality of collection key points in the algorithm according to the needs, and the collection basic points are drawn one by one. The handwriting drawn and displayed in the form has smoother handwriting effect and can be displayed closer to the handwriting written by the actual user along with the increase of the number of the collection points. The problem of because after the electronic whiteboard fixed typeface sets up, the characters write can't be according to user's dynamics, the area of exerting oneself of writing, peculiar calligraphy style individuation one-to-one restore characters thickness and characteristic is solved. By introducing the multipoint touch-based electronic whiteboard writing control method, the writing recovery degree of the whiteboard is improved, and the writing experience and good sensory experience of a user are improved.

Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.

In this embodiment, a display device of a moving track is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, which have already been described and are not described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.

Fig. 11 is a block diagram of a display device of a movement trajectory according to an embodiment of the present invention, as shown in fig. 11, the device including:

the detection module 1102 is configured to detect a current point location of a touch control when the touch control is determined to move on a target device;

a first determining module 1104, configured to determine, when the current point location is a starting point location excluding the touch control and an ending point location excluding the starting point location, a target offset of the current point location with respect to a first point location, where the first point location is detected before the current point location, and the touch control is on the target device and is adjacent to the current point location;

a second determining module 1106, configured to determine a first area to be filled based on the current point location and the first point location if the target offset is greater than a first offset;

a display module 1108, configured to fill the first area to be filled, so as to display a movement trajectory of the touch control on the target device.

The detecting module 1102 and the first determining module 1104 correspond to the touch multi-point position acquiring module, and the second determining module 1106 and the displaying module 1108 correspond to the touch pressure acquiring module, the data storing module and the central processing module.

In an exemplary embodiment, the second determining module 1106 may enable determining the first area to be filled based on the current point location and the first point location by: determining a first pressure value corresponding to the touch control at the current point location; determining a second pressure value corresponding to the touch control at the first point position; determining a first circle with the current point location as a circle center based on the first pressure value; determining a second circle with the first point location as a circle center based on the second pressure value; determining the first area to be filled based on the first circle and the second circle.

In an exemplary embodiment, the second determining module 1106 may determine the first area to be filled based on the first circle and the second circle by: determining a first external tangent and a second external tangent of the first circle and the second circle; determining a first tangent point of the first external tangent line and the first circle to form a second tangent point of the second circle; determining a third tangent point of the second tangent line to the first circle and a fourth tangent point to the second circle; determining a first straight line where the current point location and the first tangent point are located and a second straight line where the current point location and the third tangent point are located; determining a third straight line where the first point location and the second tangent point are located and a fourth straight line where the first point location and the fourth tangent point are located; determining an area surrounded by the first external tangent line, the second external tangent line, the first straight line, the second straight line, the third straight line and the fourth straight line as the first area to be filled.

In an exemplary embodiment, the second determining module 1106 may determine the first circle centered at the current point location based on the first pressure value by: determining a corresponding relation between a pressure value and a radius, determining a first radius corresponding to the first pressure value based on the corresponding relation, and determining the first circle based on the first radius; the second determination module 1106 may enable determining a second circle centered at the first point location based on the second pressure value by: and determining a second radius corresponding to the second pressure value based on the corresponding relation, and determining the second circle based on the second radius.

In an exemplary embodiment, the second determining module 1106 may determine the first pressure value corresponding to the touch control at the current point location by: determining a third pressure value generated by the touch control at the current point location, determining a relation between the third pressure value and a preset pressure value interval, determining the third pressure value as the first pressure value when the third pressure value is within the preset pressure value interval, determining the minimum value as the first pressure value when the third pressure value is smaller than the minimum value in the preset pressure value interval, and determining the maximum value as the first pressure value when the third pressure value is larger than the maximum value in the preset pressure value interval; the second determining module 1106 may determine the second pressure value corresponding to the touch control at the first point location by: determining a fourth pressure value generated by the touch control at the first point location, determining a relation between the fourth pressure value and the preset pressure value interval, determining the fourth pressure value as the second pressure value under the condition that the fourth pressure value is in the preset pressure value interval, determining the minimum value as the second pressure value under the condition that the fourth pressure value is smaller than the minimum value in the preset pressure value interval, and determining the maximum value as the second pressure value under the condition that the fourth pressure value is larger than the maximum value in the preset pressure value interval.

In an exemplary embodiment, the first determining module 1104 may determine the target offset of the current point location from the first point location by: acquiring a target area corresponding to target mark points, wherein the target mark points include mark points which are closest to the current point acquisition time in the acquired mark points, the starting point is determined as a first point in the acquired mark points, and the last point in the target area is determined as other mark points in the acquired mark points, and the target area is determined by the following method: dividing the region where the target marking point location is located into equal target quantity portions by taking the target marking point location as an origin to obtain sub-regions of the target quantity, and determining the sub-region where the next point location of the target marking point location in the sub-regions of the target quantity is located as the target region; determining the position relation between the current point location and the target area; and determining the target offset under the condition that the position relation indicates that the current point position is located in the target area.

In an exemplary embodiment, the apparatus may be configured to, after determining the position relationship between the current point location and the target region, determine, if the position relationship indicates that the current point location is in another region outside the target region, a second region to be filled based on the other mark point location and the target mark point location; and filling the second area to be filled so as to display the movement track of the touch control piece on the target equipment.

In an exemplary embodiment, the apparatus may implement the other mark point location and the target mark point location by: determining an average radius of a circle determined by taking a middle point position as a circle center, wherein the middle point position is a point position acquired between the target mark point position and the other mark point positions; determining an initial average circle which takes the target mark point position as a circle center and the average radius as a radius; sequentially determining other average circles except the initial average circle to obtain a plurality of average circles by: determining an intersection point of a latest determined average circle included in the average circle and a connecting line of the middle point positions, and determining a next average circle which passes through the intersection point and is tangent to the latest determined average circle and has a radius of the average radius; determining circumscribed arcs of all average circles included in the average circle to obtain a first circumscribed arc and a second circumscribed arc; and determining an area surrounded by the first circumscribed circular arc, the second circumscribed circular arc, the initial average circle and a finally generated average circle included in the average circle as the second area to be filled.

In an exemplary embodiment, after determining the current point location of the touch control, in a case that the current point location is the starting point location, determining a fifth pressure value of the touch control at the starting point location, determining a third circle with the starting point location as a center based on the fifth pressure value, collecting a next point location of the starting point location, determining a fourth circle with the next point location as a center based on a sixth pressure value of the touch control at the next point location, determining a third external tangent and a fourth external tangent of the third circle and the fourth circle, and determining a third area to be filled based on the third circle, the third external tangent and the fourth external tangent; filling the third area to be filled so as to display the moving track of the touch control piece on the target equipment; under the condition that the current point location is the termination point location, determining a sixth pressure value of the touch control piece at the termination point location, determining a fifth circle with the termination point location as a circle center based on the sixth pressure value, acquiring a previous point location of the termination point location, determining a sixth circle with the previous point location as the circle center based on the sixth pressure value of the touch control piece at the previous point location, determining a fifth external tangent and a sixth external tangent of the fifth circle and the sixth circle, and determining a fourth area to be filled based on the sixth circle, the fifth external tangent and the sixth external tangent; and filling the fourth area to be filled so as to display the movement track of the touch control piece on the target equipment.

In an exemplary embodiment, the apparatus may determine the third area to be filled based on the third circle, the third outer tangent and the fourth outer tangent by one of: determining a first tangent point of a third external tangent line and the third circle, determining a second tangent point of a fourth external tangent line and the third circle, and determining an area surrounded by a straight line where the first tangent point and the second tangent point are located and a first arc included in the third circle as the third area to be filled, wherein the first arc is an arc far away from the third external tangent line and the fourth external tangent line; determining a seventh circle with the starting point position as a circle center, determining a first intersection point of an extension line of a line segment formed by the starting point position and the next point position and the seventh circle, and determining a region surrounded by the first intersection point, the first tangent point and the second tangent point as the third region to be filled, wherein the radius of the seventh circle is a target multiple of the radius of the third circle, and the target multiple is a positive number smaller than 1.

In an exemplary embodiment, the apparatus may determine the fourth area to be filled based on the sixth circle, the fifth outer tangent and the sixth outer tangent by one of: determining a third tangent point of a fifth external tangent line and the sixth circle, determining a fourth tangent point of the sixth external tangent line and the sixth circle, and determining an area surrounded by a straight line where the third tangent point and the fourth tangent point are located and a second arc included in the sixth circle as the fourth area to be filled, wherein the second arc is an arc away from the fifth external tangent line and the sixth external tangent line; determining an eighth circle taking the termination point as a circle center, determining a second intersection point of an extension line of a line segment formed by the termination point and the previous point and the eighth circle, and determining a region surrounded by the second intersection point, the third tangent point and the fourth tangent point as a fourth region to be filled, wherein the radius of the eighth circle is a target multiple of the radius of the fourth circle, and the target multiple is a positive number smaller than 1.

It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.

Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method as set forth in any of the above.

In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.

Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.

In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.

For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.

It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.

The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

25页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:动画播放方法、装置、电子设备以及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!