A method, device, equipment and storage medium for determining a region
By generating an initial closed area on a large-size touch screen and utilizing inertial sliding technology, the difficulty in selecting the top area is solved, and the required area is efficiently determined, avoiding frequent movements.
Patent Information
- Application Number
- CN202111128255.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-26
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2041-09-26
AI Technical Summary
Selecting the top area is difficult on the large touch screen and requires the operator to move frequently to locate the desired area.
An initial closed area is generated by acquiring a first gesture instruction, and a second gesture instruction is used to control the mobile control point to perform directional sliding and inertial sliding to generate a closed area to be selected.
It solves the problem of difficulty in selecting the top area on a large-size touch screen, avoids the operator's frequent movement during the area determination process, and achieves efficient determination of the required area.
Smart Images

Figure CN113703658B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a region determination method, apparatus, device, and storage medium. Background Art
[0002] With the continuous development of information technology, large-screen touch devices have become indispensable tools in various fields. The required area can be determined on the touch screen to perform operations including multiple selection of objects and screenshots.
[0003] Especially in the field of multiple image selection, there are three common methods for simultaneously selecting multiple graphics in a scene in various graphics processing software or modules: one is to drag and drop, with the starting point and end point of the drag serving as the two diagonal vertices of a rectangular selection, to select the graphics inside or intersecting the rectangular selection; the second is to put all the graphics in the scene into a list in the form of buttons, and click different buttons in the list multiple times to select the graphics corresponding to these buttons; the third is to use keyboard shortcuts + mouse or touch to click on multiple graphics. The above three methods have their own characteristics and advantages and are widely used in traditional desktop system software. However, with the emergence of large-screen touch devices, the above three methods have certain limitations. The main manifestations are that when operating a large-screen touch device at close range, the high position of the top of the screen makes it difficult to select the top graphic, and the large screen size requires the operator to move frequently to reach the specified selection area.
[0004] Therefore, how to provide a convenient and efficient region determination method is a technical problem that needs to be solved urgently by those skilled in the art. Summary of the Invention
[0005] In view of this, the present invention aims to provide a region determination method, apparatus, device, and storage medium that solves the problem of difficulty in selecting the top region on large-scale touch screens while also avoiding the operator from having to move frequently during the region determination process, thereby efficiently determining the desired region. The specific solution is as follows:
[0006] A first aspect of the present application provides a method for determining an area, comprising:
[0007] Obtaining a first gesture instruction, and triggering generation of an initial closed area according to the first gesture instruction; wherein each vertex position of the initial closed area is provided with a movement control point;
[0008] Obtaining a second gesture instruction, and controlling the corresponding mobile control point to perform a directional slide according to the second gesture instruction;
[0009] The inertial sliding data of the mobile control point is determined based on the second gesture instruction, and the mobile control point is controlled to perform inertial sliding according to the inertial sliding data to obtain a candidate closed area corresponding to the initial closed area.
[0010] Optionally, the shape outline of the initial closed area is a rectangle, the mobile control points are set at the four vertex positions of the initial closed area, and the shape outline of the selected closed area is a rectangle corresponding to the shape outline of the closed area.
[0011] Optionally, determining the inertial sliding data of the mobile control point based on the second gesture instruction includes:
[0012] Determining directional sliding data of the mobile control point corresponding to the second gesture instruction;
[0013] Calculate the inertial sliding data of the mobile control point using the inertial sliding algorithm according to the directional sliding data;
[0014] The inertial sliding data includes a speed change curve, and the mobile control point performs inertial sliding based on the control of the speed change curve.
[0015] Optionally, after determining the directional sliding data of the mobile control point corresponding to the second gesture instruction, the method further includes:
[0016] It is determined whether the mobile control point is inertial sliding according to the directional sliding data. If yes, a step of calculating the inertial sliding data of the mobile control point by using an inertial sliding algorithm according to the directional sliding data is executed.
[0017] Optionally, controlling the mobile control point to perform inertial sliding according to the inertial sliding data to obtain a candidate closed area corresponding to the initial closed area includes:
[0018] The mobile control point is controlled to perform inertial sliding according to the inertial sliding data. When the third gesture instruction is obtained, the mobile control point is controlled to stop inertial sliding according to the third gesture instruction and the stop position of the mobile control point is determined to obtain a selected closed area corresponding to the initial closed area.
[0019] Optionally, after obtaining the candidate closed area corresponding to the initial closed area, the method further includes:
[0020] Obtaining a fourth gesture instruction, and determining the to-be-selected closed area as a target closed area according to the fourth gesture instruction;
[0021] All graphic objects located in the target closed area are extracted from the target closed area.
[0022] Optionally, after obtaining the candidate closed area corresponding to the initial closed area, the method further includes:
[0023] A fifth gesture instruction is obtained, and a hiding operation is performed on the selected closed area according to the fifth gesture instruction.
[0024] A second aspect of the present application provides a region determination device, including:
[0025] A trigger module, configured to obtain a first gesture instruction and trigger the generation of an initial closed area according to the first gesture instruction; wherein each vertex position of the initial closed area is provided with a movement control point;
[0026] A directional sliding module is used to obtain a second gesture instruction and control the corresponding mobile control point to perform directional sliding according to the second gesture instruction;
[0027] The inertial sliding module is used to determine inertial sliding data of the mobile control point based on the second gesture instruction, and control the mobile control point to perform inertial sliding according to the inertial sliding data to obtain a candidate closed area corresponding to the initial closed area.
[0028] A third aspect of the present application provides an electronic device, which includes a processor and a memory; wherein the memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the aforementioned area determination method.
[0029] A fourth aspect of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are loaded and executed by a processor, the aforementioned area determination method is implemented.
[0030] In this application, a first gesture instruction is first obtained, and an initial closed area is generated according to the first gesture instruction; wherein, each vertex position of the initial closed area is provided with a mobile control point; then a second gesture instruction is obtained, and the corresponding mobile control point is controlled to perform a directional sliding according to the second gesture instruction; finally, the inertial sliding data of the mobile control point is determined based on the second gesture instruction, and the mobile control point is controlled to perform an inertial sliding according to the inertial sliding data to obtain a candidate closed area corresponding to the initial closed area. It can be seen that this application generates an initial closed area by triggering the first gesture instruction, and then controls the mobile control point on the initial closed area to perform an inertial sliding through the second gesture instruction, thereby solving the problem of difficulty in selecting the top area on a large-size touch screen, and also avoiding frequent movement of the operator during the area determination process, so as to efficiently determine the required area. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0032] Figure 1 A flow chart of a region determination method provided for this application;
[0033] Figure 2 A flow chart of a specific region determination method provided for this application;
[0034] Figure 3 A schematic diagram of the inertial sliding results of a moving control point in an initial closed area with a rectangular outline provided in this application;
[0035] Figure 4 A schematic diagram of a region determination device module provided in this application;
[0036] Figure 5 A schematic diagram of an area determination electronic device module provided in this application. DETAILED DESCRIPTION
[0037] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0038] With the emergence of large-screen touch devices, when operating large-screen devices at close range, the high position of the top of the screen makes it difficult to select the top area, and the large screen size requires the operator to frequently move the position to reach the designated selection area. In response to the above technical defects, the present application provides an area determination solution, which triggers the generation of an initial closed area through a first gesture instruction, and then controls the mobile control point on the initial closed area to perform inertial sliding through a second gesture instruction, thereby solving the problem of difficulty in selecting the top area on large-size touch screens. At the same time, it also avoids the operator from frequently moving during the area determination process, so as to efficiently determine the required area.
[0039] Figure 1 This is a flow chart of a region determination method provided in an embodiment of the present application. Figure 1 As shown, the area determination method includes:
[0040] S11: Acquire a first gesture instruction, and trigger generation of an initial closed area according to the first gesture instruction; wherein each vertex position of the initial closed area is provided with a movement control point.
[0041] In this embodiment, a first gesture instruction is obtained and triggered to generate an initial closed area based on the first gesture instruction; wherein, each vertex position of the initial closed area is set with a movement control point. For large touch screens, the first gesture instruction is also the "start selection" touch gesture, which triggers the generation of the initial closed area. The initial closed area can be used for multiple selection of graphic objects. The initial closed area is a closed polygonal area, and movement control points are set at each vertex position of the polygon. When the first gesture instruction is obtained, the movement control points are displayed at each vertex of the closed polygonal area.
[0042] S12: Acquire a second gesture instruction, and control the corresponding mobile control point to perform a directional slide according to the second gesture instruction.
[0043] In this embodiment, a second gesture instruction is obtained, and the corresponding mobile control point is controlled to perform a directional sliding according to the second gesture instruction. The second gesture instruction can be understood as a gesture instruction for moving the mobile control point, including the mobile control point to be moved, the movement direction, and the movement speed. In other words, the second gesture instruction is the path and speed of the operator's touch on the touch screen, and the directional sliding path and speed of the mobile control point are consistent with the second gesture instruction.
[0044] For larger touch screens, due to the limited touch screen area, it is more difficult to select the area at the top of the screen, which results in limitations in the directional sliding of the mobile control point. Therefore, the mobile control point needs to have the function of inertial sliding, which can further perform inertial sliding according to the directional sliding situation after the directional sliding. After the mobile control point of the selected area is determined to have the inertial sliding function, the operator can drag the mobile control point to a higher or farther position on the touch screen, and can use gestures to accurately control the sliding stop position of the mobile control point and fine-tune the position of the entire selection area, so that the user only needs to touch a smaller area of the touch screen to complete multiple selections of areas at any position on the touch screen.
[0045] S13: Determine inertial sliding data of the mobile control point based on the second gesture instruction, and control the mobile control point to perform inertial sliding according to the inertial sliding data to obtain a candidate closed area corresponding to the initial closed area.
[0046] In this embodiment, the inertial sliding data of the mobile control point is first determined based on the second gesture instruction. Then, the mobile control point is controlled to slide inertially according to the inertially sliding data to obtain a candidate closed area corresponding to the initial closed area. Furthermore, when the third gesture instruction is obtained while the mobile control point is controlled to slide inertially according to the inertially sliding data, the mobile control point is controlled to stop inertially sliding according to the third gesture instruction and the stop position of the mobile control point is determined to obtain a candidate closed area corresponding to the initial closed area. The third gesture instruction is also known as the "stop control point sliding" touch gesture, which is used to stop all mobile control points that are inertially sliding.
[0047] In this embodiment, after obtaining a candidate closed area corresponding to the initial closed area, it is necessary to determine whether the candidate closed area meets the target requirements. If so, the area is confirmed to terminate the selection operation. Specifically, a fourth gesture instruction is obtained, and the candidate closed area is determined as the target closed area based on the fourth gesture instruction. The fourth gesture instruction, also known as the "Confirm Selection" touch gesture, is used to confirm the current selected area as the final selected area. It is not difficult to understand that for the operation of selecting multiple graphical objects based on the selection area, all graphical objects within the target closed area can be further extracted from the target closed area. If the requirements are not met, the candidate closed area is hidden to abandon the selection, thus terminating the selection operation. Specifically, a fifth gesture instruction is obtained, and the candidate closed area is hidden based on the fifth gesture instruction. The fifth gesture instruction, also known as the "Abandon Selection" touch gesture, is used to hide the current selected area. In summary, the touch gestures used in the above-mentioned area determination process mainly include six basic gestures: "Start Selection," "Move Control Point," "Move Selection Area," "Stop Sliding Control Point," "Confirm Selection," and "Abandon Selection." The commands representing the above touch gestures can be defined as: moving a control point with one or more fingers, moving a selection area with one or more fingers, continuously tapping with multiple fingers to start or cancel a selection, and stopping a control point slide with multiple fingers. It should be noted that the above definitions can be customized based on actual business needs and are not limited in this embodiment of the application.
[0048] It can be seen that the embodiment of the present application first obtains a first gesture instruction, and triggers the generation of an initial closed area according to the first gesture instruction; wherein, each vertex position of the initial closed area is set with a mobile control point; then obtains a second gesture instruction, and controls the corresponding mobile control point to perform a directional sliding according to the second gesture instruction; finally, based on the second gesture instruction, determines the inertial sliding data of the mobile control point, and controls the mobile control point to perform inertial sliding according to the inertial sliding data, so as to obtain a candidate closed area corresponding to the initial closed area. The embodiment of the present application generates an initial closed area by triggering the first gesture instruction, and then controls the mobile control point on the initial closed area to perform inertial sliding by the second gesture instruction, thereby solving the problem of difficulty in selecting the top area on a large-size touch screen, while also avoiding the operator from frequently moving during the area determination process, so as to efficiently determine the required area.
[0049] Figure 2 This is a flow chart of a specific area determination method provided in the embodiment of this application. Figure 2 As shown, the area determination method includes:
[0050] S21: Acquire a first gesture instruction, and trigger generation of an initial closed area with a rectangular outline according to the first gesture instruction; wherein the movement control points are set at the four vertex positions of the initial closed area.
[0051] S22: Acquire a second gesture instruction, and control the corresponding mobile control point to perform a directional slide according to the second gesture instruction.
[0052] In this embodiment, the first gesture instruction is first obtained, and then the generation of an initial closed area with a rectangular shape outline is triggered according to the first gesture instruction; wherein, the mobile control point is set at the four vertex positions of the initial closed area. It is not difficult to understand that the four vertex positions of the initial closed area with a rectangular shape outline are respectively provided with a mobile control point. After the first gesture instruction is obtained, a small rectangular selection area is given at the position where the gesture is triggered and the mobile control point is displayed at the four vertices of the rectangle. Then the second gesture instruction is obtained, and the corresponding mobile control point is controlled to slide in a direction according to the second gesture instruction, that is, the mobile control point on the fixed point of the rectangular initial closed area is controlled to move in a direction. In this embodiment, for the specific process of the above-mentioned steps S21 and S22, please refer to the corresponding content disclosed in the aforementioned embodiment, and no further details will be given here.
[0053] S23: Determine directional sliding data of the mobile control point corresponding to the second gesture instruction, and calculate inertial sliding data of the mobile control point using an inertial sliding algorithm according to the directional sliding data; wherein the inertial sliding data includes a speed change curve.
[0054] S24: Determine whether the mobile control point performs inertial sliding according to the directional sliding data. If so, control the mobile control point to perform inertial sliding according to the speed change curve to obtain a candidate closed area with a rectangular shape outline corresponding to the initial closed area.
[0055] In this embodiment, during the directional sliding of the mobile control point, directional sliding data of the mobile control point corresponding to the second gesture instruction is determined, and inertial sliding data of the mobile control point is calculated using an inertial sliding algorithm based on the directional sliding data; wherein the inertial sliding data includes a velocity change curve. Specifically, during the operator's touch movement of the mobile control point, the algorithm continuously collects the velocity of the mobile control point in the X and Y directions and updates the velocity of the control point in the X and Y directions using a weighted method (the last recorded velocity and the most recently collected velocity are multiplied by their respective weights and summed). After the touch movement of the mobile control point ends, i.e., the directional sliding ends, the directional sliding data is further used to determine whether the mobile control point has performed inertial sliding. If so, the mobile control point is controlled to perform inertial sliding based on the velocity change curve to obtain a candidate closed area with a rectangular shape corresponding to the initial closed area. Specifically, whether the mobile touch point has performed inertial sliding and the velocity change curve used for inertial sliding are determined based on the duration of the touch movement and the most recent velocity. If the mobile control point touches the edge of the touch screen during inertial sliding, it is adsorbed to the edge of the touch screen.
[0056] Figure 3 It is shown that when the mobile control point TR at the upper right corner of the initial closed area with a rectangular shape outline is moved to a new position along the dotted arrow, the final closed area with a rectangular shape outline is obtained. It should be noted that for the rectangular selection area, when the mobile control point of one vertex moves, the mobile control points of other vertices change position as the position of the moved vertex changes, that is, the closed area is always kept as a rectangle. However, for the polygonal area based on the larger mobile control point in the aforementioned embodiment, when the mobile control point of one vertex moves, the mobile control points of other vertices will not change position as the position of the moved vertex changes. In addition, in order to improve compatibility, the gestures of "adding a vertex" and "deleting a vertex" can also be added in the embodiment of the present application.
[0057] It can be seen that the embodiment of the present application uses a rectangular selection box as the form of the selection area, the selection area supports touch dragging, and mobile control points that support touch movement are added to the four vertices of the rectangular selection area. The range of the rectangular selection box can be changed by moving the control points. The mobile control points can slide inertially at the end of the touch movement, which solves the problem of difficult touch selection at a higher position on a large-size touch screen, and can also alleviate the problem of frequent movement required by the operator when selecting a larger range, further facilitating users to quickly perform graphic multiple selection operations on a large-size touch screen.
[0058] See also Figure 4 As shown, the embodiment of the present application also discloses a region determination device, including:
[0059] The trigger module 11 is used to obtain a first gesture instruction and trigger the generation of an initial closed area according to the first gesture instruction; wherein each vertex position of the initial closed area is provided with a movement control point;
[0060] The directional sliding module 12 is used to obtain a second gesture instruction and control the corresponding mobile control point to perform directional sliding according to the second gesture instruction;
[0061] The inertial sliding module 13 is configured to determine inertial sliding data of the mobile control point based on the second gesture instruction, and control the mobile control point to perform inertial sliding according to the inertial sliding data, so as to obtain a candidate closed area corresponding to the initial closed area.
[0062] It can be seen that the embodiment of the present application first obtains a first gesture instruction, and triggers the generation of an initial closed area according to the first gesture instruction; wherein, each vertex position of the initial closed area is set with a mobile control point; then obtains a second gesture instruction, and controls the corresponding mobile control point to perform a directional sliding according to the second gesture instruction; finally, based on the second gesture instruction, determines the inertial sliding data of the mobile control point, and controls the mobile control point to perform inertial sliding according to the inertial sliding data, so as to obtain a candidate closed area corresponding to the initial closed area. The embodiment of the present application generates an initial closed area by triggering the first gesture instruction, and then controls the mobile control point on the initial closed area to perform inertial sliding by the second gesture instruction, thereby solving the problem of difficulty in selecting the top area on a large-size touch screen, while also avoiding the operator from frequently moving during the area determination process, so as to efficiently determine the required area.
[0063] In some specific embodiments, the trigger module 11 is specifically used to obtain a first gesture instruction and trigger the generation of an initial closed area with a rectangular shape outline according to the first gesture instruction; wherein the movement control points are set at the four vertex positions of the initial closed area.
[0064] In some specific embodiments, the inertial sliding module 13 specifically includes:
[0065] A determining unit, configured to determine directional sliding data of a mobile control point corresponding to a second gesture instruction;
[0066] A calculation unit, configured to calculate inertial sliding data of the mobile control point using an inertial sliding algorithm according to the directional sliding data; wherein the inertial sliding data includes a speed change curve, and the mobile control point performs inertial sliding based on the control of the speed change curve;
[0067] a judging unit, configured to judge whether the mobile control point is inertial sliding according to the directional sliding data, and if so, to execute the step of calculating inertial sliding data of the mobile control point using an inertial sliding algorithm according to the directional sliding data;
[0068] The control unit is used to control the mobile control point to perform inertial sliding according to the speed change curve. When a third gesture instruction is obtained, the mobile control point is controlled to stop inertial sliding according to the third gesture instruction and the stop position of the mobile control point is determined to obtain a selected closed area corresponding to the initial closed area.
[0069] In some specific embodiments, the region determining device further includes:
[0070] a confirmation module, configured to obtain a fourth gesture instruction, determine the to-be-selected closed area as a target closed area according to the fourth gesture instruction, and extract all graphic objects located in the target closed area from the target closed area;
[0071] The hiding module is used to obtain the fifth gesture instruction and perform a hiding operation on the selected closed area according to the fifth gesture instruction.
[0072] Furthermore, an embodiment of the present application also provides an electronic device. Figure 5 This is a schematic diagram of a module of an electronic device 20 according to an exemplary embodiment. The content in the diagram should not be considered as any limitation to the scope of use of the present application.
[0073] Figure 5 This is a block diagram of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps of the area determination method disclosed in any of the aforementioned embodiments.
[0074] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device. The communication protocol it follows is any communication protocol that can be applied to the technical solution of this application and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world. Its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0075] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or CD, etc. The resources stored thereon may include an operating system 221, a computer program 222 and data 223, etc. The storage method can be temporary storage or permanent storage.
[0076] The operating system 221 is used to manage and control the hardware devices and computer program 222 on the electronic device 20, enabling the processor 21 to operate and process the massive amount of data 223 in the memory 22. The operating system 221 can be Windows Server, NetWare, Unix, Linux, etc. In addition to including computer programs capable of implementing the area determination method disclosed in any of the aforementioned embodiments and executed by the electronic device 20, the computer program 222 can further include computer programs capable of performing other specific tasks. Data 223 can include instruction data collected by the electronic device 20.
[0077] Furthermore, an embodiment of the present application also discloses a storage medium, in which a computer program is stored. When the computer program is loaded and executed by a processor, the steps of the area determination method disclosed in any of the aforementioned embodiments are implemented.
[0078] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from the other embodiments. Reference can be made to the descriptions of the identical or similar parts between the various embodiments. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and the relevant parts can be referred to the descriptions of the methods.
[0079] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.
[0080] The above is a detailed introduction to the area determination method, device, equipment and storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core ideas. At the same time, for those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for determining an area, characterized in that: include: Obtaining a first gesture instruction, and triggering generation of an initial closed area according to the first gesture instruction; wherein each vertex position of the initial closed area is provided with a movement control point; Obtaining a second gesture instruction, and controlling the corresponding mobile control point to perform a directional slide according to the second gesture instruction; determining inertial sliding data of the mobile control point based on the second gesture instruction, and controlling the mobile control point to perform inertial sliding according to the inertial sliding data, so as to obtain a candidate closed area corresponding to the initial closed area; The determining of the inertial sliding data of the mobile control point based on the second gesture instruction includes: Determining directional sliding data of the mobile control point corresponding to the second gesture instruction; Calculating the inertial sliding data of the mobile control point using an inertial sliding algorithm according to the directional sliding data; The inertial sliding data includes a speed change curve, and the movement control point performs inertial sliding based on the control of the speed change curve.
2. The area determination method according to claim 1, characterized in that: The shape outline of the initial closed area is a rectangle, the movement control points are set at the four vertex positions of the initial closed area, and the shape outline of the selected closed area is a rectangle corresponding to the shape outline of the closed area.
3. The area determination method according to claim 2, characterized in that: After determining the directional sliding data of the mobile control point corresponding to the second gesture instruction, the method further includes: It is determined whether the mobile control point is inertial sliding according to the directional sliding data. If yes, a step of calculating inertial sliding data of the mobile control point by using an inertial sliding algorithm according to the directional sliding data is performed.
4. The area determination method according to any one of claims 1 to 3, characterized in that: The controlling the mobile control point to perform inertial sliding according to the inertial sliding data to obtain a candidate closed area corresponding to the initial closed area includes: The mobile control point is controlled to perform inertial sliding according to the inertial sliding data. When a third gesture instruction is obtained, the mobile control point is controlled to stop inertial sliding according to the third gesture instruction and the stop position of the mobile control point is determined to obtain a selected closed area corresponding to the initial closed area.
5. The area determination method according to claim 4, characterized in that: After obtaining the candidate closed area corresponding to the initial closed area, the method further includes: Obtaining a fourth gesture instruction, and determining the to-be-selected enclosed area as a target enclosed area according to the fourth gesture instruction; All graphic objects located in the target closed area are extracted from the target closed area.
6. The area determination method according to claim 4, characterized in that: After obtaining the candidate closed area corresponding to the initial closed area, the method further includes: A fifth gesture instruction is obtained, and a hiding operation is performed on the selected closed area according to the fifth gesture instruction.
7. A region determination device, characterized in that: include: A trigger module, configured to obtain a first gesture instruction and trigger generation of an initial closed area according to the first gesture instruction; wherein each vertex position of the initial closed area is provided with a movement control point; a directional sliding module, configured to obtain a second gesture instruction and control the corresponding mobile control point to perform directional sliding according to the second gesture instruction; an inertial sliding module, configured to determine inertial sliding data of the mobile control point based on the second gesture instruction, and control the mobile control point to perform inertial sliding according to the inertial sliding data, so as to obtain a candidate closed area corresponding to the initial closed area; The inertial sliding module specifically includes: a determining unit, configured to determine directional sliding data of the mobile control point corresponding to the second gesture instruction; A calculation unit is used to calculate the inertial sliding data of the mobile control point using an inertial sliding algorithm according to the directional sliding data; wherein the inertial sliding data includes a speed change curve, and the mobile control point performs inertial sliding based on the control of the speed change curve.
8. An electronic device, characterized in that: The electronic device includes a processor and a memory; wherein the memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the area determination method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that Used to store computer-executable instructions, which, when loaded and executed by a processor, implement the area determination method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Interface operation method, terminal and computer readable storage medium
CN107608719A
Method and device for determining frame selection area and electronic equipment
CN111951348A