ArcGlobe的AfterDraw事件什么时候触发?做三二维联动,网上找了些代码,如下:窗体变量声明部分:private IGlobeDisplayEvents_Event globeDisplayEvent;
窗体构造函数:globeDisplayEvent = this.axGlobeControl1.Globe.GlobeDisplay as IGlobeDisplayEvents_Event;
if (globeDisplayEvent != null)
{
globeDisplayEvent.AfterDraw += new IGlobeDisplayEvents_AfterDrawEventHandler(globeDisplayEvent_AfterDraw);
this.axGlobeControl1.Navigate = true;
}AfterDraw事件:private void globeDisplayEvent_AfterDraw(ISceneViewer pViewer)
{
//处理联动的代码 }可是,我无论在球体上平移、放大缩小,都未能触发上面的事件,求高手解答!
窗体构造函数:globeDisplayEvent = this.axGlobeControl1.Globe.GlobeDisplay as IGlobeDisplayEvents_Event;
if (globeDisplayEvent != null)
{
globeDisplayEvent.AfterDraw += new IGlobeDisplayEvents_AfterDrawEventHandler(globeDisplayEvent_AfterDraw);
this.axGlobeControl1.Navigate = true;
}AfterDraw事件:private void globeDisplayEvent_AfterDraw(ISceneViewer pViewer)
{
//处理联动的代码 }可是,我无论在球体上平移、放大缩小,都未能触发上面的事件,求高手解答!
解决方案 »
- c#程序题,急
- 请问如何即时更新datagridview的datarow
- 熟练掌握.NET Framework(C#)是指什么?
- 关于winform中多线程无限循环报错
- 两个ListView同步滚动的问题
- split("\x01")
- GDI+ 图片移动问题
- 问一个关于 AggregateCacheDependency 缓存的问题
- 请教如何注册window服务
- 程序"F:\csharp\windowsapplication1\obj|debug\windowsapplication1.exe"未定義入口點
- C#中打开串口 提示 应用程序试图执行安全策略不允许的操作 如何解决呢?
- 求一个C#/NET开发的在线客服系统
用addhandler后,多一个参数,如果传入true,不管路由经不经过都会强制执行该事件