Mapping control method and device, electronic equipment and storage medium
By obtaining display configuration information, the mapping relationship between the actual touch points of the touch panel and the display points of the screen partitions is determined, which solves the problem of individual touch and display of the monitor in medical devices and realizes multi-screen partition display.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SONOSCAPE MEDICAL (WUHAN) CORP
- Filing Date
- 2025-01-13
- Publication Date
- 2026-07-14
AI Technical Summary
Existing technologies cannot enable separate touch and display on two different displays of a medical device, nor can they display multiple screen partitions within the same display canvas on a single display.
By obtaining display configuration information, the mapping relationship between the actual touch points of the touch panel and the display points of the screen partitions is determined, thereby achieving accurate mapping of touch information.
It enables two different displays to be touched and displayed independently, and multiple screen partitions within the same display canvas to be displayed on a single display.
Smart Images

Figure CN122387367A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of touch control, and more specifically, to a mapping control method, apparatus, electronic device, storage medium, and computer program product. Background Technology
[0002] Some medical devices require two displays. For example, some medical devices used in surgical environments need to be operated using two displays, one inside and one outside the operating room. The secondary display can have both display and touch functions. However, the primary display only has display functions and lacks touch functionality. Current technologies do not allow for independent touch and display on the two different displays of a medical device. Summary of the Invention
[0003] The present invention addresses the aforementioned problems. It provides a mapping control method, apparatus, electronic device, storage medium, and computer program product. This solution configures the mapping relationship between display points of screen partitions and touch points of a touch panel based on acquired display configuration information. Thus, when a user performs a touch operation, the touch points of the touch panel can be quickly and accurately mapped to the corresponding display points of the corresponding screen partitions. This facilitates solutions that use two different displays for independent touch and display, as well as solutions that use a single display to show at least two different screen partitions within the same display canvas.
[0004] According to one aspect of the present invention, a mapping control method is provided for controlling the mapping between touch points of at least two touch panels and display points of a display, the display being used for displaying on the same display canvas. The method includes: in a multi-screen display mode, acquiring display configuration information, the display configuration information being used to configure the positions of at least two screen partitions on the display canvas, the at least two screen partitions corresponding one-to-one with at least two touch panels and having no overlapping areas; determining a first mapping relationship between actual touch points disposed on the surface of each of the at least two touch panels and display points of the corresponding screen partitions according to the display configuration information; and upon receiving touch information sent by any touch panel, mapping the actual touch point indicated by the touch information to the corresponding display point within the corresponding screen partition according to the first mapping relationship corresponding to the touch panel, the touch information being generated in response to a user's touch operation on the actual touch point.
[0005] Optionally, based on display configuration information, determining a first mapping relationship between actual touch points on the surface of each of the at least two touch panels and display points in the corresponding screen partition includes: for each of the at least one touch panels, obtaining a second mapping relationship between the actual touch points of the touch panel and display points in the display canvas, wherein all actual touch points of the touch panel are mapped one-to-one to all display points in the display canvas according to the second mapping relationship; and determining the first mapping relationship corresponding to the touch panel based on the display configuration information and the second mapping relationship corresponding to the touch panel.
[0006] Optionally, for each of the at least two touch panels, the first mapping relationship corresponding to the touch panel includes a second mapping relationship corresponding to the touch panel and a third mapping relationship corresponding to the touch panel obtained according to the display configuration information. The third mapping relationship is the mapping relationship between actual touch points and simulated touch points. All simulated touch points corresponding to all actual touch points of the touch panel are mapped one-to-one to all display points in the screen partition corresponding to the touch panel according to the second mapping relationship. Mapping the actual touch points indicated by the touch information to the corresponding display points in the corresponding screen partition according to the first mapping relationship of the touch panel includes: mapping the actual touch points indicated by the touch information to the corresponding simulated touch points according to the third mapping relationship of the touch panel; and mapping the mapped simulated touch points to the corresponding display points in the screen partition corresponding to the touch panel according to the second mapping relationship of the touch panel.
[0007] Optionally, the touch panel has an xy coordinate system, and according to the third mapping relationship corresponding to the touch panel, the actual touch point indicated by the touch information is mapped to the corresponding simulated touch point, including:
[0008] The actual touch point indicated by the touch information is mapped to the corresponding simulated touch point using the following relational expression representing the third mapping relationship:
[0009] ABS_x'=(x max ×w0+x×wmax1) / wmax2;
[0010] ABS_y'=(y max ×h0+y×hmax1) / hmax2;
[0011] ABS_x' represents the x-axis coordinate of the simulated touch point, x maxThis indicates the maximum touch sensitivity of the touch panel on the x-axis; w0 represents the horizontal distance between the screen partition corresponding to the touch panel and the origin of the display canvas; x represents the x-axis coordinate of the actual touch point; wmax1 represents the horizontal resolution of the screen partition corresponding to the touch panel; wmax2 represents the horizontal resolution of the display canvas; ABS_y' represents the y-axis coordinate of the simulated touch point. max hmax1 represents the maximum touch sensitivity of the touch panel on the y-axis, h0 represents the vertical distance between the screen partition corresponding to the touch panel and the origin of the display canvas, y represents the y-axis coordinate of the actual touch point, hmax2 represents the vertical resolution of the screen partition corresponding to the touch panel, and hmax3 represents the vertical resolution of the display canvas.
[0012] Optionally, the display configuration information includes: the resolution corresponding to each of the at least two screen partitions.
[0013] Optionally, the display configuration information may also include the distance between each of the at least two screen partitions and the origin of the display canvas.
[0014] Optionally, the method further includes: in single-screen display mode, when receiving touch information sent by any touch panel, mapping the actual touch point indicated by the touch information to the corresponding display point in the display canvas according to the second mapping relationship corresponding to the touch panel, wherein all actual touch points of the touch panel are mapped one-to-one to all display points in the display canvas according to the second mapping relationship corresponding to the touch panel.
[0015] Optionally, before obtaining the display configuration information, the method further includes: identifying the touch panel currently in operation; and determining the current display mode based on the identified touch panel, wherein the display mode includes a multi-screen display mode and a single-screen display mode.
[0016] Optionally, obtaining display configuration information includes: obtaining display configuration parameters of the display, the display configuration parameters including the resolution of the display; determining display configuration information based on the display configuration parameters; or, obtaining display configuration information includes: obtaining display configuration parameters in response to user preset operation information, the preset operation information being used to set and / or modify the current display configuration parameters of the display; determining display configuration information based on the display configuration parameters.
[0017] Optionally, obtaining display configuration information includes: obtaining touch parameters through a configuration interface program, the touch parameters including display configuration information, identification information of at least two touch panels, and enable information of at least two touch panels; determining a first mapping relationship between actual touch points set on the surface of each of the at least two touch panels and display points of the corresponding screen partitions based on the display configuration information, including: parsing the touch parameters through a preset driver program for driving the touch device to obtain driving parameters; and determining the first mapping relationship based on the driving parameters through a multi-touch driver program.
[0018] Optionally, the number of displays is two, including a main display and a secondary display; at least two touch panels include a first touch panel for controlling the display on the main display and a second touch panel for controlling the display on the secondary display.
[0019] According to another aspect of the present invention, a mapping control device is also provided for controlling the mapping between touch points of at least two touch panels and display points of a display, the display being used for displaying on the same display canvas. The device includes: an acquisition module, used to acquire display configuration information in a multi-screen display mode, the display configuration information being used to configure the positions of at least two screen partitions on the display canvas, the at least two screen partitions corresponding one-to-one with at least two touch panels and having no overlapping areas; a determination module, used to determine, according to the display configuration information, a first mapping relationship between actual touch points disposed on the surface of each of the at least two touch panels and display points of the corresponding screen partitions; and a mapping module, used to, upon receiving touch information sent by any touch panel, map the actual touch point indicated by the touch information to the corresponding display point within the corresponding screen partition according to the first mapping relationship corresponding to the touch panel, the touch information being generated in response to a user's touch operation on the actual touch point.
[0020] According to another aspect of the present invention, an electronic device is also provided, comprising: a processor and a memory, wherein the memory stores computer program instructions, which are executed by the processor to perform the above-described mapping control method.
[0021] According to another aspect of the present invention, a storage medium is also provided, on which program instructions are stored, which are used to execute the above-described mapping control method when running.
[0022] According to another aspect of the present invention, a computer program product is also provided, including computer program instructions, which, when executed, are used to perform the mapping control method as described above.
[0023] The above technical solution determines the first mapping relationship between the actual touch points of the touch panel and the display points of the corresponding screen partition by obtaining display configuration information. This allows for a one-to-one mapping between the actual touch points of the touch area of the touch panel and the display points of the display area of the monitor. This mapping method can configure the mapping relationship between the display points of the screen partition and the touch points of the touch panel based on the obtained display configuration information. In this way, when the user performs a touch operation, the touch points of the touch panel can be quickly and accurately mapped to the corresponding display points of the corresponding screen partition. This helps to enable two different monitors to perform touch and display independently, and also helps to enable a single monitor to display at least two different screen partitions within the same display canvas.
[0024] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description
[0025] The above and other objects, features, and advantages of the present invention will become more apparent from the more detailed description of the embodiments of the invention in conjunction with the accompanying drawings. The drawings are provided to further illustrate the embodiments of the invention and form part of the specification. They are used together with the embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings, the same reference numerals generally represent the same parts or steps.
[0026] Figure 1 A schematic flowchart of a mapping control method according to an embodiment of the present invention is shown;
[0027] Figure 2 A schematic diagram illustrating a second mapping relationship between actual touch points of a touch panel and display points within a display canvas according to an embodiment of the present invention is shown.
[0028] Figure 3 A schematic diagram illustrating a second mapping relationship between actual touch points of the main touch panel and display points of the main screen partition according to an embodiment of the present invention is shown.
[0029] Figure 4 A schematic diagram illustrating a second mapping relationship between the actual touch points of the secondary touch panel and the display points of the secondary screen partition according to an embodiment of the present invention is shown.
[0030] Figure 5 A schematic diagram showing the position of screen partitions on a display canvas according to an embodiment of the present invention is shown;
[0031] Figure 6A schematic block diagram of a mapping control device according to an embodiment of the present invention is shown.
[0032] Figure 7 A schematic block diagram of an electronic device according to an embodiment of the present invention is shown. Detailed Implementation
[0033] To make the objectives, technical solutions, and advantages of the present invention more apparent, exemplary embodiments according to the present invention will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are merely a part of the embodiments of the present invention, and not all of the embodiments of the present invention. It should be understood that the present invention is not limited to the exemplary embodiments described herein. Based on the embodiments of the present invention described herein, all other embodiments obtained by those skilled in the art without inventive effort should fall within the protection scope of the present invention.
[0034] For a display and touch panel that are matched to implement touch functionality, the display has display points, and the touch panel has touch points, with a mapping relationship between the display points and touch points. When a user operates the touch panel, that is, when the user touches any touch point on the touch panel to input touch information for that touch point, the touch point touched by the user can be mapped to the corresponding display point. In this article, the mapping between display points and touch points refers to the mapping between the display coordinates of the display points and the touch coordinates of the touch points. There is no solution in the related art for separate touch and display for two different displays of a medical device. For example, an ultrasound device may include two displays arranged vertically, where the display above is usually the main display, and the display below is usually the secondary display. Typically, the main display does not have a touch panel; it only has display functionality and not touch functionality. The user can only control the display of the main display through external input devices such as a mouse or keyboard. The secondary display may be equipped with a touch panel, which can have both display and touch functions simultaneously. The user can control the display of the secondary display by touching the touch panel. Two different displays can each have their own screen partitions within the same display canvas. If a mapping scheme between touch points and display points is used to map touch input to the two displays, the touch points will only be mapped onto the entire display canvas. Therefore, it's impossible to accurately map the touch points of the touch panel to the display points within the respective screen partitions of each display. It's understandable that displaying at least two different screen partitions within the same display canvas on the same display presents similar technical problems as displaying at least two different screen partitions within the same display canvas on different displays. Therefore, the relevant technology cannot achieve a solution where two different displays each perform touch and display independently, nor can it achieve a solution where a single display shows at least two different screen partitions within the same display canvas.
[0035] To at least address the aforementioned technical problems, embodiments of the present invention provide a mapping control method, apparatus, electronic device, storage medium, and computer program product. This solution configures the mapping relationship between display points of screen partitions and touch points of a touch panel based on acquired display configuration information. Thus, when a user performs a touch operation, the touch points of the touch panel can be quickly and accurately mapped to the corresponding display points of the corresponding screen partitions. This facilitates solutions that use two different displays for independent touch and display, as well as solutions that use a single display to display at least two different screen partitions within the same display canvas.
[0036] Please see Figure 1 The diagram shown is a schematic flowchart of a mapping control method according to an embodiment of the present invention. According to one aspect of the present invention, a mapping control method is provided for controlling the mapping between touch points of at least two touch panels and display points of a display, the display being used for display on the same display canvas, the method comprising: steps S110, S120, and S130.
[0037] For example, the number of touch panels according to embodiments of the present invention can be two or more. For any one touch panel, each touch point of the touch panel can be mapped to each display point of the display canvas to be mapped, and each touch point of the touch panel can be mapped to a display point of the display canvas. The display canvas can be displayed by one or more displays. Specifically, part or all of the display canvas can be displayed on one display, or part or all of the display canvas can be displayed on multiple displays. In the latter case, the areas displayed on each display do not overlap with each other. More specifically, the display canvas can be regarded as a virtual and continuous display area, which can be composed of the display area of one display or span multiple displays, with the display areas of multiple displays combined into a continuous and unified display area.
[0038] In step S110, in multi-screen display mode, display configuration information is obtained. The display configuration information is used to configure the position of at least two screen partitions on the display canvas. The at least two screen partitions correspond one-to-one with at least two touch panels and there is no overlapping area between the at least two screen partitions.
[0039] For example, a multi-screen display mode can be a display mode in which at least two screen partitions within a display canvas are displayed by one or more monitors. For instance, in a multi-screen display mode, multiple screen partitions can be displayed on the same monitor, or different individual screen partitions can be displayed separately on each of multiple monitors, or multiple screen partitions can be displayed on each of at least some of the monitors, with different individual screen partitions displayed separately on the remaining monitors. When the display mode is multi-screen, current display configuration information can be obtained, which can be used to configure the position of each screen partition on the display canvas. Specifically, for each screen partition, the screen partition can have multiple display points, and the position of the screen partition on the display canvas can be the position of each display point of the screen partition on the display canvas. The union of the regions of each screen partition can form the entire display area of the display canvas, or it can belong to a portion of the entire display area of the display canvas. For example, the display configuration information may include, for example, the resolution of each screen partition, and may also include the position information of each screen partition relative to the origin of the display canvas. This location information could be, for example, the coordinates of the display points of each screen partition within a coordinate system established with the origin of the display canvas as the origin. Alternatively, this location information could also be, for example, the distance between each screen partition and the origin of the display canvas. It can be understood that the position of each screen partition on the display canvas can be determined based on the display configuration information. In multi-screen display mode, the screen partitions on the display canvas do not overlap with each other (no overlapping area), and each screen partition can correspond to a touch panel. For each touch panel, the touch panel can send touch information through the corresponding screen partition.
[0040] In step S120, based on the display configuration information, a first mapping relationship is determined between the actual touch points set on the surface of each touch panel in at least two touch panels and the display points of the corresponding screen partitions.
[0041] For example, the medical device may include a processor, which may be connected to both a display and a touch panel. For example, for each touch panel, multiple actual touch points may exist on its surface. These actual touch points are used to send corresponding touch information to the processor when a user performs a touch operation on them. The position of each display point in each screen partition on the display canvas can be determined based on display configuration information. For actual touch points at different positions on any touch panel and display points at different positions in the screen partition corresponding to that touch panel, a first mapping relationship between each actual touch point and each display point can be determined based on the display configuration information. Specifically, the first mapping relationship can be used to map any actual touch point within any touch panel to a corresponding display point in the screen partition corresponding to that touch panel when a touch operation is performed on any actual touch point.
[0042] In step S130, when receiving touch information sent by any touch panel, the actual touch point indicated by the touch information is mapped to the corresponding display point in the corresponding screen partition according to the first mapping relationship corresponding to the touch panel. The touch information is generated in response to the user's touch operation on the actual touch point.
[0043] For example, for each actual touch point on the touch panel, a display point within the screen partition corresponding to the touch panel can have a first mapping relationship with the actual touch point. When a user performs a touch operation on any actual touch point of any touch panel, the touch controller of the touch panel can generate touch information and send it to the processor. It can be understood that the touch information can indicate the actual touch point targeted by the user when performing the touch operation. The processor connected to the touch panel can map the actual touch point to a corresponding display point within the screen partition corresponding to the touch panel according to the first mapping relationship of the touch panel. In some embodiments, when a user performs a touch operation on an actual touch point of the touch panel, the processor, after receiving the corresponding touch information, can execute the corresponding instruction displayed by the display point with the first mapping relationship to the actual touch point. This instruction can be displayed on the screen partition corresponding to the touch panel, for example, through an icon, virtual button, or other display method, and the display point is located within the area of the screen partition used to display the instruction. For example, on the display of an ultrasound device, an icon corresponding to the "Doppler imaging mode" can be displayed. When the user touches the actual touch point on the touch panel that corresponds to any of the displayed points within the icon, the processor can respond to the user's touch operation by executing the corresponding mode setting command to set the ultrasound device's imaging mode to Doppler imaging mode.
[0044] The above technical solution determines the first mapping relationship between the actual touch points of the touch panel and the display points of the corresponding screen partition by obtaining display configuration information. This allows for a one-to-one mapping between the actual touch points of the touch area of the touch panel and the display points of the display area of the monitor. This mapping method can configure the mapping relationship between the display points of the screen partition and the touch points of the touch panel based on the obtained display configuration information. In this way, when the user performs a touch operation, the touch points of the touch panel can be quickly and accurately mapped to the corresponding display points of the corresponding screen partition. This helps to enable two different monitors to perform touch and display independently, and also helps to enable a single monitor to display at least two different screen partitions within the same display canvas.
[0045] Optionally, based on display configuration information, determining a first mapping relationship between actual touch points on the surface of each of the at least two touch panels and display points in the corresponding screen partition includes: for each of the at least one touch panels, obtaining a second mapping relationship between the actual touch points of the touch panel and display points in the display canvas, wherein all actual touch points of the touch panel are mapped one-to-one to all display points in the display canvas according to the second mapping relationship; and determining the first mapping relationship corresponding to the touch panel based on the display configuration information and the second mapping relationship corresponding to the touch panel.
[0046] For example, for any touch panel, the first mapping relationship between the actual touch points of the touch panel and the display points of the corresponding screen partition can be determined jointly based on the second mapping relationship between the actual touch points of the touch panel and the display points within the display canvas to which the corresponding screen partition belongs, and the display configuration information corresponding to the screen partition. Specifically, when mapping the actual touch points of the touch panel according to the second mapping relationship, all actual touch points of the touch panel can be mapped to all display points within the display canvas. Please refer to [link to relevant documentation]. Figure 2 As shown, this is a schematic diagram illustrating a second mapping relationship between the actual touch points of a touch panel and the display points within the display canvas according to an embodiment of the present invention. Figure 2In the illustrated embodiment, there are two displays, including a main display and a secondary display. Both the main display and the secondary display are displayed on the same display canvas. Each display point on the display canvas can have display coordinates, and the display coordinate range of the display canvas is (0,0) to (3839,1199). Specifically, the display coordinates of the display point at the top left corner of the display canvas are (0,0), the display coordinates of the display point at the bottom left corner are (0,1199), the display coordinates of the display point at the top right corner are (3839,0), and the display coordinates of the display point at the bottom right corner are (3839,1199). The primary and secondary monitors each display a screen partition. The primary screen partition on the primary monitor has coordinates ranging from (0,0) to (1919,1199). The coordinates of the top-left corner of the primary screen partition are (0,0), the top-right corner is (1919,0), the bottom-left corner is (0,1199), and the bottom-right corner is (1919,1199). The secondary screen partition on the secondary monitor has coordinates ranging from (1919,0) to (3839,1079). The coordinates of the top-left corner of the secondary screen partition are (1919,0), the top-right corner is (3839,0), the bottom-left corner is (1919,1079), and the bottom-right corner is (3939,1079). There are two touch panels: a main touch panel corresponding to the main screen partition and a secondary touch panel corresponding to the secondary screen partition. Each touch panel's actual touch points can have touch coordinates. The touch coordinate range of the main touch panel is (0,0) to (16383, 16383), where the touch coordinates of the upper left corner of the main touch panel are (0,0), and the touch coordinates of the lower right corner are (16383, 16383). The touch coordinate range of the secondary touch panel is (0,0) to (4095, 4095), where the touch coordinates of the upper left corner of the secondary touch panel are (0,0), and the touch coordinates of the lower right corner are (4095, 4095). Taking the main touch panel as an example, after uploading all the actual touch points of the main touch panel to the processor, the processor can obtain a second mapping relationship between the actual touch points of the main touch panel and the display points within the display canvas.
[0047] Please continue reading. Figure 2As shown, when mapping all actual touch points of the main touch panel according to the second mapping relationship, in the main touch panel, the actual touch point with touch coordinate (0,0) can be mapped to the display point with display coordinate (0,0) in the display canvas, the actual touch point with touch coordinate (16383,0) can be mapped to the display point with display coordinate (3839,0), the actual touch point with touch coordinate (0,16383) can be mapped to the display point with display coordinate (0,1199), and the actual touch point with touch coordinate (16383,16383) can be mapped to the display point with display coordinate (3839,1199). For any actual touch point in the main touch panel, the touch coordinates of the actual touch point are marked as (x, y). The actual touch point is mapped according to the second mapping relationship, so that the actual touch point can be mapped to a display point in the display canvas with display coordinates of (x*3839 / 16383, y*1199 / 16383). When mapping all actual touch points of the secondary touch panel according to the second mapping relationship, in the secondary touch panel, the actual touch point with touch coordinate (0.0) can be mapped to the display point with display coordinate (0,0) in the display canvas, the actual touch point with touch coordinate (4095,0) can be mapped to the display point with display coordinate (3839,0), the actual touch point with touch coordinate (0,4095) can be mapped to the display point with display coordinate (0,1199), and the actual touch point with touch coordinate (4095,4095) can be mapped to the display point with display coordinate (3839,1199). For any actual touch point in the secondary touch panel, the touch coordinates of the actual touch point are marked as (a, b). The actual touch point is mapped according to the second mapping relationship, so that the actual touch point can be mapped to a display point in the display canvas with display coordinates of (a*3839 / 4095, b*1199 / 4095).
[0048] For example, after obtaining the second mapping relationship corresponding to each of the at least two touch panels, for each touch panel, based on the display configuration information of the screen partition corresponding to the touch panel and the second mapping relationship corresponding to the touch panel, touch coordinates corresponding one-to-one with the display coordinates of each display point of the screen partition can be determined in the touch panel. Furthermore, a mapping relationship can be established between the determined touch coordinates and the touch coordinates of each actual touch point of the touch panel. Please refer to [link to relevant documentation]. Figure 3 As shown, it is a schematic diagram of the second mapping relationship between the actual touch points of the main touch panel and the display points of the main screen partition according to an embodiment of the present invention. Figure 3 The touch coordinate range of the main touch panel and the display coordinate range of the display canvas shown can be used as a reference for... Figure 2 The relevant descriptions of the illustrated embodiments will not be repeated here. Figure 3In the illustrated embodiment, the display configuration information of the main screen partition may include the display coordinates of each display point within the main screen partition, with the display coordinate range of the main screen partition being (0,0) to (1919,1199). In the main touch panel, the touch coordinate range of the actual touch points corresponding one-to-one with each display point of the main screen partition is (0,0) to (1919*16383 / 3839, 16383). Each actual touch point with touch coordinates within this range... Figure 3 The diagram shows the left rectangular area within the main touch panel. For example, a mapping relationship can be established between the touch coordinate range of the left rectangular area and the touch coordinate range of the main touch panel. Each actual touch point on the main touch panel is then mapped according to this mapping relationship. For any actual touch point (denoted as M), if the touch coordinates of actual touch point M are denoted as (X, Y), then actual touch point M can be mapped to actual touch point N with touch coordinates (X*1919 / 3839, Y). It can be understood that the mapping relationship between actual touch point M and actual touch point N, and the second mapping relationship between actual touch point N and the corresponding display point (denoted as Q) within the main screen partition, can determine the first mapping relationship between actual touch point M and display point Q. In other words, although the user actually touches actual touch point M, actual touch point M can first be mapped to a new actual touch point N, and then the mapping between the touch point and the display point is performed (i.e., the touch point actually touched by the user is considered as actual touch point N).
[0049] Please see Figure 4 As shown, this is a schematic diagram illustrating a second mapping relationship between the actual touch points of the secondary touch panel and the display points of the secondary screen partition according to an embodiment of the present invention. Similarly, Figure 4 The touch coordinate range of the secondary touch panel and the display coordinate range of the display canvas shown can be used as a reference for... Figure 2 The relevant descriptions of the illustrated embodiments will not be repeated here. Figure 4 In the illustrated embodiment, the display configuration information of the secondary screen partition may include the display coordinates of each display point within the secondary screen partition, with the display coordinate range of the secondary screen partition being (1919, 0) to (3839, 1079). In the secondary touch panel, the touch coordinate range of the actual touch points corresponding one-to-one with each display point of the secondary screen partition is (1919*4095 / 3839, 0) to (4095, 4095*1079 / 1199). Each actual touch point with touch coordinates within this range... Figure 4The diagram shows the right rectangular area within the secondary touch panel. For example, a mapping relationship can be established between the touch coordinate range of the right rectangular area and the touch coordinate range of the secondary touch panel. Each actual touch point on the secondary touch panel is mapped according to this mapping relationship. For any actual touch point (denoted as M'), the touch coordinates of the actual touch point M' are denoted as (X', Y'). Then, the actual touch point M' can be mapped to an actual touch point N' with touch coordinates (X'*1920 / 4095+1919*4095 / 3839, Y'*1079 / 1199). It can be understood that the mapping relationship between actual touch point M' and actual touch point N', and the second mapping relationship between actual touch point N' and the corresponding display point (denoted as Q') within the main screen partition, can determine the first mapping relationship between actual touch point M' and display point Q'.
[0050] The above technical solution obtains the second mapping relationship between the actual touch points of the touch panel and the display points in the display canvas, which can map all the display points of the display canvas. This helps to ensure that, in the first mapping relationship determined based on the display configuration information and the second mapping relationship, all the display points of each screen partition can be mapped to the actual touch points of the touch panel, which is beneficial to the mapping integrity between each display point of the screen partition and each actual touch point of the touch panel.
[0051] Optionally, for each of the at least two touch panels, the first mapping relationship corresponding to the touch panel includes a second mapping relationship corresponding to the touch panel and a third mapping relationship corresponding to the touch panel obtained according to the display configuration information. The third mapping relationship is the mapping relationship between actual touch points and simulated touch points. All simulated touch points corresponding to all actual touch points of the touch panel are mapped one-to-one to all display points in the screen partition corresponding to the touch panel according to the second mapping relationship. Mapping the actual touch points indicated by the touch information to the corresponding display points in the corresponding screen partition according to the first mapping relationship of the touch panel includes: mapping the actual touch points indicated by the touch information to the corresponding simulated touch points according to the third mapping relationship of the touch panel; and mapping the mapped simulated touch points to the corresponding display points in the screen partition corresponding to the touch panel according to the second mapping relationship of the touch panel.
[0052] For example, the positions of at least two screen partitions on the display canvas can be determined based on the display configuration information. For each screen partition, all simulated touch points of the touch panel corresponding to that screen partition can be determined based on its position on the display canvas. In the process of mapping all actual touch points within the touch panel to the determined simulated touch points, the mapping relationship between each actual touch point and its corresponding simulated touch point within the touch panel can be obtained, i.e., the third mapping relationship. Figure 3 Taking the main touch panel shown as an example, based on the position of the main screen partition on the display canvas (in... Figure 3 The processor uses the display coordinates of each display point within the main screen partition to determine all the actual touch points within the left rectangular area of the main touch panel as all the simulated coordinate points. For any actual touch point (denoted as M) within the main touch panel, if the touch coordinates of actual touch point M are denoted as (X,Y), then actual touch point M can be mapped to actual touch point N with touch coordinates (X*1919 / 3839,Y). Actual touch point N can be used as the simulated touch point corresponding to actual touch point M. When a user performs a touch operation on actual touch point M within the touch panel, the processor can map actual touch point M to the corresponding simulated touch point, which is the actual touch point N. In other words, the touch information generated when a touch operation is performed on actual touch point M can be converted by the processor, and the actual touch point indicated by the converted touch information is the actual touch point N.
[0053] For example, after mapping the actual touch point indicated by the touch information to a corresponding simulated touch point according to the third mapping relationship corresponding to the touch panel, the simulated touch point can be used as a new actual touch point and mapped to the corresponding display point within the screen partition corresponding to the touch panel according to the second mapping relationship corresponding to the touch panel. Still using... Figure 3 Taking the main touch panel and main screen partition as an example, after mapping the actual touch point M to the actual touch point N according to the third mapping relationship, the actual touch point N can be mapped to the corresponding display point Q in the main screen partition according to the second mapping relationship corresponding to the main touch panel. The display coordinates of display point Q are (X*1919 / 16383, Y*1199 / 16383). Taking X=16383, Y=16383 (i.e., the actual touch point in the lower right corner of the main touch panel) as an example, this actual touch point can be mapped to the display point with display coordinates (1919, 1199) in the main screen partition (or display canvas), that is, the display point in the lower right corner of the main screen partition.
[0054] The above technical solution determines the first mapping relationship through the third mapping relationship between the actual touch points and simulated touch points of each touch panel and the second mapping relationship between the actual touch points of each touch panel and the display points of the display canvas. It can adaptively determine the first mapping relationship corresponding to each touch panel according to the shape and size of the touch area of each touch panel, and has strong versatility.
[0055] Optionally, the touch panel has an xy coordinate system, and according to the third mapping relationship corresponding to the touch panel, the actual touch point indicated by the touch information is mapped to the corresponding simulated touch point, including:
[0056] The actual touch point indicated by the touch information is mapped to the corresponding simulated touch point using the following relational expressions (1) and (2) to represent the third mapping relationship:
[0057] ABS_x' = (x max ×w0 + x×wmax1) / wmax2 (1)
[0058] ABS_y' = (y max ×h0 + y×hmax1) / hmax2 (2)
[0059] ABS_x' represents the x-axis coordinate of the simulated touch point, x max This indicates the maximum touch sensitivity of the touch panel on the x-axis; w0 represents the horizontal distance between the screen partition corresponding to the touch panel and the origin of the display canvas; x represents the x-axis coordinate of the actual touch point; wmax1 represents the horizontal resolution of the screen partition corresponding to the touch panel; wmax2 represents the horizontal resolution of the display canvas; ABS_y' represents the y-axis coordinate of the simulated touch point. max hmax1 represents the maximum touch sensitivity of the touch panel on the y-axis, h0 represents the vertical distance between the screen partition corresponding to the touch panel and the origin of the display canvas, y represents the y-axis coordinate of the actual touch point, hmax2 represents the vertical resolution of the screen partition corresponding to the touch panel, and hmax3 represents the vertical resolution of the display canvas.
[0060] Please see Figure 5 The diagram shown illustrates the position of screen partitions on a display canvas according to an embodiment of the present invention. Figure 5In the illustrated embodiment, a Cartesian coordinate system is established within the display canvas with the top-left corner as the origin. The display coordinate range of the display canvas is (0,0) to (4140,1400). In this embodiment, the horizontal resolution of the display canvas is 4140, i.e., wmax2 = 4140, and the vertical resolution is 1400, i.e., hmax2 = 1400. There are two screen partitions within the display canvas: the left screen partition has a display coordinate range of (200,200) to (2120,1400), and the right screen partition has a display coordinate range of (2220,100) to (4140,1180). For ease of description below, the left screen partition is referred to as the first screen partition, and the right screen partition as the second screen partition.
[0061] The horizontal distance between the first screen partition and the display canvas is equal to the distance from the left edge of the first screen partition to the vertical axis of the display canvas. Figure 5 The distance between the first screen partition and the display canvas (shown as the y-axis) is 200, i.e., w0 = 200. The vertical distance between the first screen partition and the display canvas is the distance from the top edge of the first screen partition to the horizontal axis of the display canvas (shown as the y-axis). Figure 5 The distance between the x-axis and the x-axis is 200, i.e., h0 = 200. The horizontal resolution of the first screen partition is 1920, i.e., wmax1 = 1920. The vertical resolution of the first screen partition is 1200, i.e., hmax1 = 1200. The first screen partition corresponds to the first touch panel, which has an xy coordinate system, and its touch coordinate range is (0,0) to (x1max, y1max). It should be noted that, in this embodiment of the invention, the maximum touch sensitivity of the touch panel on the x-axis is the maximum coordinate of the touch panel on the x-axis in the corresponding xy coordinate system, and the maximum touch sensitivity of the touch panel on the y-axis is the maximum coordinate of the touch panel on the y-axis in the corresponding xy coordinate system. For the first touch panel, x max =x1max, y max =y1max. For any actual touch point on the first touch panel, the touch coordinates of the actual touch point are marked as (x, y). The touch coordinates of the simulated touch point corresponding to the actual touch point in the xy coordinate system of the first touch panel are (ABS_x', ABS_y'), where ABS_x' = (x1max × 200 + x × 1920) / 4140; ABS_y' = (y1max × 200 + y × 1200) / 1400.
[0062] Similarly, the horizontal distance between the second screen partition and the display canvas is the same as the distance from the left edge of the second screen partition to the vertical axis of the display canvas. Figure 5The distance between the second screen partition and the display canvas (shown as the y-axis) is 2220, i.e., w0 = 2220. The vertical distance between the second screen partition and the display canvas is the distance from the top edge of the second screen partition to the horizontal axis of the display canvas (shown as the y-axis). Figure 5 The distance between the x-axis and the x-axis is 100, i.e., h0 = 100. The horizontal resolution of the first screen partition is 1920, i.e., wmax1 = 1920. The vertical resolution of the first screen partition is 1080, i.e., hmax1 = 1080. The second screen partition corresponds to the second touch panel, which has an xy coordinate system and its touch coordinate range is (0,0) to (x2max, y2max). For the second touch panel, x max =x2max, y max =y2max. For any actual touch point on the second touch panel, let the touch coordinates of the actual touch point be (x, y). The touch coordinates of the simulated touch point corresponding to the actual touch point in the xy coordinate system of the first touch panel are (ABS_x', ABS_y'), where ABS_x' = (x2max × 2220 + x × 1920) / 4140; ABS_y' = (y2max × 100 + y × 1080) / 1400.
[0063] The above technical solution uses a conversion function between the actual touch points and the corresponding simulated touch points on the touch panel. By utilizing the second mapping relationship between simulated touch points and corresponding display points, all actual touch points can be mapped one by one to the display points of the corresponding screen partitions. The calculation process is simple, and it can quickly and accurately determine the simulated touch points corresponding to the actual touch points based on the position of the screen partitions on the display canvas. When the position of the screen partitions changes, the simulated touch points corresponding to the actual touch points can be adaptively adjusted based on the change, which is highly flexible and helps to make the final determined first mapping relationship of the touch panel more accurate.
[0064] Optionally, the display configuration information includes: the resolution corresponding to each of the at least two screen partitions.
[0065] For example, in a multi-screen display mode, each screen partition can have a preset arrangement order in a certain direction (e.g., horizontal direction). In some embodiments, each screen partition corresponds one-to-one with multiple displays, and each display can display the corresponding screen partition. In this case, the preset arrangement order can be, for example, the recognition order of the processor when identifying each display. In other embodiments, the user can set the arrangement order of each screen partition according to actual needs. Specifically, each screen partition can be displayed on the display canvas in a preset arrangement order along a certain direction, and each of at least two screen partitions can be adjacent to at least one screen partition, and one edge line of the screen partition coincides with one edge line of another screen partition adjacent to it. In this case, the position of each screen partition on the display canvas can be determined based on the resolution corresponding to each screen partition. In a specific embodiment, the number of screen partitions can be two, wherein the first screen partition and the second screen partition are arranged in a preset arrangement order from left to right in a horizontal reverse direction. It can be understood that the display point at the top left corner of the first screen partition can be used as the display point at the top left corner of the display canvas, and the display point at the top right corner of the second screen partition can be used as the display point at the top right corner of the display canvas. Based on the resolution of the first screen partition and the resolution of the second screen partition, the positions of each display point in the first screen partition and each display point in the second screen partition on the display canvas can be determined.
[0066] The above technical solution can quickly and accurately determine the position of each screen partition on the display canvas by obtaining the resolution of each screen partition, which is beneficial to accurately map each actual touch point on the surface of the touch panel to the corresponding display point in the screen partition.
[0067] Optionally, the display configuration information may also include the distance between each of the at least two screen partitions and the origin of the display canvas.
[0068] For example, for each of at least two screen partitions, the position of the screen partition on the display canvas can be represented by its relative position to the origin of the display canvas. In some embodiments, this relative position can be determined by the minimum horizontal distance and the minimum vertical distance between the origin of the display canvas and the screen partition. Please continue reading Figure 5 ,exist Figure 5In the illustrated embodiment, the minimum distance (denoted as the first distance) between the origin of the display canvas and the left screen partition in the horizontal direction (i.e., the direction of the x-axis) is 200, and the minimum distance (denoted as the second distance) in the vertical direction (i.e., the direction of the y-axis) is also 200. It can be understood that when the display configuration information includes the first and second distances, the position of the display point at the upper left corner of the left screen partition on the display canvas can be determined. Combined with the resolution of the left screen partition, the positions of each display point of the left screen partition on the display canvas can be determined. The process for determining the position of the right screen partition on the display canvas is the same as that for the left screen partition, and will not be repeated here.
[0069] The above technical solution, by obtaining the distance between each screen partition and the origin of the display canvas, can accurately map each actual touch point on the control panel surface to the corresponding display point within the screen partition even when the arrangement of the screen partitions within the display canvas is irregular.
[0070] Optionally, the method further includes: in single-screen display mode, when receiving touch information sent by any touch panel, mapping the actual touch point indicated by the touch information to the corresponding display point in the display canvas according to the second mapping relationship corresponding to the touch panel, wherein all actual touch points of the touch panel are mapped one-to-one to all display points in the display canvas according to the second mapping relationship corresponding to the touch panel.
[0071] For example, a single-screen display mode can be a display mode in which a single display shows a single screen partition within a display canvas. In some embodiments, the display canvas is the screen partition. In this case, each actual touch point of any touch panel corresponding to the screen partition can have a one-to-one second mapping relationship with each display point of the screen partition. When a user performs a touch operation on any actual touch point of any touch panel corresponding to the screen partition, after receiving the corresponding touch information, the processor can map the actual touch point to the corresponding display point in the display canvas according to the second mapping relationship corresponding to the touch panel.
[0072] The above technical solution realizes the control of a single screen partition by the touch panel in single-screen display mode through the second mapping relationship between each actual touch point of the touch panel and each display point of the display canvas. This mapping method is relatively simple and does not require additional calculation to convert the actual touch points of the touch panel, so it is highly reliable.
[0073] Optionally, before obtaining the display configuration information, the method further includes: identifying the touch panel currently in operation; and determining the current display mode based on the identified touch panel, wherein the display mode includes a multi-screen display mode and a single-screen display mode.
[0074] For example, the processor can obtain the identification information (e.g., VIDPID) of the touch panel through the interface configuration program, and identify the touch panel currently in operation based on the obtained identification information. When multiple touch panels are identified as currently in operation, the current display mode can be determined to be a multi-screen display mode. In some embodiments, the processor can identify the currently operating display by detecting the usage status (e.g., power on, power off) and / or plug-in / plug-out events of the displays currently connected to the processor. In this case, each display can display a screen partition corresponding to a touch panel, each touch panel corresponding to each display can have identification information, and there is a mapping relationship between each display and its corresponding touch panel. The processor can identify one or more touch panels through the identification information of the touch panels obtained through the interface configuration program, and among the identified one or more touch panels, the touch panel that has a mapping relationship with the currently operating touch panel is determined to be the currently operating touch panel. It is understood that when a plug-in / plug-out event of a display is detected, the processor can obtain the identification information of the touch panel again through the interface configuration program to re-identify the currently operating touch panel.
[0075] The above technical solution determines the current display mode by identifying the touch panel that is currently in operation. It can flexibly determine the screen partition to be mapped according to the actual usage of the touch panel, which helps to improve the accuracy of the mapping relationship between the touch panel and the corresponding screen partition.
[0076] Optionally, obtaining display configuration information includes: obtaining display configuration parameters of the display, the display configuration parameters including the resolution of the display; determining display configuration information based on the display configuration parameters; or, obtaining display configuration information includes: obtaining display configuration parameters in response to user preset operation information, the preset operation information being used to set and / or modify the current display configuration parameters of the display; determining display configuration information based on the display configuration parameters.
[0077] For example, each display may have display configuration parameters, and the processor can obtain the display configuration parameters of one or more displays connected to the processor through an interface configuration program. The display configuration parameters may include the display resolution, which may include both horizontal and vertical resolution. The display configuration parameters may also include the overall horizontal and vertical resolution of one or more displays, where the overall horizontal resolution may be the sum of the horizontal resolutions of each screen partition, and the overall vertical resolution may be the maximum vertical resolution of each screen partition. In some embodiments, each display may display one screen partition, and the display resolution may be used as the resolution of the displayed screen partition. In other words, after obtaining the display resolution, the processor can determine the display resolution as the resolution of the corresponding screen partition, where the display configuration information may include the resolution of each screen partition. For example, a user can set or modify the display configuration parameters on the interface configuration program according to actual needs. For instance, if the resolution of one of the displays on the interface configuration program is 1920*1080, the user can modify the resolution of that display to 1440*1080.
[0078] The above technical solution determines the display configuration information by obtaining the display configuration parameters of the monitor. This allows the processor to automatically obtain the display configuration parameters and determine the display configuration information, simplifying the user's configuration process. Furthermore, the processor can determine the display configuration information in response to the user's setting and modification of the display configuration parameters. This allows the position of screen partitions on the display canvas to adapt to the user's actual needs, offering greater personalization and versatility.
[0079] Optionally, obtaining display configuration information includes: obtaining touch parameters through a configuration interface program, the touch parameters including display configuration information, identification information of at least two touch panels, and enable information of at least two touch panels; determining a first mapping relationship between actual touch points set on the surface of each of the at least two touch panels and display points of the corresponding screen partitions based on the display configuration information, including: parsing the touch parameters through a preset driver program for driving the touch device to obtain driving parameters; and determining the first mapping relationship based on the driving parameters through a multi-touch driver program.
[0080] For example, the processor can obtain touch parameters through a configuration interface program. These touch parameters may include display configuration information and identification information for each touch panel. For a detailed description of the display configuration information and the identification information of the touch panels, please refer to the foregoing embodiments; further details will not be repeated here. The touch parameters may also include enabling information for each touch panel, such as multi-touch enabling information for the touch panel. After obtaining the touch parameters, the processor can parse them using a preset driver program. The parsing result may include driver parameters. The preset driver program can be used to drive the touch device (in this embodiment, the touch panel). After obtaining the driver parameters, the processor can determine a first mapping relationship based on the driver parameters using a multi-touch driver program. It can be understood that the driver parameters are parameters that can be accepted by the multi-touch driver program, obtained by converting the touch parameters using the preset driver program.
[0081] The above technical solution can convert display configuration information into driver parameters that can be used by the driver, which helps to ensure that the first mapping relationship between the actual touch point and the display point can be correctly applied.
[0082] Optionally, the number of displays is two, including a main display and a secondary display; at least two touch panels include a first touch panel for controlling the display on the main display and a second touch panel for controlling the display on the secondary display.
[0083] For example, the number of displays used to display the same display canvas is preferably two, which may include a main display and a secondary display. The main display can be controlled by a first touch panel, and the secondary display can be controlled by a second touch panel. Specifically, the mapping control method of the above embodiments can be used to control the mapping between the touch points of the first touch panel and the display points of the main display, as well as the mapping between the touch points of the second touch panel and the display points of the secondary display.
[0084] The above technical solution matches two touch panels with two displays one by one, enabling each touch panel to control the corresponding display in a targeted manner at the hardware level. At the hardware level, the first mapping relationship between the actual touch point and the display point is more intuitive for the user, facilitating the user's actual touch operation.
[0085] Please see Figure 6 The diagram shown is a schematic block diagram of a mapping control device according to an embodiment of the present invention. According to another aspect of the present invention, a mapping control device 600 is also provided for controlling the mapping between touch points of at least two touch panels and display points of a display, the display being used for displaying on the same display canvas. The device 600 includes:
[0086] The acquisition module 610 is used to acquire display configuration information in multi-screen display mode. The display configuration information is used to configure the position of at least two screen partitions on the display canvas. The at least two screen partitions correspond one-to-one with at least two touch panels and have no overlapping areas.
[0087] The determining module 620 is used to determine, based on the display configuration information, a first mapping relationship between the actual touch points set on the surface of each touch panel in at least two touch panels and the display points of the corresponding screen partitions;
[0088] The mapping module 630 is used to map the actual touch point indicated by the touch information to the corresponding display point in the corresponding screen partition according to the first mapping relationship corresponding to the touch panel when receiving touch information sent by any touch panel. The touch information is generated in response to the user's touch operation on the actual touch point.
[0089] Please see Figure 7 The diagram shown is a schematic block diagram of an electronic device according to an embodiment of the present invention. According to another aspect of the present invention, an electronic device 700 is also provided, comprising: a processor 710 and a memory 720, wherein the memory 720 stores computer program instructions, which are executed by the processor 710 to perform the above-described mapping control method.
[0090] According to another aspect of the present invention, a storage medium is also provided, on which program instructions are stored. When the program instructions are executed by a computer or processor, the computer or processor performs corresponding steps of the mapping control method described in the embodiments of the present invention, and is used to implement corresponding modules in the mapping control device described in the embodiments of the present invention or corresponding modules in the mapping control device described above. The storage medium may, for example, include a memory card of a smartphone, a storage component of a tablet computer, a hard disk of a personal computer, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disc read-only memory (CD-ROM), a USB memory, or any combination of the above storage media. A computer-readable storage medium may be any combination of one or more computer-readable storage media.
[0091] According to another aspect of the present invention, a computer program product is also provided, including computer program instructions, which, when executed, are used to perform the mapping control method as described above.
[0092] Those skilled in the art can understand the specific implementation and beneficial effects of the above-described mapping control device by reading the detailed description of the mapping control method above, and for the sake of brevity, they will not be described in detail here.
[0093] Although exemplary embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above exemplary embodiments are merely illustrative and are not intended to limit the scope of the invention. Various changes and modifications can be made therein by those skilled in the art without departing from the scope and spirit of the invention. All such changes and modifications are intended to be included within the scope of the invention as claimed in the appended claims.
[0094] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0095] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed.
[0096] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.
[0097] Similarly, it should be understood that, in order to streamline the invention and aid in understanding one or more of the various aspects of the invention, features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof in the description of exemplary embodiments of the invention. However, this approach should not be construed as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as reflected in the corresponding claims, its inventive point lies in solving the corresponding technical problem with fewer features than all of those in a single disclosed embodiment. Therefore, the claims following the detailed description are hereby expressly incorporated into that detailed description, wherein each claim itself is a separate embodiment of the invention.
[0098] Those skilled in the art will understand that, apart from the mutual exclusion of features, all features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all processes or units of any method or apparatus so disclosed can be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) may be replaced by an alternative feature that serves the same, equivalent, or similar purpose.
[0099] Furthermore, those skilled in the art will understand that although some embodiments herein include certain features included in other embodiments but not others, combinations of features from different embodiments are intended to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments can be used in any combination.
[0100] The various component embodiments of the present invention can be implemented in hardware, or as software modules running on one or more processors, or a combination thereof. Those skilled in the art will understand that microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some modules in a mapping control device according to embodiments of the present invention. The present invention can also be implemented as an apparatus program (e.g., a computer program and computer program product) for performing some or all of the methods described herein. Such programs implementing the present invention can be stored on a computer-readable medium or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
[0101] It should be noted that the above embodiments are illustrative of the invention and not restrictive, and that those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names.
[0102] The above are merely specific embodiments or descriptions of the present invention, and the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the present invention. The scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A mapping control method, characterized in that, The method for controlling the mapping between touch points of at least two touch panels and display points of a display for displaying on the same display canvas includes: In multi-screen display mode, display configuration information is obtained. The display configuration information is used to configure the position of at least two screen partitions on the display canvas. The at least two screen partitions correspond one-to-one with the at least two touch panels and have no overlapping areas. Based on the display configuration information, a first mapping relationship is determined between the actual touch points set on the surface of each of the at least two touch panels and the display points of the corresponding screen partitions; Upon receiving touch information from any touch panel, the actual touch point indicated by the touch information is mapped to the corresponding display point within the corresponding screen partition according to the first mapping relationship corresponding to the touch panel. The touch information is generated in response to the user's touch operation on the actual touch point.
2. The method according to claim 1, characterized in that, The step of determining the first mapping relationship between the actual touch points on the surface of each of the at least two touch panels and the display points of the corresponding screen partitions based on the display configuration information includes: For each of the at least one touch panel, Obtain a second mapping relationship between the actual touch points of the touch panel and the display points in the display canvas, wherein all the actual touch points of the touch panel are mapped one-to-one to all the display points in the display canvas according to the second mapping relationship; Based on the display configuration information and the second mapping relationship corresponding to the touch panel, the first mapping relationship corresponding to the touch panel is determined.
3. The method according to claim 2, characterized in that, For each of the at least two touch panels, the first mapping relationship corresponding to the touch panel includes the second mapping relationship corresponding to the touch panel and the third mapping relationship corresponding to the touch panel obtained according to the display configuration information. The third mapping relationship is the mapping relationship between the actual touch points and the simulated touch points. All simulated touch points corresponding to all actual touch points of the touch panel are mapped one-to-one to all display points in the screen partition corresponding to the touch panel according to the second mapping relationship corresponding to the touch panel. The step of mapping the actual touch point indicated by the touch information to the corresponding display point within the corresponding screen partition according to the first mapping relationship corresponding to the touch panel includes: Based on the third mapping relationship corresponding to the touch panel, the actual touch point indicated by the touch information is mapped to the corresponding simulated touch point; Based on the second mapping relationship corresponding to the touch panel, the mapped simulated touch points are mapped to the corresponding display points within the screen partition corresponding to the touch panel.
4. The method according to claim 3, characterized in that, The touch panel has an xy coordinate system. The step of mapping the actual touch point indicated by the touch information to a corresponding simulated touch point according to the third mapping relationship corresponding to the touch panel includes: The actual touch point indicated by the touch information is mapped to the corresponding simulated touch point using the following relational expression representing the third mapping relationship: ABS_x'=(x max ×w0+x×wmax1) / wmax2; ABS_y'=(y max ×h0+y×hmax1) / hmax2; ABS_x' represents the x-axis coordinate of the simulated touch point, x max wmax1 represents the maximum touch sensitivity of the touch panel on the x-axis, wmax2 represents the horizontal distance between the screen partition corresponding to the touch panel and the origin of the display canvas, x represents the x-axis coordinate of the actual touch point, wmax1 represents the horizontal resolution of the screen partition corresponding to the touch panel, and wmax2 represents the horizontal resolution of the display canvas. ABS_y' represents the y-axis coordinate of the simulated touch point, y max hmax1 represents the maximum touch sensitivity of the touch panel on the y-axis, h0 represents the vertical distance between the screen partition corresponding to the touch panel and the origin of the display canvas, y represents the y-axis coordinate of the actual touch point, hmax1 represents the vertical resolution of the screen partition corresponding to the touch panel, and hmax2 represents the vertical resolution of the display canvas.
5. The method according to any one of claims 1-4, characterized in that, The display configuration information includes the resolution corresponding to each of the at least two screen partitions.
6. The method according to claim 5, characterized in that, The display configuration information also includes: the distance between each of the at least two screen partitions and the origin of the display canvas.
7. The method according to any one of claims 1-4, characterized in that, The method further includes: In single-screen display mode, when the touch information sent by any touch panel is received, the actual touch point indicated by the touch information is mapped to the corresponding display point in the display canvas according to the second mapping relationship corresponding to the touch panel. In this case, all the actual touch points of the touch panel are mapped to all the display points in the display canvas one by one according to the second mapping relationship corresponding to the touch panel.
8. The method according to any one of claims 1-4, characterized in that, Before obtaining the display configuration information, the method further includes: Identify the touch panel that is currently in operation; The current display mode is determined based on the identified touch panel, and the display mode includes the multi-screen display mode and the single-screen display mode.
9. The method according to any one of claims 1-4, characterized in that, The process of obtaining display configuration information includes: Obtain the display configuration parameters of the display, including the resolution of the display; The display configuration information is determined based on the display configuration parameters; or, The process of obtaining display configuration information includes: The display configuration parameters are obtained in response to the user's preset operation information, which is used to set and / or modify the current display configuration parameters of the display. The display configuration information is determined based on the display configuration parameters.
10. The method according to any one of claims 1-4, characterized in that, The process of obtaining display configuration information includes: Touch parameters are obtained through a configuration interface program. The touch parameters include the display configuration information, the identification information of each of the at least two touch panels, and the enable information of each of the at least two touch panels. The step of determining the first mapping relationship between the actual touch points on the surface of each of the at least two touch panels and the display points of the corresponding screen partitions based on the display configuration information includes: The touch parameters are parsed using a preset driver program for driving the touch device to obtain the driving parameters. The first mapping relationship is determined by the multi-touch driver based on the driver parameters.
11. The method according to any one of claims 1-4, characterized in that, The number of displays is two, including a main display and a secondary display; The at least two touch panels include a first touch panel for controlling the display of the main display and a second touch panel for controlling the display of the secondary display.
12. A mapping control device, characterized in that, The device is used to control the mapping between touch points of at least two touch panels and display points of a display for displaying on the same display canvas, the device comprising: The acquisition module is used to acquire display configuration information in multi-screen display mode. The display configuration information is used to configure the positions of at least two screen partitions on the display canvas. The at least two screen partitions correspond one-to-one with the at least two touch panels and have no overlapping areas with each other. The determining module is used to determine, based on the display configuration information, a first mapping relationship between the actual touch points set on the surface of each touch panel in the at least two touch panels and the display points of the corresponding screen partitions; The mapping module is used to map the actual touch point indicated by the touch information to the corresponding display point in the corresponding screen partition according to the first mapping relationship corresponding to the touch panel when receiving touch information sent by any touch panel. The touch information is generated in response to the user's touch operation on the actual touch point.
13. An electronic device comprising a processor and a memory, characterized in that, The memory stores computer program instructions, which, when executed by the processor, are used to perform the mapping control method as described in any one of claims 1-11.
14. A storage medium on which program instructions are stored, characterized in that, The program instructions are used to execute the mapping control method as described in any one of claims 1-11 when the program is run.
15. A computer program product comprising computer program instructions, characterized in that, The computer program instructions are used to execute the mapping control method as described in any one of claims 1-11 when the program is run.