您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 市场营销 > SkyLine-功能展示
SkyLine功能展示TerraExplorer功能1、基本功能太阳、时间、阴影可以打开或者关闭日照,控制当前时间,几控制太阳的照射角度和白天黑夜,可以打开或者关闭影子早上九点和晚上7点地下模式打开表面纹理的半透明,显示地下效果打开地下模式后可以显示埋在地下的管线。地下有网格显示。添加内容可以向系统中添加相关数据,包括矢量、栅格、模型、对象以及skyline自己生成的工程树矢量矢量数据支持如下格式包括GoogleKML、AutodeskDXF、Shape、mdb、OGC服务、AcdSDE、oraclespatial等栅格支持OGC服务、AcdSDE、oraclespatial以及使用TerraBuilder生成的数据层(金字塔)等模型(三角网格)支持文件和服务两种需要转换包括2D和3D以及动态对象可以自己绘制折线、多边形、圆形、弧等(2D和3D)管线的流量使用的就是3D箭头因此管线完全可以使用自带库完成2、分析功能量算包括水平、竖直、空中、地形面积可三维平面量管距量面积地形分析包括等高线、坡度、最佳路径、剖面分析、洪水淹没、坡度查询等高线:可以绘制颜色、绘制等高线或者二者兼顾。坡度:可以绘制彩图、方向或者两者兼顾最佳路径剖面分析洪水淹没坡度查询视线分析包括可视性分析、连通性分析、威胁地带计算等阴影分析3、导航功能基本的导航功能,包括可以进行缩放、移动、旋转、跟随等。这里还有室内的碰撞检测和室内浏览4、视图可以控制软件的各个窗口,比例尺、图例、中心点等。可以做地形整平、地形透明、相机惯性等的设置5、对象可以添加标签添加视频添加2d的多边形3D模型模型支持多种格式导入了一个黑龙江的模型,官方自带功能就可以移动、缩放翻转。模型可以分组,这样做规划也没有问题。可以通过卫片生成楼房可以地形挖方,通过挖方露出管线地形也可以挖洞,透过纹理直接看地下动态模型导入一个模型,比如汽车,可以指定轨迹移动6、工具抓图工具地形导出工具合作工具绘制工具电线杆围墙还有相关的时间、转换计算工具主要功能就是这些关于二次开发,使用ActiveX技术,使用C#、JavaScript、C++均可开发一个简单教程:1.DownloadandinstallTerraExplorerPlus.2.CreateanewWindowsFormsApplicationprojectinVisualStudio,usingeitherC#orVB.Net:a.InVisualStudio,selectFileNewProject.b.IfyouwanttocreateaC#project:SelectVisualC#WindowsWindowsFormsApplication.NametheprojectTerraExplorerShowcase,andclickOK.c.IfyouwanttocreateaVisualBasicproject:SelectVisualBasicWindowsWindowsFormsApplication.NametheprojectTerraExplorerShowcase,andclickOK.3.AddTerraExplorerActiveXobjectstotheToolbox..InDesignview,rightclicktheToolbox,andselectChooseItems.a.ClicktheCOMComponentstabandselecttheTE3DWindowClass,TEInformationWindowClassandTENavigationMapClasscheck-boxes.b.ClickOK.Threeiconsareaddedtoyourtoolbox:the3DWindow,theInformationWindowandtheNavigationMapcontrols.4.Adda3DWindowtotheform..Clickthe3Dwindowcontroliconinthetoolboxanddragittotherequiredlocationonyourform.5.ReferenceTerraExplorerXCOMdll..FromtheProjectmenu,selectAddReferences.a.ClicktheCOMComponentstabandlocateTerraExplorerX1.0TypeLibraryfromtheavailablereferences.6.AddtheusingdirectiveforTerraExplorerXnamespaceintheForm1code.usingTerraExplorerX;ImportsTerraExplorerX7.DefineavariabletoholdaSGWorldobjectinstance.Note:YouwillusethisvariablelatertoaccessextensiveTerraExplorerAPI.privateSGWorld65sgworld;PrivatesgworldAsSGWorld658.InitializeaSGWorldobject.Note:ThisobjectwillautomaticallyfindtheActiveXcontrolthatyouhaveplacedontheformandinteractwithit.Note:YoushouldinitializethisobjectonlyaftertheActiveXobjectwasalreadycreated,i.e.afterthecalltoInitializeComponent()intheconstructor.sgworld=newSGWorld65();sgworld=NewSGWorld659.NowyoucanuseSGWorldobjecttocontroltheTerraExplorerActiveX.Thefollowingcodeloadsa.flyprojectandfliestoaspecificlocation.10.publicpartialclassForm1:Form11.{12.privateSGWorld65sgworld;13.publicForm1()14.{15.InitializeComponent();16.sgworld=newSGWorld65();17.}18.19.privatevoidForm1_Load(objectsender,EventArgse)20.{21.//RegistertoOnLoadFinishedglobeevent22.sgworld.OnLoadFinished+=new_ISGWorld65Events_OnLoadFinishedEventHandler(OnProjectLoadFinished);23.//OpenProjectinasynchronousmode24.stringflyFile=(flyFile,true,null,null);26.MessageBox.Show(Openingproject+flyFile+inasyncmode);27.}28.29.voidOnProjectLoadFinished()30.{31.MessageBox.Show(Receivedprojectloadedevent.ClickOKtoflytoWashingtonDC.);32.IPosition65Washington=sgworld.Creator.CreatePosition(-77.036667,38.895111,1500,AltitudeTypeCode.ATC_TERRAIN_RELATIVE,0,0,0,0);33.sgworld.Navigate.FlyTo(Washington);34.}}ImportsTerraExplorerXPartialPublicClassForm1PrivatesgworldAsSGWorld65PublicSubNew()InitializeComponent()sgworld=NewSGWorld65()EndSubPrivateSubForm1_Load(senderAsObject,eAsEventArgs)'RegistertoOnLoadFinishedglobeeventAddHandlersgworld.OnLoadFinished,AddressOfOnProjectLoadFinished'OpenProjectinasynchronousmodeDimflyFileAsString=(flyFile,True,Nothing,Nothing)MessageBox.Show(Openingproject&flyFile&inasyncmode)EndSubPrivateSubOnProjectLoadFinished()MessageBox.Show(Receivedprojectloadedevent.ClickOKtoflytoWashingtonDC.)DimWashingtonAsIPosition65=sgworld.Creator.CreatePosition(-77.036667,38.895111,1500,AltitudeTypeCode.ATC_TERRAIN_RELATIVE,0,0,0,0)sgworld.Navigate.FlyTo(Washington)EndSubEndClass35.DownloadadditionalcodesamplesandexamplesofTerraExplorer’scapabilitiesforC#orVB.Net.Note:ThosesamplesrequireVisualStudio2008.36.VisitSkylineGlobetoseeanexampleofaworkingwebapplicationthatutilizesTerraExplorer.使用官方实例C#编译出来的效果我们要做的就是把功能添加上去。关于数据集的导入,官方有Terrabuilder,海量模型有CityBuilder,将成型的数据导入即可。支持格式也比较多。可以生成全球的也可以生成一个scene。
本文标题:SkyLine-功能展示
链接地址:https://www.777doc.com/doc-1658131 .html