Disk generation method, device, equipment and medium
By obtaining disc configuration information and determining the angle of the fan ring, a separate fan ring disk is generated, which solves the response conflict problem caused by the common edges of adjacent fan rings, and improves the accuracy of the operation.
Patent Information
- Application Number
- CN202210281145.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-22
- Publication Date
- 2025-05-30
- Estimated Expiration
- 2042-03-22
AI Technical Summary
In the prior art, the two adjacent fan rings in the disc are not separated and share one edge, which may cause the user to click on the common edge of the two adjacent fan rings during operation, causing a conflict in response of the functional module.
By obtaining disc configuration information, the start and end angles of the inner ring arc and outer ring arc of each fan ring are determined, ensuring that the two adjacent fan rings are separated, thereby generating a disc that separates the fan rings with no shared edges.
It effectively avoids response conflicts of the functional module corresponding to the fan ring, and improves the accuracy and security of user operations.
Smart Images

Figure CN114741020B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of electronic devices, and particularly relates to a method, device, equipment and medium for generating a disk. Background Art
[0002] With the development of electronic devices, people are increasingly accustomed to triggering various functions through a disk. Among them, each sector ring in the disk corresponds to a function module. When the user clicks on a certain sector ring in the disk, the corresponding function module is triggered, and then the function module responds.
[0003] However, in the related art, two adjacent sector rings in the disk are not separated and share a common edge. This may cause the user to click on the common edge of the two adjacent sector rings during operation, resulting in the two function modules corresponding to the two sector rings responding simultaneously and causing a response conflict. Summary of the Invention
[0004] The purpose of the embodiments of this application is to provide a method, device, equipment and medium for generating a disk, which can solve the problem of response conflict of function modules corresponding to sector rings.
[0005] In a first aspect, the embodiments of this application provide a method for generating a disk, including:
[0006] Obtain disk configuration information, where the disk configuration information is used to control any two adjacent sector rings among N sector rings to be separated;
[0007] According to the disk configuration information, determine the start angle and end angle of the inner arc of each sector ring; and according to the disk configuration information, determine the start angle and end angle of the outer arc of each sector ring;
[0008] According to the start angle and end angle of the inner arc of each sector ring and the start angle and end angle of the outer arc of each sector ring, draw N sector rings to generate a disk including N separated sector rings.
[0009] In some possible implementations of the embodiments of this application, the disk configuration information includes the interval angle L between the inner arcs of two adjacent sector rings or the angle a occupied by the inner arc of the sector ring, as well as the number N of sector rings and the start angle b of the inner arc of the first sector ring;
[0010] According to the disk configuration information, determining the start angle and end angle of the inner arc of each sector ring may include:
[0011] Determine that the start angle of the inner arc of the i-th sector ring is: b + (i - 1) * a + (i - 1) * L;
[0012] Determine that the end angle of the inner arc of the i-th sector ring is: b + i * a + (i - 1) * L;
[0013] Wherein, i is a positive integer not greater than N, and N*a + N*L = 360°.
[0014] In some possible implementations of the embodiments of the present application, the disk configuration information may further include that two adjacent sides of two adjacent fan-shaped rings are parallel;
[0015] Determining the start angle and the end angle of the outer ring arc of each fan-shaped ring according to the disk configuration information may include:
[0016] Determining the start angle of the outer ring arc of the i-th fan-shaped ring to be: b + (i - 1)*a + (i - 1)*L - j;
[0017] Determining the end angle of the outer ring arc of the i-th fan-shaped ring to be: b + i*a + (i - 1)*L + j.
[0018] Wherein,
[0019] In some possible implementations of the embodiments of the present application, the disk configuration information may further include that two sides of the same fan-shaped ring are parallel;
[0020] Determining the start angle and the end angle of the outer ring arc of each fan-shaped ring according to the disk configuration information may include:
[0021] Determining the start angle of the outer ring arc of the i-th fan-shaped ring to be: b + (i - 1)*a + (i - 1)*L + k;
[0022] Determining the end angle of the outer ring arc of the i-th fan-shaped ring to be: b + i*a + (i - 1)*L - k.
[0023] Wherein,
[0024] In some possible implementations of the embodiments of the present application, the disk configuration information may further include that two sides of the same fan-shaped ring are parallel;
[0025] Determining the start angle and the end angle of the outer ring arc of each fan-shaped ring according to the disk configuration information may include:
[0026] Determining the start angle of the outer ring arc of the i-th fan-shaped ring to be: b + (i - 1)*a + (i - 1)*L + k;
[0027] Determining the end angle of the outer ring arc of the i-th fan-shaped ring to be: b + i*a + (i - 1)*L - k.
[0028] Wherein,
[0029] In some possible implementations of the embodiments of the present application, the disk configuration information may further include the offset angle m of the outer ring arc relative to the inner ring arc;
[0030] Determining the start angle and end angle of the outer ring arc of each sector ring according to the disk configuration information may include:
[0031] Determining the start angle of the outer ring arc of the i-th sector ring as: b + (i - 1)*a + (i - 1)*L + m;
[0032] Determining the end angle of the outer ring arc of the i-th sector ring as: b + i*a + (i - 1)*L + m.
[0033] In a second aspect, the embodiments of the present application provide a disk generation device, including:
[0034] An acquisition module, configured to acquire disk configuration information, where the disk configuration information is used to control the separation of any two adjacent sector rings among N sector rings;
[0035] A first determination module, configured to determine the start angle and end angle of the inner ring arc of each sector ring according to the disk configuration information;
[0036] A second determination module, configured to determine the start angle and end angle of the outer ring arc of each sector ring according to the disk configuration information;
[0037] A drawing module, configured to draw N sector rings according to the start angle and end angle of the inner ring arc of each sector ring and the start angle and end angle of the outer ring arc, so as to generate a disk including N separated sector rings.
[0038] In some possible implementations of the embodiments of the present application, the disk configuration information may include the interval angle L between the inner ring arcs of two adjacent sector rings or the angle a occupied by the inner ring arc of the sector ring, as well as the number of sector rings N and the start angle b of the inner ring arc of the first sector ring; the first determination module may specifically be used for:
[0039] Determining the start angle of the inner ring arc of the i-th sector ring as: b + (i - 1)*a + (i - 1)*L;
[0040] Determining the end angle of the inner ring arc of the i-th sector ring as: b + i*a + (i - 1)*L;
[0041] where i is a positive integer not greater than N, and N*a + N*L = 360°.
[0042] In some possible implementations of the embodiments of the present application, the disk configuration information may further include: two adjacent sides of two adjacent sector rings are parallel; the second determination module may specifically be used for:
[0043] Determine that the starting angle of the outer ring arc of the i-th sector ring is: b + (i - 1) * a + (i - 1) * L - j;
[0044] Determine that the ending angle of the outer ring arc of the i-th sector ring is: b + i * a + (i - 1) * L + j;
[0045] Wherein,
[0046] In some possible implementations of the embodiments of the present application, the disk configuration information may further include: two sides of the same sector ring are parallel; the second determination module may specifically be used for:
[0047] Determine that the starting angle of the outer ring arc of the i-th sector ring is: b + (i - 1) * a + (i - 1) * L + k;
[0048] Determine that the ending angle of the outer ring arc of the i-th sector ring is: b + i * a + (i - 1) * L - k;
[0049] Wherein,
[0050] In some possible implementations of the embodiments of the present application, the disk configuration information may further include: the offset angle m of the outer ring arc relative to the inner ring arc; the second determination module may specifically be used for:
[0051] Determine that the starting angle of the outer ring arc of the i-th sector ring is: b + (i - 1) * a + (i - 1) * L + m;
[0052] Determine that the ending angle of the outer ring arc of the i-th sector ring is: b + i * a + (i - 1) * L + m.
[0053] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, the memory stores a program or instruction that can run on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented.
[0054] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0055] In a fifth aspect, an embodiment of the present application provides a chip, including a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps of the method described in the first aspect.
[0056] In a sixth aspect, an embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method described in the first aspect.
[0057] In an embodiment of the present application, by obtaining disk configuration information, according to the disk configuration information, the start angle and end angle of the inner ring arc and the start angle and end angle of the outer ring arc of each sector ring are determined; according to the start angle and end angle of the inner ring arc and the start angle and end angle of the outer ring arc of each sector ring, N sector rings are drawn to generate a disk including N separated sector rings. Since the disk configuration information is used to control the separation of any two adjacent sector rings among the N sector rings, therefore, the N sector rings in the generated disk are separated, which is convenient for user operation and can avoid response conflicts of the function modules corresponding to the sector rings. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required to be used in the embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0059] Figure 1 is a schematic flowchart of the disk generation method provided by the embodiment of the present application;
[0060] Figure 2 is the first schematic diagram of the disk provided by the embodiment of the present application;
[0061] Figure 3 is the second schematic diagram of the disk provided by the embodiment of the present application;
[0062] Figure 4 is the third schematic diagram of the disk provided by the embodiment of the present application;
[0063] Figure 5 is the fourth schematic diagram of the disk provided by the embodiment of the present application;
[0064] Figure 6 is the schematic structural diagram of the disk generation device provided by the embodiment of the present application;
[0065] Figure 7 is the schematic structural diagram of the electronic device provided by the embodiment of the present application;
[0066] Figure 8 is the schematic hardware structure diagram of the electronic device for implementing the embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0067] The following will clearly describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope protected by the present application.
[0068] The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of this application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and / or" in the description and claims means at least one of the connected objects, and the character " / ", generally represents an "or" relationship between the associated objects before and after.
[0069] The following will combine the accompanying drawings and, through specific embodiments and their application scenarios, detail the disk generation method, device, equipment, and medium provided by the embodiments of this application.
[0070] Figure 1 is a schematic flowchart of the disk generation method provided by the embodiments of this application. As Figure 1 shown, the disk generation method may include:
[0071] S101: Obtain disk configuration information, where the disk configuration information is used to control the separation of any two adjacent sectors among N sectors;
[0072] S102: Determine the start angle and end angle of the inner arc of each sector according to the disk configuration information; and determine the start angle and end angle of the outer arc of each sector according to the disk configuration information;
[0073] S103: Draw N sectors according to the start angle and end angle of the inner arc of each sector and the start angle and end angle of the outer arc of each sector to generate a disk including N separated sectors.
[0074] The specific implementation manners of the above steps will be described in detail below.
[0075] In the embodiments of this application, by obtaining disk configuration information, according to the disk configuration information, determine the start angle and end angle of the inner arc of each sector and the start angle and end angle of the outer arc of each sector; draw N sectors according to the start angle and end angle of the inner arc of each sector and the start angle and end angle of the outer arc of each sector to generate a disk including N separated sectors. Since the disk configuration information is used to control the separation of any two adjacent sectors among N sectors, therefore, the N sectors in the generated disk are separated, which is convenient for user operation and can avoid response conflicts of the function modules corresponding to the sectors.
[0076] In some possible implementations of the embodiments of the present application, the disc configuration information includes the interval angle L between the inner ring arcs of two adjacent fan-shaped rings or the angle a occupied by the inner ring arc of the fan-shaped ring, as well as the number N of fan-shaped rings and the starting angle b of the inner ring arc of the first fan-shaped ring; according to the disc configuration information, determining the starting angle and the ending angle of the inner ring arc of each fan-shaped ring may include: determining the starting angle of the inner ring arc of the i-th fan-shaped ring as: b+(i - 1)*a+(i - 1)*L; determining the ending angle of the inner ring arc of the i-th fan-shaped ring as: b+i*a+(i - 1)*L; where i is a positive integer not greater than N, and N*a+N*L = 360°.
[0077] When the disc configuration information includes the interval angle L between the inner ring arcs of two adjacent fan-shaped rings, calculate the angle a occupied by the inner ring arc of the fan-shaped ring according to N*a+N*L = 360°; when the disc configuration information includes the angle a occupied by the inner ring arc of the fan-shaped ring, calculate the interval angle L between the inner ring arcs of two adjacent fan-shaped rings according to N*a+N*L = 360°.
[0078] Specifically, the starting angle of the inner ring arc of the first fan-shaped ring is b, and the ending angle is b+a; the starting angle of the inner ring arc of the second fan-shaped ring is b+a+L, and the ending angle is b+a+L+a = b+2a+L; the starting angle of the inner ring arc of the third fan-shaped ring is b+2a+L+L = b+2a+2L, and the ending angle is b+2a+2L+a = b+3a+2L;...; the starting angle of the inner ring arc of the i-th fan-shaped ring is b+(i - 1)*a+(i - 1)*L, and the ending angle is b+i*a+(i - 1)*L;...; the starting angle of the inner ring arc of the N-th fan-shaped ring is b+(N - 1)*a+(N - 1)*L, and the ending angle is b+N*a+(N - 1)*L.
[0079] In some possible implementations of the embodiments of the present application, the disc configuration information may further include that two adjacent sides of two adjacent fan-shaped rings are parallel; according to the disc configuration information, determining the starting angle and the ending angle of the outer ring arc of each fan-shaped ring may include: determining the starting angle of the outer ring arc of the i-th fan-shaped ring as: b+(i - 1)*a+(i - 1)*L - j; determining the ending angle of the outer ring arc of the i-th fan-shaped ring as: b+i*a+(i - 1)*L + j.
[0080] Where
[0081] Exemplarily, taking N = 4 and L = 45° as an example for illustration, then a = 45°. As Figure 2 shown, Figure 2 is the first schematic diagram of the disc provided by the embodiments of the present application. In Figure 2 it, two adjacent sides of two adjacent fan-shaped rings are parallel.
[0082] In some possible implementations of the embodiments of the present application, the disk configuration information may further include that two sides of the same fan-shaped ring are parallel; according to the disk configuration information, determining the start angle and the end angle of the outer ring arc of each fan-shaped ring may include: determining the start angle of the outer ring arc of the i-th fan-shaped ring as: b+(i - 1)*a+(i - 1)*L + k; determining the end angle of the outer ring arc of the i-th fan-shaped ring as: b + i*a+(i - 1)*L - k.
[0083] Wherein,
[0084] Exemplarily, taking N = 4 and L = 45° as an example for illustration, then a = 45°. As Figure 3 shown, Figure 3 is the second schematic diagram of the disk provided by the embodiments of the present application. In Figure 3 it, two sides of the same fan-shaped ring are parallel.
[0085] In some possible implementations of the embodiments of the present application, the disk configuration information may further include the offset angle m of the outer ring arc relative to the inner ring arc; according to the disk configuration information, determining the start angle and the end angle of the outer ring arc of each fan-shaped ring may include: determining the start angle of the outer ring arc of the i-th fan-shaped ring as: b+(i - 1)*a+(i - 1)*L + m; determining the end angle of the outer ring arc of the i-th fan-shaped ring as: b + i*a+(i - 1)*L + m.
[0086] Exemplarily, taking N = 4 and L = 45° as an example for illustration, then a = 45°. As Figure 4 shown, Figure 4 is the third schematic diagram of the disk provided by the embodiments of the present application. In Figure 4 it, the offset angle of the outer ring arc relative to the inner ring arc is m.
[0087] In some possible implementations of the embodiments of the present application, the offset angle m of the outer ring arc relative to the inner ring arc may be 0. Exemplarily, taking N = 4 and L = 45° as an example for illustration, then a = 45°. As Figure 5 shown, Figure 5 is the fourth schematic diagram of the disk provided by the embodiments of the present application. In Figure 5 it, the offset angle of the outer ring arc relative to the inner ring arc is 0.
[0088] In some possible implementations of the embodiments of the present application, in S103, the drawPath method can be called to draw a fan-shaped ring described by path on the canvas. Here, path is an object used to describe the graphic path in the drawPath method. During the process of calling the drawPath method to draw the fan-shaped ring described by path on the canvas, the arcTo function of path can be called to connect the outer ring arc and the inner ring arc to form the path of the fan-shaped ring.
[0089] It should be noted that for the disk generation method provided by the embodiments of the present application, the execution subject can be a disk generation device. In the embodiments of the present application, taking the disk generation device executing the disk generation method as an example, the disk generation device provided by the embodiments of the present application is described.
[0090] Figure 6 It is a schematic structural diagram of the disk generation device provided by the embodiments of the present application. As Figure 6 shown, the disk generation device 600 may include:
[0091] An acquisition module 601, configured to acquire disk configuration information, where the disk configuration information is used to control the separation of any two adjacent fan-shaped rings among N fan-shaped rings;
[0092] A first determination module 602, configured to determine the start angle and end angle of the inner ring arc of each fan-shaped ring according to the disk configuration information;
[0093] A second determination module 603, configured to determine the start angle and end angle of the outer ring arc of each fan-shaped ring according to the disk configuration information;
[0094] A drawing module 604, configured to draw N fan-shaped rings according to the start angle and end angle of the inner ring arc of each fan-shaped ring and the start angle and end angle of the outer ring arc, so as to generate a disk including N separated fan-shaped rings.
[0095] In the embodiments of the present application, by acquiring disk configuration information, according to the disk configuration information, the start angle and end angle of the inner ring arc of each fan-shaped ring and the start angle and end angle of the outer ring arc are determined; according to the start angle and end angle of the inner ring arc of each fan-shaped ring and the start angle and end angle of the outer ring arc, N fan-shaped rings are drawn to generate a disk including N separated fan-shaped rings. Since the disk configuration information is used to control the separation of any two adjacent fan-shaped rings among N fan-shaped rings, therefore, the N fan-shaped rings in the generated disk are separated, which is convenient for user operation and can avoid response conflicts of the function modules corresponding to the fan-shaped rings.
[0096] In some possible implementations of the embodiments of the present application, the disc configuration information may include the interval angle L between the inner ring arcs of two adjacent fan-shaped rings or the angle a occupied by the inner ring arc of the fan-shaped ring, as well as the number N of fan-shaped rings and the starting angle b of the inner ring arc of the first fan-shaped ring; the first determination module 602 may specifically be configured to:
[0097] Determine that the starting angle of the inner ring arc of the i-th fan-shaped ring is: b+(i - 1)*a+(i - 1)*L;
[0098] Determine that the ending angle of the inner ring arc of the i-th fan-shaped ring is: b+i*a+(i - 1)*L;
[0099] wherein, i is a positive integer not greater than N, and N*a+N*L = 360°.
[0100] In some possible implementations of the embodiments of the present application, the disc configuration information may further include: two adjacent sides of two adjacent fan-shaped rings are parallel; the second determination module 603 may specifically be configured to:
[0101] Determine that the starting angle of the outer ring arc of the i-th fan-shaped ring is: b+(i - 1)*a+(i - 1)*L - j;
[0102] Determine that the ending angle of the outer ring arc of the i-th fan-shaped ring is: b+i*a+(i - 1)*L + j;
[0103] wherein,
[0104] In some possible implementations of the embodiments of the present application, the disc configuration information may further include: two sides of the same fan-shaped ring are parallel; the second determination module 603 may specifically be configured to:
[0105] Determine that the starting angle of the outer ring arc of the i-th fan-shaped ring is: b+(i - 1)*a+(i - 1)*L + k;
[0106] Determine that the ending angle of the outer ring arc of the i-th fan-shaped ring is: b+i*a+(i - 1)*L - k;
[0107] wherein,
[0108] In some possible implementations of the embodiments of the present application, the disc configuration information may further include: the offset angle m of the outer ring arc relative to the inner ring arc; the second determination module 603 may specifically be configured to:
[0109] Determine that the starting angle of the outer ring arc of the i-th fan-shaped ring is: b+(i - 1)*a+(i - 1)*L + m;
[0110] Determine that the ending angle of the outer ring arc of the i-th fan-shaped ring is: b+i*a+(i - 1)*L + m.
[0111] The disk generation device in the embodiments of the present application may be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal or other devices other than terminals. Exemplarily, the electronic device may be a mobile phone, a tablet computer, a laptop computer, a handheld computer, an in-vehicle electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. It may also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiments of the present application do not make specific limitations.
[0112] The disk generation device in the embodiments of the present application may be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems. The embodiments of the present application do not make specific limitations.
[0113] The disk generation device provided in the embodiments of the present application can implement Figures 1 to 5 each process in the disk generation method embodiments. To avoid repetition, it will not be elaborated here.
[0114] Optionally, as Figure 7 shown, the embodiments of the present application further provide an electronic device 700, including a processor 701 and a memory 702. The memory 702 stores a program or instruction that can run on the processor 701. When the program or instruction is executed by the processor 701, it implements each step of the above disk generation method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0115] In some possible implementations of the embodiments of the present application, the processor 701 may include a central processing unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured as one or more integrated circuits implementing the embodiments of the present application.
[0116] In some possible implementations of the embodiments of the present application, the memory 702 may include a read-only memory (ROM), a random access memory (RAM), a disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical, or other physical / tangible memory storage device. Thus, generally, the memory 702 includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the disk generation method according to the embodiments of the present application.
[0117] Figure 8 It is a schematic diagram of the hardware structure of the electronic device implementing the embodiments of the present application.
[0118] The electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810 and other components.
[0119] Those skilled in the art can understand that the electronic device 800 may further include a power source (such as a battery) for powering each component. The power source can be logically connected to the processor 810 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system. Figure 8 The structure of the electronic device shown in does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0120] Among them, the processor 810 is used to: obtain disk configuration information, where the disk configuration information is used to control the separation of any two adjacent sectors among N sectors; determine the start angle and end angle of the inner arc of each sector and the start angle and end angle of the outer arc of each sector according to the disk configuration information; draw N sectors according to the start angle and end angle of the inner arc of each sector and the start angle and end angle of the outer arc of each sector to generate a disk including N separated sectors.
[0121] In an embodiment of the present application, by obtaining disk configuration information, according to the disk configuration information, the start angle and end angle of the inner ring arc of each sector ring and the start angle and end angle of the outer ring arc are determined; according to the start angle and end angle of the inner ring arc of each sector ring and the start angle and end angle of the outer ring arc, N sector rings are drawn to generate a disk including N separate sector rings. Since the disk configuration information is used to control the separation of any two adjacent sector rings among the N sector rings, therefore, the N sector rings in the generated disk are separated, which is convenient for user operation and can avoid response conflicts of the function modules corresponding to the sector rings.
[0122] In some possible implementations of the embodiment of the present application, the disk configuration information may include the interval angle L between the inner ring arcs of two adjacent sector rings or the angle a occupied by the inner ring arc of the sector ring, as well as the number N of sector rings and the start angle b of the inner ring arc of the first sector ring; the processor 810 is specifically configured to:
[0123] Determine that the start angle of the inner ring arc of the i-th sector ring is: b+(i - 1)*a+(i - 1)*L;
[0124] Determine that the end angle of the inner ring arc of the i-th sector ring is: b+i*a+(i - 1)*L;
[0125] Wherein, i is a positive integer not greater than N, and N*a+N*L = 360°.
[0126] In some possible implementations of the embodiment of the present application, the disk configuration information may further include: two adjacent sides of two adjacent sector rings are parallel; the processor 810 is specifically configured to:
[0127] Determine that the start angle of the outer ring arc of the i-th sector ring is: b+(i - 1)*a+(i - 1)*L - j;
[0128] Determine that the end angle of the outer ring arc of the i-th sector ring is: b+i*a+(i - 1)*L + j;
[0129] Wherein,
[0130] In some possible implementations of the embodiment of the present application, the disk configuration information may further include: two sides of the same sector ring are parallel; the processor 810 is specifically configured to:
[0131] Determine that the start angle of the outer ring arc of the i-th sector ring is: b+(i - 1)*a+(i - 1)*L + k;
[0132] Determine that the end angle of the outer ring arc of the i-th sector ring is: b+i*a+(i - 1)*L - k;
[0133] Wherein,
[0134] In some possible implementations of the embodiments of the present application, the disk configuration information may further include: the offset angle m of the outer ring arc relative to the inner ring arc; specifically, the processor 810 is configured to:
[0135] Determine that the start angle of the outer ring arc of the i-th sector ring is: b + (i - 1)*a + (i - 1)*L + m;
[0136] Determine that the end angle of the outer ring arc of the i-th sector ring is: b + i*a + (i - 1)*L + m.
[0137] It should be understood that in the embodiments of the present application, the input unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042. The graphics processor 8041 processes the image data of the static pictures or videos obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 807 includes at least one of a touch panel 8071 and other input devices 8072. The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts: a touch detection device and a touch controller. The other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be elaborated here.
[0138] The memory 809 can be used to store software programs and various data. The memory 809 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area can store an operating system, application programs or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 809 can include volatile memory or non-volatile memory, or the memory 809 can include both volatile and non-volatile memory. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synch link dynamic random access memory (SLDRAM), and a direct rambus random access memory (DRRAM). The memory 809 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
[0139] The processor 810 may include one or more processing units; optionally, the processor 810 integrates an application processor and a modem processor. Among them, the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above modem processor may not be integrated into the processor 810.
[0140] The embodiments of the present application also provide a readable storage medium. Programs or instructions are stored on the readable storage medium. When the programs or instructions are executed by a processor, each process of the above-mentioned disk generation method embodiment is implemented, and the same technical effects can be achieved. To avoid repetition, it will not be elaborated here.
[0141] Among them, the processor is the processor in the electronic device in the above-mentioned embodiment. The readable storage medium includes a computer-readable storage medium. Examples of the computer-readable storage medium include non-transitory computer-readable storage media, such as ROM, RAM, magnetic disks, or optical discs, etc.
[0142] Another embodiment of the present application provides a chip, including a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the above-mentioned embodiment of the disk generation method, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0143] It should be understood that the chip mentioned in the embodiment of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.
[0144] The embodiment of the present application provides a computer program product. The program product is stored in a storage medium. The program product is executed by at least one processor to implement each process of the above-mentioned embodiment of the disk generation method, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0145] It should be noted that in this article, the term "including", "comprising", or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article, or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article, or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article, or device including that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, the features described with reference to certain examples may be combined in other examples.
[0146] Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases, the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the related technology can be embodied in the form of a computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.
[0147] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific implementation manners. The above specific implementation manners are merely illustrative rather than restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them belong to the protection scope of the present application.
Claims
1. A method for generating a disc, characterized in that, the method includes: Obtaining disc configuration information, wherein the disc configuration information is used to control the separation of any two adjacent fan-shaped rings among N fan-shaped rings, and the disc configuration information includes the interval angle L between the inner ring arcs of two adjacent fan-shaped rings or the angle a occupied by the inner ring arc of the fan-shaped ring, as well as the number of fan-shaped rings N and the starting angle b of the inner ring arc of the first fan-shaped ring; Determining the starting angle and ending angle of the inner ring arc of each fan-shaped ring according to the disc configuration information; and determining the starting angle and ending angle of the outer ring arc of each fan-shaped ring according to the disc configuration information; Drawing N fan-shaped rings according to the starting angle and ending angle of the inner ring arc of each fan-shaped ring and the starting angle and ending angle of the outer ring arc, so as to generate a disc including N separated fan-shaped rings.
2. The method according to claim 1, characterized in that, the determining the starting angle and ending angle of the inner ring arc of each fan-shaped ring according to the disc configuration information includes: Determining the starting angle of the inner ring arc of the i-th fan-shaped ring as: b + (i - 1)*a + (i - 1)*L; Determining the ending angle of the inner ring arc of the i-th fan-shaped ring as: b + i*a + (i - 1)*L; wherein, i is a positive integer not greater than N, and N*a + N*L = 360°.
3. The method according to claim 2, characterized in that, the disc configuration information further includes: two adjacent sides of two adjacent fan-shaped rings are parallel; the determining the starting angle and ending angle of the outer ring arc of each fan-shaped ring according to the disc configuration information includes: Determining the starting angle of the outer ring arc of the i-th fan-shaped ring as: b + (i - 1)*a + (i - 1)*L - j; Determining the ending angle of the outer ring arc of the i-th fan-shaped ring as: b + i*a + (i - 1)*L + j; Among them, 4. The method according to claim 2, characterized in that, the disc configuration information further includes: two sides of the same fan-shaped ring are parallel; the determining the starting angle and ending angle of the outer ring arc of each fan-shaped ring according to the disc configuration information includes: Determining the starting angle of the outer ring arc of the i-th fan-shaped ring as: b + (i - 1)*a + (i - 1)*L + k; Determining the ending angle of the outer ring arc of the i-th fan-shaped ring as: b + i*a + (i - 1)*L - k; Among them, 5. The method according to claim 2, characterized in that, the disc configuration information further includes: the offset angle m of the outer ring arc relative to the inner ring arc; the determining the starting angle and ending angle of the outer ring arc of each fan-shaped ring according to the disc configuration information includes: Determining the starting angle of the outer ring arc of the i-th fan-shaped ring as: b + (i - 1)*a + (i - 1)*L + m; Determining the ending angle of the outer ring arc of the i-th fan-shaped ring as: b + i*a + (i - 1)*L + m.
6. A disc generating device, characterized in that, the device includes: An acquisition module, configured to acquire disk configuration information, where the disk configuration information is used to control separation between any two adjacent sector rings among N sector rings, and the disk configuration information includes the interval angle L between the inner ring arcs of two adjacent sector rings or the angle a occupied by the inner ring arc of a sector ring, as well as the number N of sector rings and the start angle b of the inner ring arc of the first sector ring; A first determination module, configured to determine the start angle and end angle of the inner ring arc of each sector ring according to the disk configuration information; A second determination module, configured to determine the start angle and end angle of the outer ring arc of each sector ring according to the disk configuration information; A drawing module, configured to draw N sector rings according to the start angle and end angle of the inner ring arc of each sector ring and the start angle and end angle of the outer ring arc, so as to generate a disk including N separated sector rings.
7. The apparatus according to claim 6, wherein, the first determination module is specifically configured to: determine that the start angle of the inner ring arc of the i-th sector ring is: b+(i - 1)*a+(i - 1)*L; determine that the end angle of the inner ring arc of the i-th sector ring is: b+i*a+(i - 1)*L; where i is a positive integer not greater than N, and N*a+N*L = 360°.
8. The apparatus according to claim 7, wherein, the disk configuration information further includes: two adjacent sides of two adjacent sector rings are parallel; the second determination module is specifically configured to: determine that the start angle of the outer ring arc of the i-th sector ring is: b+(i - 1)*a+(i - 1)*L - j; determine that the end angle of the outer ring arc of the i-th sector ring is: b+i*a+(i - 1)*L + j; Among them, 9. An electronic device, wherein, it includes: a processor and a memory, the memory stores a program or instruction that can run on the processor, and when the program or instruction is executed by the processor, the steps of the disk generation method according to any one of claims 1 to 5 are implemented.
10. A readable storage medium, wherein, the readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the disk generation method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Input device, information processing device, and input-value-acquiring method
CN102693074A
Design rule checking method and system for multiple patterning technology
CN107145618A