CN113487704B - Dovetail arrow mark drawing method and device, storage medium and terminal equipment - Google Patents

Dovetail arrow mark drawing method and device, storage medium and terminal equipment Download PDF

Info

Publication number
CN113487704B
CN113487704B CN202110714472.3A CN202110714472A CN113487704B CN 113487704 B CN113487704 B CN 113487704B CN 202110714472 A CN202110714472 A CN 202110714472A CN 113487704 B CN113487704 B CN 113487704B
Authority
CN
China
Prior art keywords
arrow
point
dovetail
tail
target data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110714472.3A
Other languages
Chinese (zh)
Other versions
CN113487704A (en
Inventor
邓艳玲
陈志芬
卫宣安
姜坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Qilu Shutong Technology Co ltd
Original Assignee
Shandong Qilu Shutong Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Qilu Shutong Technology Co ltd filed Critical Shandong Qilu Shutong Technology Co ltd
Priority to CN202110714472.3A priority Critical patent/CN113487704B/en
Publication of CN113487704A publication Critical patent/CN113487704A/en
Application granted granted Critical
Publication of CN113487704B publication Critical patent/CN113487704B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/80Creating or modifying a manually drawn or painted image using a manual input device, e.g. mouse, light pen, direction keys on keyboard
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves

Abstract

The application discloses a drawing method, a device, a storage medium and terminal equipment of a dovetail arrow mark, wherein the drawing method comprises the following steps: acquiring a plurality of target data points received by a display area where a preset map is located; determining a dovetail arrow data set based on the number of target data points; and drawing the dovetail arrow mark based on the dovetail arrow mark data set. According to the method, the target data points formed by triggering the display area where the preset map is located are received, then the arrow tail coordinates and the arrow head coordinates of the dovetail arrow head are determined according to the target data points, and then the dovetail arrow head is drawn based on the arrow tail coordinates and the arrow head coordinates, so that the dovetail arrow head can be drawn rapidly only by inputting a plurality of target data points on the preset map, the drawing process of the dovetail arrow head is simplified, and convenience is brought to users.

Description

Dovetail arrow mark drawing method and device, storage medium and terminal equipment
Technical Field
The application relates to the technical field of computers, in particular to a method and a device for drawing a dovetail arrow mark, a storage medium and terminal equipment.
Background
Dynamic plotting is widely used in a number of industries and fields of power, communications, and emergency. The method can describe various business objects by using vivid vector symbols, represent various resources, and dynamically render business progress and flow. At present, when realizing dynamic session based on a C/S architecture, a CAD layer is mainly constructed, and situation deduction animation is constructed through a timer; when realizing dynamic plotting based on B/S architecture, it is necessary to construct a geographic service manager, and the dynamic refreshing of attribute panels is relied on to provide a dynamic plotting service permission module. However, whether dynamic deduction is built through a timer or dynamic refreshing is performed based on a geographic service manager, a complicated operation process is required, and thus the use of dynamic signboards is limited.
There is thus a need for improvements and improvements in the art.
Disclosure of Invention
The technical problem to be solved by the application is to provide a drawing method and device of a dovetail arrow mark, a storage medium and terminal equipment aiming at the defects of the prior art.
In order to solve the above technical problems, a first aspect of the embodiments of the present application provides a method for drawing a dovetail arrow, where the drawing method includes:
acquiring a plurality of target data points received by a display area where a preset map is located, wherein the data quantity of the target data points is more than or equal to 3;
determining a dovetail arrow data set based on the plurality of target data points, wherein the dovetail arrow data set includes at least arrow tail coordinates and arrow head coordinates;
and drawing a dovetail arrow mark based on the dovetail arrow mark data set, wherein the dovetail arrow mark is positioned on the preset map.
The method for drawing the dovetail arrow mark, wherein the step of obtaining the target data point received by the display area where the preset map is located specifically comprises the following steps:
monitoring a drawing instruction for drawing a dovetail arrow mark;
when a drawing instruction is monitored, acquiring an interaction event received by a display area where a preset map is located;
and acquiring trigger points corresponding to preset interaction events in the received interaction events, and determining target data points based on the acquired trigger points to obtain a plurality of target data points.
The dovetail arrow mark drawing method includes the steps that the preset interaction event is a click event; the acquiring triggering points corresponding to each preset interaction event in the received interaction events, and determining target data points based on the acquired triggering points to obtain a plurality of target data points specifically comprises:
acquiring a clicking position corresponding to a clicking event in the received interaction event to obtain a triggering point corresponding to the clicking event;
and acquiring the longitude and latitude coordinates of the trigger point, and taking the longitude and latitude coordinates as target data points to obtain a plurality of target data points.
The method for drawing the dovetail arrow mark, wherein the determining the dovetail arrow mark data set based on the plurality of target data points specifically comprises:
selecting a point on the left side of the arrow tail, a point on the right side of the arrow tail and an arrow peak from a plurality of target data points according to the acquisition time of the target data points;
determining the vertical distance between the connecting line of the arrow tail left side point and the arrow tail right side point and the arrow head;
calculating a middle point of the arrow tail, a left wing point of the arrow head and a right wing point of the arrow head according to the vertical distance;
and determining a dovetail arrow mark data set based on the arrow tail left side point, the arrow tail right side point, the arrow head top point, the arrow tail middle point, the arrow head left wing point and the arrow head right wing point.
The method for drawing the dovetail arrow mark, wherein the determining the dovetail arrow mark data set based on the arrow tail left side point, the arrow tail right side point, the arrow head top point, the arrow tail middle point, the arrow head left wing point and the arrow head right wing point specifically comprises:
and if the data quantity of the target data points is 3, taking a set formed by the arrow tail left side point, the arrow tail right side point, the arrow head point, the arrow tail middle point, the arrow head left wing point and the arrow head right wing point as a dovetail arrow mark data set.
The method for drawing the dovetail arrow mark, wherein the determining the dovetail arrow mark data set based on the arrow tail left side point, the arrow tail right side point, the arrow head top point, the arrow tail middle point, the arrow head left wing point and the arrow head right wing point specifically comprises:
if the data quantity of the target data points is more than 3, taking the target data points except for the point at the left side of the arrow tail, the point at the right side of the arrow tail and the arrow top point in the target data points as main arrow points;
determining a dovetail arrow left side curve according to the arrow tail left side point, the arrow body main point and the arrow left wing point;
determining a dovetail arrow right side curve according to the arrow tail left side point, the arrow body main point and the arrow right wing point;
and taking a set formed by the arrow tail left side point, the arrow tail right side point, the arrow head top point, the arrow tail middle point, the arrow head left wing point, the arrow head right wing point, the dovetail arrow head left side curve and the dovetail arrow head right side curve as a dovetail arrow mark data set.
The drawing method of the dovetail arrow mark, wherein the drawing of the dovetail arrow mark based on the dovetail arrow mark data set is specifically as follows:
and respectively configuring the dovetail arrow mark data set on a preset line drawing layer and a preset surface drawing layer, drawing the dovetail arrow mark through the line drawing layer and the surface drawing layer, and displaying the dovetail arrow mark on a preset map.
A second aspect of the embodiments of the present application provides a drawing device for a dovetail arrow, the drawing device including:
the acquisition module is used for acquiring a plurality of target data points received by a display area where a preset map is located, wherein the data quantity of the target data points is more than or equal to 3;
the determining module is used for determining a dovetail arrow mark data set based on the target data points, wherein the dovetail arrow mark data set at least comprises arrow tail coordinates and arrow head coordinates;
and the drawing module is used for drawing the dovetail arrow mark based on the dovetail arrow mark data set, wherein the dovetail arrow mark is positioned on the preset map.
A third aspect of the embodiments provides a computer readable storage medium storing one or more programs executable by one or more processors to implement steps in a method of drawing a dovetail arrow mark as described in any of the above.
A fourth aspect of the present embodiment provides a terminal device, including: a processor, a memory, and a communication bus, the memory having stored thereon a computer readable program executable by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps in the method of drawing a dovetail arrow mark as described in any of the above.
The beneficial effects are that: compared with the prior art, the application provides a drawing method of a dovetail arrow mark, which comprises the following steps: acquiring a plurality of target data points received by a display area where a preset map is located; determining a dovetail arrow data set based on the number of target data points; and drawing the dovetail arrow mark based on the dovetail arrow mark data set. According to the method, the target data points formed by triggering the display area where the preset map is located are received, then the arrow tail coordinates and the arrow head coordinates of the dovetail arrow head are determined according to the target data points, and then the dovetail arrow head is drawn based on the arrow tail coordinates and the arrow head coordinates, so that the dovetail arrow head can be drawn rapidly only by inputting a plurality of target data points on the preset map, the drawing process of the dovetail arrow head is simplified, and convenience is brought to users.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without creative effort for a person of ordinary skill in the art.
Fig. 1 is a flowchart of a method for drawing a dovetail arrow provided in the present application.
Fig. 2 is a schematic structural diagram of a drawing device for a dovetail arrow head provided by the present application.
Fig. 3 is a schematic structural diagram of a terminal device provided in the present application.
Detailed Description
The application provides a method, a device, a storage medium and a terminal device for drawing a dovetail arrow mark, and in order to make the purposes, technical schemes and effects of the application clearer and more definite, the application is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
In particular implementations, the terminal devices described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having a touch-sensitive surface (e.g., a touch display screen and/or a touch pad). It should also be appreciated that in some embodiments, the device is not a portable communication device, but rather a desktop computer having a touch-sensitive surface (e.g., a touch display screen and/or a touchpad).
In the following discussion, a terminal device including a display and a touch-sensitive surface is described. However, it should be understood that the terminal device may also include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The terminal device supports various applications, such as one or more of the following: drawing applications, presentation applications, word processing applications, video conferencing applications, disk burning applications, spreadsheet applications, gaming applications, telephony applications, video conferencing applications, email applications, instant messaging applications, workout support applications, photo management applications, data camera applications, digital video camera applications, web browsing applications, digital music player applications, and/or digital video playing applications, among others.
Various applications that may be executed on the terminal device may use at least one common physical user interface device such as a touch sensitive surface. The first or more functions of the touch-sensitive surface and corresponding information displayed on the terminal may be adjusted and/or changed between applications and/or within the corresponding applications. In this way, the common physical framework (e.g., touch-sensitive surface) of the terminal may support various applications with user interfaces that are intuitive and transparent to the user.
It should be understood that the sequence number and the size of each step in this embodiment do not mean the sequence of execution, and the execution sequence of each process is determined by the function and the internal logic of each process, and should not constitute any limitation on the implementation process of the embodiment of the present application.
The inventor finds that the dynamic plotting is widely applied to a plurality of industries and fields such as power, communication, emergency and the like. The method can describe various business objects by using vivid vector symbols, represent various resources, and dynamically render business progress and flow. At present, when realizing dynamic session based on a C/S architecture, a CAD layer is mainly constructed, and situation deduction animation is constructed through a timer; when realizing dynamic plotting based on B/S architecture, it is necessary to construct a geographic service manager, and the dynamic refreshing of attribute panels is relied on to provide a dynamic plotting service permission module. However, whether dynamic deduction is built through a timer or dynamic refreshing is performed based on a geographic service manager, a complicated operation process is required, and thus the use of dynamic signboards is limited.
In order to solve the above problem, in the embodiment of the present application, a plurality of target data points received by a display area where a preset map is located are obtained; determining a dovetail arrow data set based on the number of target data points; and drawing the dovetail arrow mark based on the dovetail arrow mark data set. According to the method, the target data points formed by triggering the display area where the preset map is located are received, then the arrow tail coordinates and the arrow head coordinates of the dovetail arrow head are determined according to the target data points, and then the dovetail arrow head is drawn based on the arrow tail coordinates and the arrow head coordinates, so that the dovetail arrow head can be drawn rapidly only by inputting a plurality of target data points on the preset map, the drawing process of the dovetail arrow head is simplified, and convenience is brought to users.
It should be noted that the above application scenario is only shown for the convenience of understanding the present application, and embodiments of the present application are not limited in this respect. Rather, embodiments of the present application may be applied to any scenario where applicable.
The application will be further described by the description of embodiments with reference to the accompanying drawings.
The embodiment provides a method for drawing a dovetail arrow mark, as shown in fig. 1, the method includes:
s10, acquiring a plurality of target data points received by a display area where a preset map is located.
Specifically, a plurality of target data points are used for drawing a dovetail arrow mark, the data quantity of the plurality of target data points is greater than or equal to 3, wherein the plurality of target data points are determined based on interaction events received by a display area where a preset map is located, and the positions of the interaction events corresponding to the target data points in the display area where the preset map is located are different from each other. It is to be appreciated that each of the plurality of target data points is determined based on the interaction event and that the trigger time and trigger position of the respective interaction event for each target data point is different from each other.
In an implementation manner of this embodiment, the acquiring the target data point received by the display area where the preset map is located specifically includes:
monitoring a drawing instruction for drawing a dovetail arrow mark;
when a drawing instruction is monitored, acquiring an interaction event received by a display area where a preset map is located;
and acquiring trigger points corresponding to preset interaction events in the received interaction events, and determining target data points based on the acquired trigger points to obtain a plurality of target data points.
Specifically, the drawing instruction may be sent by an external device, may be triggered by a control operation input by a user, may be sent by a acquired server, or the like. The drawing instruction is used for controlling an electronic device running the drawing method of the dovetail arrow mark provided by the embodiment to enter a dovetail arrow mark drawing process so as to take the interaction event received in the process as the interaction event for determining the target data point. The interactive event is an interactive event in a display area where a preset map is located, and when a drawing instruction is monitored, monitoring the interactive event on the display area where the preset map is located is started to acquire the interactive event received by the display area where the preset map is located, wherein the interactive event can comprise a click interactive event and a mobile interactive event, for example, the interactive event comprises a mouse left click interactive event and a mouse mobile interactive event, or the interactive event comprises a control pen click interactive event, a control pen mobile interactive event and the like.
In one implementation of this embodiment, the preset interaction event is included in the interaction event, and it may be understood that the interaction event may include multiple types of interaction events, and the preset interaction time is one type of interaction event of the multiple types of interaction events. For example, the interaction event comprises a mouse left click interaction event and a mouse movement interaction event, and the preset interaction event is a mouse left click event; or, the interaction event comprises a control pen clicking interaction event and a control pen moving interaction event, and the preset interaction event is a control pen clicking event and the like.
In an implementation manner of this embodiment, the preset interaction event is a click event; the acquiring triggering points corresponding to each preset interaction event in the received interaction events, and determining target data points based on the acquired triggering points to obtain a plurality of target data points specifically comprises:
acquiring a clicking position corresponding to a clicking event in the received interaction event to obtain a triggering point corresponding to the clicking event;
and acquiring the longitude and latitude coordinates of the trigger point, and taking the longitude and latitude coordinates as target data points to obtain a plurality of target data points.
Specifically, the click position is a display position on a display interface for displaying a preset map, and it can be understood that the click position is a pixel coordinate of a click point formed by a click event, and the pixel coordinate is used as a trigger point corresponding to the click event. The longitude and latitude coordinates are coordinates of map points for the trigger point pair in a preset map coordinate system, wherein the preset map takes longitude and latitude as the coordinate system. The method comprises the steps that a map pixel is preset on a display interface, so that each region pixel point in a display region where a preset map is located exists, one map point corresponds to each region pixel point in the preset map, after a trigger point is acquired, the trigger point is located in the display region where the preset map is located, so that one map point corresponds to the trigger point on the preset map, and then longitude and latitude of the map point corresponding to the trigger point are used as longitude and latitude coordinates of the trigger point, so that the trigger point can be converted into a target data point, and a plurality of target data points can be obtained.
In one implementation manner of this embodiment, in order to facilitate presentation of the dovetail arrow on the preset map, after receiving the drawing instruction, a line graph layer and a surface graph layer may be created for the dovetail arrow, and the line graph layer and the surface graph layer are configured with configuration data sets, where the configuration data sets are used to store the dovetail arrow data sets of the dovetail arrow to be drawn in the respective corresponding graph layers, so that the dovetail arrow may be drawn on the respective corresponding graph layers based on each configuration data set, and the dovetail arrow is presented on the preset map through superposition of the graph layers.
S20, determining a dovetail arrow mark data set based on the target data points;
specifically, the dovetail arrow mark data set at least comprises arrow tail coordinates and arrow head coordinates, wherein the arrow tail coordinates comprise a plurality of arrow head point coordinates, the arrow head coordinates comprise a plurality of arrow head point coordinates, and the arrow head point coordinates are longitude and latitude coordinates, so that positions of the arrow head points and the arrow head points in a preset map can be determined through the longitude and latitude coordinates.
In one implementation of this embodiment, the determining the dovetail arrow mark dataset based on the plurality of target data points specifically includes:
selecting a point on the left side of the arrow tail, a point on the right side of the arrow tail and an arrow peak from a plurality of target data points according to the acquisition time of the target data points;
determining the vertical distance between the connecting line of the arrow tail left side point and the arrow tail right side point and the arrow head;
calculating a middle point of the arrow tail, a left wing point of the arrow head and a right wing point of the arrow head according to the vertical distance;
and determining a dovetail arrow mark data set based on the arrow tail left side point, the arrow tail right side point, the arrow head top point, the arrow tail middle point, the arrow head left wing point and the arrow head right wing point.
Specifically, the acquisition time is a trigger time of a preset interaction event corresponding to the target data point, and it can be understood that the acquisition time is a receiving time for receiving a control operation forming the target data point. The respective acquisition times of the target data points are different from each other, so that the left arrow point, the right arrow point and the arrow point can be selected from a plurality of target data points according to the acquisition time of the acquired target data points. Before the arrow tail left point, the arrow tail right point and the arrow head point are selected from the plurality of target data points according to the acquisition time of acquiring the target data points, the selection sequence corresponding to each of the arrow tail left point, the arrow tail right point and the arrow head point can be preset, then after the plurality of target data points are acquired, the selection sequence of each target data point can be determined according to the acquisition time corresponding to each of the target data points, and then the arrow tail left point, the arrow tail right point and the arrow head point are selected from the plurality of target data points according to the preset selection sequence corresponding to each of the arrow tail left point, the arrow tail right point and the arrow head point. For example, the left point of the arrow tail is the target data point located in the first order in time, the right point of the arrow tail is the target data point located in the second order in time, and the arrow head is the last target data point located in time; or, the right point of the arrow tail is a target data point positioned at the first position according to the time sequence, the left point of the arrow tail is a target data point positioned at the second position according to the time sequence, and the arrow head is a target data point positioned at the last position according to the time sequence; alternatively, the arrow vertex is the target data point located in the first position in time sequence, the point to the left of the arrow tail is the target data point located in the second position in time sequence, the point to the right of the arrow tail is the target data point located in the last position in time sequence, and so on.
The vertical distance refers to the shortest distance from a point to a straight line, wherein the straight line is a connection line between the point on the left side of the arrow and the point on the right side of the arrow, and the point is an arrow vertex, that is, the shortest distance from the arrow vertex to the connection line between the point on the left side of the arrow and the point on the right side of the arrow. In addition, the vertical distance is a distance in longitude and latitude coordinates where a preset map is located. In addition, after the vertical distance is obtained, the vertical point may be taken as the arrow tail middle point, and the arrow left wing point is determined according to the vertical distance according to the preset proportional relationship between the length of the connection line between the arrow left wing point and the arrow peak and the vertical distance between the arrow left wing point and the connection line between the arrow peak and the arrow tail middle point, so that the arrow left wing point, the arrow peak and the first intersection point between the arrow left wing point and the connection line between the arrow peak and the arrow tail middle point may be taken as three peaks of a triangle. Similarly, the arrow right wing point may be determined according to the preset proportional relationship between the length of the connection line between the arrow right wing point and the arrow peak and the vertical distance between the arrow right wing point and the connection line between the arrow peak and the arrow tail middle point, so that the arrow right wing point, the arrow peak, and the second intersection point between the arrow right wing point and the connection line between the arrow peak and the arrow tail middle point may be used as three peaks of a triangle.
In one implementation of this embodiment, the determining the dovetail arrow mark dataset based on the arrow tail left side point, the arrow tail right side point, the arrow head top point, the arrow tail middle point, the arrow left wing point, and the arrow right wing point specifically includes:
and if the data quantity of the target data points is 3, taking a set formed by the arrow tail left side point, the arrow tail right side point, the arrow head point, the arrow tail middle point, the arrow head left wing point and the arrow head right wing point as a dovetail arrow mark data set.
Specifically, when the number of the target data points is 3, the 3 target data points are a arrow tail left side point, an arrow tail right side point and an arrow head point, and then after the arrow tail middle point, the arrow tail left wing point and the arrow head right wing point are calculated according to the arrow tail left side point, the arrow tail right side point and the arrow head point, the arrow tail left side point, the arrow head point, the arrow tail middle point, the arrow head left wing point and the arrow head right wing point are directly used as the dovetail arrow head data set.
In one implementation of this embodiment, the determining the dovetail arrow mark dataset based on the arrow tail left side point, the arrow tail right side point, the arrow head top point, the arrow tail middle point, the arrow left wing point, and the arrow right wing point specifically includes:
if the data quantity of the target data points is more than 3, taking the target data points except for the point at the left side of the arrow tail, the point at the right side of the arrow tail and the arrow top point in the target data points as main arrow points;
determining a dovetail arrow left side curve according to the arrow tail left side point, the arrow body main point and the arrow left wing point;
determining a dovetail arrow right side curve according to the arrow tail left side point, the arrow body main point and the arrow right wing point;
and taking a set formed by the arrow tail left side point, the arrow tail right side point, the arrow head top point, the arrow tail middle point, the arrow head left wing point, the arrow head right wing point, the dovetail arrow head left side curve and the dovetail arrow head right side curve as a dovetail arrow mark data set.
Specifically, when the number of the target data points is greater than 3, the plurality of target data points include an arrow tail left side point, an arrow tail right side point, an arrow peak and a plurality of arrow body trunk points, wherein the plurality of arrow body trunk points are target data points of the plurality of target data points except for the arrow tail left side point, the arrow tail right side point and the arrow peak, position coordinates of each arrow body trunk point in the plurality of arrow body trunk points in a preset map are different, and acquisition time corresponding to each arrow body trunk point and distance between each arrow body trunk point and the arrow peak are different. Therefore, when the plurality of target data points comprise a plurality of arrow body trunk points, the arrow body trunk points can be ordered according to the distance between the arrow body trunk points and the arrow head points to form an arrow body trunk point sequence, any two arrow body trunk points in the arrow body trunk point sequence are located at a distance between the front arrow body trunk point and the arrow head points and a distance between the rear arrow body trunk point and the arrow head points.
The two endpoints of the dovetail arrow left side curve are a first intersection point of an arrow left wing point and a vertical line and an arrow tail left side point respectively, wherein the vertical line is a connecting line from an arrow top point to the arrow tail left side point and the arrow tail right side point. The left side curve of the dovetail arrow can be determined based on the Bezier curve principle, can be determined based on a preset radian, and the like. Similarly, two end points of the dovetail arrow right side curve are a second intersection point of an arrow right wing point and a vertical line and an arrow tail right side point respectively, wherein the vertical line is a connecting line from an arrow top point to an arrow tail left side point and an arrow tail right side point. The right side curve of the dovetail arrow can be determined based on the Bezier curve principle, can be determined based on a preset radian, and the like.
S30, drawing a dovetail arrow mark based on the dovetail arrow mark data set.
Specifically, the dovetail arrow mark is positioned on a map, the main arrow body trunk point in the dovetail arrow mark data set is positioned in the dovetail arrow mark, and the arrow tail left side point, the arrow tail right side point, the arrow vertex, the arrow tail middle point, the arrow head left wing point and the arrow head right wing point are positioned on the edge of the dovetail arrow mark position. In one implementation of the present embodiment, in order to display the dovetail arrow mark superimposed on the map and not affect the image information of the map, the dovetail arrow mark is drawn in the line drawing layer and the face drawing layer of the map, and the dovetail arrow mark is presented on the map by coating superimposition. From this, draw the dovetail arrow mark based on dovetail arrow mark dataset specifically does: and respectively configuring the dovetail arrow mark data set on a line drawing layer and a surface drawing layer of the map, drawing the dovetail arrow mark through the line drawing layer and the surface drawing layer, and displaying the dovetail arrow mark on the map.
In summary, the present embodiment provides a method for drawing a dovetail arrow, where the method includes: acquiring a plurality of target data points received by a display area where a preset map is located; determining a dovetail arrow data set based on the number of target data points; and drawing the dovetail arrow mark based on the dovetail arrow mark data set. According to the method, the target data points formed by triggering the display area where the preset map is located are received, then the arrow tail coordinates and the arrow head coordinates of the dovetail arrow head are determined according to the target data points, and then the dovetail arrow head is drawn based on the arrow tail coordinates and the arrow head coordinates, so that the dovetail arrow head can be drawn rapidly only by inputting a plurality of target data points on the preset map, the drawing process of the dovetail arrow head is simplified, and convenience is brought to users.
Based on the method for drawing the dovetail arrow, this embodiment provides a device for drawing the dovetail arrow, as shown in fig. 2, where the device for drawing includes:
the acquisition module 100 is configured to acquire a plurality of target data points received by a display area where a preset map is located, where the number of data of the target data points is greater than or equal to 3;
a determining module 200 for determining a dovetail arrow data set based on the number of target data points, wherein the dovetail arrow data set includes at least arrow tail coordinates and arrow head coordinates;
and a drawing module 300, configured to draw a dovetail arrow mark based on the dovetail arrow mark data set, where the dovetail arrow mark is located on the preset map.
Based on the method for drawing the dovetail arrow, the present embodiment provides a computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps in the method for drawing the dovetail arrow according to the above embodiment.
Based on the dovetail arrow drawing method, the application also provides a terminal device, as shown in fig. 3, which includes at least one processor (processor) 20; a display screen 21; and a memory (memory) 22, which may also include a communication interface (Communications Interface) 23 and a bus 24. Wherein the processor 20, the display 21, the memory 22 and the communication interface 23 may communicate with each other via a bus 24. The display screen 21 is configured to display a user guidance interface preset in the initial setting mode. The communication interface 23 may transmit information. The processor 20 may invoke logic instructions in the memory 22 to perform the methods of the embodiments described above.
Further, the logic instructions in the memory 22 described above may be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand alone product.
The memory 22, as a computer readable storage medium, may be configured to store a software program, a computer executable program, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 performs functional applications and data processing, i.e. implements the methods of the embodiments described above, by running software programs, instructions or modules stored in the memory 22.
The memory 22 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created according to the use of the terminal device, etc. In addition, the memory 22 may include high-speed random access memory, and may also include nonvolatile memory. For example, a plurality of media capable of storing program codes such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or a transitory storage medium may be used.
In addition, the specific processes that the storage medium and the plurality of instruction processors in the terminal device load and execute are described in detail in the above method, and are not stated here.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (9)

1. The drawing method of the dovetail arrow mark is characterized by comprising the following steps of:
acquiring a plurality of target data points received by a display area where a preset map is located, wherein the data quantity of the target data points is more than or equal to 3;
determining a dovetail arrow data set based on the plurality of target data points, wherein the dovetail arrow data set includes at least arrow tail coordinates and arrow head coordinates;
drawing a dovetail arrow mark based on a dovetail arrow mark data set, wherein the dovetail arrow mark is positioned on the preset map;
wherein, based on the plurality of target data points, determining a dovetail arrow mark dataset specifically comprises:
selecting a left arrow tail point, a right arrow tail point and an arrow head point from a plurality of target data points according to the acquisition time of the target data points, wherein the acquisition time is the triggering time of a preset interaction event corresponding to the target data points;
determining the vertical distance between the connecting line of the arrow tail left side point and the arrow tail right side point and the arrow head;
calculating a middle point of the arrow tail, a left wing point of the arrow head and a right wing point of the arrow head according to the vertical distance;
and determining a dovetail arrow mark data set based on the arrow tail left side point, the arrow tail right side point, the arrow head top point, the arrow tail middle point, the arrow head left wing point and the arrow head right wing point.
2. The method for drawing the dovetail arrow according to claim 1, wherein the step of obtaining the target data point received by the display area where the preset map is located specifically includes:
monitoring a drawing instruction for drawing a dovetail arrow mark;
when a drawing instruction is monitored, acquiring an interaction event received by a display area where a preset map is located;
and acquiring trigger points corresponding to preset interaction events in the received interaction events, and determining target data points based on the acquired trigger points to obtain a plurality of target data points.
3. The method for drawing the dovetail arrow according to claim 2, wherein the preset interaction event is a click event; the acquiring triggering points corresponding to each preset interaction event in the received interaction events, and determining target data points based on the acquired triggering points to obtain a plurality of target data points specifically comprises:
acquiring a clicking position corresponding to a clicking event in the received interaction event to obtain a triggering point corresponding to the clicking event;
and acquiring the longitude and latitude coordinates of the trigger point, and taking the longitude and latitude coordinates as target data points to obtain a plurality of target data points.
4. The method for drawing the dovetail arrow according to claim 1, wherein said determining the dovetail arrow dataset based on the arrow tail left side point, arrow tail right side point, arrow peak, arrow tail middle point, arrow left wing point, and arrow right wing point specifically comprises:
and if the data quantity of the target data points is 3, taking a set formed by the arrow tail left side point, the arrow tail right side point, the arrow head point, the arrow tail middle point, the arrow head left wing point and the arrow head right wing point as a dovetail arrow mark data set.
5. The method for drawing the dovetail arrow according to claim 1, wherein said determining the dovetail arrow dataset based on the arrow tail left side point, arrow tail right side point, arrow peak, arrow tail middle point, arrow left wing point, and arrow right wing point specifically comprises:
if the data quantity of the target data points is more than 3, taking the target data points except for the point at the left side of the arrow tail, the point at the right side of the arrow tail and the arrow top point in the target data points as main arrow points;
determining a dovetail arrow left side curve according to the arrow tail left side point, the arrow body main point and the arrow left wing point;
determining a dovetail arrow right side curve according to the arrow tail left side point, the arrow body main point and the arrow right wing point;
and taking a set formed by the arrow tail left side point, the arrow tail right side point, the arrow head top point, the arrow tail middle point, the arrow head left wing point, the arrow head right wing point, the dovetail arrow head left side curve and the dovetail arrow head right side curve as a dovetail arrow mark data set.
6. The method for drawing the dovetail arrow mark according to claim 1, wherein the step of drawing the dovetail arrow mark based on the dovetail arrow mark data set is specifically as follows:
and respectively configuring the dovetail arrow mark data set on a preset line drawing layer and a preset surface drawing layer, drawing the dovetail arrow mark through the line drawing layer and the surface drawing layer, and displaying the dovetail arrow mark on a preset map.
7. Drawing device of forked tail arrow mark, its characterized in that, drawing device include:
the acquisition module is used for acquiring a plurality of target data points received by a display area where a preset map is located, wherein the data quantity of the target data points is more than or equal to 3;
the determining module is used for determining a dovetail arrow mark data set based on the target data points, wherein the dovetail arrow mark data set at least comprises arrow tail coordinates and arrow head coordinates;
the drawing module is used for drawing a dovetail arrow mark based on a dovetail arrow mark data set, wherein the dovetail arrow mark is positioned on the preset map;
wherein, based on the plurality of target data points, determining a dovetail arrow mark dataset specifically comprises:
selecting a left arrow tail point, a right arrow tail point and an arrow head point from a plurality of target data points according to the acquisition time of the target data points, wherein the acquisition time is the triggering time of a preset interaction event corresponding to the target data points;
determining the vertical distance between the connecting line of the arrow tail left side point and the arrow tail right side point and the arrow head;
calculating a middle point of the arrow tail, a left wing point of the arrow head and a right wing point of the arrow head according to the vertical distance;
and determining a dovetail arrow mark data set based on the arrow tail left side point, the arrow tail right side point, the arrow head top point, the arrow tail middle point, the arrow head left wing point and the arrow head right wing point.
8. A computer readable storage medium storing one or more programs executable by one or more processors to implement the steps in the method of drawing a dovetail arrow according to any one of claims 1-6.
9. A terminal device, comprising: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps of the method for drawing a dovetail arrow mark according to any one of claims 1-6.
CN202110714472.3A 2021-06-25 2021-06-25 Dovetail arrow mark drawing method and device, storage medium and terminal equipment Active CN113487704B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110714472.3A CN113487704B (en) 2021-06-25 2021-06-25 Dovetail arrow mark drawing method and device, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110714472.3A CN113487704B (en) 2021-06-25 2021-06-25 Dovetail arrow mark drawing method and device, storage medium and terminal equipment

Publications (2)

Publication Number Publication Date
CN113487704A CN113487704A (en) 2021-10-08
CN113487704B true CN113487704B (en) 2024-01-30

Family

ID=77936241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110714472.3A Active CN113487704B (en) 2021-06-25 2021-06-25 Dovetail arrow mark drawing method and device, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN113487704B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05189428A (en) * 1992-01-10 1993-07-30 Toshiba Corp Document preparing device
US5812113A (en) * 1994-02-28 1998-09-22 Fujitsu Limited Picture forming device
JP2000155896A (en) * 1998-11-20 2000-06-06 Equos Research Co Ltd Navigation center device, navigation device, navigation system and its method
JP2000241175A (en) * 1999-02-23 2000-09-08 Sharp Corp Navigation device, method for processing navigation information, storage medium storing program for processing navigation program
CN102568304A (en) * 2011-12-30 2012-07-11 北京合众思壮科技股份有限公司 Method and device for drawing arrow mark
CN106339215A (en) * 2016-08-17 2017-01-18 深圳市网旭科技有限公司 Method for drawing graph in real time during recording of Windows screen
CN109685901A (en) * 2018-12-10 2019-04-26 西北工业大学 A kind of military symbol mark and draw in dynamic arrow mark method for drafting
CN110706304A (en) * 2019-09-23 2020-01-17 中国科学院海洋研究所 Visualization algorithm for polar region water vapor transport flux
CN111145292A (en) * 2019-12-11 2020-05-12 中国地质大学(武汉) Extensible vector plotting graph situation deduction method adapting to two-dimensional and three-dimensional scenes
CN111311710A (en) * 2020-03-20 2020-06-19 北京四维图新科技股份有限公司 High-precision map manufacturing method and device, electronic equipment and storage medium
CN111325812A (en) * 2020-02-03 2020-06-23 深圳震有科技股份有限公司 Dynamic calculation and drawing method and device for jawed arrow mark in military mark symbol plotting
CN112541098A (en) * 2020-12-17 2021-03-23 杉数科技(北京)有限公司 Directed graph drawing method and chemical material planning method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110779541B (en) * 2019-04-10 2021-11-23 北京嘀嘀无限科技发展有限公司 Display method and system of steering arrow

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05189428A (en) * 1992-01-10 1993-07-30 Toshiba Corp Document preparing device
US5812113A (en) * 1994-02-28 1998-09-22 Fujitsu Limited Picture forming device
JP2000155896A (en) * 1998-11-20 2000-06-06 Equos Research Co Ltd Navigation center device, navigation device, navigation system and its method
JP2000241175A (en) * 1999-02-23 2000-09-08 Sharp Corp Navigation device, method for processing navigation information, storage medium storing program for processing navigation program
CN102568304A (en) * 2011-12-30 2012-07-11 北京合众思壮科技股份有限公司 Method and device for drawing arrow mark
CN106339215A (en) * 2016-08-17 2017-01-18 深圳市网旭科技有限公司 Method for drawing graph in real time during recording of Windows screen
CN109685901A (en) * 2018-12-10 2019-04-26 西北工业大学 A kind of military symbol mark and draw in dynamic arrow mark method for drafting
CN110706304A (en) * 2019-09-23 2020-01-17 中国科学院海洋研究所 Visualization algorithm for polar region water vapor transport flux
CN111145292A (en) * 2019-12-11 2020-05-12 中国地质大学(武汉) Extensible vector plotting graph situation deduction method adapting to two-dimensional and three-dimensional scenes
CN111325812A (en) * 2020-02-03 2020-06-23 深圳震有科技股份有限公司 Dynamic calculation and drawing method and device for jawed arrow mark in military mark symbol plotting
CN111311710A (en) * 2020-03-20 2020-06-19 北京四维图新科技股份有限公司 High-precision map manufacturing method and device, electronic equipment and storage medium
CN112541098A (en) * 2020-12-17 2021-03-23 杉数科技(北京)有限公司 Directed graph drawing method and chemical material planning method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于Jig技术的军事地图箭头绘制算法;吴东庆,胡小健;工程科技Ⅱ辑;47-50 *
基于交通轨迹数据的路网现势性动态检测更新算法研究;邓艳玲;工程科技Ⅱ辑;全文 *

Also Published As

Publication number Publication date
CN113487704A (en) 2021-10-08

Similar Documents

Publication Publication Date Title
US9684434B2 (en) System and method for displaying a user interface across multiple electronic devices
US10528589B2 (en) Cross visualization interaction between data visualizations
EP2697705B1 (en) Three-dimensional icons for organizing, invoking, and using applications
US20180101298A1 (en) Graph display apparatus, graph display method and storage medium
US10346599B2 (en) Multi-function button for computing devices
WO2022121790A1 (en) Split-screen display method and apparatus, electronic device, and readable storage medium
CN109471626B (en) Page logic structure, page generation method, page data processing method and device
US20160349964A1 (en) Method and computing device for performing operation on icon cell
CN110377215B (en) Model display method and device and terminal equipment
WO2017092430A1 (en) Method and device for realizing user interface control based on virtual reality application
RU2699236C2 (en) Telephone panel
RU2768526C2 (en) Real handwriting presence for real-time collaboration
US9047244B1 (en) Multi-screen computing device applications
CA2806906C (en) System and method for displaying a user interface across multiple electronic devices
WO2022127804A1 (en) Method and device for managing application icons
CN109718554B (en) Real-time rendering method and device and terminal
US20160307296A1 (en) Image zooming method and terminal device
CN117555459A (en) Application group processing method and device, storage medium and electronic equipment
CN112269501A (en) Icon moving method and device and electronic equipment
CN113487704B (en) Dovetail arrow mark drawing method and device, storage medium and terminal equipment
US8959444B2 (en) Presenting a navigation order of shapes
JP2016502214A (en) Manage tab buttons
CN114629800A (en) Visual generation method, device, terminal and storage medium for industrial control network target range
US10997356B1 (en) Computing device user interface having auto-grouping of data columns
KR20170044116A (en) Full screen pop-out of objects in editable form

Legal Events

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