ArcEngine开发入门.ppt

  1. 1、本文档共235页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
If (e.button = 2) Then Dim tocControl As ITOCControl tocControl =AxTOCControl1.Object Dim map As IMap Dim layer As ILayer Dim item As esriTOCControlItem Dim index As Object Dim other As Object tocControl.HitTest(e.x, e.y, item, map, _ layer, other, index) If item.esriTOCControlItemLayer Then MessageBox.Show(layer.Name) End If End if 访问 TOCControl条目 HitTest方法 X 和 Y 鼠标位置 ItemType BasicMap Layer Unk - ILegendGroup Data - legend class index 3D控件 SceneControl Scene view in ArcScene 封装在 Scene coclass中 Use for analyses and 3D viewing GlobeControl Globe view in ArcGlobe 封装在 Globe coclass中 所在类库 SceneControl.ocx GlobeControl.ocx 3D 控件的数据访问成员 ISceneControl/IGlobeControl CheckSxFile/Check3DFile LoadSxFile/Load3DFile ShowSceneTips/ShowGlobeTips TipStyle TipDelay Private Sub Form_Load() Dim fileName As String fileName = “C:\arcgis\ArcTutor\3DAnalyst\Exercise2\Groundwater.sxd” If AxSceneControl1.CheckSxFile(fileName) Then AxSceneControl1.LoadSxFile(fileName) AxSceneControl1.TipStyle = esriTipStyleTransparent AxSceneControl1.ShowSceneTips = True End If End Sub 从 MapDocument对象中访问数据 Possible to access layers from an mxd, lyr, pmf Private Sub Form_Load() Dim mapDocument As IMapDocument = New MapDocument Dim openDialog As New OpenFileDialog openDialog.Title = “Open Map Document” If openDialog.ShowDialog = DialogResult.OK Then mapDocument.Open(openDialog.FileName) End If If (AxGlobeControl1.GlobeDisplay.Scene.LayerCount = 0) Then Dim unk As Object Dim objectCopy As IObjectCopy = New ObjectCopy unk = objectCopy.Copy(mapDocument.Map(0)) Dim map As IMap map = unk Dim scene2 As IScene scene2 = AxGlobeControl1.GlobeDisplay.Scene scene2.AddLayers(map.Layers, False) End If End Sub 3D 控件的浏览和导航成员 ISceneControl/IGlobeControl Camera/GlobeCamera SceneViewer/GlobeViewer Scene/Globe Navigate Private Sub chkNavigate_Click() AxSceneControl1.Navigate = chkNavigate.CheckState End Sub Pr

文档评论(0)

junjun37473 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档