没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
ArcScen+AE+显示、渲染(源代码)
一、 在 arcMapControl_OnMouseDown 事件中增加:
Dim objEnvelope As IEnvelope
Dim pScreenDisplay As IDisplay
Dim pRubberband As IRubberBand
Set m_pActiveView = arcMapControl.ActiveView.FocusMap
Set pScreenDisplay = arcMapControl.ActiveView.ScreenDisplay
Set pRubberband = New RubberEnvelope
Set objEnvelope = pRubberband.TrackNew(pScreenDisplay, Nothing)
If objEnvelope Is Nothing Then
Call MsgBox("Envelope is Empty", vbExclamation)
Exit Sub
End If
Call FrmMap3D.Init(objEnvelope)
二、初始化选择中的要素:
Public Sub LoadSceneLayers()
On Error GoTo ErrorHandler
'
Dim pMap As iMap
Dim pLayer As ILayer
Dim pCompositeLayer As ICompositeLayer
Dim pPriority As Long
Dim pIndex1 As Long
Dim pIndex2 As Long
'
Set mSceneGraph = FrmMap3D.ArcSceneControl.SceneGraph
'SceneViewerCtrl1.SceneGraph
Set mSceneGraphEvents = mSceneGraph
Set pMap = frmMapControl.arcMapControl.ActiveView.FocusMap
pPriority = 0
'
For pIndex1 = 0 To pMap.LayerCount - 1 Step 1
Set pLayer = pMap.Layer(pIndex1)
If pLayer.Visible = True Then
If TypeOf pLayer Is IGroupLayer Then
Set pCompositeLayer = pLayer
For pIndex2 = 0 To pCompositeLayer.Count - 1 Step 1
pPriority = pPriority + 1
Call LoadSceneLayers2(pCompositeLayer.Layer(pIndex2), pPriority)
Next pIndex2
Else
kisstome88
- 粉丝: 23
- 资源: 211
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论7