Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method of zooming and panning GDI electronic vector map based on mouse position

A vector map and mouse technology, which is applied in the field of zooming and panning of GDI electronic vector maps based on the position of the mouse. It can solve vector map drift, cannot provide two-dimensional graphics transformation functions, and is difficult to realize advanced functions such as zooming and panning of electronic vector maps, etc. problem, to achieve the effect of simple translation operation

Active Publication Date: 2017-09-12
CIVIL AVIATION UNIV OF CHINA
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, GDI can only provide basic two-dimensional graphics drawing functions, but cannot provide two-dimensional graphics transformation functions, so it is difficult to realize advanced functions such as zooming and panning of electronic vector maps, while OpenGL, GDI+, Driect X, etc. all have related implementation functions
In addition, the existing GDI electronic vector map software uses the center point of the screen as a reference point to convert the pixel points of the drawing objects on the screen according to the zoom ratio when zooming, but the disadvantage is that the vector map will drift when zooming

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method of zooming and panning GDI electronic vector map based on mouse position
  • A method of zooming and panning GDI electronic vector map based on mouse position
  • A method of zooming and panning GDI electronic vector map based on mouse position

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The method for zooming and panning a vector map based on the mouse position provided by the present invention will be described in detail below in conjunction with the drawings and specific embodiments.

[0024] figure 1 It is a flow chart of the method for realizing zooming and panning of the GDI electronic vector map based on the position of the mouse in the GDI provided by the present invention. All the operations are completed in the computer system with the computer as the core, and the main body of the operation is the computer system.

[0025] like figure 1 As shown, the method for realizing GDI electronic vector map zooming and translation based on the mouse position provided by the present invention includes the following steps carried out in order:

[0026] Step 1. Establish a map coordinate system (X, Y) and a screen coordinate system (x, y);

[0027] The map coordinate system takes the east direction as the X axis and the true north direction as the Y axi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A method for zooming and panning a GDI electronic vector map based on the mouse position. It includes establishing a map coordinate system and a screen coordinate system; establishing a reference rectangle, calculating the actual length and actual height of the reference rectangle, and the screen length and screen height, thereby establishing a mapping relationship between the map coordinate system and the screen coordinate system; obtaining the mouse wheel message, calculate the zoom factor; calculate the mouse translation factor according to the distance moved by the mouse; calculate the screen position of the new reference rectangle after zooming and translation according to the current position of the mouse, the zoom factor and the mouse translation factor, and realize the zooming and scaling of the reference rectangle Panning: Recalculate the screen coordinates of the vector map according to the reference rectangle to realize zooming and panning operations on the vector map. The invention can realize zooming and translation operations based on the center of the mouse on the GDI electronic vector map, and solves the problem of map drift during the zooming process. The method is simple to implement and has wide application prospects.

Description

technical field [0001] The invention belongs to the technical field of electronic vector map processing, in particular to a method for realizing zooming and panning of a GDI electronic vector map based on a mouse position. Background technique [0002] GDI (Graphics Device Interface) means a graphics device interface. Its main task is to be responsible for the information interaction between the Windows operating system and the drawing program, and to process the graphics output of all Windows applications. Compared with drawing engines such as OpenGL, GDI+, and Driect X, GDI has the advantages of high drawing efficiency and easy use, so it is widely used in drawing two-dimensional vector maps. However, GDI can only provide basic two-dimensional graphics drawing functions, but cannot provide two-dimensional graphics transformation functions, so it is difficult to realize advanced functions such as zooming and panning of electronic vector maps, while OpenGL, GDI+, Driect X, e...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F3/0484G06F3/0485
Inventor 陈敏屈景怡吴仁彪
Owner CIVIL AVIATION UNIV OF CHINA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products