阅读:2064回复:5
如何在AE的Scene中设置一个FeatureLayer的高度直,以便形成拉伸效果?
如何在AE的Scene中设置一个FeatureLayer的高度直,以便形成拉伸效果?<img src="images/post/smile/dvbbs/em02.gif" /><img src="images/post/smile/dvbbs/em02.gif" />
|
|
1楼#
发布于:2004-10-13 11:53
<P>楼上大哥 如果有关联 我就不用这么麻烦的贴上!!可能小弟不才 没有找到位置 你能否帮我找一下 告诉我一下</P>
|
|
2楼#
发布于:2004-10-13 10:22
你可以看看自带的例子,有关联的
|
|
|
3楼#
发布于:2004-10-13 10:09
<P 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1; tab-stops: list 18.0pt"><FONT face="Times New Roman">1. </FONT>在<FONT face="Times New Roman">Arcgis Engine </FONT>中有设置<FONT face="Times New Roman">FeatureLayer</FONT>拉伸的函数</P><PRE><FONT face=宋体 size=3>Public Sub SetLayerExtrusionString(sLayer, sExtrusionExpression As String)</FONT></PRE><PRE><FONT size=3><FONT face=宋体> On Error GoTo err</FONT></FONT></PRE><PRE><FONT size=3><FONT face=宋体> If Not TypeOf Application Is ISxApplication Then Exit Sub</FONT></FONT></PRE><PRE><FONT face=宋体 size=3> </FONT></PRE><PRE><FONT face=宋体 size=3>' in ArcScene VBA...</FONT></PRE><PRE><FONT face=宋体 size=3>' get the document</FONT></PRE><PRE><FONT size=3><FONT face=宋体> Dim pSxDoc As ISxDocument</FONT></FONT></PRE><PRE><FONT size=3><FONT face=宋体> Set pSxDoc = Application.Document</FONT></FONT></PRE><PRE><FONT face=宋体 size=3> </FONT></PRE><PRE><FONT face=宋体 size=3>' get the Scene from the Document:</FONT></PRE><PRE><FONT size=3><FONT face=宋体> Dim pScene As IScene</FONT></FONT></PRE><PRE><FONT size=3><FONT face=宋体> Set pScene = pSxDoc.Scene</FONT></FONT></PRE><PRE><FONT face=宋体 size=3> </FONT></PRE><PRE><FONT face=宋体 size=3>' get the layer in the scene:</FONT></PRE><PRE><FONT size=3><FONT face=宋体> Dim pLayer As ILayer</FONT></FONT></PRE><PRE><FONT size=3><FONT face=宋体> Set pLayer = GetLayer(sLayer) </FONT></FONT></PRE><PRE><FONT face=宋体 size=3> </FONT></PRE><PRE><FONT face=宋体 size=3>' get layer extensions:</FONT></PRE><PRE><FONT size=3><FONT face=宋体> Dim pLayerExts As ILayerExtensions</FONT></FONT></PRE><PRE><FONT size=3><FONT face=宋体> Set pLayerExts = pLayer</FONT></FONT></PRE><PRE><FONT face=宋体 size=3> </FONT></PRE><PRE><FONT face=宋体 size=3>' get the 3D properties from extension:</FONT></PRE><PRE><FONT face=宋体 size=3>' layer must have it if it is in scene:</FONT></PRE><PRE><FONT size=3><FONT face=宋体> Dim i As Long</FONT></FONT></PRE><PRE><FONT size=3><FONT face=宋体> For i = 0 To pLayerExts.ExtensionCount - 1</FONT></FONT></PRE><PRE><FONT size=3><FONT face=宋体> Dim p3DProps As I3DProperties</FONT></FONT></PRE><PRE><FONT size=3><FONT face=宋体> Set p3DProps = pLayerExts.Extension(i)</FONT></FONT></PRE><PRE><FONT size=3><FONT face=宋体> If (Not p3DProps Is Nothing) Then</FONT></FONT></PRE><PRE><FONT size=3><FONT face=宋体> Exit For</FONT></FONT></PRE><PRE><FONT size=3><FONT face=宋体> End If</FONT></FONT></PRE><PRE><FONT size=3><FONT face=宋体> Next</FONT></FONT></PRE><PRE><FONT size=3><FONT face=宋体> p3DProps.ExtrusionExpressionString = sExtrusionExpression</FONT></FONT></PRE><PRE><FONT size=3><FONT face=宋体> p3DProps.ExtrusionType = esriExtrusionMinZ</FONT></FONT></PRE><PRE><FONT face=宋体 size=3> </FONT></PRE><PRE><FONT face=宋体 size=3>' Tell the scene graph to invalidate the layer and redraw:</FONT></PRE><PRE><FONT size=3><FONT face=宋体> Dim pSG As ISceneGraph</FONT></FONT></PRE><PRE><FONT size=3><FONT face=宋体> Set pSG = pScene.SceneGraph</FONT></FONT></PRE><PRE><FONT size=3><FONT face=宋体> pSG.Invalidate pLayer, True, True</FONT></FONT></PRE><PRE><FONT size=3><FONT face=宋体> pSG.RefreshViewers</FONT></FONT></PRE><PRE><FONT face=宋体 size=3> </FONT></PRE><PRE><FONT size=3><FONT face=宋体> Exit Sub</FONT></FONT></PRE><PRE><FONT face=宋体 size=3> </FONT></PRE><PRE><FONT face=宋体 size=3>err:</FONT></PRE><PRE><FONT face=宋体 size=3>End Sub</FONT></PRE><P 0cm 0cm 0pt"><p><FONT face="Times New Roman"> </FONT></p></P><P 0cm 0cm 0pt">我想问下怎样实现一个把一个<FONT face="Times New Roman">featurelayer</FONT>中某个字段如要拉伸的值关联起来<FONT face="Times New Roman">!? </FONT>即<FONT face="Times New Roman">sExtrusionExpression </FONT>这个变量是不是就是<FONT face="Times New Roman">featurelayer</FONT>的字段值<FONT face="Times New Roman">!!</FONT></P>
|
|
4楼#
发布于:2004-10-13 08:29
楼上兄弟!我没有用过8.3 以前也没有做过ao 的开发!!请你能否简单的介绍一下步骤!!!非常感激!!
|
|
5楼#
发布于:2004-10-12 23:00
<P>这个在ae中和在8。3的ao中,是没有任何区别的</P>
|
|