Multi-window switching control method, device, apparatus and storage medium
By determining the offset and rotation angles of the working window in a virtual reality environment, and combining the arrangement method and span value, the accuracy and efficiency of multi-window switching are improved, thus enhancing the user experience.
Patent Information
- Application Number
- CN202310955925.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-31
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-07-31
AI Technical Summary
In existing technologies, the accuracy and efficiency of multi-window switching in virtual reality environments are relatively low. In particular, when switching windows using controllers and gestures, it is easy to accidentally click on the wrong window, which is also time-consuming.
By determining the offset angle formed by the boundary points of at least two working windows and the target calibration point, the rotation angle of the user's target part is detected, the arrangement and span value of the working windows are obtained, the target working window is determined based on these parameters, and the virtual device and the current working window are switched to the target working window.
It improves the accuracy and efficiency of multi-window switching, enhancing the user experience.
Smart Images

Figure CN116909404B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of virtual reality technology, and in particular to a multi-window switching control method, apparatus, device, and storage medium. Background Technology
[0002] In virtual reality environments, to provide users with an immersive gaming experience and an efficient work platform, it is necessary to provide users with familiar, efficient, and intuitive ways to input text, such as using a virtual keyboard. In real-world scenarios, the aforementioned work platform is based on multiple windows, meaning that multiple windows use a single virtual keyboard for text input. This necessitates window switching, and the common method for switching windows is using a controller and gestures, specifically clicking on the corresponding work window to switch windows. However, clicking on the wrong window is prone to errors, and performing the corresponding switching gestures consumes a significant amount of time. Therefore, the accuracy and efficiency of the above method for switching windows are relatively low.
[0003] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention
[0004] The main objective of this invention is to provide a multi-window switching control method, apparatus, device, and storage medium, aiming to solve the technical problem of low accuracy and efficiency in window switching in the prior art.
[0005] To achieve the above objectives, the present invention provides a multi-window switching control method, which includes the following steps:
[0006] Determine the offset angle formed by the boundary points of at least two working windows and the target calibration point;
[0007] When the user's target part is detected to be rotating, the current position of the target part, the rotation angle formed by the position after rotation and the target calibration point are determined.
[0008] Obtain the arrangement and span values of the at least two working windows;
[0009] The target working window is determined based on the offset angle, rotation angle, arrangement method, and window span value, and the current working window paired with the virtual device is switched to the target working window.
[0010] Optionally, determining the target working window based on the offset angle, rotation angle, arrangement method, and window span value, and switching the current working window paired with the virtual device to the target working window, includes:
[0011] When the arrangement is a non-overlapping arrangement, determine whether the window span value is greater than a preset value;
[0012] When the window span value is greater than a preset value, it is determined whether the rotation angle is greater than a preset angle threshold.
[0013] When the rotation angle is greater than a preset angle threshold, the target working window is determined based on the offset angle and the rotation angle, and the current working window paired with the virtual device is switched to the target working window.
[0014] Optionally, after determining whether the rotation angle is greater than a preset angle threshold, the method further includes:
[0015] When the rotation angle is less than or equal to a preset angle threshold, the current working window of the virtual device pairing is not switched.
[0016] Optionally, determining the target working window based on the offset angle, rotation angle, arrangement method, and window span value, and switching the current working window paired with the virtual device to the target working window, includes:
[0017] When the arrangement is an overlapping arrangement and the window span value is greater than a preset value, the outer boundary point of the overlapping working window is obtained according to the relative direction of at least two working windows and the target calibration point.
[0018] Determine the offset angle formed by the outer boundary point of the overlapping working window and the target calibration point;
[0019] When the rotation angle is greater than or equal to the offset angle formed by the outer boundary point of the overlapping working window and the target calibration point, the target working window is determined according to the offset angle and the rotation angle, and the current working window paired with the virtual device is switched to the target working window.
[0020] Optionally, after determining the offset angle formed by the outer boundary point of the overlapping working windows and the target calibration point, the method further includes:
[0021] When the rotation angle is less than the offset angle formed by the outer boundary point of the overlapping working window and the target calibration point, the display level of the overlapping working window is obtained.
[0022] The top-level working window is determined based on the display hierarchy;
[0023] If no user-sent command to switch working windows is received, the top-level working window is used as the target working window, and the current working window paired with the virtual device is switched to the target working window.
[0024] Optionally, when the arrangement is a non-overlapping arrangement, after determining whether the window span value is greater than a preset value, the method further includes:
[0025] Get the current position of a work window whose span value is less than or equal to a preset value;
[0026] Calculate the distance between each work window whose window span value is less than or equal to a preset value and at least two other work windows;
[0027] Based on the distance, determine the working window that is closest to the working window whose window span value is less than or equal to a preset value;
[0028] Merge the closest working window with the working window whose window span value is less than or equal to a preset value;
[0029] When the window span of the merged working window is greater than the preset value, the offset angle formed by the boundary point of the merged working window and the target calibration point is obtained according to the offset angle.
[0030] The target working window is determined based on the offset angle and rotation angle formed by the boundary point of the merged working window and the target calibration point, and the current working window paired with the virtual device is switched to the target working window.
[0031] Optionally, determining the target working window based on the offset angle and rotation angle formed by the boundary points of the merged working window and the target calibration point includes:
[0032] The merging angle range is determined based on the offset angle formed by the boundary point of the merged working window and the target calibration point;
[0033] The current angular space where the user's target part is located is determined based on the rotation angle.
[0034] If the current angle space is within the merged angle range, a window switching prompt message is generated.
[0035] Upon receiving a working window switching instruction sent by the user based on the window switching prompt information, the target working window is determined according to the working window switching instruction.
[0036] Furthermore, to achieve the above objectives, the present invention also proposes a multi-window switching control device, the multi-window switching control device comprising:
[0037] The determination module is used to determine the offset angle formed by the boundary points of at least two working windows and the target calibration point;
[0038] The determining module is also used to determine the current position of the target part, the rotation angle formed by the position after rotation and the target calibration point when the user's target part is detected to rotate.
[0039] The acquisition module is also used to acquire the arrangement and span values of the at least two working windows;
[0040] The switching module is used to determine the target working window based on the offset angle, rotation angle, arrangement method and window span value, and to switch the current working window paired with the virtual device to the target working window.
[0041] Furthermore, to achieve the above objectives, the present invention also proposes a multi-window switching control device, which includes: a memory, a processor, and a multi-window switching control program stored in the memory and executable on the processor, wherein the multi-window switching control program is configured to implement the multi-window switching control method described above.
[0042] In addition, to achieve the above objectives, the present invention also proposes a storage medium storing a multi-window switching control program, which, when executed by a processor, implements the multi-window switching control method as described above.
[0043] The multi-window switching control method proposed in this invention determines the offset angle formed by the boundary points of at least two working windows and the target calibration point; when the user's target part is detected to rotate, the method determines the current position of the target part, the rotation angle formed by the target position and the target calibration point after rotation; the method obtains the arrangement and span value of the at least two working windows; the method determines the target working window based on the offset angle, rotation angle, arrangement, and span value, and switches the current working window paired with the virtual device to the target working window; through the above method, after determining the target working window, the method operates on the current working window paired with the virtual device, thereby effectively improving the accuracy and efficiency of window switching, and thus improving the user experience. Attached Figure Description
[0044] Figure 1 This is a schematic diagram of the structure of a multi-window switching control device for the hardware operating environment involved in the embodiments of the present invention;
[0045] Figure 2 This is a flowchart illustrating the first embodiment of the multi-window switching control method of the present invention;
[0046] Figure 3 This is a schematic diagram of overlapping working window switching according to an embodiment of the multi-window switching control method of the present invention;
[0047] Figure 4 This is a flowchart illustrating the second embodiment of the multi-window switching control method of the present invention;
[0048] Figure 5This is a schematic diagram of the first working window switching in an embodiment of the multi-window switching control method of the present invention;
[0049] Figure 6 This is a schematic diagram of the second working window switching in an embodiment of the multi-window switching control method of the present invention;
[0050] Figure 7 This is a schematic diagram of the functional modules of the first embodiment of the multi-window switching control device of the present invention.
[0051] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0052] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.
[0053] Reference Figure 1 , Figure 1 This is a schematic diagram of the structure of a multi-window switching control device in the hardware operating environment involved in the embodiments of the present invention.
[0054] like Figure 1 As shown, the multi-window switching control device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen and an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wireless-Fidelity (Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (RAM) or a stable non-volatile memory (NVM), such as a disk drive. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.
[0055] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on the multi-window switching control device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0056] like Figure 1As shown, the memory 1005, which serves as a storage medium, may include an operating system, a network communication module, a user interface module, and a multi-window switching control program.
[0057] exist Figure 1 In the multi-window switching control device shown, the network interface 1004 is mainly used for data communication with the network integrated platform workstation; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and memory 1005 in the multi-window switching control device of the present invention can be set in the multi-window switching control device, and the multi-window switching control device calls the multi-window switching control program stored in the memory 1005 through the processor 1001 and executes the multi-window switching control method provided in the embodiment of the present invention.
[0058] Based on the above hardware structure, an embodiment of the multi-window switching control method of the present invention is proposed.
[0059] Reference Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the multi-window switching control method of the present invention.
[0060] In the first embodiment, the multi-window switching control method includes the following steps:
[0061] Step S10: Determine the offset angle formed by the boundary points of at least two working windows and the target calibration point.
[0062] It should be noted that the execution subject in this embodiment is a multi-window switching control device, but it can also be other devices that can achieve the same or similar functions, such as a switching controller. This embodiment does not limit this, and in this embodiment, a switching controller is used as an example for explanation.
[0063] It should be understood that the boundary point refers to the vertex of the lower boundary of the user-facing work window, and the target calibration point refers to the calibration point used to determine the offset angle and rotation angle. The target calibration point can be set behind the user's body. For example, the boundary points of work window A are a1 and a2. Connecting the boundary points a1 and a2 to the target calibration point O respectively constitutes the offset angle of work window A. The boundary points of work window B are b1 and b2. Connecting the boundary points b1 and b2 to the target calibration point O respectively constitutes the offset angle of work window B.
[0064] Step S20: When the user's target part is detected to be rotating, determine the current position of the target part, the rotation angle formed by the position after rotation and the target calibration point.
[0065] It is understandable that the target part can be the user's head. The current position refers to the position of the user's target part before rotation. Then, the rotation angle is formed by combining the position after rotation with the target calibration point. For example, if the current position of the target part is T1 and the position after rotation is T2, then the current position T1 and the position after rotation T2 are respectively compared with the target calibration point to form the rotation angle.
[0066] Step S30: Obtain the arrangement and span values of the at least two working windows.
[0067] It should be understood that the arrangement method refers to the way at least two work windows are arranged in the space facing the user. This arrangement method includes overlapping arrangement and non-overlapping arrangement. The window span value represents the width of the work window. The larger the width, the larger the work window.
[0068] Step S40: Determine the target working window based on the offset angle, rotation angle, arrangement method and window span value, and switch the current working window paired with the virtual device to the target working window.
[0069] Understandably, the target working window refers to the working window where the user wants to input the content using the virtual device. At this time, the user's head will be facing the target working window. The target working window can be determined by a combination of offset angle, rotation angle, arrangement method, and window span value. The current working window refers to the working window that has been paired with the virtual device. The virtual device can be a virtual keyboard. That is, before switching, the content typed by the user using the virtual device will be displayed in the current working window. After the target working window is determined, the current working window paired with the virtual device is switched to the target working window. At this time, the content typed by the user using the virtual device can be displayed in the target working window.
[0070] Further, step S40 includes: when the arrangement is an overlapping arrangement and the window span value is greater than a preset value, obtaining the outer boundary points of the overlapping working windows according to the relative directions of at least two working windows and the target calibration point; determining the offset angle formed by the outer boundary points of the overlapping working windows and the target calibration point; when the rotation angle is greater than or equal to the offset angle formed by the outer boundary points of the overlapping working windows and the target calibration point, determining the target working window according to the offset angle and the rotation angle, and switching the current working window paired with the virtual device to the target working window.
[0071] It should be understood that when the arrangement is determined to be an overlapping arrangement, it indicates that multiple working windows overlap. Further determining that the window span value is greater than a preset value indicates that the working window is not a small window. In this case, the outer boundary points of the overlapping working windows are obtained based on the relative directions of at least two working windows to the target calibration point. Then, based on the offset angle formed by the outer boundary points of the overlapping working windows and the target calibration point, for example, referring to... Figure 3 , Figure 3 The diagram illustrates the switching of overlapping working windows. Specifically, it uses four working windows as an example: the first working window, the second working window, the third working window, and the fourth working window. The first working window, the second working window, and the third working window overlap. In this case, the outer boundary point is the lower left boundary point of the first working window and the lower right boundary point of the second working window. The offset angle refers to the offset angle angle1 formed by the lower left boundary point of the first working window, the lower right boundary point of the second working window, and the target calibration point.
[0072] Understandably, after determining the offset angle formed by the outer edge point of the overlapping work window and the target calibration point, it is determined whether the rotation angle is greater than or equal to the offset angle formed by the outer edge point of the overlapping work window and the target calibration point. If so, it indicates that the user does not want to input the content into the overlapping work window. At this time, the fourth work window is determined as the target work window, and the current work window paired with the virtual device is switched to the target work window.
[0073] Furthermore, after determining the offset angle formed by the outer edge point of the overlapping work windows and the target calibration point, the method further includes: when the rotation angle is less than the offset angle formed by the outer edge point of the overlapping work windows and the target calibration point, obtaining the display level of the overlapping work windows; determining the top-level work window based on the display level; and when no work window switching instruction is received from the user, using the top-level work window as the target work window and switching the current work window paired with the virtual device to the target work window.
[0074] Understandably, when the rotation angle is less than the offset angle formed by the outer boundary point of the overlapping work windows and the target calibration point, it indicates that the user wants to input the content into the overlapping work windows. At this time, the display layer of the overlapping work windows is obtained. For example, the display layer of the first work window is the top layer, the display layer of the second work window is the bottom layer, and the display layer of the third work window is the middle layer. The top-level work window is determined to be the first work window. When a work window switching command is received from the user, the top-level work window is taken as the target work window by default. This work window switching command can be issued by the user using the combination key "Shift+Tab" on the virtual device. When a work window switching command is received from the user, the overlapping windows are rotated. In the instant before a work window switching command is received from the user, the rotated work window is taken as the target work window, and the current work window paired with the virtual device is switched to the target work window.
[0075] This embodiment determines the offset angle formed by the boundary points of at least two working windows and the target calibration point; when the user's target part is detected to rotate, it determines the current position of the target part, the rotation angle formed by the current position after rotation and the target calibration point; it obtains the arrangement and span value of the at least two working windows; it determines the target working window based on the offset angle, rotation angle, arrangement, and span value, and switches the current working window paired with the virtual device to the target working window; through the above method, after determining the target working window, the current working window paired with the virtual device is processed according to the target working window, thereby effectively improving the accuracy and efficiency of window switching, and thus improving the user experience.
[0076] In one embodiment, such as Figure 4 The second embodiment of the multi-window switching control method of the present invention, based on the first embodiment, includes step S40, which includes:
[0077] Step S401: When the arrangement is a non-overlapping arrangement, determine whether the window span value is greater than a preset value.
[0078] Further, after step S401, the method includes: when the window span value is less than or equal to a preset value, determining a working window with an offset angle less than a preset angle threshold, and obtaining the current position of the working window with an offset angle less than the preset angle threshold; calculating the distance between the working window with an offset angle less than the preset angle threshold and at least two other working windows; determining the working window closest to the working window with an offset angle less than the preset angle threshold based on the distance; merging the closest working window with the working window with an offset angle less than the preset angle threshold; when the offset angle of the merged working window is greater than the preset angle threshold, obtaining the offset angle formed by the boundary point of the merged working window and the target calibration point based on the offset angle; determining the target working window based on the offset angle and rotation angle formed by the boundary point of the merged working window and the target calibration point, and switching the current working window paired with the virtual device to the target working window.
[0079] Understandably, when a working window's span value is determined to be less than or equal to a preset value, it indicates that the working window is a small window. In this case, a working window with an offset angle less than a preset angle threshold is identified, and its current position is obtained. Then, the distances between this working window and at least two other working windows are calculated. Based on these distances, the working window closest to this working window is determined, for example, the distance between the first and second working windows, or the distance between the first and third working windows. In this case, the closest working window is the second working window. The first and second working windows are then merged. The offset angle of the merged working window is the sum of the offset angles of the first and second working windows. Then, it is determined whether the offset angle of the merged working window is greater than the preset angle threshold. If so, the target working window is determined based on the offset angle and rotation angle formed by the boundary point and the target calibration point of the merged working window.
[0080] Further, determining the target working window based on the offset angle and rotation angle formed by the boundary point of the merged working window and the target calibration point includes: determining a merging angle range based on the offset angle formed by the boundary point of the merged working window and the target calibration point; determining the current angle space where the user's target part is located based on the rotation angle; generating a window switching prompt message when the current angle space is within the merging angle range; and determining the target working window based on the working window switching instruction sent by the user according to the window switching prompt message when receiving the working window switching instruction.
[0081] It should be understood that the merged angle range refers to the angle space formed by the offset angles of the merged work windows. If the current angle space is within the merged angle range, it indicates that the user wants to input the content into a specific work window after the merge. This specific work window can be the one closest to the target calibration point. Figure 5 , Figure 5 This diagram illustrates the switching of the first working window. Specifically, it uses three working windows as an example: the first, second, and third working windows are arranged sequentially with offset angles of angle1, angle2, and angle3, respectively. The first and second working windows are small windows. The first and second working windows are then merged. The merging angle range is the interval formed by the lower left boundary point of the first working window and the lower right boundary point of the second working window. For example, if the offset angle of the first working window is angle1 and the offset angle of the second working window is angle2, the offset angle of the merged working window is angle1 + angle2. The merging angle range can be the interval corresponding to the offset angle of the merged working window. If the current angle space is within the merging angle range, it is assumed that the user wants to input the text into the second working window. A window switching prompt message is then used to remind the user to switch to the smaller window. In other words, upon receiving a working window switching command from the user based on the window switching prompt message, the target working window is determined according to the working window switching command.
[0082] It should be noted that another way to merge work windows is by adjusting the window width value. (See also...) Figure 5 For example, if the window span values of the first working window and the second working window are both less than preset values, the first and second working windows are merged. The offset angle of the merged working window is the sum of the offset angles of the first and second working windows. For example, if the offset angle of the first working window is angle1 and the offset angle of the second working window is angle2, the offset angle of the merged working window is angle1 + angle2. Then, the merging angle range is determined based on the offset angle of the merged working window. If the current angle space is within the merging angle range, the second working window is used by default. Then, the user is reminded to switch small windows using window switching prompts. That is, when the user sends a working window switching command based on the window switching prompts, the target working window is determined based on the working window switching command.
[0083] Step S402: When the window span value is greater than a preset value, determine whether the rotation angle is greater than a preset angle threshold.
[0084] It is understandable that when the window span value is determined to be greater than the preset value, it indicates that the working window is not a small window. At this time, it is necessary to continue to determine whether the rotation angle is greater than the preset angle threshold.
[0085] Furthermore, after step S402, the method further includes: when the rotation angle is less than or equal to a preset angle threshold, not switching the current working window of the virtual device pairing.
[0086] It should be understood that when the rotation angle is determined to be less than or equal to the preset angle threshold, it indicates that the user's intention to switch the working window is weak, that is, they do not want to switch the working window. It may be that they are twisting their neck or shifting their gaze. In this case, the current working window paired with the virtual device will not be switched.
[0087] Step S403: When the rotation angle is greater than a preset angle threshold, determine the target working window based on the offset angle and the rotation angle, and switch the current working window paired with the virtual device to the target working window.
[0088] It should be understood that when the rotation angle is determined to be greater than a preset angle threshold, the target working window is determined based on the offset angle and the rotation angle, for example, referring to... Figure 6 , Figure 6 This is a diagram illustrating the switching of the second working window. Specifically, taking four working windows as an example, the first, second, third, and fourth working windows are arranged sequentially, with offset angles of angle1, angle2, angle3, and angle4, and a rotation angle of Angle. When the rotation angle Angle < offset angle angle2, the second working window is determined as the target working window. When the offset angle angle2 < rotation angle Angle < offset angle1 + offset angle2, the first working window is determined as the target working window. When the offset angle1 + offset angle2 < rotation angle Angle, it indicates that the user has not selected a working window, and the virtual device is hidden at this time.
[0089] This embodiment determines whether the window span value is greater than a preset value when the arrangement is non-overlapping; if the window span value is greater than the preset value, it determines whether the rotation angle is greater than a preset angle threshold; if the rotation angle is greater than the preset angle threshold, it determines the target working window based on the offset angle and rotation angle, and switches the current working window paired with the virtual device to the target working window. Through this method, when all conditions are met—non-overlapping arrangement, window span value greater than the preset value, and rotation angle greater than the preset angle threshold—the target working window is determined based on the offset angle and rotation angle, and then the current working window paired with the virtual device is switched to the target working window. This effectively improves the accuracy of window switching, thereby displaying the user-typed content in the most suitable working window.
[0090] Furthermore, this embodiment of the invention also proposes a storage medium storing a multi-window switching control program, which, when executed by a processor, implements the steps of the multi-window switching control method described above.
[0091] Since this storage medium adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought about by the technical solutions of the above embodiments, which will not be repeated here.
[0092] In addition, refer to Figure 7 The present invention also proposes a multi-window switching control device, the multi-window switching control device comprising:
[0093] The determination module 10 is used to determine the offset angle formed by the boundary points of at least two working windows and the target calibration point.
[0094] The determining module 10 is also used to determine the current position of the target part, the rotation angle formed by the position after rotation and the target calibration point when the user's target part is detected to be rotating.
[0095] The acquisition module 20 is also used to acquire the arrangement and span values of the at least two working windows.
[0096] The switching module 30 is used to determine the target working window based on the offset angle, rotation angle, arrangement method and window span value, and to switch the current working window paired with the virtual device to the target working window.
[0097] This embodiment determines the offset angle formed by the boundary points of at least two working windows and the target calibration point; when the user's target part is detected to rotate, it determines the current position of the target part, the rotation angle formed by the current position after rotation and the target calibration point; it obtains the arrangement and span value of the at least two working windows; it determines the target working window based on the offset angle, rotation angle, arrangement, and span value, and switches the current working window paired with the virtual device to the target working window; through the above method, after determining the target working window, the current working window paired with the virtual device is processed according to the target working window, thereby effectively improving the accuracy and efficiency of window switching, and thus improving the user experience.
[0098] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of this invention. In practical applications, those skilled in the art can select some or all of the workflow to achieve the purpose of this embodiment according to actual needs, and no restrictions are imposed here.
[0099] In addition, for technical details not described in detail in this embodiment, please refer to the multi-window switching control method provided in any embodiment of the present invention, which will not be repeated here.
[0100] In one embodiment, the switching module 30 is further configured to: determine whether the window span value is greater than a preset value when the arrangement is a non-overlapping arrangement; determine whether the rotation angle is greater than a preset angle threshold when the window span value is greater than the preset value; and determine the target working window based on the offset angle and the rotation angle when the rotation angle is greater than the preset angle threshold, and switch the current working window paired with the virtual device to the target working window.
[0101] In one embodiment, the switching module 30 is further configured to not switch the current working window of the virtual device pairing when the rotation angle is less than or equal to a preset angle threshold.
[0102] In one embodiment, the switching module 30 is further configured to: obtain the outer boundary point of the overlapping working window based on the relative direction of at least two working windows and the target calibration point when the arrangement is an overlapping arrangement and the window span value is greater than a preset value; determine the offset angle formed by the outer boundary point of the overlapping working window and the target calibration point; and when the rotation angle is greater than or equal to the offset angle formed by the outer boundary point of the overlapping working window and the target calibration point, determine the target working window based on the offset angle and the rotation angle, and switch the current working window paired with the virtual device to the target working window.
[0103] In one embodiment, the switching module 30 is further configured to: obtain the display level of the overlapping work windows when the rotation angle is less than the offset angle formed by the outer boundary point of the overlapping work windows and the target calibration point; determine the top-level work window according to the display level; and, when no work window switching instruction sent by the user is received, use the top-level work window as the target work window and switch the current work window paired with the virtual device to the target work window.
[0104] In one embodiment, the switching module 30 is further configured to: obtain the current position of working windows whose window span values are less than or equal to a preset value; calculate the distance between working windows whose window span values are less than or equal to the preset value and at least two other working windows; determine the working window closest to the working window whose window span value is less than or equal to the preset value based on the distance; merge the closest working window with the working window whose window span value is less than or equal to the preset value; when the window span value of the merged working window is greater than the preset value, obtain the offset angle formed by the boundary point of the merged working window and the target calibration point based on the offset angle; determine the target working window based on the offset angle formed by the boundary point of the merged working window and the target calibration point, and switch the current working window paired with the virtual device to the target working window.
[0105] In one embodiment, the switching module 30 is further configured to determine a merging angle range based on the offset angle formed by the boundary point of the merged working window and the target calibration point; determine the current angle space where the user's target part is located based on the rotation angle; generate window switching prompt information when the current angle space is located within the merging angle range; and determine the target working window based on the working window switching instruction sent by the user according to the window switching prompt information when receiving the working window switching instruction.
[0106] Other embodiments or implementation methods of the multi-window switching control device of the present invention can be referred to the above-described method embodiments, and will not be repeated here.
[0107] Furthermore, it should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0108] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0109] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as read-only memory (ROM) / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, all-in-one platform workstation, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0110] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A multi-window switching control method, characterized in that, The multi-window switching control method includes the following steps: Determine the offset angle formed by the boundary points of at least two working windows and the target calibration point; When the user's target part is detected to be rotating, the current position of the target part, the rotation angle formed by the position after rotation and the target calibration point are determined. Obtain the arrangement and span values of the at least two working windows; The target working window is determined based on the offset angle, rotation angle, arrangement method and window span value, and the current working window paired with the virtual device is switched to the target working window; The step of determining the target working window based on the offset angle, rotation angle, arrangement method, and window span value, and switching the current working window paired with the virtual device to the target working window, includes: When the arrangement is an overlapping arrangement and the window span value is greater than a preset value, the outer boundary point of the overlapping working window is obtained according to the relative direction of at least two working windows and the target calibration point. Determine the offset angle formed by the outer boundary point of the overlapping working window and the target calibration point; When the rotation angle is greater than or equal to the offset angle formed by the outer boundary point of the overlapping working window and the target calibration point, the target working window is determined according to the offset angle and the rotation angle, and the current working window paired with the virtual device is switched to the target working window; When the rotation angle is less than the offset angle formed by the outer boundary point of the overlapping working window and the target calibration point, the display level of the overlapping working window is obtained. The top-level working window is determined based on the display hierarchy; If no user-sent command to switch working windows is received, the top-level working window is used as the target working window, and the current working window paired with the virtual device is switched to the target working window.
2. The multi-window switching control method as described in claim 1, characterized in that, The step of determining the target working window based on the offset angle, rotation angle, arrangement method, and window span value, and switching the current working window paired with the virtual device to the target working window, includes: When the arrangement is a non-overlapping arrangement, determine whether the window span value is greater than a preset value; When the window span value is greater than a preset value, it is determined whether the rotation angle is greater than a preset angle threshold. When the rotation angle is greater than a preset angle threshold, the target working window is determined based on the offset angle and the rotation angle, and the current working window paired with the virtual device is switched to the target working window.
3. The multi-window switching control method as described in claim 2, characterized in that, After determining whether the rotation angle is greater than a preset angle threshold, the method further includes: When the rotation angle is less than or equal to a preset angle threshold, the current working window of the virtual device pairing is not switched.
4. The multi-window switching control method as described in claim 2, characterized in that, When the arrangement is a non-overlapping arrangement, after determining whether the window span value is greater than a preset value, the method further includes: Get the current position of a work window whose span value is less than or equal to a preset value; Calculate the distance between each work window whose window span value is less than or equal to a preset value and at least two other work windows; Based on the distance, determine the working window that is closest to the working window whose window span value is less than or equal to a preset value; Merge the closest working window with the working window whose window span value is less than or equal to a preset value; When the window span of the merged working window is greater than the preset value, the offset angle formed by the boundary point of the merged working window and the target calibration point is obtained according to the offset angle. The target working window is determined based on the offset angle and rotation angle formed by the boundary point of the merged working window and the target calibration point, and the current working window paired with the virtual device is switched to the target working window.
5. The multi-window switching control method as described in claim 4, characterized in that, The step of determining the target working window based on the offset angle and rotation angle formed by the boundary points of the merged working window and the target calibration point includes: The merging angle range is determined based on the offset angle formed by the boundary point of the merged working window and the target calibration point; The current angular space where the user's target part is located is determined based on the rotation angle. If the current angle space is within the merged angle range, a window switching prompt message is generated. Upon receiving a working window switching instruction sent by the user based on the window switching prompt information, the target working window is determined according to the working window switching instruction.
6. A multi-window switching control device, characterized in that, The multi-window switching control device includes: The determination module is used to determine the offset angle formed by the boundary points of at least two working windows and the target calibration point; The determining module is also used to determine the current position of the target part, the rotation angle formed by the position after rotation and the target calibration point when the user's target part is detected to rotate. The acquisition module is also used to acquire the arrangement and span values of the at least two working windows; The switching module is used to determine the target working window based on the offset angle, rotation angle, arrangement method and window span value, and to switch the current working window paired with the virtual device to the target working window; The switching module is further configured to: obtain the outer boundary points of the overlapping work windows based on the relative directions of at least two work windows and the target calibration point when the arrangement is an overlapping arrangement and the window span value is greater than a preset value; determine the offset angle formed by the outer boundary points of the overlapping work windows and the target calibration point; when the rotation angle is greater than or equal to the offset angle formed by the outer boundary points of the overlapping work windows and the target calibration point, determine the target work window based on the offset angle and the rotation angle, and switch the current work window paired with the virtual device to the target work window; when the rotation angle is less than the offset angle formed by the outer boundary points of the overlapping work windows and the target calibration point, obtain the display level of the overlapping work windows; determine the top-level work window based on the display level; and when no work window switching instruction sent by the user is received, use the top-level work window as the target work window and switch the current work window paired with the virtual device to the target work window.
7. A multi-window switching control device, characterized in that, The multi-window switching control device includes: a memory, a processor, and a multi-window switching control program stored in the memory and executable on the processor, wherein the multi-window switching control program is configured to implement the multi-window switching control method as described in any one of claims 1 to 5.
8. A storage medium, characterized in that, The storage medium stores a multi-window switching control program, which, when executed by a processor, implements the multi-window switching control method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Display equipment and display method thereof
CN107506236A
Motion tracking user interface
US10401951B2
