arcglobe+opengl(1)

来源:互联网 发布:武汉软件测试 编辑:程序博客网 时间:2024/05/16 09:43
在arcglobe中搭建opengl环境需要csgl包:下面是一段搭建环境的smple code
using ESRI.ArcGIS.Analyst3D;
using ESRI.ArcGIS.GlobeCore;
...
private IGlobeDisplayEvents_Event globeDisplayEvents = null;
...
protected void CreateOpenGLPortal()
{
globeDisplayEvents =
axGlobeControl1.GlobeViewer.GlobeDisplay as IGlobeDisplayEvents_Event;
if(globeDisplayEvents != null)
{
globeDisplayEvents.AfterDraw +=
new IGlobeDisplayEvents_AfterDrawEventHandler(OpenGLRender);
}
}
...
protected void OpenGLRender(ISceneViewer viewer)
{
// perform custom OpenGL rendering here
}

另外需要注意的有一个很重要的接口iglobeviewutil来提供坐标系的转换
globe坐标系是wgs84坐标系
原创粉丝点击