如何取得导航面板的接口对象

易景地球提供了能够设置导航面板的功能,如下图所示:

guid

 

在二次开发中又如何取得导航面板的接口对象呢?

导航对象接口为IEvEarthGuidePlane

方法如下:

以C#代码为参考:

IEvEarthScene scene = Appcation.EvEarthScene as IEvEarthScene;
IEvEarthGuidePlane GuidPlane = scene.GuidePlane as IEvEarthGuidePlane;

 

以上2行代码就可以取得导航面板的接口对象了

 

注意:以上代码适合易景地球4.0.0.16以后的版本