Uniscope 二次开发文档APIWord格式.docx

上传人:b****5 文档编号:18636191 上传时间:2022-12-30 格式:DOCX 页数:19 大小:20.22KB
下载 相关 举报
Uniscope 二次开发文档APIWord格式.docx_第1页
第1页 / 共19页
Uniscope 二次开发文档APIWord格式.docx_第2页
第2页 / 共19页
Uniscope 二次开发文档APIWord格式.docx_第3页
第3页 / 共19页
Uniscope 二次开发文档APIWord格式.docx_第4页
第4页 / 共19页
Uniscope 二次开发文档APIWord格式.docx_第5页
第5页 / 共19页
点击查看更多>>
下载资源
资源描述

Uniscope 二次开发文档APIWord格式.docx

《Uniscope 二次开发文档APIWord格式.docx》由会员分享,可在线阅读,更多相关《Uniscope 二次开发文档APIWord格式.docx(19页珍藏版)》请在冰豆网上搜索。

Uniscope 二次开发文档APIWord格式.docx

清除所有的测量结果

voidlineLength(functioncallbackOnResult);

callbackOnResult:

测量完成的响应函数

进行空间直线距离的测量

voidpathLength(functioncallbackOnResult);

进行地表路径长度的测量

voidsphericalArea(functioncallbackOnResult);

进行球面面积的测量

voidhorizontalDistance(functioncallbackOnResult);

进行水平距离长度的测量

voidverticalDistance(functioncallbackOnResult);

测量完成的响应函数数

进行垂直距离长度的测量

uniscope.analysis

voidcreateInterface(StringserverUrl);

serverUrl:

分析服务的路径

uniscope.analysis初始化

voidthreatDome(inttype,doubleheight,doubleradius,doublelongitude,doublelatitude,doublealtitude,functioncallbackOnResult);

type:

类型(1为只针对地形,2为只针对模型,3为针对地形和模型)

height:

目标点的相对高度

radius:

半径

longitude:

目标点所在的经度

latitude:

目标点所在的纬度

altitude:

目标点所在的地面高度

callbackOnResult:

完成后的回调函数

危险域分析

voidviewShed(inttype,doubleangle,doubleheight,doubleradius,doubleheading,doubletilt,doublelongitude,doublelatitude,doublealtitude,functioncallbackOnResult);

angle:

视角

heading:

朝向

tilt:

俯仰

可视域分析

voidbestPath(doubleclimb_limited,doubledescent_limited,StringpointString,functioncallbackOnResult);

climb_limited:

向上的最大坡度

descent_limited:

向下的最大坡度

pointString:

线段的点集

最佳路径分析

voidvalley(inttype,doublesubWater,doubleradius,StringpointString,functioncallbackOnResult);

subWater:

水平面高度

水淹半径

pointString:

流域分析

voidbuffer(doublesubWater,doubleradius,doublelongitude,doublelatitude,functioncallbackOnResult);

subWater:

longitude:

点源的经度

latitude:

点源的纬度

点源分析

voidsurfaceArea(StringpointString,functioncallbackOnResult);

面的顶点集

表面面积分析

voidterrainProfile(StringpointString,functioncallbackOnResult);

剖面的顶点集

剖面分析

voidexcavation(doublesubWater,StringpointString,functioncallbackOnResult);

挖填方分析

voidlineOfSight(doublesrcHeight,doubledestHeight,StringpointString,functioncallbackOnResult);

srcHeight:

原始点的相对高度

destHeight:

视线的顶点集

uniscope.search

服务的路径

uniscope.search初始化

 

voidgetPoiByKeyword(Stringkeyword,StringcityName,intpageIndex,intpageLength,functioncallbackOnResult);

keyword:

查询关键字

cityName:

城市名

pageIndex:

显示页号

pageLength:

每页条数

POI关键字查询

voidgetPoiByRect(Stringkeyword,StringcityName,doublenorth,doublesouth,doubleeast,doublewest,intpageIndex,intpageLength,functioncallbackOnResult);

north,south,east,west:

矩形的参数

voidgetPoiByCircle(Stringkeyword,StringcityName,doublecenterLon,doublecenterLat,doubleradius,intpageIndex,intpageLength,functioncallbackOnResult);

cityName:

centerLon:

圆形区域中心点经度

centerLat:

圆形区域中心点纬度

圆形区域半径

POI圆形区域查询

voidgetBuildingByKeyword(Stringkeyword,StringcityName,intpageIndex,intpageLength,functioncallbackOnResult);

Building关键字查询

voidgetBuildingByRect(Stringkeyword,StringcityName,doublenorth,doublesouth,doubleeast,doublewest,intpageIndex,intpageLength,functioncallbackOnResult);

Building矩形区域查询

voidgetBuildingByCircle(Stringkeyword,StringcityName,doublecenterLon,doublecenterLat,doubleradius,intpageIndex,intpageLength,functioncallbackOnResult);

Building圆形区域查询

voidgetBuildingByPoint(Stringkeyword,StringcityName,doubleptLon,doubleptLat,intpageIndex,intpageLength,functioncallbackOnResult);

ptLon:

经度

ptLat:

纬度

Building点选查询

eventHandler对象

voidaddEventHandler(objecttargetObject,functioncallbackListener);

事件的触发者(可设置为null)

添加一个响应函数

voidremoveEventHandler(objecttargetObject,functioncallbackListener);

移除一个响应函数

voidclearEventHandler();

清除所有的响应函数

voidnotifyEvent(objectargument);

argument:

参数

触发事件

IUSEarth对象

ImageLayers

IUSLayers

获得Image图层的集合

ModelLayers

获得Model图层的集合

POILayers

获得POI图层的集合

VectorLayers:

获得Vector图层的集合

UserDocument

IUSUserDocument

获得用户数据文档

GlobeObserver

IUSGlobeObserver

获得摄像机

TrackControl

IUSTrackControl

获得飞行路线控制器

Factory

IUSFactory

对象工厂

Measure

IUSMeasure

测量模块

ShapeCreator

IUSShapeCreator

几何对象创建

Paint

IUSPaint

绘制简单几何图形的接口

HtmlBalloon

IUSHtmlBalloon

HTML弹出气泡

Event

IUSEvent

事件模块

RootPath

String

获得文档所在的根目录

IUSLayers接口

Count

Int

获得图层的数量

Item

IUSLayer

获得某一图层

;

IUSLayer接口

Name

获得图层的名字

Visible

Boolean

获得/设置图层的可见性

IUSUserDocument接口

voidImportXmlString(StringxmlString,boolbAsync);

xmlString:

导入的XmlString

bAsync:

是否异步读入

将一个XmlString导入USEarth中

StringLoadXmlFile(StringxmlFilePath);

xmlFilePath:

文件的路径

从本地文件中读入xmlString

voidSaveXmlFile(StringxmlFilePath,StringxmlString);

xmlString:

需要写入的xmlString

将xmlString写入本地文件中

voidDeleteXmlFile(StringxmlFilePath);

xmlFilePath:

删除本地文件中的xml

IUSGlobeObserver接口

voidForward();

视点向前移动

voidBackward();

视点向后移动

voidMoveLeft();

视点向左移动

voidMoveRight();

视点向右移动

voidTurnLeft();

视点向左旋转

voidTurnRight();

视点向右旋转

voidLookUp();

视点向上旋转

voidLookDown();

视点向下旋转

voidZoomIn();

视点靠近目标点

voidZoomOut();

视点远离目标点

voidResume();

视点返回全球状态

voidNorthView();

视点返回到正北姿态

voidTopView();

视点返回到顶视姿态

voidStop();

停止当前视点的运动状态

voidFlyTo(doublelon,doublelat,doublealt,doubleheading,doubletilt,doublerange);

lon:

目标点经度

lat:

目标的纬度

alt:

目标点高程

朝向(与正北方向的夹角0<

=heading<

=360)

俯仰(垂直指向地心方向的射线的夹角。

1<

=tilt<

=89)

range:

摄像机到目标点的距离

视点飞到制定的姿态

IUSVectorPick(intx,inty);

x:

屏幕坐标x

y:

屏幕坐标y

获得当前点击的屏幕点在地球上的位置

IUSVectorPickTerrain(intx,inty);

获得当前点击的屏幕点在地球上的位置(只选择地形,不包含模型)

Longitude

double

获得当前视点的经度

Latitude

获得当前视点的纬度

Altitude

获得当前视点的高程

Heading

获得当前视点的朝向(与正北方向的夹角0<

Tilt

获得当前视点的俯仰角(垂直指向地心方向的射线的夹角。

Range

IUSMeasure接口

voidClear();

清除当前的所有测量工具

voidMeasureLineLength();

voidMeasurePathLength();

voidMeasureHorizontalDistance();

voidMeasureHeight();

voidMeasureArea();

IUSTrackControl接口

voidSetTrack(StringxmlTrack);

xmlTrack:

使用xml描述的飞行路径

设置当前的飞行路径(使用xml描述)

voidShow(StringxmlTrack);

设置当前显示的飞行路径

voidPlay();

开始飞行当前的飞行路径

voidPause();

暂停

继续

停止

获得/设置飞行路线是否显示

IUSFactory接口

IUSPointCreatePoint();

创建一个IUSPoint对象

IUSPointsCreatePoints();

创建一个IUSPoints对象

IUSVectorCreateVector();

创建一个IUSVector对象

IUSVectorsCreateVectors();

创建一个IUSVectors对象

StringCreateGUID();

创建一个Guid

IUSShapeCreator接口

清除当前的所有创建工具

voidCreateLine();

创建一条直线对象,通过OnCreateLine事件返回创建的直线

voidCreatePolyline(doublewidth,dwordcolor);

width:

宽度(为0时自动计算)

color:

颜色(一个dword值,比如0xffff0000(红色))

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高等教育 > 经济学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1