CN111580728B - Method and device for dynamically plotting multiple military standard types based on state mode - Google Patents

Method and device for dynamically plotting multiple military standard types based on state mode Download PDF

Info

Publication number
CN111580728B
CN111580728B CN202010264612.7A CN202010264612A CN111580728B CN 111580728 B CN111580728 B CN 111580728B CN 202010264612 A CN202010264612 A CN 202010264612A CN 111580728 B CN111580728 B CN 111580728B
Authority
CN
China
Prior art keywords
military standard
plotting
type
military
constructing
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
CN202010264612.7A
Other languages
Chinese (zh)
Other versions
CN111580728A (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.)
Shenzhen Genew Technologies Co Ltd
Original Assignee
Shenzhen Genew Technologies 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 Shenzhen Genew Technologies Co Ltd filed Critical Shenzhen Genew Technologies Co Ltd
Priority to CN202010264612.7A priority Critical patent/CN111580728B/en
Publication of CN111580728A publication Critical patent/CN111580728A/en
Application granted granted Critical
Publication of CN111580728B publication Critical patent/CN111580728B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/04845Interaction 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 for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • 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/04842Selection of displayed objects or displayed text elements
    • 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 relates to a method and a device for dynamically plotting various military standard types based on a state mode, wherein the method comprises the following steps: setting various military standard types and corresponding graphic drawing calculation algorithms; constructing a corresponding state mode and a state processing module according to different military standard types; constructing a map plotting interface, and providing a plotting operation interaction entrance for each military standard type; entering a plotting state according to the selected military standard type to be plotted and the corresponding military plotting entry button; constructing an initial layer of the type icon; sampling a trunk point; and calculating a construction point set of the corresponding type military standard according to the trunk points obtained by sampling, dynamically updating corresponding layer data, and outputting and displaying a map. The method can dynamically plot various military standard types based on the state mode, can achieve the effect of drawing various icons in a simple and quick rendering mode through a simple drawing process, can save manpower and material resources, can avoid errors, and is simple to implement and high in reliability.

Description

Method and device for dynamically plotting multiple military standard types based on state mode
Technical Field
The application relates to the technical field of dynamic plotting, in particular to a method and a device for dynamically plotting multiple military standard types based on a state mode, computer equipment and a readable storage medium.
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, all GIS companies and networks have the function of providing military plotting, such as arcgis, hypergraph and mapgis; but most are non-open source and charging, and in addition, the C/S (client-server) architecture is mainly used for constructing CAD layers and constructing situation deduction animations through timers. The B/S architecture (browser and server architecture mode) needs to construct a geographic service manager, and relies on the dynamic refreshing of an attribute panel on the basis of providing a dynamic plotting service permission module; the method is relatively troublesome in both environment dependence and specific implementation, has large limitation degree and complex operation, and is sometimes inconvenient for users to operate and use.
Namely, in the prior art, various types of icons are drawn on the basis of various application platforms, the limitation degree is high, the operation is complex, and sometimes the operation and the use are inconvenient for users.
Therefore, the prior art is in need of improvement.
Disclosure of Invention
The invention aims at the technical problems in the prior art and provides a method and a device for dynamically plotting various military standard types based on a state mode, computer equipment and a readable storage medium.
The technical scheme of the invention is as follows:
a dynamic plotting method for multiple military standard types based on state patterns is disclosed, wherein the method comprises the following steps:
setting various military standard types and corresponding graphic drawing calculation algorithms;
constructing a corresponding state mode and a state processing module according to different military standard types;
constructing a map plotting interface, and providing a plotting operation interaction entrance for each military standard type;
entering a plotting state according to the selected military standard type to be plotted and the corresponding military plotting entrance button operation instruction; simultaneously constructing an initial layer of the type of icon;
monitoring and responding to mouse click events according to the constructed corresponding state processing module, and sampling main points;
and calculating a construction point set of the corresponding type military standard according to the trunk points obtained by sampling, dynamically updating corresponding layer data, and outputting and displaying a map.
The dynamic plotting method for the multiple military standard types based on the state mode comprises the following steps of:
determining algorithms involved in a drawing operation flow aiming at different military standard types;
setting a circle, and calculating a circle to form a point set by controlling the circle center and the radius;
the set rectangle is determined by two points, namely an upper left point and a lower right point;
setting a straight arrow needs to provide a start point and a stop point, calculating a main trunk point according to the two points, and finally obtaining a composition point set.
The dynamic plotting method for multiple military standard types based on the state mode comprises the following steps of:
and a corresponding state processing module is constructed for each military standard type, and how to monitor and respond various mouse trigger events and how to call a graph backbone point calculation algorithm is determined by the law.
The dynamic plotting method for multiple military standard types based on the state mode comprises the following steps of constructing a map plotting interface, providing a plotting operation interactive entry for each military standard type:
and a plotting toolbar interface is provided, and different military standard entrance buttons are switched to different types of military plotting system instructions by clicking different military standard entrance buttons of the interface.
The dynamic plotting method based on the state mode for the various military standard types comprises the following steps that the military standard types to be plotted according to the selected military standard types to be plotted and corresponding military plotting entrance button operation instructions enter a plotting state; and simultaneously constructing an initial layer of the type of icon:
according to the selected type of the military standard to be drawn, when an operation instruction of clicking a corresponding military standard entrance button in a toolbar is received, the military standard starts to enter a plotting state; and simultaneously constructing an initial layer of the type of icon, wherein the initial value of the coordinate point set data is a null array.
The dynamic plotting method for various military standard types based on the state mode comprises the following steps of monitoring and responding to a mouse click event according to a constructed corresponding state processing module, and sampling a main point:
monitoring and responding mouse click events according to the constructed corresponding state processing module, and sampling main points: and clicking the map through a left mouse button to collect points, and acquiring the longitude and latitude of coordinates of the clicked points.
The dynamic plotting method of the various military standard types based on the state mode comprises the following steps of calculating a composition point set of the military standard of the corresponding type according to a main point obtained by sampling, dynamically updating corresponding layer data, and outputting and displaying a map:
calculating the radius according to the circle center and two points on the arc;
then, according to the circle center and the radius, an algorithm is called to calculate a point set formed by the whole circle;
and finally, updating the created layer data source by using the calculated complete point set, and displaying and presenting the layer data source on the map in real time.
A dynamic plotting device for multiple military standard types based on state modes is disclosed, wherein the law:
the setting module is used for setting various military standard types and corresponding graphic drawing calculation algorithms;
the first construction module is used for constructing corresponding state modes and state processing modules according to different military standard types;
the second construction module is used for constructing a map plotting interface and providing a plotting operation interaction entrance for each military standard type;
the plotting module is used for entering into a plotting state according to the selected military standard type to be plotted and the corresponding military plotting entrance button operation instruction; simultaneously constructing an initial layer of the type of icon;
the sampling module is used for monitoring and responding to mouse click events according to the constructed corresponding state processing module and sampling main points;
and the calculation and display module is used for calculating a construction point set of the corresponding type military standard according to the trunk points obtained by sampling, dynamically updating corresponding layer data, and outputting and displaying a map.
A computer apparatus, a legal storage and a processor, the storage storing a computer program, wherein the processor when executing the computer program implements the steps of any one of the state pattern based multiple military standard type dynamic plotting methods.
A computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of any one of the state pattern based multiple military standard type dynamic plotting methods.
Compared with the prior art, the embodiment of the invention has the following advantages:
a method and a device for dynamically plotting multiple military standard types based on state patterns, computer equipment and readable storage media are provided, wherein the method comprises the following steps: setting various military standard types and corresponding graphic drawing calculation algorithms; constructing a corresponding state mode and a state processing module according to different military standard types; constructing a map plotting interface, and providing a plotting operation interaction entrance for each military standard type; entering a plotting state according to the selected military standard type to be plotted and the corresponding military plotting entrance button operation instruction; simultaneously constructing an initial layer of the type of icon; monitoring and responding to mouse click events according to the constructed corresponding state processing module, and sampling main points; the method can achieve the effect of drawing various types of icons in a simple and quick rendering mode through a simple drawing process on the basis of various application platforms, provides visual, rich and vivid battlefield situation information for battle command and decision, and is simple to implement and high in reliability.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a data segmentation processing structure of a dynamic plotting method for multiple military standard types based on a state model according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of a plotting toolbar interface of a dynamic plotting method for multiple military standard types based on a state model according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a main point sampling of a dynamic plotting method for multiple military standard types based on a state model according to an embodiment of the present invention.
Fig. 4 is a schematic view showing effects of a method for dynamically plotting multiple military standard types based on a state model according to an embodiment of the present invention.
Fig. 5 is a schematic flow chart of a method for dynamically plotting multiple military standard types based on a status pattern according to another embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a dynamic plotting apparatus for multiple military standard types based on a status mode according to an embodiment of the present invention.
Fig. 7 is an internal structural diagram of a computer device in an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The inventor finds that in the prior art, various GIS companies and networks have the function of providing military plotting, such as arcgis, hypergraph and mapgis; but most are non-open source and charging, and in addition, the C/S (client-server) architecture is mainly used for constructing CAD layers and constructing situation deduction animations through timers. The B/S architecture (browser and server architecture mode) needs to construct a geographic service manager, and relies on the dynamic refreshing of an attribute panel on the basis of providing a dynamic plotting service permission module; the method is relatively troublesome in both environment dependence and specific implementation, has large limitation degree and complex operation, and is sometimes inconvenient for users to operate and use. The technical problems that various types of icons are drawn on the basis of various application platforms in the prior art, the limitation degree is large, the operation is complex, and the operation and the use of a user are inconvenient sometimes are solved.
In order to solve the above problem, in the embodiment of the present invention, the method is based on an electronic map, and provides a dynamic plotting method supporting multiple military standard types based on a state mode.
Various non-limiting embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 shows a method for dynamically plotting multiple military standard types based on a state model according to an embodiment of the present invention, the method includes the following steps:
step S10: setting various military standard types and corresponding graphic drawing calculation algorithms;
in the invention, various military standard types and corresponding graphic drawing calculation algorithms need to be determined, such as: dots, circles, rectangles, polygons, straight arrows, and the like.
In the present application: different graphics rendering algorithms differ, such as: the circle is a point set formed by calculating the circle by controlling the circle center and the radius; the rectangle is determined by two points of upper left and lower right; the straight arrow is the point needed to provide the start and stop points, and the main trunk point is calculated according to the two points, and finally the constituent point set is obtained. It is therefore necessary to determine the algorithmic problems involved in the drawing operation flow for different military standard types.
Step S20: constructing a corresponding state mode and a state processing module according to different military standard types;
in the invention, after determining the algorithm involved in the drawing operation flow aiming at different military standard types, a corresponding state mode and a state processing module are constructed according to different military standard types.
The method for constructing the corresponding state mode and the state processing module according to different military standard types specifically comprises the following steps: the drawing process of different military standard types is different, such as: the polygon needs to sample multiple points continuously, the circle only needs to sample two points, but the radius needs to be calculated in real time when the second point is collected, so that the point set forming the whole circle is refreshed. And a corresponding state mode is constructed for each type of military standard, mainly following a 'single duty principle', one state module is responsible for drawing one type of icons, so that the control is easy to understand, and meanwhile, the switching drawing among different types of icons is easy to realize.
Each military standard type needs a corresponding state processing module, how to monitor and respond to various mouse trigger events, how to call a graph backbone point calculation algorithm and the like.
Step S30: constructing a map plotting interface, and providing a plotting operation interaction entrance for each military standard type;
in the embodiment, a map plotting interface is constructed, and a plotting operation interaction entrance is provided for each military standard type.
In specific implementation, a plotting toolbar interface is provided, different military standard entrance buttons on the interface are clicked to switch different military plotting system instructions, a screenshot is shown in fig. 2, and the plotting toolbar is enclosed by a rectangle.
The advantages of this step are: and providing a start button for drawing each type of icon, and simultaneously selecting different types of icons for drawing through the interface, wherein the end of drawing the icon of the previous type and the start of the drawing of the selected type can be automatically processed in the selection process.
Step S40: entering a plotting state according to the selected military standard type to be plotted and the corresponding military plotting entrance button operation instruction; simultaneously constructing an initial layer of the type of icon, wherein the initial value of the coordinate point set data is a null array;
selecting a military standard type to be drawn, clicking a corresponding military standard entry button in a toolbar, and starting entering a plotting state; and simultaneously constructing an initial layer of the type of icon, wherein the initial value of the coordinate point set data is a null array.
In this step: in the same step S30, the military standard type to be drawn is clicked and selected, and the drawing state corresponding to the military standard type is entered, so that the actual drawing can be started through mouse clicking and map interaction.
The initial layer data required to be constructed for different types of military standards is not much the same: such as dots, only one dot layer is needed; a line layer and a surface layer are required to be constructed for a circle, a rectangle, a polygon, and the like. These layers subsequently support rendering directly on the map.
The method has the advantages that the corresponding layer elements can be constructed in advance according to the icon types, the rendering and the presentation of the icons can be realized by directly updating the longitude and latitude of the elements after the subsequent sampling is finished, and the method is simpler, more convenient and faster.
Step S50: monitoring and responding mouse click events according to the constructed corresponding state processing module, and sampling main points:
in this step, monitoring and responding to a mouse click event are executed according to the corresponding state processing module constructed in step S20, and a main point sampling is performed: and clicking the map through a left mouse button to collect points, and acquiring the longitude and latitude of coordinates of the clicked points.
In this step: the shapes of different types of military standards are different, so that the data of the constructed main point is different. Such as: the circle only requires two points: the circle center and a point on the arc; the rectangle is two points of the upper left corner and the lower right corner; the polygon is not limited, and how many samples are. Although the shape of the straight arrow is complex, the straight arrow can be determined by only two points. An example screenshot is shown in FIG. 3, with the circle portion sampling the spine points.
The advantages of this step are: the current longitude and latitude is obtained by clicking the map through the mouse, so that data support can be provided for subsequent icon rendering.
Step S60: and calculating a construction point set of the corresponding type military standard according to the trunk points obtained by sampling, dynamically updating corresponding layer data, and outputting and displaying a map.
In the step, a construction point set of the corresponding type military standard is calculated according to the sampled main points, and the corresponding layer data is dynamically updated, so that the map can be completely presented.
In this step: calculating a complete military standard graph according to the main points, such as: circular: firstly, the radius is calculated according to the circle center and two points on the circular arc, and then an algorithm is called to calculate the constituent point set of the whole circle according to the circle center and the radius. And finally, updating the layer data source created in the step S40 with the calculated complete point set, and displaying and presenting the layer data source on the map in real time, as shown in fig. 4, so as to present a circular effect.
Through step S60, when the user collects the stem point by moving the mouse, the collection result can be dynamically presented in real time, and the adjustment can be performed by continuously moving the mouse until the expected requirement is met.
The method of the present invention is described in detail below with reference to a specific application example
As shown in fig. 5, in the method for dynamically plotting multiple military standard types based on the state model in this embodiment, the method includes the following steps:
step 0, starting;
step 1, determining various military standard types and corresponding graphic drawing calculation algorithms, such as: dots, circles, rectangles, polygons, straight arrows, and the like;
step 2, constructing a corresponding state mode and a state processing mode according to different military standard types;
step 3, constructing a map plotting interface, and providing a plotting operation interaction entrance for each military standard type;
step 4, selecting the type of the military standard to be drawn, clicking a corresponding military standard inlet button in a toolbar, and starting to enter a plotting state; simultaneously constructing an initial layer of the type of icon, wherein the initial value of the coordinate point set data is a null array;
step 5, monitoring and responding to mouse click events according to the corresponding state processing module constructed in the step 2, and sampling main points; clicking a map through a left mouse button to collect points, and acquiring the longitude and latitude of coordinates of clicked points;
step 6, calculating a construction point set of the corresponding type military standard according to the sampled main points and dynamically updating corresponding layer data, wherein the map can be completely presented;
step 7, finishing; and (6) ending.
In one embodiment, a dynamic plotting apparatus for multiple military standard types based on status patterns is provided, as shown in fig. 6, the apparatus law:
the setting module 41 is used for setting various military standard types and corresponding graph drawing calculation algorithms;
the first construction module 42 is used for constructing corresponding state modes and state processing modules according to different military standard types;
the second construction module 43 is used for constructing a map plotting interface and providing a plotting operation interaction entrance for each military standard type;
the plotting module 44 is used for entering into a plotting state according to the selected military standard type to be plotted and the corresponding military plotting entrance button operation instruction; simultaneously constructing an initial layer of the type of icon;
the sampling module 45 is used for monitoring and responding to mouse click events according to the constructed corresponding state processing module and sampling main points;
and a calculation and display module 46, configured to calculate a constituent point set of the corresponding type military standard according to the sampled trunk points, dynamically update corresponding layer data, and output and display a map, which is specifically described above.
In one embodiment, the present invention provides a computer device, which may be a terminal, having an internal structure as shown in fig. 7. The computer equipment method comprises a processor, a memory, a network interface, a display screen and an input system which are connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory law of the computer equipment is a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of generating a natural language model. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input system of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that fig. 7 is a block diagram of only a portion of the structure associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may legally incorporate more or fewer components than those shown, or may combine certain components, or have a different arrangement of components.
The embodiment of the invention provides computer equipment, a legal memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to realize the following steps:
setting various military standard types and corresponding graphic drawing calculation algorithms;
constructing a corresponding state mode and a state processing module according to different military standard types;
constructing a map plotting interface, and providing a plotting operation interaction entrance for each military standard type;
entering a plotting state according to the selected military standard type to be plotted and the corresponding military plotting entrance button operation instruction; simultaneously constructing an initial layer of the type of icon;
monitoring and responding to mouse click events according to the constructed corresponding state processing module, and sampling main points;
calculating a construction point set of the corresponding type military standard according to the trunk points obtained by sampling, dynamically updating corresponding layer data, and outputting and displaying a map; as described above.
In summary, compared with the prior art, the embodiment of the invention has the following advantages:
a method and a device for dynamically plotting multiple military standard types based on state patterns, computer equipment and readable storage media are provided, wherein the method comprises the following steps: setting various military standard types and corresponding graphic drawing calculation algorithms; constructing a corresponding state mode and a state processing module according to different military standard types; constructing a map plotting interface, and providing a plotting operation interaction entrance for each military standard type; entering a plotting state according to the selected military standard type to be plotted and the corresponding military plotting entrance button operation instruction; simultaneously constructing an initial layer of the type of icon; monitoring and responding to mouse click events according to the constructed corresponding state processing module, and sampling main points; the method can achieve the effect of drawing various types of icons in a simple and quick rendering mode through a simple drawing process on the basis of various application platforms, provides visual, rich and vivid battlefield situation information for battle command and decision, and is simple to implement and high in reliability.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (4)

1. A dynamic plotting method for multiple military standard types based on state patterns is characterized by comprising the following steps:
setting various military standard types and corresponding graphic drawing calculation algorithms;
the step of setting various military standard types and corresponding graphic drawing calculation algorithms comprises the following steps:
determining algorithms involved in a drawing operation flow aiming at different military standard types;
setting a circle, and calculating a circle to form a point set by controlling the circle center and the radius;
the set rectangle is determined by two points, namely an upper left point and a lower right point;
setting a straight arrow to provide a start point and a stop point, calculating main trunk points according to the two points, and finally obtaining a constituent point set;
constructing a corresponding state mode and a state processing module according to different military standard types;
the step of constructing the corresponding state mode and the state processing module according to different military standard types comprises the following steps:
constructing a corresponding state processing module for each military standard type, wherein the state processing module comprises how to monitor and respond various mouse trigger events and how to call a graph backbone point calculation algorithm;
constructing a map plotting interface, and providing a plotting operation interaction entrance for each military standard type;
the step of constructing the map plotting interface and providing plotting operation interactive entrances for each military standard type comprises the following steps:
providing a plotting toolbar interface, and supporting switching of different types of military plotting system instructions by clicking different military standard entrance buttons of the interface;
entering a plotting state according to the selected military standard type to be plotted and the corresponding military plotting entrance button operation instruction; simultaneously constructing an initial layer of the type of icon;
entering a plotting state according to the selected military standard type to be drawn and a corresponding military plotting entrance button operation instruction; and simultaneously constructing an initial layer of the type of icon comprises the following steps:
according to the selected type of the military standard to be drawn, when an operation instruction of clicking a corresponding military standard entrance button in a toolbar is received, the military standard starts to enter a plotting state; simultaneously constructing an initial layer of the type of icon, wherein the initial value of the coordinate point set data is a null array;
monitoring and responding to mouse click events according to the constructed corresponding state processing module, and sampling main points;
the step of monitoring and responding to mouse click events according to the constructed corresponding state processing module and sampling the main points comprises the following steps:
monitoring and responding mouse click events according to the constructed corresponding state processing module, and sampling main points: clicking a map through a left mouse button to collect points, and acquiring the longitude and latitude of coordinates of clicked points;
calculating a construction point set of the corresponding type military standard according to the trunk points obtained by sampling, dynamically updating corresponding layer data, and outputting and displaying a map;
the step of calculating a composition point set of the corresponding type military standard according to the sampled main points, dynamically updating corresponding layer data, and outputting and displaying the map comprises the following steps:
calculating the radius according to the circle center and two points on the arc;
then, according to the circle center and the radius, an algorithm is called to calculate a point set formed by the whole circle;
and finally, updating the created layer data source by using the calculated complete point set, and displaying and presenting the layer data source on the map in real time.
2. A dynamic plotting apparatus for multiple military standard types based on status patterns, comprising:
the setting module is used for setting various military standard types and corresponding graphic drawing calculation algorithms;
the steps for setting various military standard types and corresponding graphic drawing calculation algorithms comprise:
determining algorithms involved in a drawing operation flow aiming at different military standard types;
setting a circle, and calculating a circle to form a point set by controlling the circle center and the radius;
the set rectangle is determined by two points, namely an upper left point and a lower right point;
setting a straight arrow to provide a start point and a stop point, calculating main trunk points according to the two points, and finally obtaining a constituent point set;
the first construction module is used for constructing corresponding state modes and state processing modules according to different military standard types;
the step for constructing the corresponding state mode and the state processing module according to different military standard types comprises the following steps:
constructing a corresponding state processing module for each military standard type, wherein the state processing module comprises how to monitor and respond various mouse trigger events and how to call a graph backbone point calculation algorithm;
the second construction module is used for constructing a map plotting interface and providing a plotting operation interaction entrance for each military standard type;
the step for constructing a map plotting interface and providing plotting operation interactive access for each military standard type comprises the following steps:
providing a plotting toolbar interface, and supporting switching of different types of military plotting system instructions by clicking different military standard entrance buttons of the interface;
the plotting module is used for entering into a plotting state according to the selected military standard type to be plotted and the corresponding military plotting entrance button operation instruction; simultaneously constructing an initial layer of the type of icon;
the military standard type used for drawing according to the selected requirement and a corresponding military standard drawing entrance button operation instruction enter a plotting state; and simultaneously constructing an initial layer of the type of icon comprises the following steps:
according to the selected type of the military standard to be drawn, when an operation instruction of clicking a corresponding military standard entrance button in a toolbar is received, the military standard starts to enter a plotting state; simultaneously constructing an initial layer of the type of icon, wherein the initial value of the coordinate point set data is a null array;
the sampling module is used for monitoring and responding to mouse click events according to the constructed corresponding state processing module and sampling main points;
the step of monitoring and responding to mouse click events according to the constructed corresponding state processing module and sampling the main points comprises the following steps:
monitoring and responding mouse click events according to the constructed corresponding state processing module, and sampling main points: clicking a map through a left mouse button to collect points, and acquiring the longitude and latitude of coordinates of clicked points;
the calculation and display module is used for calculating a construction point set of the corresponding type military standard according to the trunk points obtained by sampling, dynamically updating corresponding layer data, and outputting and displaying a map;
the step of calculating the composition point set of the corresponding type military standard according to the sampled main points, dynamically updating the corresponding layer data, and outputting and displaying the map comprises the following steps:
calculating the radius according to the circle center and two points on the arc;
then, according to the circle center and the radius, an algorithm is called to calculate a point set formed by the whole circle;
and finally, updating the created layer data source by using the calculated complete point set, and displaying and presenting the layer data source on the map in real time.
3. A computer device comprising a memory and a processor, said memory storing a computer program, wherein said processor when executing said computer program implements the steps of the method for dynamic plotting of multiple military standard types based on state patterns of claim 1.
4. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for dynamically plotting a plurality of military standard types based on a state pattern according to claim 1.
CN202010264612.7A 2020-04-07 2020-04-07 Method and device for dynamically plotting multiple military standard types based on state mode Active CN111580728B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010264612.7A CN111580728B (en) 2020-04-07 2020-04-07 Method and device for dynamically plotting multiple military standard types based on state mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010264612.7A CN111580728B (en) 2020-04-07 2020-04-07 Method and device for dynamically plotting multiple military standard types based on state mode

Publications (2)

Publication Number Publication Date
CN111580728A CN111580728A (en) 2020-08-25
CN111580728B true CN111580728B (en) 2021-07-20

Family

ID=72122429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010264612.7A Active CN111580728B (en) 2020-04-07 2020-04-07 Method and device for dynamically plotting multiple military standard types based on state mode

Country Status (1)

Country Link
CN (1) CN111580728B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116821990A (en) * 2023-08-31 2023-09-29 中国电子科技集团公司第十五研究所 Situation unified modeling method based on human engineering, server and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102542740A (en) * 2010-12-15 2012-07-04 北京航天长峰科技工业集团有限公司 Land defence situation display and control method
CN103605463A (en) * 2013-11-28 2014-02-26 东莞中国科学院云计算产业技术创新与育成中心 Rapid momentum plotting system and method based on GIS platform and touchscreen device
CN104317818A (en) * 2014-09-26 2015-01-28 国家电网公司 Online plotting and consultation system and online plotting and consultation method
CN107705345A (en) * 2017-09-30 2018-02-16 南威软件股份有限公司 A kind of drawing method of the dynamic military symbol of situation plotting
CN110851118A (en) * 2019-10-21 2020-02-28 中国地质大学(武汉) Vector icon drawing method and device for three-dimensional scene

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070277111A1 (en) * 2006-02-01 2007-11-29 Wright State University Graphical user interface using perception-action icons and a method thereof
CN106568377B (en) * 2016-11-07 2019-07-23 武汉大学 Tectonic geodetic survey drawing methods and system based on ArcEngine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102542740A (en) * 2010-12-15 2012-07-04 北京航天长峰科技工业集团有限公司 Land defence situation display and control method
CN103605463A (en) * 2013-11-28 2014-02-26 东莞中国科学院云计算产业技术创新与育成中心 Rapid momentum plotting system and method based on GIS platform and touchscreen device
CN104317818A (en) * 2014-09-26 2015-01-28 国家电网公司 Online plotting and consultation system and online plotting and consultation method
CN107705345A (en) * 2017-09-30 2018-02-16 南威软件股份有限公司 A kind of drawing method of the dynamic military symbol of situation plotting
CN110851118A (en) * 2019-10-21 2020-02-28 中国地质大学(武汉) Vector icon drawing method and device for three-dimensional scene

Also Published As

Publication number Publication date
CN111580728A (en) 2020-08-25

Similar Documents

Publication Publication Date Title
CN103157281B (en) Display method and display equipment of two-dimension game scene
CN108027980A (en) The method and terminal that picture is shown
CN111580912A (en) Display method and storage medium for multi-level structure resource group
CN111580728B (en) Method and device for dynamically plotting multiple military standard types based on state mode
CN112464055A (en) Visual linkage system, method and device, computer equipment and storage medium
CN110471700B (en) Graphic processing method, apparatus, storage medium and electronic device
CN111325812B (en) Dynamic calculation and drawing method and device for pincer arrow in military symbol plotting
CN111562870B (en) Map point location icon expansion processing method and device
CN111744181A (en) In-game information display method and device, game client and medium
CN115965731A (en) Rendering interaction method, device, terminal, server, storage medium and product
CN114344894B (en) Scene element processing method, device, equipment and medium
CN114048279B (en) Method and device for generating forecast information
CN113694518B (en) Freezing effect processing method and device, storage medium and electronic equipment
CN115131531A (en) Virtual object display method, device, equipment and storage medium
CN115601555A (en) Image processing method and apparatus, device and medium
CN114758034A (en) Map generation method and device, computer-readable storage medium and electronic device
CN112862453A (en) Process information display method, apparatus, computer device and storage medium
CN111125281B (en) Map self-adaptive adjusting method and system, computer equipment and medium
CN111427494A (en) Map collaborative plotting method and device based on event subscription and release mode
CN113282204A (en) Icon control method and icon control device
CN108287842B (en) Method and device for preventing cover of navigation map and navigation equipment
CN112902968A (en) High-efficiency three-dimensional digital navigation earth generation method and system
CN111324826A (en) Map viewpoint dynamic method and device under user following mode based on Mapbox
CN110941389A (en) Method and device for triggering AR information points by focus
CN113487704B (en) Dovetail arrow mark drawing method and device, storage medium and terminal equipment

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