您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 销售管理 > SKYLINE开发的资料(中文注释及笔记)
skylineglobe技术交流社区标题:SKYLINE开发的资料(中文注释及笔记)作者:chinaglobe时间:2013-7-1200:42标题:SKYLINE开发的资料(中文注释及笔记)ITerraExplorer接口告诉我们怎样使用可视化的开发工具打开fly文件,允许你设置CPU运行模式,或者ITerraExplorer打开或关闭fly文件ITerraExplorer方法Load,SetCPUSavingModeITerraExplorer2方法GetUserUnits,GetTEVersionITerraExplorer3方法LoadExITerraExplorer4方法Save,SaveAsITerraExplorer5方法SetParam,GetParamLoad接口告诉我们是否在使用可视化的语言和fly怎样打开HRESULTLoad([in]BSTRURL)url加载文件的路径GetUserUnits获取客户端坐标系统的使用单位HRESULTGetUserUnits([out]VARIANT*shortSpeed,[out]VARIANT*shortAltitude,[out]VARIANT*shortAltitudeType,[out]VARIANT*shortLatLongType)GetTEVersion获取支持的软件版本HRESULTGetTEVersion([out]VARIANT*shortMajor,[out]VARIANT*shortMinor,[out]VARIANT*shortBuild)参数shortMajor,第一个软件版本shortMinor,第二个软件版本shortBuild)第三个软件版本Save保存工程SaveAs另村工程([in]FileName)参数FileName另存工程的名字页码,1/59SKYLINE开发的资料(中文注释及笔记)-skylineglobe技术交流社区-Poweredby...2014/12/2=viewthread&action=printable&tid=3作者:chinaglobe时间:2013-7-1200:43IPlane接口允许你控制相机的方向、视角、速度等。IPlane方法UpdateData,SetUpdateMask,FlyToIPlane2方法SetPosition,MovePosition,GetPosition,FlyToObjectIPlane3方法FieldOfViewIPlane4方法SetSpeed,GetSpeedFlyTo飞行到某一位置([in]doubleX,水平方向坐标[in]doubleZ,垂直方向坐标[in]doubleHeight,高度[in]doubleDistance,飞行到后视点离位置的距离[in]doubleYaw,方位角[in]doublePitch,视角上下倾斜角度[in]BSTRPattern视角飞行到固定位置的模式)参数X,输入水平方向坐标Z,输入垂直方向坐标Height,输入高度Distance,飞行到后视点离位置的距离Yaw,方位角Pitch,视角上下倾斜角度Pattern视角飞行到固定位置的模式作者:chinaglobe时间:2013-7-1200:43SetPosition设置跳转到视角的位置([in]doubleX[in]doubleY[in]doubleHeight[in]doubleYaw[in]doublePitch[in]doubleRoll[in]doubleCameraDeltaYaw,[in]doubleCameraDeltaPitch,[in,defaultvalue(0)]longFlags)X,水平方向坐标Z,垂直方向坐标Height高度Distance,飞行到后视点离位置的距离Yaw,视角方位角Pitch,视角上下倾斜角度Pattern视角飞行到固定位置的模式movePosition页码,2/59SKYLINE开发的资料(中文注释及笔记)-skylineglobe技术交流社区-Poweredby...2014/12/2=viewthread&action=printable&tid=3设置移动到视角的位置([in]doubleX,水平方向坐标[in]doubleY,垂直方向坐标[in]doubleHeight,高度[in]doubleYaw,视角方位角度[in]doublePitch,视角上下倾斜角度[in]doubleRoll,左右倾斜角度[in]doubleCameraDeltaYaw,[in]doubleCameraDeltaPitch,[in,defaultvalue(0)]longFlags)作者:chinaglobe时间:2013-7-1200:44GetPosition获取当前视角的位置([out]VARIANT*doubleX,输出视角所在的经度[out]VARIANT*doubleY,输出视角所在的经度[out]VARIANT*doubleHeight,输出视角所在的高度[out]VARIANT*doubleYaw,视角方位角[out]VARIANT*doublePitch,视角上下倾斜角度[out]VARIANT*doubleRoll,视角左右倾斜角度[out]VARIANT*doubleCameraDeltaYaw,[out]VARIANT*doubleCameraDeltaPitch)FlyToObject飞行到物体([in]BSTRObjectID[in]ActionCodeCode)参数ObjectID,输入物体IDCode飞行到模式SetSpeed设置相机速度([in]doubleSpeed)参数Speed输入速度作者:chinaglobe时间:2013-7-1200:44IObjectManager4IObjectManager主要是新建对象,它有许多方法用来新建不同的对象。IObjectManager分为四个级别,每个级别的使用方法不同。其中的对象的位置接口是通过ITerrainLocation2::SetPosition(),ITerrainLocation2::GetPosition()实现的。IObjectManager方法如下:IObjectManager方法:CreatePolyline,Create2DPolygon,CreateRectangle,CreateRegularPolygon,CreateCircle,Create3DPolygon,CreateBuilding,CreateBox,CreatePyramid,CreateCylinder,CreateCone,CreateEllipse,CreateArc,CreateArrow,Create3DArrow,CreateSphere,CreateModel,CreateLabel,CreateLabelEx,CreateLocation,CreateTreeHotlink,页码,3/59SKYLINE开发的资料(中文注释及笔记)-skylineglobe技术交流社区-Poweredby...2014/12/2=viewthread&action=printable&tid=3CreateRoute,CreateMessage,GetObjectIObjectManager2方法:CreatePolyline,Create2DPolygon,CreateRectangle,CreateRegularPolygon,CreateCircle,Create3DPolygon,CreateBuilding,CreateBox,CreatePyramid,CreateCylinder,CreateCone,CreateEllipse,CreateArc,CreateArrow,Create3DArrow,CreateSphere,CreateModel,CreateLabel,CreateLabelEx,CreateLocation,CreateTreeHotlink,CreateRoute,CreateMessage,GetObject,CreateImageLabel,CreateImageLabelExIObjectManager3方法:CreatePolyline,Create2DPolygon,CreateRectangle,CreateRegularPolygon,CreateCircle,Create3DPolygon,CreateBuilding,CreateBox,CreatePyramid,CreateCylinder,CreateCone,CreateEllipse,CreateArc,CreateArrow,Create3DArrow,CreateSphere,CreateModel,CreateLabel,CreateLabelEx,CreateLocation,CreateTreeHotlink,CreateRoute,CreateMessage,GetObject,CreateImageLabel,CreateImageLabelEx,CreateDynamicObjectIObjectManager4方法:CreatePolyline,Create2DPolygon,CreateRectangle,CreateRegularPolygon,CreateCircle,Create3DPolygon,CreateBuilding,CreateBox,CreatePyramid,CreateCylinder,CreateCone,CreateEllipse,CreateArc,CreateArrow,Create3DArrow,CreateSphere,CreateModel,CreateLabel,CreateLabelEx,CreateLocation,CreateTreeHotlink,CreateRoute,CreateMessage,GetObject,CreateImageLabel,CreateImageLabelEx,CreateDynamicObject,CreateImageryLayer,CreateVideoOnTerrain,CreatePointCloudModel作者:chinaglobe时间:2013-7-1200:45CreatePolylinepublicITerrainPolyline2CreatePolyline(objectSafeArrayVertices,intLineColor,HeightStyleCodeHeightStyle,intGroupID,stringDescription);参数SafeArrayVertices一个数组节点包含三个double值,这三个double值由x纬度,h高度,y经度。如果这个参数是零,将创建一个空的对象,用户可以获得对象添加节点。LineColor对象的颜色,其值为RGB值HeightStyle一个枚举值,主要是对象在地形中的相对位置。HeightStyleCode可用的值如下:oHSC_TERRAIN_RELATIVE=0每个对象节点在地形上的一个相对的高度oHSC_PIVOT_RELATIVE=1每个节点在对象轴上的一个相对高度oHSC_ON_TERRAIN=2页码,4/59SKYLINE开发的资料(中文注释及笔记)-skylineglobe技术交流社区-Poweredby...2014/12/2=view
本文标题:SKYLINE开发的资料(中文注释及笔记)
链接地址:https://www.777doc.com/doc-1658137 .html