CN113703658A - Region determination method, device, equipment and storage medium - Google Patents

Region determination method, device, equipment and storage medium Download PDF

Info

Publication number
CN113703658A
CN113703658A CN202111128255.2A CN202111128255A CN113703658A CN 113703658 A CN113703658 A CN 113703658A CN 202111128255 A CN202111128255 A CN 202111128255A CN 113703658 A CN113703658 A CN 113703658A
Authority
CN
China
Prior art keywords
control point
mobile control
gesture instruction
closed area
inertial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111128255.2A
Other languages
Chinese (zh)
Inventor
李政军
陈娅芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan New Cloudnet Technology Co ltd
Original Assignee
Hunan New Cloudnet Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan New Cloudnet Technology Co ltd filed Critical Hunan New Cloudnet Technology Co ltd
Priority to CN202111128255.2A priority Critical patent/CN113703658A/en
Publication of CN113703658A publication Critical patent/CN113703658A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements

Landscapes

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

Abstract

The application discloses a region determination method, a device, equipment and a storage medium, comprising the following steps: acquiring a first gesture instruction, and triggering and generating an initial closed area according to the first gesture instruction; wherein, each vertex position of the initial closed area is provided with a mobile control point; acquiring a second gesture instruction, and controlling a corresponding mobile control point to perform directional sliding according to the second gesture instruction; and 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 to obtain a to-be-selected closed area corresponding to the initial closed area. According to the method and the device, the initial closed region is generated through triggering of the first gesture instruction, and then the mobile control point on the initial closed region is controlled through the second gesture instruction to perform inertial sliding, so that the problem that the top region is difficult to select on a large-size touch screen is solved, and meanwhile, frequent movement of an operator in the region determining process is avoided, and the required region is determined efficiently.

Description

Region determination method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for determining a region.
Background
With the continuous development of information technology, large-screen touch devices become indispensable tools in various fields, and a required area can be determined on a touch screen to perform operations including multi-selection objects, screenshot and the like.
Particularly in the field of image multi-selection, in various current graphics processing software or modules, for the simultaneous selection of multiple graphics in a scene, the following three common methods are mainly used: firstly, by means of dragging, a starting point and an end point of dragging are respectively used as two opposite angle vertexes of a rectangular selected area, and a graph which is inside the rectangular selected area or has intersection with the rectangular selected area is selected; secondly, putting all the graphs in the scene into a list in a button form, and clicking different buttons in the list for multiple times to select the graphs corresponding to the buttons; and thirdly, clicking a plurality of graphs through a keyboard shortcut key and a mouse or touch. The three methods have respective characteristics and advantages, are widely used in traditional desktop system software, but have certain limitations with the appearance of large-screen touch equipment, and are mainly characterized in that when the large-screen touch equipment is operated at a short distance, the graph at the top of the screen is difficult to select due to high position of the top of the screen, and the position of the operator needs to be frequently moved to reach a designated selection area due to large size of the screen.
Therefore, how to provide a convenient and efficient area determination method is a technical problem that needs to be solved urgently by those skilled in the art.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method, an apparatus, a device and a storage medium for determining an area, which solve the problem that it is difficult to select a top area on a large-sized touch screen, and avoid frequent movement of an operator during area determination, so as to determine a required area efficiently. The specific scheme is as follows:
a first aspect of the present application provides a region determination method, including:
acquiring a first gesture instruction, and triggering and generating an initial closed area according to the first gesture instruction; wherein, each vertex position of the initial closed area is provided with a mobile control point;
acquiring a second gesture instruction, and controlling a corresponding mobile control point to perform directional sliding according to the second gesture instruction;
and 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 to obtain a to-be-selected closed area corresponding to the initial closed area.
Optionally, the shape contour of the initial closed region is a rectangle, the mobile control points are disposed at four vertex positions of the initial closed region, and the shape contour of the closed region to be selected is a rectangle corresponding to the shape contour of the closed region.
Optionally, determining inertial sliding data of the mobile control point based on the second gesture command includes:
determining directional sliding data of the mobile control point corresponding to the second gesture command;
calculating inertial sliding data of the mobile control point by using an inertial sliding algorithm according to the directional sliding data;
the inertial sliding data comprises a speed change curve, and the moving control point carries out inertial sliding based on the control of the speed change curve.
Optionally, after determining the directional sliding data of the mobile control point corresponding to the second gesture instruction, the method further includes:
and judging whether the mobile control point carries out inertial sliding according to the directional sliding data, and if so, executing the step of calculating the inertial sliding data of the mobile control point by using an inertial sliding algorithm according to the directional sliding data.
Optionally, controlling the mobile control point to perform inertial sliding according to the inertial sliding data to obtain a to-be-selected closed region corresponding to the initial closed region, including:
and controlling the mobile control point to perform inertial sliding according to the inertial sliding data, and when a third gesture instruction is obtained, controlling the mobile control point to stop the inertial sliding according to the third gesture instruction and determining the stop position of the mobile control point so as to obtain a closed area to be selected corresponding to the initial closed area.
Optionally, after obtaining the closed region to be selected corresponding to the initial closed region, the method further includes:
acquiring a fourth gesture instruction, and determining a closed region to be selected as a target closed region according to the fourth gesture instruction;
and extracting all the graphic objects in the target closed region from the target closed region.
Optionally, after obtaining the closed region to be selected corresponding to the initial closed region, the method further includes:
and acquiring a fifth gesture instruction, and hiding the closed region to be selected according to the fifth gesture instruction.
A second aspect of the present application provides an area determination apparatus, including:
the triggering module is used for acquiring a first gesture instruction and triggering and generating an initial closed area according to the first gesture instruction; wherein, each vertex position of the initial closed area is provided with a mobile control point;
the directional sliding module is used for acquiring a second gesture instruction and controlling the corresponding mobile control point to perform directional sliding according to the second gesture instruction;
and the inertial sliding module is used for 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 to-be-selected closed area corresponding to the initial closed area.
A third aspect of the application provides an electronic device comprising a processor and a memory; wherein the memory is used for storing a computer program which is loaded and executed by the processor to implement the aforementioned region determination method.
A fourth aspect of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are loaded and executed by a processor, the foregoing region determining method is implemented.
In the application, a first gesture instruction is obtained first, and an initial closed area is generated by triggering 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 directional sliding according to the second gesture instruction; and finally, 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 to obtain a to-be-selected closed area corresponding to the initial closed area. Therefore, the initial closed region is generated through triggering of the first gesture instruction, and then the moving control point on the initial closed region is controlled through the second gesture instruction to perform inertial sliding, so that the problem that the top region is difficult to select on a large-size touch screen is solved, and meanwhile, frequent movement of an operator in the region determining process is avoided, and the required region is determined efficiently.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a region determination method provided in the present application;
fig. 2 is a flowchart of a specific area determination method provided in the present application;
FIG. 3 is a schematic diagram illustrating the result of inertial sliding of a moving control point of an initially closed area with a rectangular outline according to the present application;
fig. 4 is a schematic diagram of a module of an area determination apparatus provided in the present application;
fig. 5 is a schematic diagram of an area determination electronic device module according to the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
With the advent of large-screen touch devices, when a large-screen device is touched by a short-distance operation, the difficulty in selecting a top area is high due to a high position of the top of the screen, and the position needs to be frequently moved by an operator to reach a designated selection area due to a large screen size. In order to overcome the technical defects, the application provides a region determination scheme, an initial closed region is generated through triggering of a first gesture instruction, and then a mobile control point on the initial closed region is controlled through a second gesture instruction to perform inertial sliding, so that the problem that a top region is difficult to select on a large-size touch screen is solved, and meanwhile, an operator is prevented from frequently moving in a region determination process, so that a required region is determined efficiently.
Fig. 1 is a flowchart of a region determination method according to an embodiment of the present disclosure. Referring to fig. 1, the region determining method includes:
s11: acquiring a first gesture instruction, and triggering and generating an initial closed area according to the first gesture instruction; and each vertex position of the initial closed area is provided with a mobile control point.
In the embodiment, a first gesture instruction is obtained, and an initial closed area is generated by triggering according to the first gesture instruction; and each vertex position of the initial closed area is provided with a mobile control point. For a large touch screen, a first gesture instruction is also a "start selection" touch gesture, and the touch gesture triggers generation of an initial closed area, and the initial closed area can be used for multi-selection of a graphic object. The initial closed area is a closed polygon area, a mobile control point is arranged at each vertex position of the polygon, and when the first gesture command is obtained, the mobile control point is displayed at each vertex of the closed polygon area.
S12: and acquiring a second gesture instruction, and controlling the corresponding mobile control point to perform directional sliding according to the second gesture instruction.
In this embodiment, the second gesture instruction is obtained, and the corresponding mobile control point is controlled to perform directional sliding according to the second gesture instruction. The second gesture command can be understood as a gesture command for moving the movement control point, including the movement control point to be moved, the movement direction, the movement speed, and the like. That is, the second gesture command is a path, a speed, and the like of the operator touching the touch panel, and the directional slide path and the speed of the movement control point are consistent with the second gesture command.
For a touch screen with a larger size, because the area of the touch screen is limited, the selection of the area at the top of the screen is difficult, and the directional sliding of the mobile control point is limited, the mobile control point is required to have the function of inertial sliding, the inertial sliding can be further performed according to the directional sliding condition after the directional sliding, after the mobile control point of the selection area is determined to be added with the function of inertial sliding, an operator can slide the mobile control point to a higher position or a farther position of the touch screen in a mode of dragging the mobile control point, and can accurately control the sliding stop position of the mobile control point and finely adjust the position of the whole selection area through gestures, so that the user can complete the multi-selection of the area of any position on the touch screen only by performing touch operation in a certain smaller area of the touch screen.
S13: and 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 to obtain a to-be-selected closed area corresponding to the initial closed area.
In this embodiment, inertial sliding data of the mobile control point is determined based on the second gesture instruction, and then the mobile control point is controlled to perform inertial sliding according to the inertial sliding data, so as to obtain a to-be-selected closed region corresponding to the initial closed region. Further, when the mobile control point is controlled to perform inertial sliding according to the inertial sliding data, and when a third gesture instruction is obtained, the mobile control point is controlled to stop the inertial sliding according to the third gesture instruction and the stop position of the mobile control point is determined, so that a to-be-selected closed area corresponding to the initial closed area is obtained. The third gesture command is also called a 'stop control point sliding' touch gesture, and is used for stopping all the moving control points which are in inertial sliding.
In this embodiment, after the to-be-selected closed region corresponding to the initial closed region is obtained, it is necessary to determine whether the to-be-selected closed region meets the target requirement, and if so, the region is confirmed to end the selection operation. Specifically, a fourth gesture instruction is obtained, and the closed region to be selected is determined as the target closed region according to the fourth gesture instruction, wherein the fourth gesture instruction is also a "select confirmation" touch gesture used for confirming that the current selection region is used as a final selection region. It is understood that, for the operation of selecting more graphic objects according to the selection area, all the graphic objects located in the target closed area may be further extracted from the target closed area. If not, hiding the closed region to be selected to represent that the selection is abandoned, and finishing the selection operation. Specifically, a fifth gesture instruction is obtained, and a hiding operation is performed on the closed region to be selected according to the fifth gesture instruction, wherein the fifth gesture instruction is also called a "forgoing selection" touch gesture and is used for hiding the current selection region. In summary, the touch gesture in the area determination process mainly includes: six basic gestures of "start selection", "move control point", "move selection area", "stop control point sliding", "confirm selection area", and "abandon selection area". The instruction representing the touch gesture may be defined as: single or multi-finger movement control points, single or multi-finger movement selection areas, multi-finger continuous tapping start selection or deselection, multi-finger touch stop control point sliding. It should be noted that the above definition mode may be customized according to actual service requirements, and this is not limited in the embodiment of the present application.
Therefore, the first gesture instruction is obtained firstly, and the initial closed area is generated by triggering 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 directional sliding according to the second gesture instruction; and finally, 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 to obtain a to-be-selected closed area corresponding to the initial closed area. According to the method and the device for determining the area of the touch screen, the initial closed area is generated through triggering of the first gesture instruction, and then the moving control point on the initial closed area is controlled through the second gesture instruction to perform inertial sliding, so that the problem that the top area is difficult to select on the large-size touch screen is solved, and meanwhile, frequent movement of an operator in the area determining process is avoided, and the required area is determined efficiently.
Fig. 2 is a flowchart of a specific area determination method according to an embodiment of the present application. Referring to fig. 2, the region determining method includes:
s21: acquiring a first gesture instruction, and triggering and generating an initial closed area with a rectangular shape outline according to the first gesture instruction; the mobile control points are arranged at four vertex positions of the initial closed area.
S22: and acquiring a second gesture instruction, and controlling the corresponding mobile control point to perform directional sliding according to the second gesture instruction.
In the embodiment, a first gesture instruction is obtained firstly, and then an initial closed area with a rectangular shape outline is generated by triggering according to the first gesture instruction; the mobile control points are arranged at four vertex positions of the initial closed area. It is understood that, a movement control point is respectively arranged at four vertex positions of an initial closed region with a rectangular outline. After the first gesture command is acquired, a small rectangular selection area is given at the position of the trigger gesture, and a moving control point is shown at four vertexes of the rectangle. And then, acquiring a second gesture instruction, and controlling the corresponding mobile control point to perform directional sliding according to the second gesture instruction, namely controlling the mobile control point on the fixed point of the rectangular initial closed area to perform directional movement. In this embodiment, as to the specific processes of the step S21 and the step S22, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
S23: determining directional sliding data of the mobile control point corresponding to the second gesture command, and calculating inertial sliding data of the mobile control point by using an inertial sliding algorithm according to the directional sliding data; wherein the inertial slip data comprises a velocity profile.
S24: and judging whether the mobile control point performs inertial sliding according to the directional sliding data, if so, controlling the mobile control point to perform inertial sliding according to the speed change curve so as to obtain a to-be-selected closed area which corresponds to the initial closed area and has a rectangular shape and outline.
In the embodiment, in the process of 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 by an inertial sliding algorithm according to the directional sliding data; wherein the inertial slip data comprises a velocity profile. Specifically, during the touch movement of the operator, the algorithm continuously collects the velocity of the mobile control point in the direction X, Y, and updates the velocity of the control point in the direction X, Y by using a weighting method (the last recorded velocity and the latest collected velocity are multiplied by respective weights and summed). And after the touch control movement is finished, namely after the directional sliding is finished, the mobile control point further judges whether the mobile control point performs inertial sliding according to the directional sliding data, if so, the mobile control point is controlled to perform inertial sliding according to the speed change curve so as to obtain a to-be-selected closed area which corresponds to the initial closed area and has a rectangular shape outline. Specifically, whether the moving touch point performs inertial sliding or not and a speed change curve used by the inertial sliding are judged according to the duration and the latest speed of the touch movement. And the mobile control point is adsorbed to the edge of the touch display screen if touching the edge of the touch display screen in the inertial sliding process.
Fig. 3 shows that when the moving control point TR at the upper right corner of the initial closed region having a rectangular shape outline is moved to a new position along the dotted arrow, the final closed region having a rectangular shape outline is obtained. It should be noted that, for the rectangular selection area, when the movement control point of one vertex moves, the movement control points of other vertices change positions with the position change of the moved vertex, that is, the closed area is always kept as a rectangle. However, in the polygon area based on the larger movement control points in the foregoing embodiment, when the movement control point of one vertex moves, the movement control points of the other vertices do not change in position with the change in position of the moved vertex. In addition, in order to improve compatibility, gestures of "adding vertices" and "deleting vertices" may be added in the embodiment of the present application.
Therefore, the rectangular selection frame is used as the form of the selection area, the selection area supports touch dragging, the moving control points supporting touch moving are added on the four vertexes of the rectangular selection area, the range of the rectangular selection frame can be changed through the moving control points, the moving control points can slide in an inertia mode after the touch moving is finished, the problem that the touch selection at the higher position of the large-size touch screen is difficult is solved, the problem that an operator needs to move frequently when a large range is selected can be solved, and the user can conveniently and quickly perform graphic multi-selection operation on the large-size touch screen.
Referring to fig. 4, an embodiment of the present application further discloses a region determining apparatus, which includes:
the triggering module 11 is configured to 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 mobile control point;
the directional sliding module 12 is configured to obtain a second gesture instruction, and control the corresponding mobile control point to perform directional sliding according to the second gesture instruction;
and 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 to-be-selected closed region corresponding to the initial closed region.
Therefore, the first gesture instruction is obtained firstly, and the initial closed area is generated by triggering 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 directional sliding according to the second gesture instruction; and finally, 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 to obtain a to-be-selected closed area corresponding to the initial closed area. According to the method and the device for determining the area of the touch screen, the initial closed area is generated through triggering of the first gesture instruction, and then the moving control point on the initial closed area is controlled through the second gesture instruction to perform inertial sliding, so that the problem that the top area is difficult to select on the large-size touch screen is solved, and meanwhile, frequent movement of an operator in the area determining process is avoided, and the required area is determined efficiently.
In some specific embodiments, the triggering module 11 is specifically configured to acquire a first gesture instruction, and trigger generation of an initial closed region having a rectangular shape outline according to the first gesture instruction; the mobile control points are arranged at four vertex positions of the initial closed area.
In some embodiments, the inertial sliding module 13, in particular, comprises:
a determining unit, configured to determine directional sliding data of the movement control point corresponding to the second gesture instruction;
the computing unit is used for computing inertial sliding data of the mobile control point by an inertial sliding algorithm according to the directional sliding data; the inertial sliding data comprise a speed change curve, and the moving control point carries out inertial sliding based on the control of the speed change curve;
the judging unit is used for judging whether the mobile control point carries out inertial sliding according to the directional sliding data, and if so, executing the step of calculating the inertial sliding data of the mobile control point by using an inertial sliding algorithm according to the directional sliding data;
and the control unit is used for controlling the mobile control point to perform inertial sliding according to the speed change curve, and when a third gesture instruction is obtained, controlling the mobile control point to stop the inertial sliding according to the third gesture instruction and determining the stop position of the mobile control point so as to obtain the closed area to be selected corresponding to the initial closed area.
In some embodiments, the area determining apparatus further includes:
the confirming module is used for acquiring a fourth gesture instruction, determining the closed region to be selected as a target closed region according to the fourth gesture instruction, and extracting all the graphic objects in the target closed region from the target closed region;
and the hiding module is used for acquiring a fifth gesture instruction and hiding the closed region to be selected according to the fifth gesture instruction.
Further, the embodiment of the application also provides electronic equipment. Fig. 5 is a block diagram of electronic device 20, shown in accordance with an exemplary embodiment, and the contents of the diagram should not be construed as limiting the scope of use of the present application in any way.
Fig. 5 is a block diagram of an electronic device 20 according to an embodiment of the present disclosure. The electronic device 20 may specifically 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 for storing a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the area determination method disclosed in any of the foregoing embodiments.
In this embodiment, the power supply 23 is configured to provide a working 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 an external device, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
In addition, the storage 22 is used as a carrier for resource storage, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the resources stored thereon may include an operating system 221, a computer program 222, data 223, etc., and the storage may be a transient storage or a permanent storage.
The operating system 221 is used for managing and controlling each hardware device and the computer program 222 on the electronic device 20, so as to realize the operation and processing of the mass data 223 in the memory 22 by the processor 21, and may be Windows Server, Netware, Unix, Linux, and the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the region determining method performed by the electronic device 20 disclosed in any of the foregoing embodiments. Data 223 may include instructional data collected by electronic device 20.
Further, an embodiment of the present application further discloses a storage medium, in which a computer program is stored, and when the computer program is loaded and executed by a processor, the steps of the area determination method disclosed in any of the foregoing embodiments are implemented.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The method, the apparatus, the device and the storage medium for determining the area provided by the present invention are described in detail above, and the principle and the implementation of the present invention are explained in this document by applying specific examples, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for determining a region, comprising:
acquiring a first gesture instruction, and triggering and generating an initial closed area according to the first gesture instruction; each vertex position of the initial closed area is provided with a mobile control point;
acquiring a second gesture instruction, and controlling the corresponding mobile control point to perform directional sliding 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 to obtain a to-be-selected closed area corresponding to the initial closed area.
2. The area determination method according to claim 1, wherein a shape contour of the initial closed area is a rectangle, the movement control points are disposed at four vertex positions of the initial closed area, and the shape contour of the closed area to be selected is a rectangle corresponding to the shape contour of the closed area.
3. The method of claim 2, wherein determining inertial slip data for the mobile control point based on the second gesture command comprises:
determining directional sliding data of the mobile control point corresponding to the second gesture command;
calculating inertial sliding data of the mobile control point by using an inertial sliding algorithm according to the directional sliding data;
wherein the inertial slip data includes a speed variation curve, and the movement control point performs inertial slip based on control of the speed variation curve.
4. The area determination method according to claim 3, wherein after determining directional sliding data of the mobile control point corresponding to the second gesture command, further comprising:
and judging whether the mobile control point carries out inertial sliding according to the directional sliding data, if so, executing the step of calculating the inertial sliding data of the mobile control point by using an inertial sliding algorithm according to the directional sliding data.
5. The area determination method according to any one of claims 1 to 4, wherein the controlling the mobile control point to perform inertial sliding according to the inertial sliding data to obtain a closed area to be selected corresponding to the initial closed area comprises:
and controlling the mobile control point to perform inertial sliding according to the inertial sliding data, and when a third gesture instruction is obtained, controlling the mobile control point to stop the inertial sliding according to the third gesture instruction and determining the stop position of the mobile control point so as to obtain a closed area to be selected corresponding to the initial closed area.
6. The area determination method according to claim 5, wherein after obtaining the to-be-selected closed area corresponding to the initial closed area, further comprising:
acquiring a fourth gesture instruction, and determining the closed region to be selected as a target closed region according to the fourth gesture instruction;
and extracting all the graphic objects in the target closed region from the target closed region.
7. The area determination method according to claim 5, wherein after obtaining the to-be-selected closed area corresponding to the initial closed area, further comprising:
and acquiring a fifth gesture instruction, and hiding the closed region to be selected according to the fifth gesture instruction.
8. An area determination apparatus, comprising:
the triggering module is used for acquiring a first gesture instruction and triggering and generating an initial closed area according to the first gesture instruction; each vertex position of the initial closed area is provided with a mobile control point;
the directional sliding module is used for acquiring a second gesture instruction and controlling the corresponding mobile control point to perform directional sliding according to the second gesture instruction;
and the inertial sliding module is used for 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 to-be-selected closed area corresponding to the initial closed area.
9. An electronic device, comprising a processor and a memory; wherein the memory is for storing a computer program that is loaded and executed by the processor to implement the region determination method of any one of claims 1 to 7.
10. A computer-readable storage medium storing computer-executable instructions which, when loaded and executed by a processor, carry out a region determination method according to any one of claims 1 to 7.
CN202111128255.2A 2021-09-26 2021-09-26 Region determination method, device, equipment and storage medium Pending CN113703658A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111128255.2A CN113703658A (en) 2021-09-26 2021-09-26 Region determination method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111128255.2A CN113703658A (en) 2021-09-26 2021-09-26 Region determination method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113703658A true CN113703658A (en) 2021-11-26

Family

ID=78661858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111128255.2A Pending CN113703658A (en) 2021-09-26 2021-09-26 Region determination method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113703658A (en)

Similar Documents

Publication Publication Date Title
EP3690624B1 (en) Display device and method of controlling the same
CN109857303B (en) Interaction control method and device
AU2014287956B2 (en) Method for displaying and electronic device thereof
KR20100041006A (en) A user interface controlling method using three dimension multi-touch
KR101683793B1 (en) Method and apparatus for component display
CN102929556A (en) Method and equipment for interaction control based on touch screen
CN105117056A (en) Method and equipment for operating touch screen
WO2017185459A1 (en) Method and apparatus for moving icons
JP2018067068A (en) Drawing processing method, drawing processing program and drawing processing device
CN105843467A (en) Icon displaying method and device
JP7340927B2 (en) A method for defining drawing planes for the design of 3D objects
US10073612B1 (en) Fixed cursor input interface for a computer aided design application executing on a touch screen device
EP3371686B1 (en) Improved method for selecting an element of a graphical user interface
CN113703658A (en) Region determination method, device, equipment and storage medium
JP4539325B2 (en) Window display control method and program
JP5962654B2 (en) Electronic device, control method thereof, and program
JP6401046B2 (en) Computer-implemented method for designing 3D modeled objects
JP6863918B2 (en) Control programs, control methods and information processing equipment
CN111813408B (en) View display processing method and device, terminal equipment and storage medium
CN113360064A (en) Method and device for searching local area of picture, medium and electronic equipment
CN111273802A (en) Method for moving object on screen and touch display device
JP2001195170A (en) Portable electronic equipment, input controller and storage medium
KR20070079858A (en) Method for implementing drag operation using touchpad
CN110751417B (en) Storage model establishing method and device, electronic equipment and storage medium
AU2019205000B2 (en) Component display processing method and user equipment

Legal Events

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