AE+SceneControl源碼共用,aescenecontrol源碼
最近,有博友發私信或留言交流,先把之前用SceneControl代做的一個小工程共用,做的很粗糙,希望可以幫到大家,歡迎留言交流哈。
除了基本的開啟、儲存、資料載入、查詢等,主要實現以下幾個功能:
1、根據高程點(excel檔案)產生TIN。
2、TIN與DOM疊加構建三維情境。
3、根據TIN提取等高線。
4、模型匯入
見:http://download.csdn.net/detail/liushuo_whu/7793889
用AE怎實現在AxSceneControl裡面實現鷹眼?
((IGlobeDisplayEvents_Event)this.axGlobeControl1.Globe.GlobeDisplay).AfterDraw += new IGlobeDisplayEvents_AfterDrawEventHandler(OnAfterDraw);
void OnAfterDraw(ISceneViewer pViewer) {
IGraphicsContainer pGra = axMapControl1.Map as IGraphicsContainer; IActiveView pAv = pGra as IActiveView;
// 在繪製前,清除 axMapControl1 中的任何圖形元素
pGra.DeleteAllElements();
IRectangleElement pRectangleEle = new RectangleElementClass();
IElement pEle = pRectangleEle as IElement;
// pEle.Geometry = Get_VisibleGeographicExtent(this.axGlobeControl1.Globe);
// 設定鷹眼圖中的紅線框
IRgbColor pColor = new RgbColorClass();
pColor.Red = 255;
pColor.Green = 0;
pColor.Blue = 0;
pColor.Transparency = 25;
// 產生一個線符號對象
ILineSymbol pOutline = new SimpleLineSymbolClass();
pOutline.Width = 2;
pOutline.Color = pColor;
// 設定顏色屬性
pColor = new RgbColorClass();
pColor.Red = 255;
pColor.Green = 0;
pColor.Blue = 0;
pColor.Transparency = 0;
// 設定填充符號的屬性
IFillSymbol pFillSymbol = new SimpleFillSymbolClass();
pFillSymbol.Color = pColor;
pFillSymbol.Outline......餘下全文>>
跪AE視頻源碼
是要模版??? 新CG兒有下載