CN113487704A - Method and device for drawing dovetail arrow head, storage medium and terminal equipment - Google Patents

Method and device for drawing dovetail arrow head, storage medium and terminal equipment Download PDF

Info

Publication number
CN113487704A
CN113487704A CN202110714472.3A CN202110714472A CN113487704A CN 113487704 A CN113487704 A CN 113487704A CN 202110714472 A CN202110714472 A CN 202110714472A CN 113487704 A CN113487704 A CN 113487704A
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.)
Granted
Application number
CN202110714472.3A
Other languages
Chinese (zh)
Other versions
CN113487704B (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application discloses a method and a device for drawing a dovetail arrow head, a storage medium and a terminal device, 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 header dataset based on the plurality of target data points; drawing a dovetail arrow head based on the dovetail arrow head data set. According to the method, the target data point formed by triggering the display area where the preset map is located is received, the arrow tail coordinate and the arrow coordinate of the dovetail arrow head are determined according to the target data point, and the dovetail arrow head is drawn based on the arrow tail coordinate and the arrow coordinate.

Description

Method and device for drawing dovetail arrow head, storage medium and terminal equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for drawing a dovetail arrow head, a storage medium, and a terminal device.
Background
Dynamic plotting is widely used in many industries and fields, such as power, communications, and emergency. It can use vivid vector symbol to describe various service objects, represent various resources, and can dynamically render service progress and flow. At present, when a dynamic standard meeting is realized based on a C/S framework, CAD (computer-aided design) layers are mainly constructed, and a situation deduction animation is constructed through a timer; when the dynamic plotting is realized based on the B/S architecture, a geographic service manager needs to be built, and dynamic refreshing of the attribute panel is relied on the basis of providing a dynamic plotting service permission module. However, whether dynamic deduction is built by a timer or dynamic refresh is performed based on the geo-service manager, a complicated operation process may be required, thereby limiting the use of the dynamic target.
Thus, the prior art has yet to be improved and enhanced.
Disclosure of Invention
The technical problem to be solved by the present application is to provide a method and an apparatus for drawing a dovetail arrow head, a storage medium, and a terminal device, aiming at the deficiencies of the prior art.
In order to solve the above technical problem, a first aspect of the embodiments of the present application provides a method for drawing a dovetail arrow head, where the 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 greater than or equal to 3;
determining a dovetail arrow head dataset based on the plurality of target data points, wherein the dovetail arrow head dataset includes at least arrow tail coordinates and arrow coordinates;
drawing a dovetail arrow head based on a dovetail arrow head dataset, wherein the dovetail arrow head is located on the preset map.
The method for drawing the dovetail arrow head includes the following specific steps:
monitoring a drawing instruction for drawing a dovetail arrow head;
when a drawing instruction is monitored, acquiring an interactive event received by a display area where a preset map is located;
the method comprises the steps of obtaining a trigger point corresponding to a preset interaction event in the received interaction events, and determining a target data point based on the obtained trigger point to obtain a plurality of target data points.
The dovetail arrow head drawing method is characterized in that the preset interaction event is a click event; the acquiring trigger points corresponding to preset interaction events in the received interaction events, and determining a target data point based on the acquired trigger points to obtain a plurality of target data points specifically includes:
acquiring a click position corresponding to a click event in the received interaction events to obtain a trigger point corresponding to the click event;
and acquiring 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 head, wherein the determining the dovetail arrow head data set based on the plurality of target data points specifically includes:
selecting an arrow tail left point, an arrow tail right point and an arrow head 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 left point of the arrow tail and the right point of the arrow tail and the vertex of the arrow head;
respectively calculating an arrow tail middle point, an arrow left wing point and an arrow right wing point according to the vertical distance;
determining a dovetail arrow head data set based on the arrow tail left side point, the arrow tail right side point, the arrow head vertex, 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 head, wherein the determining of the dovetail arrow head data set based on the arrow tail left side point, the arrow tail right side point, the arrow head vertex, the arrow tail middle point, the arrow head left wing point and the arrow head 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 vertex, the arrow tail middle point, the arrow left wing point and the arrow right wing point as a dovetail arrow head data set.
The method for drawing the dovetail arrow head, wherein the determining of the dovetail arrow head data set based on the arrow tail left side point, the arrow tail right side point, the arrow head vertex, the arrow tail middle point, the arrow head left wing point and the arrow head right wing point specifically includes:
if the data quantity of the target data points is larger than 3, taking the target data points except the left point of the arrow tail, the right point of the arrow tail and the vertex of the arrow in the target data points as main points of the arrow body;
determining a left curve of the dovetail arrow according to the left point of the arrow tail, the trunk point of the arrow body and the left wing point of the arrow;
determining a dovetail arrow right side curve according to the arrow tail left side point, the arrow body trunk 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 vertex, the arrow tail middle point, the arrow left wing point, the arrow right wing point, the dovetail arrow left side curve and the dovetail arrow right side curve as a dovetail arrow head data set.
The method for drawing the dovetail arrow head comprises the following steps of:
and respectively configuring the dovetail arrow head data sets on a preset line graph layer and a preset surface graph layer, drawing the dovetail arrow head through the line graph layer and the surface graph layer, and displaying the dovetail arrow head on a preset map.
A second aspect of the embodiments of the present application provides a drawing apparatus for a dovetail arrow head, including:
the map display device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a plurality of target data points received by a display area where a preset map is located, and the data quantity of the target data points is greater than or equal to 3;
a determining module for determining a dovetail arrow head data set based on the plurality of target data points, wherein the dovetail arrow head data set at least includes arrow tail coordinates and arrow coordinates;
and the drawing module is used for drawing the dovetail arrow head based on the dovetail arrow head data set, wherein the dovetail arrow head is positioned on the preset map.
A third aspect of embodiments of the present application provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement steps in a method for drawing a dovetail arrow head as described in any one of the above.
A fourth aspect of the embodiments of the present application provides a terminal device, including: 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 in the method for drawing a dovetail arrow head as described in any one of the above.
Has the advantages that: compared with the prior art, the application provides a method for drawing a dovetail arrow head, and the 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 header dataset based on the plurality of target data points; drawing a dovetail arrow head based on the dovetail arrow head data set. According to the method, the target data point formed by triggering the display area where the preset map is located is received, the arrow tail coordinate and the arrow coordinate of the dovetail arrow head are determined according to the target data point, and the dovetail arrow head is drawn based on the arrow tail coordinate and the arrow coordinate.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without any inventive work.
Fig. 1 is a flowchart of a method for drawing a dovetail arrow head provided in the present application.
Fig. 2 is a schematic diagram of a preset map of a dovetail arrow presented in the drawing method of a dovetail arrow provided in the present application.
Fig. 3 is a schematic structural diagram of a drawing device for a dovetail arrow head provided in the present application.
Fig. 4 is a schematic structural diagram of a terminal device provided in the present application.
Detailed Description
The present application provides a method and an apparatus for drawing a dovetail arrow head, a storage medium, and a terminal device, and in order to make the purpose, technical solution, and effect of the present application clearer and clearer, the present 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 merely illustrative of the present application 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 the context clearly indicates otherwise. 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. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those within the art that, unless otherwise defined, 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. 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, laptops, or tablet computers with touch sensitive surfaces (e.g., touch displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch-sensitive display screen and/or touchpad).
In the discussion that follows, a terminal device that includes 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: a drawing application, a presentation application, a word processing application, a video conferencing application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a data camera application, a digital video camera application, a web browsing application, a digital music player application, and/or a digital video playing application, etc.
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 the corresponding information displayed on the terminal may be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical framework (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
It should be understood that, the sequence numbers and sizes of the steps in this embodiment do not mean the execution sequence, and the execution sequence of each process is determined by its function and inherent logic, and should not constitute any limitation on the implementation process of this embodiment.
The inventor finds that dynamic plotting is widely applied to multiple industries and fields such as electric power, communication and emergency. It can use vivid vector symbol to describe various service objects, represent various resources, and can dynamically render service progress and flow. At present, when a dynamic standard meeting is realized based on a C/S framework, CAD (computer-aided design) layers are mainly constructed, and a situation deduction animation is constructed through a timer; when the dynamic plotting is realized based on the B/S architecture, a geographic service manager needs to be built, and dynamic refreshing of the attribute panel is relied on the basis of providing a dynamic plotting service permission module. However, whether dynamic deduction is built by a timer or dynamic refresh is performed based on the geo-service manager, a complicated operation process may be required, thereby limiting the use of the dynamic target.
In order to solve the above problem, in the embodiment of the present application, a plurality of target data points received in a display area where a preset map is located are obtained; determining a dovetail arrow header dataset based on the plurality of target data points; drawing a dovetail arrow head based on the dovetail arrow head data set. According to the method, the target data point formed by triggering the display area where the preset map is located is received, the arrow tail coordinate and the arrow coordinate of the dovetail arrow head are determined according to the target data point, and the dovetail arrow head is drawn based on the arrow tail coordinate and the arrow coordinate.
It should be noted that the above application scenarios are only shown for the convenience of understanding the present application, and the embodiments of the present application are not limited in any way in this respect. Rather, embodiments of the present application may be applied to any scenario where applicable.
The following further describes the content of the application by describing the embodiments with reference to the attached drawings.
The present embodiment provides a method for drawing a dovetail arrow head, as shown in fig. 1, the method including:
and S10, acquiring a plurality of target data points received by the display area where the preset map is located.
Specifically, the plurality of target data points are used for drawing a dovetail arrow head, the data quantity of the plurality of target data points is greater than or equal to 3, the plurality of target data points are determined based on the interaction events received by the display area where the preset map is located, and the area 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 understood that each of the plurality of target data points is determined based on the interaction event, and the trigger time and the trigger position of the interaction event corresponding to each of the target data points are different from each other.
In an implementation manner of this embodiment, the acquiring a target data point received in a display area where the preset map is located specifically includes:
monitoring a drawing instruction for drawing a dovetail arrow head;
when a drawing instruction is monitored, acquiring an interactive event received by a display area where a preset map is located;
the method comprises the steps of obtaining a trigger point corresponding to a preset interaction event in the received interaction events, and determining a target data point based on the obtained trigger point 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 an acquired server, or the like. The drawing instruction is used for controlling the electronic device which runs the drawing method of the dovetail arrow head provided by the embodiment to enter a process of drawing the dovetail arrow head, so that the interaction event received in the process is taken as the interaction event for determining the target data point. The interactive event is an interactive event in a display area where the preset map is located, and when a drawing instruction is monitored, the interactive event on the display area where the preset map is located is monitored to obtain the interactive event received by the display area where the preset map is located, wherein the interactive event may include a click interactive event and a movement interactive event, for example, the interactive event includes a left-click mouse interactive event and a movement mouse interactive event, or the interactive event includes a pen click interactive event, a pen movement interactive event, and the like.
In an implementation manner of this embodiment, the preset interactivity event is included in the interactivity event, and it is understood that the interactivity event may include multiple types of interactivity events, and the preset interactivity time is one type of interactivity event in the multiple types of interactivity events. For example, the interaction event comprises a left mouse click interaction event and a left mouse movement interaction event, and the preset interaction event is a left mouse click event; or, the interaction event includes a control pen click interaction event and a control pen movement interaction event, and the preset interaction event is a control pen click event and the like.
In an implementation manner of this embodiment, the preset interaction event is a click event; the acquiring trigger points corresponding to preset interaction events in the received interaction events, and determining a target data point based on the acquired trigger points to obtain a plurality of target data points specifically includes:
acquiring a click position corresponding to a click event in the received interaction events to obtain a trigger point corresponding to the click event;
and acquiring 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 used by the trigger point pairs in a preset map coordinate system, wherein the preset map takes longitude and latitude as the coordinate system. What can accumulate is, predetermine map pixel on display interface, thereby predetermine every regional pixel in the map display area, it is corresponding with this regional pixel all to have a map point in the preset map, so after obtaining and receiving the trigger point, because the trigger point is located the display area that predetermines the map, thereby it is corresponding with this trigger point all to have a map point on the preset map, then will be with the longitude and latitude degree of the map point that this trigger point is relative as the longitude and latitude coordinate of this trigger point, thereby can convert this trigger point into the target data point, and then can obtain a plurality of target data points.
In an implementation manner of this embodiment, in order to facilitate presentation of a dovetail arrow head on a preset map, after a drawing instruction is received, a line drawing layer and a surface drawing layer may be created for the dovetail arrow head, and the line drawing layer and the surface drawing layer are both configured with a configuration data set, where the configuration data set is used to store dovetail arrow head data sets of dovetail arrow heads to be drawn in respective corresponding drawing layers, so that the dovetail arrow heads may be drawn in respective corresponding drawing layers based on the configuration data sets, and the dovetail arrow heads are presented on the preset map by means of drawing layer superposition.
S20, determining a dovetail arrow head data set based on the target data points;
specifically, the dovetail arrow head data set at least comprises arrow tail coordinates and arrow point coordinates, wherein the arrow tail coordinates comprise a plurality of arrow tail point coordinates, the arrow point coordinates comprise a plurality of arrow point coordinates, and the arrow tail point coordinates and the arrow point coordinates are longitude and latitude coordinates, so that the positions of the arrow tail points and the arrow points in a preset map are determined through the longitude and latitude coordinates.
In an implementation manner of this embodiment, the determining the dovetail arrow head data set based on the plurality of target data points specifically includes:
selecting an arrow tail left point, an arrow tail right point and an arrow head 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 left point of the arrow tail and the right point of the arrow tail and the vertex of the arrow head;
respectively calculating an arrow tail middle point, an arrow left wing point and an arrow right wing point according to the vertical distance;
determining a dovetail arrow head data set based on the arrow tail left side point, the arrow tail right side point, the arrow head vertex, the arrow tail middle point, the arrow head left wing point, and the arrow head right wing point.
Specifically, the obtaining time is a trigger time of a preset interaction event corresponding to the target data point, and it can be understood that the obtaining time is a receiving time for receiving a control operation forming the target data point. The acquisition time corresponding to each target data point is different from each other, so that the left point of the arrow tail, the right point of the arrow tail and the vertex of the arrow head can be selected from a plurality of target data points according to the acquisition time for acquiring the target data points. The method comprises the steps of acquiring a plurality of target data points, wherein before an arrow tail left side point, an arrow tail right side point and an arrow vertex are selected from the plurality of target data points according to acquisition time of the acquired target data points, the selection sequence corresponding to the arrow tail left side point, the arrow tail right side point and the arrow vertex can be preset, 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 target data point, and then the arrow tail left side point, the arrow tail right side point and the arrow vertex are selected from the plurality of target data points according to the preset selection sequence corresponding to the arrow tail left side point, the arrow tail right side point and the arrow vertex. For example, the left point of the arrow tail is the target data point located at the first position in time sequence, the right point of the arrow tail is the target data point located at the second position in time sequence, and the vertex of the arrow is the last target data point in time sequence; 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 vertex of the arrow is a last target data point according to the time sequence; or, the vertex of the arrow is the first target data point in time sequence, the left point of the arrow tail is the second target data point in time sequence, and the right point of the arrow tail is the last target data point in time sequence.
The vertical distance refers to the shortest distance from a point to a straight line, wherein the straight line is a connecting line between the left point of the arrow tail and the right point of the arrow tail, the point is the vertex of the arrow, that is, the vertical distance is the shortest distance from the vertex of the arrow to the connecting line between the left point of the arrow tail and the right point of the arrow tail. 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 can be used as an arrow tail middle point, and the arrow left wing point is determined according to the preset proportional relation between the length of a connecting line from the arrow left wing point to the arrow vertex and the vertical distance of the connecting line from the arrow left wing point to the arrow vertex and the arrow tail middle point, so that the arrow left wing point, the arrow vertex and a first intersection point from the arrow left wing point to the connecting line from the arrow vertex to the arrow tail middle point can be used as three vertexes of a triangle. Similarly, the arrow right wing point can be determined according to the vertical distance according to the preset proportional relationship between the length of the connecting line between the arrow right wing point and the arrow vertex and the vertical distance between the arrow right wing point and the connecting line between the arrow vertex and the arrow tail middle point, so that the arrow right wing point, the arrow vertex and the second intersection point of the connecting line between the arrow right wing point and the arrow tail middle point can be used as three vertices of a triangle.
In an implementation manner of this embodiment, the determining a dovetail arrow head data set based on the arrow tail left side point, the arrow tail right side point, the arrow vertex, 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 vertex, the arrow tail middle point, the arrow left wing point and the arrow right wing point as a dovetail arrow head data set.
Specifically, when the data quantity of the target data points is 3, the 3 target data points are respectively an arrow tail left side point, an arrow tail right side point and an arrow head vertex, and then after an arrow tail middle point, an arrow tail left wing point and an arrow head right wing point are obtained through calculation according to the arrow tail left side point, the arrow tail right side point and the arrow head vertex, a set formed by the arrow tail left side point, the arrow tail right side point, the arrow head vertex, the arrow tail middle point, the arrow head left wing point and the arrow head right wing point is directly used as a dovetail arrow head data set.
In an implementation manner of this embodiment, the determining a dovetail arrow head data set based on the arrow tail left side point, the arrow tail right side point, the arrow vertex, 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 larger than 3, taking the target data points except the left point of the arrow tail, the right point of the arrow tail and the vertex of the arrow in the target data points as main points of the arrow body;
determining a left curve of the dovetail arrow according to the left point of the arrow tail, the trunk point of the arrow body and the left wing point of the arrow;
determining a dovetail arrow right side curve according to the arrow tail left side point, the arrow body trunk 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 vertex, the arrow tail middle point, the arrow left wing point, the arrow right wing point, the dovetail arrow left side curve and the dovetail arrow right side curve as a dovetail arrow head data set.
Specifically, when the data quantity 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 head 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 the arrow tail left side point, the arrow tail right side point and the arrow head, position coordinates of each arrow body trunk point in the plurality of arrow body trunk points in a preset map are different from each other, and acquisition time corresponding to each arrow body trunk point and a distance between each arrow body trunk point and the arrow head are different from each other. From this, when a plurality of target data points include a plurality of arrow body trunk points, can be according to the distance between arrow body trunk point and the arrow point with the order of arrow body trunk point in order to form arrow body trunk point sequence, two arbitrary arrow body trunk points in the arrow body trunk point sequence, the distance between the arrow body trunk point that is located before and the arrow body point is greater than the distance between the arrow body trunk point that is located after and the arrow body point.
Two endpoints of the curve on the left side of the dovetail arrow are respectively a first intersection point of the left wing point of the arrow and a vertical line and an arrow tail left side point, wherein the vertical line is a connecting line from the vertex of the arrow to the arrow tail left side point and the arrow tail right side point. The left curve of the dovetail arrow can be determined and obtained based on the Bezier curve principle, or determined and obtained based on a preset radian, and the like. Similarly, two endpoints of the curve on the right side of the dovetail arrow are respectively a second intersection point of the right wing point of the arrow and the vertical line and a right point of the arrow tail, wherein the vertical line is a connecting line from the vertex of the arrow to the left point of the arrow tail and the right point of the arrow tail. The right curve of the dovetail arrow can be determined and obtained based on the Bezier curve principle, or determined and obtained based on a preset radian, and the like.
And S30, drawing the dovetail arrow head based on the dovetail arrow head data set.
Specifically, as shown in fig. 2, the dovetail arrow head is located on the preset map, the trunk point of the body in the dovetail arrow head data set is located in the dovetail arrow head, and the left point of the arrow tail, the right point of the arrow tail, the arrow vertex, the middle point of the arrow tail, the left wing point of the arrow tail, and the right wing point of the arrow tail are located on the edge of the dovetail arrow mark. In one implementation manner of the embodiment, in order to superimpose and display the dovetail arrow marks on the preset map without affecting the image information of the preset map, the dovetail arrow marks are drawn in the preset line drawing layer and the preset surface drawing layer, and the dovetail arrow marks are displayed on the preset map by coating layer superimposition. Thus, the drawing of the dovetail arrow mark based on the dovetail arrow head data set is specifically: and respectively configuring the dovetail arrow head data sets on a preset line graph layer and a preset surface graph layer, drawing the dovetail arrow head through the line graph layer and the surface graph layer, and displaying the dovetail arrow head on a preset map.
In summary, the present embodiment provides a method for drawing a dovetail arrow head, 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 header dataset based on the plurality of target data points; drawing a dovetail arrow head based on the dovetail arrow head data set. According to the method, the target data point formed by triggering the display area where the preset map is located is received, the arrow tail coordinate and the arrow coordinate of the dovetail arrow head are determined according to the target data point, and the dovetail arrow head is drawn based on the arrow tail coordinate and the arrow coordinate.
Based on the drawing method of the dovetail arrow head, the present embodiment provides a drawing apparatus of the dovetail arrow head, as shown in fig. 3, where the drawing apparatus includes:
the system comprises an acquisition module 100, a processing module and a display module, wherein the acquisition module is used for acquiring a plurality of target data points received by a display area where a preset map is located, and the data quantity of the target data points is greater than or equal to 3;
a determining module 200, configured to determine a dovetail arrow head data set based on the plurality of target data points, wherein the dovetail arrow head data set at least includes arrow tail coordinates and arrow coordinates;
a drawing module 300 for drawing a dovetail arrow based on a dovetail arrow data set, wherein the dovetail arrow is located on the preset map.
Based on the above-described drawing method of the dovetail arrow, the present embodiment provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors, to implement the steps in the drawing method of the dovetail arrow described in the above embodiment.
Based on the above drawing method of the dovetail arrow head, the present application also provides a terminal device, as shown in fig. 4, including at least one processor (processor) 20; a display screen 21; and a memory (memory)22, and may further include a communication Interface (Communications Interface)23 and a bus 24. The processor 20, the display 21, the memory 22 and the communication interface 23 can communicate with each other through the 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 call logic instructions in the memory 22 to perform the methods in the embodiments described above.
Furthermore, the logic instructions in the memory 22 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.
The memory 22, which is 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 executes the functional application and data processing, i.e. implements the method in the above-described embodiments, by executing the software program, instructions or modules stored in the memory 22.
The memory 22 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 22 may include a high speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, may also be transient storage media.
In addition, the specific processes loaded and executed by the storage medium and the instruction processors in the terminal device are described in detail in the method, and are not stated herein.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A method for drawing dovetail arrows, which is characterized by comprising the following steps:
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 greater than or equal to 3;
determining a dovetail arrow head dataset based on the plurality of target data points, wherein the dovetail arrow head dataset includes at least arrow tail coordinates and arrow coordinates;
drawing a dovetail arrow head based on a dovetail arrow head dataset, wherein the dovetail arrow head is located on the preset map.
2. The method for drawing dovetail arrows according to claim 1, wherein the acquiring of the target data points received in the display area where the preset map is located specifically includes:
monitoring a drawing instruction for drawing a dovetail arrow head;
when a drawing instruction is monitored, acquiring an interactive event received by a display area where a preset map is located;
the method comprises the steps of obtaining a trigger point corresponding to a preset interaction event in the received interaction events, and determining a target data point based on the obtained trigger point to obtain a plurality of target data points.
3. The method for drawing dovetailed arrows according to claim 2, wherein the preset interaction event is a click event; the acquiring trigger points corresponding to preset interaction events in the received interaction events, and determining a target data point based on the acquired trigger points to obtain a plurality of target data points specifically includes:
acquiring a click position corresponding to a click event in the received interaction events to obtain a trigger point corresponding to the click event;
and acquiring 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 dovetail arrows according to claim 1, wherein said determining a dovetail arrow data set based on said plurality of target data points specifically comprises:
selecting an arrow tail left point, an arrow tail right point and an arrow head 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 left point of the arrow tail and the right point of the arrow tail and the vertex of the arrow head;
respectively calculating an arrow tail middle point, an arrow left wing point and an arrow right wing point according to the vertical distance;
determining a dovetail arrow head data set based on the arrow tail left side point, the arrow tail right side point, the arrow head vertex, the arrow tail middle point, the arrow head left wing point, and the arrow head right wing point.
5. The method for drawing dovetail arrow heads according to claim 4, wherein said determining a dovetail arrow head data set based on said arrow tail left side point, arrow tail right side point, arrow head apex, arrow tail middle point, arrow head left wing point, and 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 vertex, the arrow tail middle point, the arrow left wing point and the arrow right wing point as a dovetail arrow head data set.
6. The method for drawing dovetail arrow heads according to claim 4, wherein said determining a dovetail arrow head data set based on said arrow tail left side point, arrow tail right side point, arrow head apex, arrow tail middle point, arrow head left wing point, and arrow head right wing point specifically comprises:
if the data quantity of the target data points is larger than 3, taking the target data points except the left point of the arrow tail, the right point of the arrow tail and the vertex of the arrow in the target data points as main points of the arrow body;
determining a left curve of the dovetail arrow according to the left point of the arrow tail, the trunk point of the arrow body and the left wing point of the arrow;
determining a dovetail arrow right side curve according to the arrow tail left side point, the arrow body trunk 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 vertex, the arrow tail middle point, the arrow left wing point, the arrow right wing point, the dovetail arrow left side curve and the dovetail arrow right side curve as a dovetail arrow head data set.
7. The method for drawing a dovetail arrow head according to claim 1, wherein the step of drawing a dovetail arrow mark based on the dovetail arrow head data set specifically comprises:
and respectively configuring the dovetail arrow head data sets on a preset line graph layer and a preset surface graph layer, drawing the dovetail arrow head through the line graph layer and the surface graph layer, and displaying the dovetail arrow head on a preset map.
8. A drawing apparatus for a dovetail arrow head, said drawing apparatus comprising:
the map display device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a plurality of target data points received by a display area where a preset map is located, and the data quantity of the target data points is greater than or equal to 3;
a determining module for determining a dovetail arrow head data set based on the plurality of target data points, wherein the dovetail arrow head data set at least includes arrow tail coordinates and arrow coordinates;
and the drawing module is used for drawing the dovetail arrow head based on the dovetail arrow head data set, wherein the dovetail arrow head is positioned on the preset map.
9. A computer readable storage medium, characterized in that the computer readable storage medium stores one or more programs which are executable by one or more processors to implement the steps in the method for drawing a dovetail arrow head according to any one of claims 1 to 7.
10. 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 said computer readable program, carries out the steps in the method of drawing a dovetail arrow head according to any one of claims 1-7.
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 true CN113487704A (en) 2021-10-08
CN113487704B 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 (13)

* 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
US20220026231A1 (en) * 2019-04-10 2022-01-27 Beijing Didi Infinity Technology And Development Co., Ltd. Display methods and systems for indicator arrow in navigation map

Patent Citations (13)

* 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
US20220026231A1 (en) * 2019-04-10 2022-01-27 Beijing Didi Infinity Technology And Development Co., Ltd. Display methods and systems for indicator arrow in navigation map
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技术的军事地图箭头绘制算法", 工程科技Ⅱ辑, pages 47 - 50 *
邓艳玲: "基于交通轨迹数据的路网现势性动态检测更新算法研究", 工程科技Ⅱ辑 *

Also Published As

Publication number Publication date
CN113487704B (en) 2024-01-30

Similar Documents

Publication Publication Date Title
US10990257B2 (en) Object displaying method, terminal device, and computer storage medium
US9436369B2 (en) Touch interface for precise rotation of an object
KR101962979B1 (en) Three-dimensional icons for organizing, invoking, and using applications
US8786517B2 (en) System and method for displaying a user interface across multiple electronic devices
US9645782B2 (en) Multiple displays for displaying workspaces
CN107204044B (en) Picture display method based on virtual reality and related equipment
WO2017092430A1 (en) Method and device for realizing user interface control based on virtual reality application
US20160349964A1 (en) Method and computing device for performing operation on icon cell
CN110377215B (en) Model display method and device and terminal equipment
WO2022242379A1 (en) Stroke-based rendering method and device, storage medium and terminal
CN110807161A (en) Page framework rendering method, device, equipment and medium
US9047244B1 (en) Multi-screen computing device applications
CN109718554B (en) Real-time rendering method and device and terminal
CA2806906C (en) System and method for displaying a user interface across multiple electronic devices
CN109147054B (en) Setting method and device of 3D model orientation of AR, storage medium and terminal
CN109598672B (en) Map road rendering method and device
CN115129278A (en) Image display control method, system, readable storage medium and electronic device
TWI743424B (en) Method and device for realizing visual public welfare activities
CN113487704B (en) Dovetail arrow mark drawing method and device, storage medium and terminal equipment
CN108053492B (en) Method, device and equipment for presenting expansion process of three-dimensional graph and storage medium
CN114629800A (en) Visual generation method, device, terminal and storage medium for industrial control network target range
CN108182656B (en) Image processing method and terminal
US10262631B1 (en) Large scale highly detailed model review using augmented reality
CN114546314B (en) Window display method and device, electronic equipment and storage medium
US11741626B2 (en) Surface projection determination of a multidimensional object in a viewport space

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