Display device and angle drawing method

By introducing angle drawing controls into display devices, the process of drawing angles is simplified. Users can directly draw angles of any angle using angle indicator lines and touch trajectories, solving the cumbersome operation problem of requiring a protractor and ruler in existing technologies, and improving drawing efficiency and user experience.

WO2025218352A1PCT designated stage Publication Date: 2025-10-23HISENSE VISUAL TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/078945
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-04-18
Filing Date
2025-02-25
Publication Date
2025-10-23

AI Technical Summary

Technical Problem

Existing display devices require a protractor and ruler to draw angles, which is cumbersome and time-consuming, and provides a poor user experience.

Method used

A display device is provided that uses an angle drawing control including an angle indicator line, responds to user commands to move the indicator line and obtains the touch trajectory, calculates the direction difference to draw the edge of the angle, and simplifies the drawing process.

Benefits of technology

It enables users to draw angles of any angle using a single auxiliary tool, simplifying the operation process and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025078945_23102025_PF_FP_ABST
    Figure CN2025078945_23102025_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present disclosure are a display device and an angle drawing method. The display device can display an angle drawing control, the angle drawing control comprising an angle indicator line; in response to an instruction to move the angle indicator line, the display device can move the angle indicator line, acquire a first direction of the moved angle indicator line, and determine a second direction of a collected first touch-control trajectory; a first direction difference between the first direction and the second direction is calculated, and when the first direction difference is less than or equal to a direction difference threshold value, a target end point is acquired on the angle indicator line on the basis of the first touch-control trajectory; and by taking a base point of the angle indicator line as the vertex of an angle and the target end point as an end point of an edge, an edge of the angle is drawn. Therefore, the problem in the related art of it being necessary to use a protractor and a ruler in the process of drawing a specific angle, resulting in cumbersome operations is mitigated.
Need to check novelty before this filing date? Find Prior Art

Description

Display device and method for drawing an angle

[0001] Cross-reference to Related Applications

[0002] The present disclosure claims priority to Chinese application No. 202410467418.7, filed on April 18, 2024, the entire contents of which are incorporated herein by reference. TECHNICAL FIELD

[0003] The present disclosure relates to the technical field of display devices, and in particular to a display device and a method for drawing an angle. BACKGROUND

[0004] A display device refers to a terminal device capable of outputting a specific display screen. The display device can realize a bidirectional man-machine interaction function, integrates audio, video, entertainment, data and other functions, and is used to meet the diversified and personalized needs of users.

[0005] In order to meet the needs of conference and education scenarios, for a display device supporting touch interaction operation, a whiteboard application can be run, and writing or drawing functions can be realized according to a touch area based on the whiteboard application. The user can perform various drawing operations in the touch area, such as drawing various lines, angles, patterns and the like, and the whiteboard application can respond to the user operation in real time, such as displaying a trajectory line of the user touch trajectory and the like.

[0006] When drawing an angle, the user can use a triangle ruler tool, but the triangle ruler can only draw an angle with a fixed angle. If the user needs to draw an angle with a specific angle, the user needs to mark the angle and the side and the like by using a protractor tool, and then draw the side of the angle along the mark by using a ruler tool. The drawing process needs to combine the protractor and the ruler, and the operation is relatively cumbersome. SUMMARY

[0007] In a first aspect, the embodiments of the present disclosure provide a display device, which can include a display configured to display a user interface; the display is connected to a touch component, the touch component can be used to collect a touch trajectory input by a user; at least one processor connected to the display, configured to execute computer instructions to cause the display device to perform: in response to an instruction indicating drawing an angle, controlling the display to display an angle drawing control; the angle drawing control includes an angle indication line; in response to an instruction indicating moving the angle indication line, moving the angle indication line and obtaining a first direction of the moved angle indication line; obtaining a first touch trajectory collected by the touch component, and determining a second direction of the first touch trajectory; calculating a first direction difference between the first direction and the second direction; if the first direction difference is less than or equal to a direction difference threshold, obtaining a target endpoint on the angle indication line according to the first touch trajectory; and drawing a side of the angle with a vertex of a base point of the angle indication line and an endpoint of the target endpoint.

[0008] In a second aspect, the embodiments of the present disclosure provide a method for drawing an angle, which can include: in response to an instruction indicating drawing an angle, controlling a display to display an angle drawing control; the angle drawing control includes an angle indication line; in response to an instruction indicating moving the angle indication line, moving the angle indication line and obtaining a first direction of the moved angle indication line; obtaining a first touch trajectory collected by the touch component, and determining a second direction of the first touch trajectory; calculating a first direction difference between the first direction and the second direction; if the first direction difference is less than or equal to a direction difference threshold, obtaining a target endpoint on the angle indication line according to the first touch trajectory; and drawing a side of the angle with a vertex of a base point of the angle indication line and an endpoint of the target endpoint. BRIEF DESCRIPTION OF DRAWINGS

[0009] FIG. 1 is a schematic diagram of an operating scenario between a display device and a control device according to some embodiments;

[0010] FIG. 2 is a hardware configuration block diagram of a display device according to some embodiments;

[0011] FIG. 3 is a hardware configuration block diagram of a control device according to some embodiments;

[0012] FIG. 4 is a software configuration diagram in a display device according to some embodiments;

[0013] FIG. 5 is a schematic diagram of an application panel according to some embodiments;

[0014] FIG. 6 is a schematic diagram of a touch trajectory according to some embodiments;

[0015] FIG. 7 is a schematic diagram of a whiteboard interface according to some embodiments;

[0016] FIG. 8 is a schematic diagram of components of a drawing canvas, according to some embodiments;

[0017] FIG. 9 is a schematic diagram of an acceleration layer, according to some embodiments;

[0018] FIG. 10 is a schematic diagram of a teaching tool, according to some embodiments;

[0019] FIG. 11 is a flowchart of interactions of components of a display device, according to some embodiments;

[0020] FIG. 12 is a schematic diagram of a list of options of an auxiliary tool, according to some embodiments;

[0021] FIG. 13 is a schematic diagram of an angle drawing control, according to some embodiments;

[0022] FIG. 14 is a schematic diagram of a moving angle indicator line, according to some embodiments;

[0023] FIG. 15 is a schematic diagram of an angle drawing control, according to some embodiments;

[0024] FIG. 16 is a schematic diagram of drawing an edge, according to some embodiments. DETAILED DESCRIPTION

[0025] FIG. 1 is a schematic diagram of an operating scenario between a display device and a control device, according to some embodiments. As shown in FIG. 1, a user can operate a display device 200 through a mobile terminal 300 and a control device 100. For example, the control device 100 can be a remote controller, a stylus, a handle, etc.

[0026] In embodiments of the present disclosure, the display device 200 generally refers to a device having the ability to display a picture and process data. For example, the display device 200 includes, but is not limited to, a smart television, a mobile terminal, a computer, a monitor, an advertising screen, a wearable device, a virtual reality device, an augmented reality device, etc.

[0027] The mobile terminal 300 can be used as a control device to perform human-computer interaction between the user and the display device 200. The mobile terminal 300 can also be used as a communication device to establish a communication connection with the display device 200 and perform data interaction. In some embodiments, the mobile terminal 300 can install a software application with the display device 200, implement connection communication through a network communication protocol, and achieve the purpose of one-to-one control operation and data communication. The mobile terminal 300 can also transmit audio and video content displayed thereon to the display device 200 to achieve a synchronous display function.

[0028] As also shown in FIG. 1, the display device 200 also communicates data with a server 400 through various communication methods. The display device 200 can be allowed to communicate through a local area network (LAN), a wireless local area network (WLAN), and other networks.

[0029] The display device 200 can provide a broadcast receiving television function, and can additionally provide a smart network television function supporting a computer function, including but not limited to a network television, a smart television, an Internet protocol television (IPTV), and the like.

[0030] FIG. 2 is a hardware configuration block diagram of the display device 200 shown in FIG. 1, as shown in FIG. 2, the display device 200 can include at least one of a tuner and demodulator 210, a communication device 220, a detector 230, a device interface 240, a processor 250, a display 260, an audio output device 270, a memory, a power supply, and a user input interface.

[0031] In some embodiments, the detector 230 is configured to collect signals of an external environment or an external interaction. For example, the detector 230 includes a light receiver configured to collect an ambient light intensity, or the detector 230 includes an image collector such as a camera configured to collect an external environment scene, a user attribute, or a user interaction gesture, or the detector 230 includes a sound collector such as a microphone configured to receive an external sound.

[0032] In some embodiments, the display 260 includes a display function component configured to present a picture, and a driving component configured to drive an image display. The display 260 is configured to receive an image signal output from the processor 250 for display. For example, the display 260 can be configured to display a video content, an image content, and a component of a menu control interface, and a user control UI interface, and the like.

[0033] In some embodiments, the display device 200 can also support a touch interaction, that is, a touch component can be provided on the display device 200, and the touch component can be an internal module or an external module. For example, in order to implement a touch interaction operation, a touch screen (TP) can be provided on the display 260 of the display device 200, and the touch screen can receive a touch signal input by a finger, a stylus, or the like, and perform a touch interaction response according to a pre-set interaction strategy. Of course, the display device 200 can also be a touch integrated screen.

[0034] For the display device 200 with an external touch component, a terminal, a device, or a component with a touch function can be connected to the display device 200 through the device interface 240 of the display device 200. For example, a touchpad can be connected to the USB or USB-C interface of the display device 200, the touchpad can receive touch data input by a user in real time, and transmit the touch data to the display device 200 through the USB channel, and the display device 200 can perform an interaction response in combination with a touch application according to the received touch data, so that the display device 200 supports a touch interaction operation.

[0035] In some embodiments, the communication device 220 is a component for communicating with the external device or the server 400 according to various communication protocol types. The display device 200 can be provided with multiple communication devices 220 according to different supported communication manners. For example, when the display device 200 supports wireless network communication, the display device 200 can be provided with a communication device 220 containing WiFi function. When the display device 200 supports Bluetooth connection communication, the display device 200 needs to be provided with a communication device 220 containing Bluetooth function.

[0036] The communication device 220 can connect the display device 200 with the external device or the server 400 through wireless or wired connection. The wired connection can connect the display device 200 with the external device through data line, interface, etc. The wireless connection can connect the display device 200 with the external device through wireless signal or wireless network. The display device 200 can directly establish connection relationship with the external device, or indirectly establish connection relationship through gateway, route, connection device, etc.

[0037] In some embodiments, the processor 250 can include at least one of central processor, video processor, audio processor, graphics processor, power processor, first interface to nth interface for input / output, and can control the operation of the display device and respond to the user's operation through various software control programs stored in the memory. The processor 250 controls the overall operation of the display device 200.

[0038] In some embodiments, the processor 250 and the tuner demodulator 210 can be located in different split devices, i.e. the tuner demodulator 210 can also be in an external device of the main device where the processor 250 is located, such as an external set-top box, etc.

[0039] In some embodiments, the user can input user commands through the graphical user interface (GUI) displayed on the display 260, and the user input interface receives the user input commands through the graphical user interface (GUI).

[0040] In some embodiments, the audio output device 270 can be a native loudspeaker of the display device 200, or an audio output device connected to the display device 200. For the audio output device connected to the display device 200, the display device 200 can also be provided with an external audio output terminal, and the audio output device can be connected to the display device 200 through the external audio output terminal to output the sound of the display device 200.

[0041] In some embodiments, the user input interface 280 can be used to receive instructions from the user input.

[0042] FIG. 3 is a hardware configuration block diagram of the control device in FIG. 1 according to some embodiments. As shown in FIG. 3, the control device 100 can include a processor 110, a communication interface 130, a user input / output interface, a memory, a power supply.

[0043] The control device 100 is configured to control the display device 200, and can receive the input operation instructions of the user, and convert the operation instructions into instructions that the display device 200 can recognize and respond to, thereby playing a role of an intermediary in the interaction between the user and the display device 200.

[0044] In order to perform user interaction, in some embodiments, the display device 200 can run an operating system. The operating system is a computer program for managing and controlling hardware resources and software resources in the display device 200. The operating system can control the display device to provide a user interface, for example, the operating system can directly control the display device to provide a user interface, or can provide a user interface by running an application program. The operating system also allows the user to interact with the display device 200.

[0045] It should be noted that the operating system can be a native operating system based on a specific operating platform, a third-party operating system deeply customized based on a specific operating platform, or an independent operating system specially developed for the display device.

[0046] The operating system can be divided into different modules or levels according to the functions implemented, for example, as shown in FIG. 4, in some embodiments, the system is divided into four layers, from top to bottom, the application layer (referred to as "application layer" for short), the application framework layer (referred to as "framework layer" for short), the system library layer and the kernel layer.

[0047] In some embodiments, the application layer is used to provide services and interfaces for application programs, so that the display device 200 can run application programs and interact with the user based on the application programs. At least one application program can be run in the application layer, which can be a window (Window) program, a system setting program or a clock program provided by the operating system, etc.; or an application program developed by a third-party developer. In specific implementation, the application programs in the application layer are not limited to the above examples.

[0048] The framework layer provides an application programming interface (API) and a programming framework for applications. The application framework layer includes some pre-defined functions. The application framework layer is equivalent to a processing center that decides which application in the application layer to act. The application can access the resources in the system and obtain the services of the system through the API interface in the execution.

[0049] In some embodiments, the system runtime library layer can provide support for the framework layer. When the framework layer is used, the operating system runs the instruction library contained in the system runtime library layer, such as the C / C++ instruction library, to realize the functions of the framework layer.

[0050] In some embodiments, the kernel layer is a functional layer between the hardware and the software of the display device 200. The kernel layer can implement hardware abstraction, multitasking, memory management, and the like. For example, as shown in FIG. 4, the kernel layer can be configured with a hardware driver. The driver contained in the kernel layer can be at least one of the following drivers: an audio driver, a display driver, a Bluetooth driver, a camera driver, a WIFI driver, a USB driver, an HDMI driver, a sensor driver (such as a fingerprint sensor, a temperature sensor, a pressure sensor, and the like), and a power supply driver, and the like.

[0051] It should be noted that the above examples are only a simple division of the functions of the operating system, and do not constitute a limitation on the specific operating system form of the display device 200 in the embodiments of the present disclosure. According to the function of the display device, the type of the operating system, and the like, the number and specific type of the layers contained in the operating system can be in other forms.

[0052] The display device 200 can have multiple functions, such as browsing web pages, playing media, entertainment games, screen projection, and the like, thereby providing a variety of services to the user. The user can control the display device 200 to start a certain related application, thereby starting the corresponding function.

[0053] In some embodiments, when the user controls the display device to start, the processor 250 can control the display 260 to display a user interface. The user interface can be a specific target image, such as various media obtained from a network signal source, including video, picture, and the like. The user interface can also be some UI interface of the display device, such as a system main interface, various setting interfaces, and various control interfaces of the application, and the like.

[0054] The user interface can include an application panel, such as a "My Applications" control. The user can view the applications installed on the display device 200, i.e., the functions supported by the display device 200, through the application panel. It should be noted that the applications installed on the display device 200 can be system applications or third-party applications. The user can control the display device 200 to implement the functions of the corresponding application by starting the application.

[0055] In some embodiments, the user can control the display device 200 to call up the application panel to view the applications installed on the display device. FIG. 5 is a schematic diagram of an application panel according to some embodiments. As shown in FIG. 5, the application panel includes three controls, "Browser", "Network Media", and "Fitness Training". The user can control the display device 200 to open the browser application to browse various web pages, etc. by clicking the "Browser" control. The user can control the display device 200 to watch various network media by clicking the "Network Media" control. The user can control the display device 200 to start the electronic whiteboard application by clicking the "Electronic Whiteboard" control, and the user can draw various content, such as lines, angles, patterns, etc. using the electronic whiteboard application.

[0056] The user can control the display device through touch interaction, such as various drawing operations. The display device 200 can collect the touch track input by the user through the touch assembly.

[0057] According to the interaction principle of the touch assembly, the touch assembly can detect the relevant parameters in the touch track. For example, the display 260 screen of the display device 200 is provided with a capacitive screen touch layer. When the user's finger touches any position of the touch layer, the capacitance of the touch layer at the touch position will change. At this time, the touch assembly can record the position of the capacitance change, and combine the timer in the processor to record the time when the capacitance change occurs, to generate touch interaction data.

[0058] In some embodiments, the physical signals detected by the touch component need to be converted before they can be read by the processor 250 of the display device 200. For example, the analog signals of the capacitance change need to be converted into digital signals before they are transmitted to the processor 250 of the display device 200. In order to adapt to the screen display process of the display device 200, the touch data detected by the touch component also needs to be mapped in coordinates so that the position point corresponding to the touch data can have a corresponding relationship with the pixel point in the display 260 or the user interface of the display device 200. For example, the coordinate position detection accuracy of the touch component is 65536x65536, and the resolution of the display 260 of the display device 200 is 3840x2160. Therefore, after the touch component detects the touch data, the touch point position in the width and height directions can be mapped in coordinates according to the proportions of 65536 / 3840 and 65536 / 2160, so that the display device 200 can perform relevant operation responses based on the mapped touch point position coordinates.

[0059] The touch data can include different operation parameters according to the input mode of the user. FIG. 6 is a schematic diagram of a touch trajectory according to some embodiments. As shown in FIG. 6, the touch data can include the touch time, touch position, touch event type, and touch point number of the touch operation of the user. In a touch interaction process, the touch events that can be detected by the touch component include the down event, move event, and up event of the touch operation. Corresponding to the entire touch trajectory, the starting point, trajectory point, and ending point can be formed. Each touch event is recorded with the corresponding touch time and touch position.

[0060] In the process of executing the touch interaction response, the display device 200 can classify different touch times, touch positions, touch point numbers, and touch event types, that is, the touch input gesture of the user can be detected, and different interaction responses can be executed for different input gestures. For example, when the touch point number in the touch data detected by the touch component is 1, the touch event type only includes the down event and the up event, the time interval between the down event and the up event is less than the single-click event time threshold, and the touch position change distance between the down event and the up event is less than the jitter distance threshold, it can be determined that the touch input gesture of the current user is a click gesture. Then, based on the click gesture, the display device 200 executes the operation of starting an application program according to the icon in the area where the touch position corresponding to the click gesture is located.

[0061] Similarly, the display device 200 can also detect other touch interaction gestures input by the user based on the touch time, touch position, touch point number, and touch event type, such as a double-click gesture, a slide gesture, a long-press gesture, a multi-finger click gesture, a multi-finger slide gesture, and the like. Different interaction gestures can derive different touch parameters, such as a slide distance, a slide speed, a slide direction, a slide track shape, and the like, which can be used to perform different interaction controls.

[0062] In some embodiments, to enrich the touch interaction types supported by the display device 200, the display device 200 can also perform complex gesture detection based on the dynamic change rules of the touch time, touch position, touch point number, and touch event type. For example, when the touch component detects that the touch data input by the user includes multiple touch points, and the touch positions of each touch point are close to each other as the user inputs, it can be determined that the touch gesture currently input by the user is a grab gesture. Based on the complex gesture detection, the display device 200 can perform more interaction responses. For example, when the detected touch gesture is a grab operation on an image view, the display device 200 can respond to the grab gesture and perform a control action of moving the image display position.

[0063] In some embodiments, the touch gesture can also be combined with the touch position to form a touch interaction operation based on a specific position. For example, when the touch component detects that the down event position in the touch operation process is at the top of the display 260, the touch point position corresponding to the move event moves downward, and when the up event is detected, the display device 200 can determine that the current touch gesture is a downward swipe from the top of the screen. Therefore, the display device 200 can respond to the touch gesture and control the display 260 to present a drop-down list.

[0064] Some touch interaction operation gestures can be used to perform interaction actions based on the operating system of the display device 200, which are referred to as global gestures. For example, the operation of swiping from the top of the screen to call a drop-down list in the above example of the display device 200. Some touch interaction operation gestures can be used to perform interaction actions based on a specific touch application. For example, when the display device 200 runs a whiteboard application, a slide touch operation input by the user can be used to draw a track line on the whiteboard.

[0065] The touch application can be a system application or a third-party application developed based on a specific display device type and user needs. It should be noted that the whiteboard application described above can be a standalone application, an associated application, or a functional module in a touch application. Different forms of whiteboard applications can have different starting methods. For example, a user can start a standalone whiteboard application through an application panel of the display device 200; the user can also start the whiteboard application by performing a "whiteboard" operation on a conference application; and the user can also control the conference application to start the whiteboard functional module by clicking a "whiteboard" icon on the conference application.

[0066] Different forms of whiteboard applications can also have different whiteboard application interface forms after being started. For example, when a user starts a whiteboard application through an associated application, the display device 200 can automatically enter a dual-screen (or split-screen) mode. In the dual-screen (or split-screen) mode, the display device 200 can display a user interface through two display areas, i.e., a main screen displays an original application (such as a conference application) interface, and a sub-screen displays a whiteboard application interface.

[0067] After the whiteboard application is running, the display device 200 can be switched to display a whiteboard interface. FIG. 7 is a schematic diagram of a whiteboard interface according to some embodiments. As shown in FIG. 7, the whiteboard interface can include drawing tool controls for drawing operations, such as pen-shaped, graphic, line-shaped, color, erasing, clearing, selecting, and the like. A user can click any control to draw a graphic according to specific drawing needs.

[0068] FIG. 8 is a schematic diagram of components of a drawing screen according to some embodiments. As shown in FIG. 8, the display device 200 can render and display a drawing screen in real time through an image generation (Image Producer) module, an image rendering (surface flinger) module, a composition (Composer) module, a video process (Video Processing Unit hardware, VPU hardware) module, and a screen.

[0069] In the process of displaying the drawing picture, the image generation module can be connected with the whiteboard application through a graphic interface (openGLES) to generate drawing image content and transmit the image content to the image rendering module. The image rendering module is used to control the display 260 to display the content, i.e., to render the image content through a user interaction layer (UI layer) or a video layer according to the image content. In order to obtain a better display effect, the image content of the UI layer can be rendered through a GPU component, so as to form a picture frame for display in the composition module. The composition module can form picture content through software or hardware, for example, the composition module can be a hardware composition (HWC) module.

[0070] The picture frame can be stored in the frame buffer and the video buffer in the composition module, respectively, and picture content can be formed in the corresponding layers through the video process module. That is, the image frame generated by the video playing process forms picture content through the video layer (video plane), and the image frame of other image pictures (such as touch track, graphics, etc.) forms picture content through the primary OSD layer (primary OSD plane). Finally, the display device 200 forms the final picture through the blend unit of the video process module and displays it on the display 260.

[0071] Since the whiteboard application can present the user's touch track in real time according to the user's touch operation, in order to present a better real-time response effect, the display device 200 should shorten the touch operation input time and the delay time of the drawing result display. To this end, in some embodiments, the display device 200 can present a real-time drawing effect by setting an acceleration layer. That is, in the video process module of the display device 200, an external OSD plane layer can be additionally set on the basis of the primary OSD plane layer and the video layer. The external OSD plane layer can be configured to have different layer characteristics according to specific display effect requirements. For example, the bitmap refresh mode of the external OSD plane layer can be modified to refresh the external OSD plane layer in real time according to the region, so as to improve the display speed of the graphics. At this time, the external OSD plane layer can be used as an acceleration layer in the scene of high dynamic display effect.

[0072] Taking the whiteboard application running on the display device 200 as an example, in order to improve the real-time response speed of the line drawing process, the touch trajectory can be drawn in real time on the extended display layer (accelerated layer) after detecting the touch operation of the user. FIG. 9 is a schematic diagram of the accelerated layer according to some embodiments. As shown in FIG. 9, the display level of the accelerated layer can be higher than other layers, and the line drawn by the accelerated layer is updated to other layers when the user completes the touch input, so as to reduce the input delay and improve the real-time display effect of the whiteboard application drawing process.

[0073] In some embodiments, the extended display layer can also work together with other graphics to improve the display quality. For example, the accelerated layer can respond to the touch event of the user input at the same time as the main OSD layer, and draw graphics respectively. However, since the accelerated layer is displayed above the main OSD layer, the graphics drawn by the accelerated layer can block the graphics drawn by the OSD layer, and the real-time response speed is maintained. After the user inputs the touch interaction action, the content displayed by the accelerated layer can be directly released, and the OSD layer directly forms the drawn graphics, so that the accelerated layer does not need to refresh the drawn graphics to the OSD layer, and the graphics mixing time is reduced. Both the real-time display effect of the graphics drawing process and the final presentation quality of the graphics drawing are improved.

[0074] In some embodiments, in order to adapt to different user needs, the whiteboard application can also dynamically configure different interface contents. FIG. 10 is a schematic diagram of a teaching tool according to some embodiments. As shown in FIG. 10, the whiteboard application running on the display device 200 applied to the education field can include a “teaching tool” option. When the user clicks the teaching tool option, a teaching tool list can be popped up. The teaching tool list can include tool options such as “ruler”, “triangle ruler”, “protractor” and the like. After the user clicks the “triangle ruler” tool option, the “triangle ruler” tool can be called to assist in drawing, at this time, the display device 200 can increase a movable triangle ruler tool graphic in the whiteboard drawing interface, and when the user touch trajectory is close to the edge of the triangle ruler tool graphic, a straight line segment is drawn along the edge of the triangle ruler tool graphic.

[0075] In some embodiments, the whiteboard application can also store the graphic objects drawn by the user for each touch operation. Wherein, one touch operation refers to the process from when the user's finger (or stylus) contacts the touch layer to when the user's finger (or stylus) leaves the touch layer. That is, if the user inputs a click action, one touch operation should include a down event and an up event. If the user inputs a sliding action, one touch operation should include a down event, a move event and an up event. Each touch operation can generate a drawing object, and the whiteboard application can record the drawing object, so as to facilitate the user to perform actions such as selection, undo, redo and the like.

[0076] In the process of storing the drawing object, the whiteboard application can also set associated information for the drawing object according to characteristics and input states of the drawing object. For example, after a user draws a straight line, the whiteboard application can set a shape identifier for the straight line object, the shape identifier can be stored in association with the straight line object, and can be called by other modules of the whiteboard application or other applications, so as to facilitate object selection, object retrieval, object deletion, and the like.

[0077] In some embodiments, the whiteboard application can also support multiple gesture interaction operations, and has different control functions for different gesture interaction operations. For example, the whiteboard application can move the whiteboard drawing area along a multi-finger sliding track in response to a multi-finger sliding operation of a user. The whiteboard application can also perform an erasing function to erase drawing objects covered by a palm sliding operation track in response to a palm sliding operation of the user.

[0078] In some embodiments, for a teaching scenario or the like, a user can want to draw an angle, i.e., an angle figure formed by the intersection of two sides. The user can define a vertex position of the angle and draw two sides of the angle. However, if the user draws the angle by himself / herself, the size of the angle cannot be guaranteed. Therefore, the user can use a teaching tool to assist in drawing the angle.

[0079] The user can use a triangular ruler tool to draw the angle. The triangular ruler as a whole presents a triangle shape and includes three angles. The user can use one end of the angle to draw the angle. However, the triangular ruler can only be used to draw angles with fixed angles. For example, the three angles of the triangular ruler are 90 degrees, 60 degrees, and 30 degrees, or are 90 degrees, 45 degrees, and 45 degrees. If the user needs to draw an angle with a specific angle that is not included in the angles of the triangular ruler, the triangular ruler cannot be used to draw the angle.

[0080] In order to be able to draw an angle with an arbitrary angle, the user can use a protractor tool and a ruler tool.

[0081] The user can first use the protractor tool to mark parameters such as an angle and a side. The user can measure the required angle and can mark the side corresponding to the angle, for example, mark a straight line on which the side is located. After the marking, the user uses the ruler tool to draw the side of the angle along the mark. After the drawing is completed, the user removes the mark, thereby obtaining a complete angle.

[0082] It should be noted that this drawing process needs to combine the protractor and the ruler, the user uses multiple tools, the operation is relatively cumbersome, and the time spent on drawing the angle is too long.

[0083] Meanwhile, after the user draws the angle, the user also needs to remove the mark made in the process. Since the side of the angle is located near the mark, the user is also likely to mistakenly remove the side of the angle when removing the mark, which is poor in user experience.

[0084] To solve the above problems, the display device 200 provided by the embodiments of the present disclosure can simplify the function of drawing an angle, and the user can draw an angle using a single auxiliary tool. During the process of drawing an angle, the user can call out a protractor, and set the degree of the angle through an angle indication line. The user can draw a straight line track in a touch manner along the angle indication line, thereby directly drawing the side of the angle, without the need to call out a ruler tool again, and the drawing process is simple.

[0085] FIG. 11 is an interaction flow diagram of various components of a display device according to some embodiments, including the following steps:

[0086] S101, in response to an instruction indicating drawing of an angle, controlling a display to display an angle drawing control;

[0087] The angle drawing control includes an angle indication line.

[0088] S102, in response to an instruction indicating movement of the angle indication line, moving the angle indication line and obtaining a first direction of the angle indication line after the movement;

[0089] S103, obtaining a first touch track collected by a touch component, and determining a second direction of the first touch track;

[0090] S104, calculating a first direction difference between the first direction and the second direction; if the first direction difference is less than or equal to a direction difference threshold, obtaining a target endpoint on the angle indication line according to the first touch track;

[0091] S105, taking a base point of the angle indication line as a vertex of the angle, and taking the target endpoint as an endpoint of a side of the angle, to draw the side of the angle.

[0092] In the display device, the display and the touch component are connected. The user can control the display device in a touch manner, and draw various content. The touch component detects the touch track of the user, and the display device can perform a related operation through the touch track of the user.

[0093] In some embodiments, when the user has a demand to draw an angle, an instruction indicating drawing of the angle can be input to the display device. A whiteboard application is provided with a plurality of auxiliary tools for assisting in drawing various content. The auxiliary tools include an angle drawing control. The angle drawing control is used to assist in drawing an angle, and the angle drawing control can be a protractor tool.

[0094] The user can call out the angle drawing control by himself to draw an angle of various angles.

[0095] The option list of the auxiliary tools can be displayed in the whiteboard application interface. FIG. 12 is a schematic diagram of an option list of auxiliary tools according to some embodiments. As shown in FIG. 12, the option list includes controls of a plurality of auxiliary tools, which can include a ruler control, a triangle ruler control, and an angle drawing control, etc. The user can directly click the angle drawing control to instruct the display device to display the angle drawing control. The display device can generate an instruction for drawing an angle in response to the user operation, and control the display to display the angle drawing control.

[0096] The user can also input the instruction for drawing an angle to the display device by voice input or the like. For example, the user can input a voice instruction "I want to draw an angle" to the display device through a microphone or the like. After parsing the voice instruction of the user, the display device can control the display to display the angle drawing control.

[0097] In some embodiments, the display device can control the display to display the angle drawing control. FIG. 13 is a schematic diagram of an angle drawing control according to some embodiments. As shown in FIG. 13, the angle drawing control can be a protractor tool. The angle drawing control includes an angle measurement area and an angle indication line. The angle measurement area can be a semicircular area, in which an angle parameter is labeled. In the embodiments of the present disclosure, the center of the angle measurement area (point R in the figure) is referred to as the center point of the angle drawing control. When drawing an angle, the center point of the angle drawing control is the vertex of the angle.

[0098] The angle drawing control can include at least two angle indication lines. The angle indication line is a line segment for indicating two sides of the drawn angle. One end point of the angle indication line is fixed at the center point of the angle measurement area of the angle drawing control, i.e., the center point mentioned above. In the embodiments of the present disclosure, the end point fixed at the center point of the angle drawing control is referred to as the base point of the angle indication line. The base points of the two angle indication lines are both fixed at the center point of the angle drawing control (the two angle indication lines are L1 and L2 respectively), so that the two angle indication lines intersect at the center point to form an angle. The user can control the included angle formed by the two angle indication lines by moving the angle indication lines, so as to set the degree of the angle to be drawn.

[0099] In some embodiments, considering the diversity of user operations, to avoid the user from triggering the movement of the angle indication line when touching a certain area, a movement control can be provided in the angle indication line. As shown in FIG. 13, the movement control of the angle indication line L1 is K1, and the movement control of the angle indication line L2 is K2. The movement control can be provided at the other end point of the angle indication line, which can be a circular control. The user can touch the control to move it.

[0100] It can be set that when the user touches the movement control, the movement operation of the angle indication line is triggered. That is, the user can hold the movement control to move the angle indication line.

[0101] In some embodiments, after the display device controls the display to display the angle drawing control, the display device can acquire the second touch track collected by the touch component to confirm the touch operation of the user. Further, the display device can detect the position of the second starting point of the second touch track. If the second starting point is located in the response range of the movement control, it indicates that the user wants to move the angle indication line, and the display device can generate an instruction indicating the movement of the angle indication line.

[0102] In some embodiments, in response to the instruction indicating the movement of the angle indication line, the display device can move the angle indication line and acquire the first direction of the angle indication line after the movement. When moving the angle indication line, the display device can determine the movement direction and the movement distance according to the second touch track of the user, so as to move the angle indication line.

[0103] It should be noted that the base point of the angle indication line is fixedly arranged at the center point of the angle drawing control. Therefore, the movement operation of the angle indication line can also be regarded as rotating the angle indication line with the base point of the angle indication line as the center.

[0104] In some embodiments, the display device can set the base point of the angle indication line as a stationary point, and move the movement control according to the second touch track to rotate the angle indication line.

[0105] In some embodiments, the display device can acquire the control coordinates of the movement control after the movement and the center point coordinates of the angle drawing control. It should be noted that the center point of the angle drawing control (i.e., the base point of the angle indication line) will not move in the process of moving the angle indication line, and the coordinates of the center point are set as (x0, y0). The movement control itself can be a small area, and the control coordinates of the movement control can be set as the center point coordinates of the movement control.

[0106] In some embodiments, the display device can calculate the first straight line equation corresponding to the angle indication line after the movement according to the control coordinates and the center point coordinates, and mark the slope of the first straight line equation as the first direction.

[0107] For example, the control coordinates of the movement control after the movement are (x1, y1). Then, the straight line equation corresponding to the angle indication line, referred to as the first straight line equation in the embodiments of the present disclosure, can be calculated according to the control coordinates (x1, y1) and the center point coordinates (x0, y0), and is represented as y=K1x+b1.

[0108] In some embodiments, the slope of the first straight line equation can be used to represent the direction of the angle indication line, which is referred to as the first direction in the embodiments of the present disclosure.

[0109] In the process of setting the angle, the user can move one angle indication line or two angle indication lines. The display device can detect the movement operation of the user on the two angle indication lines, thereby determining the set angle parameter. Meanwhile, the display device can calculate the first straight line equation of the two angle indication lines after movement, thereby obtaining the first direction of the two angle indication lines.

[0110] FIG. 14 is a schematic diagram of moving an angle indication line according to some embodiments. In some embodiments, in order to ensure that the user can confirm the degree of the angle in the process of moving the angle indication line, the degree of the currently formed angle can be displayed in real time.

[0111] Since the angle drawing control includes two angle indication lines, and the base points of the two angle indication lines are fixedly arranged at the center of the angle drawing control, the included angle of the two angle indication lines is the degree of the current angle.

[0112] In some embodiments, the display device can obtain the included angle of the two angle indication lines, and control the display to display the included angle in the angle drawing control.

[0113] The angle drawing control can be a semicircular region, and the angle drawing control can be further divided into a first region and a second region. FIG. 15 is a schematic diagram of an angle drawing control according to some embodiments. As shown in FIG. 15, the first region Q1 is a semicircular region, the center of which is the same as the center of the angle drawing control, that is, point R, and the radius of the first region Q is smaller than the radius of the angle drawing control. The second region is a region other than the first region in the angle drawing control, which is a ring-shaped region.

[0114] In some embodiments, the display device can control the display to display the included angle in the first region of the angle drawing control. For example, the current angle indication lines L1 and L2 form an included angle D, and the included angle D can be displayed in the first region Q1.

[0115] In some embodiments, the user can move the angle indication line to set the degree of the angle. After setting the angle, the user can continue to draw the side of the angle.

[0116] Since the straight line on which the angle indication line is located is the straight line on which the side of the angle is located, the user can directly draw the side by using the angle indication line, for example, touching a track along the angle indication line to represent the drawn side.

[0117] In some embodiments, the display device can draw the side of the angle according to the touch track of the user.

[0118] In some embodiments, after the user moves the angle indication line, the display device can obtain the first touch track collected by the touch component, and obtain the second direction of the first touch track.

[0119] It should be noted that due to the diversity of user operations, after setting the angle, the user can want to draw the side of the angle, or can perform some other operations, for example, can draw other content in an area outside the angle drawing control, or move the angle drawing control, and the like. Therefore, the touch operation of the user after setting the angle is not necessarily the operation of drawing the side of the angle. The display device needs to detect the touch operation of the user to confirm whether the current operation is the operation of drawing the side. Therefore, in order to confirm the operation of drawing the side of the angle by the user, it can be set in the embodiment of the present disclosure that the operation of drawing a line in a specific area by the user is the operation of drawing the side.

[0120] The angle drawing control includes a first area and a second area, and can be set that the touch operation initiated by the user in the first area can indicate drawing the side.

[0121] After obtaining the first touch trajectory, the display device can first detect the position of the first starting point of the first touch trajectory.

[0122] If the first starting point is located in the second area, it can be considered that the user wants to move the angle drawing control, and the angle drawing control can be moved according to the first touch trajectory.

[0123] If the first starting point is located outside the angle drawing control, it means that the user does not control the angle drawing control, and the display device can control the display to display the first touch trajectory, for example, draw a line corresponding to the first touch trajectory.

[0124] If the first starting point is located in the first area, it means that the user initiates the touch operation in the first area, and at this time, there is a possibility of drawing the side. It should be noted that the touch operation initiated by the user in the first area is not necessarily all the operation of drawing the side, and therefore further detection is required.

[0125] In some embodiments, the display device can obtain the coordinates of the starting point of the first touch trajectory, which is referred to as the first starting point coordinates in the embodiment of the present disclosure. Further, the display device can also obtain the coordinates of the termination point of the first touch trajectory, which is referred to as the first termination point coordinates in the embodiment of the present disclosure.

[0126] In some embodiments, the display device can calculate a second straight line equation corresponding to the first touch trajectory according to the first starting point coordinates and the first termination point coordinates. For example, the first starting point coordinates are represented as (x11, y11), and the first termination point coordinates are represented as (x12, y12). The display device can calculate a straight line equation corresponding to the first touch trajectory according to the first starting point coordinates (x11, y11) and the first termination point coordinates (x12, y12), which is referred to as a second straight line equation in the embodiment of the present disclosure, and is represented as y=K2x+b2.

[0127] In some embodiments, the display device can mark the slope of the second straight line equation as the second direction. And by calculating the difference between the first direction and the second direction, the angle difference between the two directions is represented, which is referred to as the first direction difference in the embodiments of the present disclosure.

[0128] If the first direction difference is less than or equal to the direction difference threshold, it means that the user wants to draw an edge, and the display device can obtain a target endpoint on the angle indication line according to the first touch trajectory. In the embodiments of the present disclosure, the target endpoint is set as the endpoint of the edge to be drawn.

[0129] In some embodiments, when obtaining the target endpoint, the display device can first obtain the horizontal coordinate of the first termination point, referred to as the first horizontal coordinate in the embodiments of the present disclosure.

[0130] In some embodiments, the display device can calculate the first straight line equation corresponding to the angle indication line after the movement, which is represented as y = K1x + b1. Then the first vertical coordinate is calculated according to the first horizontal coordinate and the first straight line equation. Specifically, the first horizontal coordinate is taken as the x value in the first straight line equation, and the obtained y value is the first vertical coordinate. Thus the target endpoint is obtained. Wherein the horizontal coordinate of the target endpoint is the first horizontal coordinate, and the vertical coordinate of the target endpoint is the first vertical coordinate. That is, according to the first horizontal coordinate and the first vertical coordinate, the corresponding point in the angle indication line is found as the target endpoint. Next, the origin point of the angle indication line (i.e. the center point mentioned above) is taken as the vertex of the angle, and the target endpoint is taken as the endpoint of the edge, and the edge of the angle is drawn. In this way, two corresponding edges can be drawn according to the two angle indication lines to form the angle.

[0131] FIG. 16 is a schematic diagram of drawing an edge according to some embodiments. As shown in FIG. 16, the starting point of the first touch trajectory of the user is A1, and the termination point is B1. The display device detects the position of the starting point A1, which is located in the first region, obtains the second direction of the first touch trajectory, and the difference between the second direction and the first direction is less than the direction difference threshold, so the target endpoint can be obtained according to the termination point B1 of the first touch trajectory, thereby drawing the edge.

[0132] In some embodiments, the user may have the need to continue drawing the edge. For example, the user may be out of touch operation due to hand shaking or other reasons when drawing an edge. Since the length of the edge is related to the touch trajectory of the user, the user out of touch operation may cause the length of the drawn edge to be shorter, which does not meet the user's needs, and the user wants to continue drawing to extend the edge.

[0133] In some embodiments, the display device can obtain the third touch trajectory collected by the touch component. When continuing to draw the edge, the user can continue to draw along the direction of the edge, so it is required that the touch point of the user is relatively close to the originally drawn edge, that is, relatively close to the angle indication line.

[0134] In some embodiments, the display device can first obtain the distance between the third starting point of the third touch trajectory and the angle indication line. When the distance is obtained, a perpendicular line from the third starting point to the angle indication line can be drawn, and the distance of the perpendicular line can be calculated.

[0135] In some embodiments, the display device can also obtain the coordinate information of the third starting point, and substitute the horizontal coordinate of the third starting point into the first straight line equation of the angle indication line to obtain the vertical coordinate value corresponding to the angle indication line. Specifically, the difference between the vertical coordinate value of the third starting point and the vertical coordinate value corresponding to the angle indication line can be obtained, and the difference can be taken as the distance between the third starting point and the angle indication line.

[0136] After the distance is calculated, if the distance is less than or equal to the distance threshold, it means that the user may want to continue drawing the side, and the display device can obtain the third direction of the third touch trajectory. The third direction can be obtained by referring to the foregoing content, which will not be described here.

[0137] In some embodiments, the display device can calculate the second direction difference between the first direction and the third direction. If the second direction difference is less than or equal to the direction difference threshold, the continuation endpoint on the angle indication line can be obtained according to the third touch trajectory, and the side of the angle can be continued to be drawn according to the continuation endpoint.

[0138] In some embodiments, when the user continues to draw the side, the touch trajectory can be drawn towards the base point of the angle indication line, or away from the base point of the angle indication line.

[0139] In some embodiments, the display device can obtain the horizontal coordinate of the third ending point of the third touch trajectory, which is referred to as the second horizontal coordinate in the embodiments of the present disclosure, and can also obtain the horizontal coordinate of the third starting point, which is referred to as the third horizontal coordinate in the embodiments of the present disclosure.

[0140] In some embodiments, the display device can obtain the first endpoint and the second endpoint on the angle indication line. The horizontal coordinate of the first endpoint is the second horizontal coordinate, and the horizontal coordinate of the second endpoint is the third horizontal coordinate.

[0141] In some embodiments, the display device can calculate the first distance between the first endpoint and the base point of the angle indication line, and calculate the second distance between the second endpoint and the base point of the angle indication line.

[0142] If the first distance is greater than or equal to the second distance, the first endpoint is set as the continuation endpoint; if the first distance is less than the second distance, the second endpoint is set as the continuation endpoint.

[0143] After the continuation endpoint is obtained, the continuation endpoint is taken as the endpoint of the side, and the side is continued to be drawn.

[0144] The embodiments of the present disclosure further provide a method for drawing an angle, which can be applied to a display device and can include the following steps.

[0145] In response to an instruction for drawing an angle, the display device displays an angle drawing control, wherein the angle drawing control comprises an angle indicating line.

[0146] In response to an instruction for moving the angle indicating line, the angle indicating line is moved and a first direction of the moved angle indicating line is obtained.

[0147] A first touch track collected by a touch component is obtained, and a second direction of the first touch track is determined.

[0148] A first direction difference between the first direction and the second direction is calculated, and if the first direction difference is less than or equal to a direction difference threshold, a target endpoint on the angle indicating line is obtained according to the first touch track.

[0149] A side of the angle is drawn with a vertex of the angle being a base point of the angle indicating line and an endpoint of the side being the target endpoint.

[0150] In some embodiments, the angle indicating line comprises a moving control, and the method further comprises the following steps: after the display device displays the angle drawing control, a second touch track collected by the touch component is obtained. A position of a second starting point of the second touch track is detected. If the second starting point is located in a response range of the moving control, an instruction for moving the angle indicating line is generated.

[0151] In some embodiments, the base point of the angle indicating line is arranged at a center of a graduated area of the angle drawing control, and the step of moving the angle indicating line and obtaining the first direction of the moved angle indicating line comprises the following steps: the base point of the angle indicating line is arranged as a stationary point, and the moving control is moved according to the second touch track. A control coordinate of the moved moving control and a center coordinate of the graduated area of the angle drawing control are obtained. A first straight line equation corresponding to the moved angle indicating line is calculated according to the control coordinate and the center coordinate, and a slope of the first straight line equation is marked as the first direction.

[0152] In some embodiments, the angle drawing control comprises a first area and a second area, and the step of obtaining the second direction of the first touch track comprises the following steps: a position of a first starting point of the first touch track is detected. If the first starting point is located in the first area, a first starting point coordinate and a first ending point coordinate of the first touch track are obtained. A second straight line equation corresponding to the first touch track is calculated according to the first starting point coordinate and the first ending point coordinate, and a slope of the second straight line equation is marked as the second direction.

[0153] In some embodiments, the method further comprises: if the first starting point is located in the second region, drawing the control according to the moving angle of the first touch trajectory. If the first starting point is located outside the angle drawing control, controlling the display to display the first touch trajectory.

[0154] In some embodiments, the obtaining the target endpoint on the angle indication line according to the first touch trajectory comprises: obtaining a first horizontal coordinate of the first ending point. Calculating a first straight line equation corresponding to the moved angle indication line. Calculating a first vertical coordinate according to the first horizontal coordinate and the first straight line equation. Obtaining the target endpoint, the horizontal coordinate of the target endpoint being the first horizontal coordinate, and the vertical coordinate of the target endpoint being the first vertical coordinate.

[0155] In some embodiments, the method further comprises: after drawing the side of the angle, obtaining a third touch trajectory collected by the touch component. Obtaining a distance between a third starting point of the third touch trajectory and the angle indication line. If the distance is less than or equal to the distance threshold, obtaining a third direction of the third touch trajectory. Calculating a second direction difference between the first direction and the third direction. If the second direction difference is less than or equal to the direction difference threshold, obtaining a continuation endpoint on the angle indication line according to the third touch trajectory, and continuing to draw the side of the angle according to the continuation endpoint.

[0156] In some embodiments, the obtaining the continuation endpoint on the angle indication line according to the third touch trajectory comprises: obtaining a second horizontal coordinate of a third ending point of the third touch trajectory and a third horizontal coordinate of the third starting point. Obtaining a first endpoint and a second endpoint on the angle indication line; the horizontal coordinate of the first endpoint being the second horizontal coordinate, and the horizontal coordinate of the second endpoint being the third horizontal coordinate. Calculating a first distance between the first endpoint and the base point of the angle indication line, and calculating a second distance between the second endpoint and the base point of the angle indication line. If the first distance is greater than or equal to the second distance, setting the first endpoint as the continuation endpoint; if the first distance is less than the second distance, setting the second endpoint as the continuation endpoint.

[0157] In some embodiments, the angle drawing control comprises at least two angle indication lines, the base points of the at least two angle indication lines being arranged at the center point of the angle drawing control; the method further comprises: after moving the angle indication lines, obtaining an included angle of the two angle indication lines. Controlling the display to display the included angle in a first region of the angle drawing control.

[0158] The same or similar parts among various embodiments in the specification are referred to each other, and will not be described here again.

[0159] Those skilled in the art can clearly understand that the technology in the embodiments of the present disclosure can be realized by means of software plus a necessary general hardware platform. Based on such understanding, the embodiments in the present disclosure can be embodied in the form of a software product in essence or the part that contributes to the prior art. The computer software product can be stored in a storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, and the like, and includes a plurality of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the methods of various embodiments or some parts of the embodiments of the present disclosure.

[0160] Finally, it should be noted that: the above embodiments are only used to illustrate the implementation of the present disclosure, rather than limit it; although the present disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the implementation described in the foregoing embodiments, or make equivalent replacement to some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding implementation deviate from the scope of the embodiments of the present disclosure.

[0161] For the convenience of explanation, the above description has been made in combination with specific embodiments. However, the above exemplary discussion is not intended to exhaust or limit the embodiments to the specific forms disclosed above. Various modifications and variations can be derived according to the above teachings. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different modified embodiments suitable for specific use considerations.

Claims

1. A display device, comprising: a display configured to display a user interface; the display is connected to a touch component configured to collect a touch track input by a user; at least one processor connected to the display and configured to execute computer instructions to cause the display device to perform: in response to an instruction indicating to draw an angle, control the display to display an angle drawing control; the angle drawing control comprises an angle indicating line; in response to an instruction indicating to move the angle indicating line, move the angle indicating line and obtain a first direction of the moved angle indicating line; obtain a first touch track collected by the touch component and determine a second direction of the first touch track; calculate a first direction difference between the first direction and the second direction; if the first direction difference is less than or equal to a direction difference threshold, obtain a target endpoint on the angle indicating line according to the first touch track; draw a side of the angle with a vertex at a base point of the angle indicating line and an endpoint at the target endpoint. 2.The display device of claim 1, wherein the angle indicating line comprises a moving control; and the at least one processor is further configured to execute computer instructions to cause the display device to perform: after the display is controlled to display the angle drawing control, further obtain a second touch track collected by the touch component; detect a position of a second starting point of the second touch track; if the second starting point is located within a response range of the moving control, generate the instruction indicating to move the angle indicating line. 3.The display device of claim 2, wherein the base point of the angle indicating line is arranged at a center of a graduated area of the angle drawing control; and the at least one processor is specifically configured to execute computer instructions to cause the display device to move the angle indicating line and obtain the first direction of the moved angle indicating line by: arranging the base point of the angle indicating line as a stationary point and moving the moving control according to the second touch track; obtaining a control coordinate of the moved moving control and a center coordinate of the graduated area of the angle drawing control; calculating a first straight line equation corresponding to the moved angle indicating line according to the control coordinate and the center coordinate of the graduated area, and marking a slope of the first straight line equation as the first direction. 4.The display device of claim 1, wherein the angle drawing control comprises a first area and a second area; and the at least one processor is specifically configured to execute computer instructions to cause the display device to determine the second direction of the first touch track by: detecting a position of a first starting point of the first touch track; if the first starting point is located in the first area, obtaining a first starting point coordinate of the first starting point and a first ending point coordinate of the first touch track; calculating a second straight line equation corresponding to the first touch track according to the first starting point coordinate and the first ending point coordinate, and marking a slope of the second straight line equation as the second direction.

5. The display device of claim 4, wherein the at least one processor is further configured to execute computer instructions to cause the display device to perform: if the first starting point is located in the second region, moving the angle drawing control according to the first touch trajectory; if the first starting point is located outside the angle drawing control, controlling the display to display the first touch trajectory.

6. The display device of claim 4, wherein the at least one processor is specifically configured to execute computer instructions to cause the display device to acquire a target endpoint on the angle indication line according to the first touch trajectory by: acquiring a first horizontal coordinate of the first ending point; calculating a first straight line equation corresponding to the moved angle indication line; calculating a first vertical coordinate according to the first horizontal coordinate and the first straight line equation; determining the target endpoint according to the first horizontal coordinate and the first vertical coordinate.

7. The display device of claim 1, wherein the at least one processor is further configured to execute computer instructions to cause the display device to perform: after drawing the side of the angle, acquiring a third touch trajectory collected by the touch component; acquiring a distance between a third starting point of the third touch trajectory and the angle indication line; if the distance is less than or equal to the distance threshold, acquiring a third direction of the third touch trajectory; calculating a second direction difference between the first direction and the third direction; if the second direction difference is less than or equal to the direction difference threshold, acquiring a successive endpoint on the angle indication line according to the third touch trajectory, and successively drawing the side of the angle according to the successive endpoint.

8. The display device of claim 7, wherein the at least one processor is specifically configured to execute computer instructions to cause the display device to acquire the successive endpoint on the angle indication line according to the third touch trajectory by: acquiring a second horizontal coordinate of a third ending point of the third touch trajectory and a third horizontal coordinate of the third starting point; acquiring a first endpoint and a second endpoint on the angle indication line; the horizontal coordinate of the first endpoint is the second horizontal coordinate, and the horizontal coordinate of the second endpoint is the third horizontal coordinate; calculating a first distance between the first endpoint and an origin point of the angle indication line, and a second distance between the second endpoint and the origin point of the angle indication line; if the first distance is greater than or equal to the second distance, setting the first endpoint as the successive endpoint; otherwise, setting the second endpoint as the successive endpoint.

9. The display device of claim 1, wherein the angle drawing control comprises at least two angle indication lines, and origins of the at least two angle indication lines are set at a center of a graduated region of the angle drawing control; and the at least one processor is further configured to execute computer instructions to cause the display device to perform: after moving the angle indication lines, acquiring an included angle of the two angle indication lines; controlling the display to display the included angle in a first region of the angle drawing control.

10. A method for drawing a corner, applied to the display device of any one of claims 1-9, the method comprising: in response to an instruction indicating to draw a corner, controlling the display to display a corner drawing control; the corner drawing control comprising a corner indicating line; in response to an instruction indicating to move the corner indicating line, moving the corner indicating line and obtaining a first direction of the moved corner indicating line; obtaining a first touch track collected by a touch component, and determining a second direction of the first touch track; calculating a first direction difference between the first direction and the second direction; if the first direction difference is less than or equal to a direction difference threshold, obtaining a target end point on the corner indicating line according to the first touch track; drawing a side of the corner with a vertex of the corner indicating line as a vertex of the corner and the target end point as an end point of the side.

Citation Information

Patent Citations

  • Display device

    CN112947783A

  • Electronic whiteboard protractor implementation method and device

    CN115964007A

  • Angle measurement method, system and equipment of electronic whiteboard and medium

    CN117330014A