There are two or three days did not update the blog, I feel lazy again! In fact, the Friday is mainly to see the research worldwind Virtual Earth plug-in function, I am prepared to develop with VirtualEarth very similar, it must be attacked. At that time the Virtual Earth study did not have much progress, the problems encountered are: 1. How does the picture stack up to the sphere? (including projection transformation, positioning, scaling, etc.) 2. Direct 3D Development. Since the virtual Earth was developed on the basis of the Blue Marble plug-in, I mainly saw the basic knowledge of Direct X and the study of Blue Marble in Saturday. Now analyze the bluemarble with you.
The Blue marble plug-in implementation is primarily a BMNG.cs file, which includes two classes BMNG classes and Bmngloader classes.
BMNG Complex implementation of the Bluemarble function of the control form, bmng means blue Marble Next Generation.
The Bmngloader class inherits from the plugin class and is responsible for implementing plug-in functionality. It overloads the Plugin.cs load () and unload () methods, and implements the menu item click Processing Function menuitemclicked (). This is the same as the general process of implementing plug-in functionality.
Let's look at the implementation of the key code, respectively.
Bmng class: Mainly in the Bmng constructor, which is the key to the realization of the image superimposed on the ball processing, but also the focus of analytical learning.