Three-dimensional electronic sandbox digital sandbox M3DGIS development tutorial lesson 2

The previous article implemented a basic ball. In the basic ball, operations similar to Google Earth have been implemented, that is, dragging with a single mouse button, zooming in with a scroll wheel, rotating left and right, and stretching up and down by pressing the middle mouse button. Multi-touch operations: basic operations such as single-finger dragging, two-finger rotation and zooming, 5-finger stretching up and down, and left and right rotation.

Let me introduce the basic state switching of the ball:

Coordinate query, distance query, area query, roaming, military standard addition, military standard editing,

The first point of the shortest path, the second point of the shortest path, azimuth angle query, altitude measurement,

View, add 3D model, operational military standard, human eye perspective, edit 3D model, slope, driving mode, map output, add line, add area, add ellipse, add point, add rectangle, add anchor point line, prohibited operations, Obtain latitude and longitude, free camera mode, hand-drawn line, shortest path mode 2, add information points, panoramic mode, frame selection query, command mode, etc.

Below we introduce the main measurement methods:

gis3d.State = GisLib.WindowsMT.GisState.Coordinate query;

The effect is as follows:

All states support both multi-touch and mouse states.

Distance query:

gis3d.State = GisLib.WindowsMT.GisState.Distance query;

Area query:

gis3d.State = GisLib.WindowsMT.GisState.Area query;

Visibility:

gis3d.State = GisLib.WindowsMT.GisState.通视;

Other states require assistance from other subsystems, which will be introduced later.

————————————————

추천

출처blog.csdn.net/qq_37897462/article/details/128546328