-
大小: 10.8MB文件類型: .zip金幣: 2下載: 0 次發布日期: 2023-11-11
- 語言: 其他
- 標簽: AE??SceneControl??三維??
資源簡介
1、根據高程點(excel文件)生成TIN。
2、TIN與DOM疊加構建三維場景。
3、根據TIN提取等高線。
4、模型導入

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Drawing;
using?System.Data;
using?System.Text;
using?System.Windows.Forms;
using?ESRI.ArcGIS.Carto;
using?ESRI.ArcGIS.Display;
using?ESRI.ArcGIS.Controls;
using?ESRI.ArcGIS.Analyst3D;
namespace?_3DCampus
{
????///?
????///?模仿ArcGIS的TOCControl控件,對TIN模型分級渲染顏色進行關聯,并通過
????///?復選框的勾選狀態控制對應色帶的顯隱
????///?
????public?partial?class?ColorControlView?:?UserControl
????{
????????///?
????????///?顏色圖標清單
????????///?
????????private?ImageList?pImageList;
????????///?
????????///?激活節點
????????///?
????????private?TreeNode?pTreeNode;
????????///?
????????///?含有TIN的三維控件
????????///?
????????static?private?AxSceneControl?_pSceneControl;
????????public?ColorControlView()
????????{
????????????InitializeComponent();
????????????treeView1.CheckBoxes?=?true;
????????}
????????///?
????????///?初始化TIN圖層顏色列表
????????///?
????????///?含TIN圖層的AxSceneControl控件
????????public?void?IniColorTree(AxSceneControl?pSceneControl)
????????{
????????????_pSceneControl?=?pSceneControl;
????????????ITinlayer?pTinlayer?=?getTinlayer(_pSceneControl);
????????????if?(pTinlayer?==?null)
????????????????return;
????????????treeView1.Nodes.Clear();
????????????pImageList?=?new?ImageList();
????????????pImageList.ImageSize?=?new?Size(16?15);
????????????treeView1.ImageList?=?pImageList;
????????????ITinRenderer?pRenderNew?=?pTinlayer.GetRenderer(0);
????????????ITinColorRampRenderer?pElevRenderer?=?pRenderNew?as?ITinColorRampRenderer;
????????????if?(pElevRenderer?==?null)
????????????????return;
????????????ISimpleFillSymbol?pSymbol?=?null;
????????????Color?pColor?=?new?Color();
????????????string?lable?=?““;
????????????for?(int?i?=?0;?i?????????????{
????????????????lable?=?pElevRenderer.get_Label(i);
????????????????pSymbol?=?pElevRenderer.get_Symbol(i)?as?ISimpleFillSymbol;
????????????????pColor?=?ColorTranslator.FromOle(pSymbol.Color.RGB);
????????????????Image?pImage?=?getImage(pColor);
????????????????pImageList.Images.Add(pImage);
????????????????TreeNode?pTN?=?new?TreeNode();
????????????????pTN.Text?=?lable;
????????????????pTN.Checked?=?true;
????????????????pTN.ImageIndex?=?pImageList.Images.Count?-?1;
????????????????pTN.Tag?=?pColor;
????????????????treeView1.Nodes.Add(pTN);
????????????}
????????}
????????///?
????????///?獲得顏色圖標
????????///?
????????///?圖標顏色
????????///?
????????private?static?Image?getImage(Color?clr)
????????{
????????????Panel?pPanel?=?new?Panel();
????????????pPanel.Visible?=?false;
????????????pPanel.Width?=?16;
????????????pPanel.Height?=?14;
????????????Bitmap?pBitmap?=?new?Bitmap(16?14);
????????????Rectangle?rc?=?new?Rect
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-05-14?14:23??3DCampus\
?????文件???????14035??2014-05-14?18:37??3DCampus\3DCampus.csproj
?????文件?????????227??2014-05-10?21:42??3DCampus\3DCampus.csproj.user
?????文件?????????857??2014-05-10?20:27??3DCampus\3DCampus.sln
?????文件???????54784??2014-05-31?08:33??3DCampus\3DCampus.suo
?????文件???????????1??2014-05-10?20:37??3DCampus\ClassDiagram1.cd
?????文件????????9718??2014-05-10?23:31??3DCampus\ColorControlView.cs
?????文件????????2392??2014-05-10?23:31??3DCampus\ColorControlView.designer.cs
?????文件????????5814??2014-05-10?23:30??3DCampus\ColorControlView.resx
?????文件????????9741??2014-05-14?14:09??3DCampus\CreateContour.Designer.cs
?????文件???????13431??2014-05-14?18:37??3DCampus\CreateContour.cs
?????文件??????495625??2014-05-14?14:09??3DCampus\CreateContour.resx
?????文件????????1840??2014-05-10?23:31??3DCampus\DensitySetFrm.cs
?????文件???????14253??2014-05-10?23:31??3DCampus\DensitySetFrm.designer.cs
?????文件????????6493??2014-05-10?23:30??3DCampus\DensitySetFrm.resx
?????文件???????20942??2014-05-30?22:51??3DCampus\Form1.Designer.cs
?????文件???????14503??2014-05-30?23:52??3DCampus\Form1.cs
?????文件??????522187??2014-05-30?22:51??3DCampus\Form1.resx
?????文件?????????357??2014-05-10?23:31??3DCampus\FrmChoseGColor.cs
?????文件????????4307??2014-05-10?23:31??3DCampus\FrmChoseGColor.designer.cs
?????文件????????5814??2014-05-10?23:30??3DCampus\FrmChoseGColor.resx
?????文件?????????357??2014-05-10?23:31??3DCampus\FrmChosePColor.cs
?????文件????????4184??2014-05-10?23:31??3DCampus\FrmChosePColor.designer.cs
?????文件????????5814??2014-05-10?23:30??3DCampus\FrmChosePColor.resx
?????文件????????2259??2014-05-11?00:05??3DCampus\FrmContourSet.cs
?????文件????????8088??2014-05-10?23:57??3DCampus\FrmContourSet.designer.cs
?????文件??????495125??2014-05-10?23:57??3DCampus\FrmContourSet.resx
?????文件????????2754??2014-05-10?23:31??3DCampus\FrmTinSet.cs
?????文件???????12624??2014-05-10?23:31??3DCampus\FrmTinSet.designer.cs
?????文件????????6493??2014-05-10?23:30??3DCampus\FrmTinSet.resx
?????文件????????8542??2014-05-30?23:35??3DCampus\ImportModel.Designer.cs
............此處省略237個文件信息
評論
共有 條評論