Uniscope-二次开发文档API_第1页
Uniscope-二次开发文档API_第2页
Uniscope-二次开发文档API_第3页
Uniscope-二次开发文档API_第4页
Uniscope-二次开发文档API_第5页
已阅读5页,还剩11页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Uniscope Globe API 接口说明uniscope.globe空间方法:void createInterface (object div, function onCreated, function onCreateFail);参数: div: 控件创立的位置 onCreated: 创立成功响应的方法 onCreateFail:创立失败响应的方法功能:创立一个新的Globe 方法:void addEventListener (object targetObject, string eventID, function callbackListener);参数: targetObject

2、: 事件的触发者 eventID: 触发事件ID callbackListener:响应事件的方法功能:添加一个全局事件方法:void removeEventListener (object targetObject, string eventID, function callbackListener);参数: targetObject: 事件的触发者 eventID: 触发事件ID callbackListener:响应事件的方法功能:移除一个全局事件属性:poiClickedHandler类型:eventHandler功能:poi被点击时触发的事件句柄属性:documentChangedH

3、andler类型:eventHandler功能:文档被修改时触发的事件句柄uniscope.globe.measure方法:void clearResult();参数:无功能:去除所有的测量结果方法:void lineLength (function callbackOnResult);参数:callbackOnResult: 测量完成的响应函数功能:进行空间直线距离的测量方法:void pathLength (function callbackOnResult);参数:callbackOnResult: 测量完成的响应函数功能:进行地表路径长度的测量方法:void sphericalArea

4、 (function callbackOnResult);参数:callbackOnResult: 测量完成的响应函数功能:进行球面面积的测量方法:void horizontalDistance (function callbackOnResult);参数:callbackOnResult: 测量完成的响应函数功能:进行水平距离长度的测量方法:void verticalDistance (function callbackOnResult);参数:callbackOnResult: 测量完成的响应函数数功能:进行垂直距离长度的测量uniscope.analysis方法:void createI

5、nterface( String serverUrl);参数:serverUrl: 分析效劳的路径功能:uniscope.analysis初始化 方法:void threatDome( int type, double height, double radius, double longitude, double latitude, double altitude, function callbackOnResult );参数:type: 类型1为只针对地形,2为只针对模型,3为针对地形和模型 height: 目标点的相对高度 radius: 半径 longitude: 目标点所在的经度 la

6、titude: 目标点所在的纬度 altitude: 目标点所在的地面高度 callbackOnResult: 完成后的回调函数功能:危险域分析 方法:void viewShed( int type, double angle ,double height, double radius, double heading, double tilt, double longitude, double latitude, double altitude, function callbackOnResult );参数:type: 类型1为只针对地形,2为只针对模型,3为针对地形和模型 angle: 视角

7、 height: 目标点的相对高度 radius: 半径 heading: 朝向 tilt: 俯仰 longitude: 目标点所在的经度 latitude: 目标点所在的纬度 altitude: 目标点所在的地面高度 callbackOnResult: 完成后的回调函数功能:可视域分析方法:void bestPath( double climb_limited, double descent_limited, String pointString, function callbackOnResult );参数: climb_limited: 向上的最大坡度descent_limited: 向

8、下的最大坡度 pointString: 线段的点集 callbackOnResult: 完成后的回调函数功能:最正确路径分析方法:void valley( int type, double subWater,double radius, String pointString, function callbackOnResult );参数:type: 类型1为只针对地形,2为只针对模型,3为针对地形和模型 subWater: 水平面高度 radius: 水淹半径pointString: 线段的点集 callbackOnResult: 完成后的回调函数功能:流域分析方法:void buffer(d

9、ouble subWater,double radius, double longitude, double latitude, function callbackOnResult );参数:subWater: 水平面高度 radius: 水淹半径longitude: 点源的经度latitude: 点源的纬度 callbackOnResult: 完成后的回调函数功能:点源分析方法:void surfaceArea(String pointString, function callbackOnResult );参数: pointString: 面的顶点集 callbackOnResult: 完成

10、后的回调函数功能:外表面积分析方法:void terrainProfile (String pointString, function callbackOnResult );参数: pointString: 剖面的顶点集 callbackOnResult: 完成后的回调函数功能:剖面分析方法:void excavation(double subWater, String pointString, function callbackOnResult );参数: subWater: 水平面高度pointString: 面的顶点集 callbackOnResult: 完成后的回调函数功能:挖填方分析

11、方法:void lineOfSight(double srcHeight, double destHeight, String pointString, function callbackOnResult );参数: srcHeight: 原始点的相对高度 destHeight: 目标点的相对高度pointString: 视线的顶点集 callbackOnResult: 完成后的回调函数功能:挖填方分析uniscope.search方法:void createInterface( String serverUrl);参数:serverUrl:效劳的路径功能:uniscope.search初始化

12、 方法:void getPoiByKeyword(String keyword, String cityName, int pageIndex, int pageLength, function callbackOnResult );参数: keyword: 查询关键字 cityName: 城市名 pageIndex: 显示页号 pageLength: 每页条数callbackOnResult: 完成后的回调函数功能:POI关键字查询 方法:void getPoiByRect(String keyword, String cityName, double north, double south

13、,double east, double west, int pageIndex, int pageLength, function callbackOnResult );参数: keyword: 查询关键字 cityName: 城市名 north, south, east, west: 矩形的参数 pageIndex: 显示页号 pageLength: 每页条数 callbackOnResult: 完成后的回调函数功能:POI关键字查询 方法:void getPoiByCircle(String keyword, String cityName, double centerLon, doub

14、le centerLat, double radius, int pageIndex, int pageLength, function callbackOnResult );参数: keyword: 查询关键字cityName: 城市名 centerLon: 圆形区域中心点经度 centerLat: 圆形区域中心点纬度 radius: 圆形区域半径 pageIndex: 显示页号 pageLength: 每页条数callbackOnResult: 完成后的回调函数功能:POI圆形区域查询 方法:void getBuildingByKeyword(String keyword, String

15、cityName, int pageIndex, int pageLength, function callbackOnResult );参数: keyword: 查询关键字 cityName: 城市名 pageIndex: 显示页号 pageLength: 每页条数callbackOnResult: 完成后的回调函数功能:Building关键字查询 方法:void getBuildingByRect(String keyword, String cityName, double north, double south, double east, double west, int pageIn

16、dex, int pageLength, function callbackOnResult );参数: keyword: 查询关键字 cityName: 城市名 north, south, east, west: 矩形的参数 pageIndex: 显示页号 pageLength: 每页条数callbackOnResult: 完成后的回调函数功能:Building矩形区域查询 方法:void getBuildingByCircle(String keyword, String cityName, double centerLon, double centerLat, double radius

17、, int pageIndex, int pageLength, function callbackOnResult );参数: keyword: 查询关键字cityName: 城市名 centerLon: 圆形区域中心点经度 centerLat: 圆形区域中心点纬度 radius: 圆形区域半径 pageIndex: 显示页号 pageLength: 每页条数callbackOnResult: 完成后的回调函数功能:Building圆形区域查询 方法:void getBuildingByPoint(String keyword, String cityName, double ptLon,

18、double ptLat, int pageIndex, int pageLength, function callbackOnResult );参数: keyword: 查询关键字cityName: 城市名 ptLon: 经度 ptLat: 纬度 pageIndex: 显示页号 pageLength: 每页条数callbackOnResult: 完成后的回调函数功能:Building点选查询eventHandler对象方法:void addEventHandler(object targetObject, function callbackListener);参数: targetObject

19、: 事件的触发者可设置为null callbackListener:响应事件的方法功能:添加一个响应函数方法:void removeEventHandler(object targetObject, function callbackListener);参数: targetObject: 事件的触发者可设置为null callbackListener:响应事件的方法功能:移除一个响应函数方法:void clearEventHandler();参数: targetObject: 事件的触发者可设置为null callbackListener:响应事件的方法功能:去除所有的响应函数方法:void

20、notifyEvent(object argument);参数:argument: 参数功能:触发事件IUSEarth对象属性:ImageLayers类型:IUSLayers功能:获得Image 图层的集合属性:ModelLayers类型:IUSLayers功能:获得Model图层的集合属性:POILayers类型:IUSLayers功能:获得POI 图层的集合属性:VectorLayers:类型:IUSLayers功能:获得Vector 图层的集合属性:UserDocument类型:IUSUserDocument功能:获得用户数据文档属性:GlobeObserver类型:IUSGlobeOb

21、server功能:获得摄像机属性:TrackControl类型:IUSTrackControl功能: 获得飞行路线控制器属性:Factory类型:IUSFactory功能:对象工厂属性:Measure类型:IUSMeasure功能:测量模块属性:ShapeCreator 类型:IUSShapeCreator功能:几何对象创立属性:Paint类型:IUSPaint功能:绘制简单几何图形的接口属性:HtmlBalloon类型:IUSHtmlBalloon功能:HTML弹出气泡属性:Event类型:IUSEvent功能:事件模块属性:RootPath类型:String功能:获得文档所在的根目录IUS

22、Layers接口属性:Count类型:Int功能:获得图层的数量属性:Item类型:IUSLayer功能:获得某一图层;IUSLayer接口属性:Name类型:String功能:获得图层的名字属性:Visible类型:Boolean功能:获得/设置图层的可见性IUSUserDocument接口方法:void ImportXmlString(String xmlString, bool bAsync);参数:xmlString: 导入的XmlString bAsync: 是否异步读入功能:将一个XmlString导入USEarth中方法:String LoadXmlFile(String xml

23、FilePath);参数:xmlFilePath: 文件的路径功能:从本地文件中读入xmlString方法:void SaveXmlFile(String xmlFilePath, String xmlString);参数:xmlFilePath: 文件的路径 xmlString: 需要写入的xmlString功能:将xmlString写入本地文件中方法:void DeleteXmlFile (String xmlFilePath);参数: xmlFilePath: 文件的路径功能:删除本地文件中的xml方法:void DeleteXmlFile (String xmlFilePath);参数

24、: xmlFilePath: 文件的路径功能:删除本地文件中的xmlIUSGlobeObserver接口方法:void Forward();参数:无功能:视点向前移动方法:void Backward();参数:无功能:视点向后移动方法:void MoveLeft();参数:无功能:视点向左移动方法:void MoveRight();参数:无功能:视点向右移动方法:void TurnLeft();参数:无功能:视点向左旋转方法:void TurnRight();参数:无功能:视点向右旋转方法:void LookUp();参数:无功能:视点向上旋转方法:void LookDown();参数:无功能

25、:视点向下旋转方法:void ZoomIn();参数:无功能:视点靠近目标点方法:void ZoomOut();参数:无功能:视点远离目标点方法:void Resume();参数:无功能:视点返回全球状态方法:void NorthView();参数:无功能:视点返回到正北姿态方法:void TopView();参数:无功能:视点返回到顶视姿态方法:void Stop();参数:无功能:停止当前视点的运动状态方法:void FlyTo ( double lon, double lat, double alt, double heading, double tilt, double range);

26、参数: lon: 目标点经度 lat: 目标的纬度 alt: 目标点高程 heading: 朝向与正北方向的夹角 0 <= heading <= 360 tilt: 俯仰垂直指向地心方向的射线的夹角。1 <= tilt <= 89 range: 摄像机到目标点的距离功能:视点飞到制定的姿态方法:IUSVector Pick(int x, int y);参数: x: 屏幕坐标x y: 屏幕坐标y功能:获得当前点击的屏幕点在地球上的位置方法:IUSVector PickTerrain (int x, int y);参数: x: 屏幕坐标x y: 屏幕坐标y功能:获得当前点击

27、的屏幕点在地球上的位置只选择地形,不包含模型属性:Longitude类型:double功能:获得当前视点的经度属性:Latitude类型:double功能:获得当前视点的纬度属性:Altitude类型:double功能:获得当前视点的高程属性:Heading类型:double功能:获得当前视点的朝向与正北方向的夹角 0 <= heading <= 360 属性:Tilt类型:double功能:获得当前视点的俯仰角垂直指向地心方向的射线的夹角。1 <= tilt <= 89 属性:Range类型:double功能:获得当前视点的经度IUSMeasure接口方法:void

28、Clear();参数:无功能:去除当前的所有测量工具方法:void MeasureLineLength ();参数:无功能:进行空间直线距离的测量方法:void MeasurePathLength ();参数:无功能:进行地表路径长度的测量方法:void MeasureHorizontalDistance ();参数:无功能:进行水平距离长度的测量方法:void MeasureHeight ();参数:无功能:进行垂直距离长度的测量方法:void MeasureArea ();参数:无功能:进行球面面积的测量IUSTrackControl接口方法:void SetTrack(String xm

29、lTrack);参数:xmlTrack: 使用xml描述的飞行路径功能:设置当前的飞行路径使用xml描述方法:void Show(String xmlTrack);参数:xmlTrack: 使用xml描述的飞行路径功能:设置当前显示的飞行路径方法:void Play();参数:无功能:开始飞行当前的飞行路径方法:void Pause();参数:无功能:暂停方法:void Resume();参数:无功能:继续方法:void Stop();参数:无功能:停止属性:Visible类型:double功能:获得/设置飞行路线是否显示IUSFactory接口方法:IUSPoint CreatePoint(

30、);参数:无功能:创立一个IUSPoint对象方法:IUSPoints CreatePoints();参数:无功能:创立一个IUSPoints对象方法:IUSVector CreateVector();参数:无功能:创立一个IUSVector对象方法:IUSVectors CreateVectors();参数:无功能:创立一个IUSVectors对象方法:String CreateGUID();参数:无功能:创立一个GuidIUSShapeCreator接口方法:void Clear();参数:无功能:去除当前的所有创立工具方法:void CreateLine ();参数:无功能:创立一条直线

31、对象,通过OnCreateLine事件返回创立的直线方法:void CreatePolyline (double width, dword color);参数:width: 宽度为0时自动计算 color:颜色 一个dword值,比方0xffff0000(红色) 功能:创立一条折线对象,通过OnCreatePolyline事件返回创立的折线方法:void CreatePolygon ();参数:无功能:创立一个多边形对象方法:void CreateCircle ();参数:无功能:创立一个圆形对象方法:void CreateRectangle ();参数:无功能:创立一个矩形对象方法:void

32、 CreateSphere ();参数:无功能:创立一个球形对象方法:void CreateSector ();参数:无功能:创立一个扇形对象IUSPaint接口方法:void DrawPoint(IUSVectors* pVector, dword color);参数:无功能:绘制点集方法:void DrawLine(IUSVectors* pVector, dword color);参数:无功能:绘制线方法:void DrawPoly(IUSVectors* pVector, dword color);参数:无功能:绘制多边形方法:void DrawCubicSpline(IUSVecto

33、rs* pVector, dword color);参数:无功能:绘制三次样条曲线方法:void DrawBox(double north, double south, double east, double west, double upper_height, double lower_height, dword color);参数:无功能:绘制Box方法:void DrawText(double lon, double lat, double alt, String text, dword color)参数:无功能:绘制文字方法:void DrawIcon(double lon, double lat, double alt, String text, dword color)参数:无功能:绘制图标方法:void Clear()参数:无功能:去除所有绘制的图元IUSHtmlBalloon接口方法:IUSPoint ShowString(String htmlStri

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论