易景地球网页
1
/
74
EviaEarth
网页版接口函数说
Version 6.1
1. JS 调用方法
第一步:页面引入 qtloader.js,定义 canvas 标签 id qtcanvas
第二步:执行以下 js 代码:
let qtLoader = QtLoader({
canvasElements: [document.querySelector("#qtcanvas")],
showCanvas: function () {
setTimeout(() => {
window.Module.asm.fun()
}, 100);
},
});
qtLoader.loadEmscriptenModule('./static/EviaEarth');
其中#qtcanvas canvas id./static/EviaEarth
EviaEarth.wasm 文件的相对路径(不包含.wasm 后缀)
第三步:调用接口函数
上述代码中 window.Module.asm.fun()fun 为接口函数名,
1) 无参数接口使用,如 Version
window.Module.asm. Version ()
2) 参数为数字类型接口使用,如 add
window.Module.asm. add(1,2)
3) 使 Scene_Navigate
http://localhost/ getEVG?scene=earth
let ptr = allocate(
intArrayFromString("http://localhost/getEVG?scene=earth" ),
"i8",
ALLOC_NORMAL
);
window.Module.asm. Scene_Navigate(ptr)
2. 接口函数
2.1. EviaEarth
Version
Char *Version()
参数:无
返回类型:字符串
功能:取得当前 EviaEarth 网页版本号,比如:6.0.2
易景地球网页
2
/
74
LoadFont
void LoadFont(char *url)
参数:url 字符库的网络地址
返回类型:无
功能:从网络下载字体数据,加载到系统中。
说明:系统中不带字库数据信息,需要外部载入 ttf 格式的字体数据。
char_Delete
void char_Delete(char *data)
参数:data 字符串
返回类型:无
功能:释放 data 所占的字符串空间。
2.2. Scene
Scene_NAVIGATE
bool Scene_Navigate(char *url)
参数:
url:字符串类型,为易景地球 evg 网址
返回类型:bool,加载返回 true
功能:打开网络地址
Scene_RootFolder
EvEarthFolder * Scene_RootFolder();
参数:无
返回类型:EvEarthFolder*,文件夹根节点
功能:获得场景根节点文件夹对象
Scene_GetLookAt
EvEarthLookAt* Scene_GetLookAt()
参数:无
返回类型:EvEarthLookAt*
易景地球网页
3
/
74
功能:获得当前摄像机对应的 LookAt 信息
Scene_GetFlyPath
CFlyPath* Scene_GetFlyPath()
参数:无
功能:获得飞行路线管理对象。
Scene_PixelScale
double Scene_PixelScale()
参数:无
返回:当前屏幕像素的比例尺大小
Scene_WinToBL
S_Vec3Geo* Scene_WinToBL(int x,int y)
参数:
int x 屏幕横坐标,单位像素
int y 屏幕纵坐标,单位像素
返回类型:S_Vec3Geo *
功能:获得屏幕坐标x,y)对应的经纬度坐标,输出参数:x 为经度(单位度)
y 为海拔高度(单位米)z 为纬度(单位度)
注意:返回的 S_Vec3Geo 对象要调用 Geo_Delete 释放内存空间
Scene_BLToWin
S_Vec3Geo* Scene_BLToWin(double lon,double lat,double alt)
参数:
double lon 经度,单位:度
double lat 纬度,单位:度
double alt 海拔高度,单位:米
返回类型:S_Vec3Geo *
功能:获得经纬度坐标对应的屏幕坐标x,y,输出参数:x 为屏幕横坐标(单
位像素)y 为纵坐标(单位像素)z 为三维深度(0-1
注意:返回的 S_Vec3Geo 对象要调用 Geo_Delete 释放内存空间
易景地球网页
4
/
74
Scene_GetAltitude
double Scene_GetAltitude(double lon,double lat)
参数:
double lon 经度,单位:度
double lat 纬度,单位:度
返回:double,海拔高度,单位米
功能:获取经纬度坐标对于的地形高度(单位米)
Scene_BeginTempPolyline
void Scene_BeginTempPolyline(int LineColor,int LineWidth, int PointColor, int
PointSize, bool bShowPoint)
参数:
int LineColor:输入参数,线颜色
int LineWidth:输入参数,线宽度,像素单位
int PointColor:输入参数,点颜色
int PointSize:输入参数,点大小,像素单位
bool bShowPoint:输入参数,是否显示点
说明:开始在三维绘制临时多边形
Scene_AddTempPolyline
void Scene_AddTempPolyline(double longitude, double latitude, double elevation)
参数:
double longitude:经度,单位度
double latitude:纬度,单位度
double elevation:海拔高度,单位米
说明:添加一个临时多边形的点坐标
Scene_EndTempPolyline
void Scene_EndTempPolyline()
参数:无
说明:结束添加临时多边形点坐标
易景地球网页
5
/
74
Scene_ClearTempPolyline
void Scene_ClearTempPolyline()
参数:无
说明:清空三维场景中的临时多边形数据。
Scene_SetTempPolylineLifeTime
void Scene_SetTempPolylineLifeTime(float time)
参数:时间,单位秒
说明:设置临时线的生命周期,如果小于 0 为无限周期,该参数只是对闪烁功能
有效。
Scene_GetTempPolylineLifeTime
float Scene_GetTempPolylineLifeTime()
返回:时间,单位秒
说明:设置临时线的生命周期,如果小于 0 为无限周期,该参数只是对闪烁功能
有效。
Scene_SetTempPolylineTwinkling
void Scene_SetTempPolylineTwinkling(bool value)
参数:临时线闪烁,=true 表示闪烁
说明:设置临时线闪烁
Scene_GetTempPolylineTwinkling
bool Scene_GetTempPolylineTwinkling()
参数:临时线闪烁,=true 表示闪烁
说明:设置临时线闪烁
Scene_SetShowBackground
void Scene_SetShowBackground(bool value)
易景地球网页
6
/
74
参数:显示地球背景纹理,=true 表示显示
说明:地球背景纹理是否显示
显示背景 不显示背景
Scene_GetShowBackground
bool Scene_GetShowBackground ()
参数:显示地球背景纹理,=true 表示显示
说明:地球背景纹理是否显示
Scene_SetBackgroundUrl
void Scene_SetBackgroundUrl (char* value)
参数:背景纹理的网络路径,支持 png,jpg,bmp 格式
功能:设置地球背景纹理
设置地球背景纹理的效果
易景地球网页
7
/
74
Scene_GetBackgroundUrl
char* Scene_GetBackgroundUrl ()
参数:无
功能:获得地球背景纹理网络路径。
说明:返回的数值需要调用 char_Delete 方法释放所占的内存空间。
Scene_RequestRender
void Scene_RequestRender()
说明:使三维场景保存实时渲染的状态,也就是实时刷新。
Scene_SetElevationExag
void Scene_SetElevationExag(double value)
说明:设置场景中地形总体的缩放比例,这个数字对所有的地形缩放有效。
注意:输入的数值必须大于 0
Scene_GetElevationExag
double Scene_GetElevationExag()
说明:设置场景中地形总体的缩放比例,这个数字对所有的地形缩放有效。
Scene_GetShowAerosphere
bool Scene_GetShowAerosphere()
说明:获得当前大气层是否显示,=true 表示显示。
Scene_SetShowAerosphere
void Scene_SetShowAerosphere(bool vis)
说明:设置大气层是否可见,=true 表示大气层可见。
易景地球网页
8
/
74
Scene_GetBottomSkyColor
int Scene_GetBottomSkyColor()
说明:获得天空底部颜色。
Scene_SetBottomSkyColor
void Scene_SetBottomSkyColor(int clr)
说明:设置天空底部颜色。
Scene_GetTopSkyColor
int Scene_GetBottomSkyColor()
说明:获得天空顶部颜色。
Scene_SetTopSkyColor
void Scene_SetBottomSkyColor(int clr)
说明:设置天空顶部颜色。
2.3. Display
SetDisplay_ShowTerrain
void SetDisplay_ShowTerrain(bool vis)
设置是否显示地形。
GetDisplay_ShowTerrain
bool GetDisplay_ShowTerrain()
是否显示地形
易景地球网页
9
/
74
GetDisplay_ShowAerosphere
返回 bool 大气层是否显示
SetDisplay_ShowAerosphere
void SetDisplay_ShowAerosphere (bool vis)
设置是否显示地形
GetDisplay_ShowLogo
返回 bool 易伟航的 Logo 是否正显示
SetDisplay_ShowLogo
void SetDisplay_ShoLogo (bool vis)
设置是否显示易伟航 Logo
Display_GetCoordinateOffsetX
int Display_GetCoordinateOffsetX()
说明:取得三维视窗坐标信息的 X 轴偏移大小,默认为 0,单位:像素。
Display_SetCoordinateOffsetX
void Display_SetCoordinateOffsetX(int value)
说明:设置三维视窗坐标信息的 X 轴偏移大小,单位:像素。
Display_GetCoordinateOffsetY
int Display_GetCoordinateOffsetY()
易景地球网页
10
/
74
说明:取得三维视窗坐标信息的 Y 轴偏移大小,默认为 0,单位:像素。
Display_SetCoordinateOffsetY
void Display_SetCoordinateOffsetY(int value)
说明:设置三维视窗坐标信息的 Y 轴偏移大小,单位:像素。
Display_GetCoordinatePixelScale
double Display_GetCoordinatePixelScale()
说明:获得三维视窗坐标字体的像素比例大小,默认为 1
备注:原有 GetCoordinateFontPixelSize 方法废弃,改用本方法替代。
Display_SetCoordinatePixelScale
void Display_SetCoordinatePixelScale(double value)
说明:设置三维视窗坐标字体的像素比例大小,默认为 1
备注:原有 Display_SetCoordinateFontPixelSize 方法废弃,改用本方法
2.4. Folder
Folder_ChildCount
int Folde_ChildCount(EvEarthFolder *folder);
参数:
EvEarthFolder *folder,需要获得子节点数量的文件夹对象
返回类型:int,整型,文件夹子对象数量
功能:获得指定文件夹对象下包含的子节点数量
Folder_Child
EvEarthLayer* Folde_Child(EvEarthFolder *folder,int index);
参数:
EvEarthFolder *folder,指定的文件夹对象
Int Index,文件对象的子节点序号
EvEarthLayer*
易景地球网页
11
/
74
EvEarthLayer 类型继承过来的
Folder_Navigate
void Folder_Navigate(EvEarthFolder *folder,char *url)
参数:
EvEarthFolder *folder,指定的文件夹对象
char *url,网络地址
说明:加载网络子场景,注意新建的子场景会作为 folder 的子文件夹
Folder_AddFolder
EvEarthFolder* Folder_AddFolder(EvEarthFolder *folder)
参数:
EvEarthFolder *folder,指定的文件夹对象
EvEarthLayer*
EvEarthLayer 类型继承过来的
说明:在指定的目录下添加一个新的文件目录。
Folder_AddImageLayer
EvEarthLayer* Folder_AddImageLayer(EvEarthFolder *folder,char* url)
参数:
EvEarthFolder *folder,指定的文件夹对象
EvEarthLayer*
EvEarthLayer 类型继承过来的
说明:在指定的目录下添加新的影像图层。
Folder_AddDemLayer
EvEarthLayer* Folder_AddDemLayer(EvEarthFolder *folder,char* url)
参数:
EvEarthFolder *folder,指定的文件夹对象
EvEarthLayer*
EvEarthLayer 类型继承过来的
说明:在指定的目录下添加新的地形图层。
易景地球网页
12
/
74
Folder_AddModelLayer
EvEarthLayer* Folder_AddModelLayer(EvEarthFolder *folder,char* url)
参数:
EvEarthFolder *folder,指定的文件夹对象
EvEarthLayer*
EvEarthLayer 类型继承过来的
说明:在指定的目录下添加新的模型图层。
Folder_AddVectorLayer
EvEarthLayer* Folder_AddVectorLayer(EvEarthFolder *folder,char* url)
参数:
EvEarthFolder *folder,指定的文件夹对象
EvEarthLayer*
EvEarthLayer 类型继承过来的
说明:在指定的目录下添加新的矢量图层。
Folder_AddForestLayer
EvEarthLayer* Folder_AddForestLayer(EvEarthFolder *folder,char* url)
参数:
EvEarthFolder *folder,指定的文件夹对象
EvEarthLayer*
EvEarthLayer 类型继承过来的
说明:在指定的目录下添加新的林木图层。
Folder_AddPointCloudLayer
EvEarthLayer* Folder_AddPointCloudLayer(EvEarthFolder *folder,char* url)
参数:
EvEarthFolder *folder,指定的文件夹对象
EvEarthLayer*
EvEarthLayer 类型继承过来的
说明:在指定的目录下添加新的点云图层。
易景地球网页
13
/
74
Folder_AddObliqueLayer
EvEarthLayer* Folder_AddObliqueLayer(EvEarthFolder *folder,char* url)
参数:
EvEarthFolder *folder,指定的文件夹对象
EvEarthLayer*
EvEarthLayer 类型继承过来的
说明:在指定的目录下添加新的倾斜模型图层。
Folder_AddKmlLayer
EvEarthLayer* Folder_AddKmlLayer(EvEarthFolder *folder,char* url)
参数:
EvEarthFolder *folder,指定的文件夹对象
EvEarthLayer*
EvEarthLayer 类型继承过来的
说明:在指定的目录下添加新的 KML 图层。
Folder_CreateKmlLayer
EvEarthLayer* Folder_CreateKmlLayer(EvEarthFolder *folder)
参数:
EvEarthFolder *folder,指定的文件夹对象
EvEarthLayer*
EvEarthLayer 类型继承过来的
说明:在指定的目录下创建新的 KML 图层。
Folder_RemoveLayer
void) Folder_RemoveLayer(EvEarthFolder *folder,EvEarthLayer* layer)
参数:
EvEarthFolder *folder,指定的文件夹对象
EvEarthLayer*
EvEarthLayer 类型继承过来的
说明:删除指定的目录下图层。
易景地球网页
14
/
74
2.5. Layer
Layer_Name
char* Layer_Name(EvEarthLayer *layer);
参数:
EvEarthLayer *layer,图层对象
返回:字符串,图层名称
说明:返回的数值需要调用 char_Delete 方法释放所占的内存空间。
SetLayer_Name
void SetLayer_Name(EvEarthLayer *layer,char *name);
参数:
EvEarthLayer *layer,图层对象
char *name,需要设置的图层名称
返回值:无
Layer_Type
char* Layer_Type(EvEarthLayer *layer);
参数:
EvEarthLayer *layer,图层对象
返回值:字符串,图层类型。
Terrain” 表示地形,“Image” 表示影像 Vector表示矢量 env 图层
说明:返回的数值需要调用 char_Delete 方法释放所占的内存空间。
Layer_Visible
bool Layer_Visible(EvEarthLayer *layer);
参数:
易景地球网页
15
/
74
EvEarthLayer *layer,图层对象
返回值:bool,布尔类型,图层可见返回 true
void SetLayer_Visible(EvEarthLayer *layer,bool vis)
参数:
EvEarthLayer *layer,图层对象
bool vis , 需要设置的图层对象可见
返回值:无
Layer_GetMinGeo
S_Vec3Geo* Layer_GetMinGeo(EvEarthLayer *layer)
说明:获得图层最小经纬度范围值,其中 Y 表示高度。
注意:返回的 S_Vec3Geo 对象需要调用 Geo_Delete 方法释放空间。
Layer_GetMaxGeo
S_Vec3Geo* Layer_GetMaxGeo(EvEarthLayer *layer)
说明:获得图层最大经纬度范围值,其中 Y 表示高度。
注意:返回的 S_Vec3Geo 对象需要调用 Geo_Delete 方法释放空间。
2.6. ViewPoint
ViewPoint_FlytoPoint
void ViewPoint_FlytoPoint(double Longitude, double Latitude,double height)
参数:double Longitude, 经度,单位度,范围[-180,180]
double Latitude 纬度,单位度,范围[-90,90]
double height 海拔高度,单位米
返回:
说明:飞行到指定的经纬度位置
ViewPoint_Flying
bool ViewPoint_Flying()
参数:无
返回:布尔类型,返回 true 表示摄像机正在飞行,否则没有飞行
易景地球网页
16
/
74
说明:取得当前摄像机是否在飞行。
ViewPoint_Stopfly
void ViewPoint_Stopfly()
参数:无
返回:无
说明:停止飞行
ViewPoint_GetViewModel
int ViewPoint_GetViewModel()
参数:无
返回:摄像机浏览模式,
= 0, //正常模式
= 1, //顶视图模式
说明:摄像机模式
ViewPoint_SetViewModel
void ViewPoint_SetViewModel (int newVal)
参数:摄像机浏览模式
= 0, //正常模式
= 1, //顶视图模式
返回:无
说明:设置摄像机浏览模式
ViewPoint_FlyToBox
void ViewPoint_FlyToBox(double East, double West,double South,double
North,double duration)
参数:double East 最大经度值,单位度
double West 最小经度值,单位度
double South 最小纬度值,单位度
double North,最大纬度值,单位度
double duration,飞行时间,单位秒
返回:无
说明:飞行到指定的区域范围
易景地球网页
17
/
74
ViewPoint_FlyToDirectBox
void ViewPoint_FlyToDirectBox(double East, double West,double South,double
North,double duration)
参数:double East 最大经度值,单位度
double West 最小经度值,单位度
double South 最小纬度值,单位度
double North,最大纬度值,单位度
double duration,飞行时间,单位秒
返回:无
说明:分到指定的区域范围
2.7. CameraController
CameraController_FlyTo
void CameraController_FlyTo(double lon, double lat, double alt,
double tilt, double heading,
double duration)
参数:double lon 纬度位置,单位度
double lat 经度位置,单位度
double alt 位置海拔高度,单位米
double tilt,方位角,单位度
double heading 俯仰角,单位度
double duration 飞行时间,单位秒
返回:无
说明:指定时间飞至指定点
CameraController_Surround
void CameraController_Surround(double lonCenter,
double latCenter,
double altCenter,
double rV,
double altCamera,
double radius)
参数:
易景地球网页
18
/
74
lonCenterlatCenteraltCenter 分别为环绕点的经纬度和高度,单位分别为度数
和米。
rV 为环绕飞行的角速度,单位为 /
altCamera 为摄像机相对于环绕点的高度,单位为米
radius 为环绕飞行半径,单位为米
返回:无
说明:环绕指定点飞行。
CameraController_FlyToLookAtEx
void CameraController_FlyToLookAtEx(double lon,
double lat,
double alt,
double tilt,
double heading,
double range,
double duration)
参数:
lon lat 为经纬度, alt 为高度,tilt 为方位角,单位为度
tilt heading 为摄像机最终相对于指定点的俯仰角和方位角,单位为度
range 为摄像机离观察点的距离,单位为米
duration 为飞行时间,单位为秒
返回:无
说明:飞行到指定位置
CameraController_SetLookAtEx
void CameraController_SetLookAtEx(double lon, double lat, double alt,
double tilt, double heading,
double range)
参数:
lon lat 为经纬度, alt 为高度,tilt 为方位角,单位为度
tilt heading 为摄像机最终相对于指定点的俯仰角和方位角,单位为度
range 为摄像机离观察点的距离,单位为米
返回:无
说明:设置摄像机的位置
易景地球网页
19
/
74
CameraController_SetPosition
void CameraController_SetPosition(double lon, double lat, double alt)
参数:lon lat 为经纬度, alt 为高度,tilt 为方位角,单位为度
返回:无
说明:设置摄像机位置
CameraController_SetDirection
void CameraController_SetDirection(double tilt, double heading)
参数:tilt heading 为摄像机俯仰角和方位角,单位为度,设置摄像机的方位角
和俯仰角
返回:无
说明:设置摄像机朝向
CameraController_GetTilt
double CameraController_GetTilt()
参数:无
返回:方位角
说明:取得摄像机方位角
CameraController_GetHeading
double CameraController_GetHeading()
参数:无
返回:摄像机方位角,单位为度
说明:
CameraController_SetLookAt
void CameraController_SetLookAt(double lon, double lat, double alt)
参数:lon lat 为被观察点的经纬度,单位为度 alt 为被观察高度,单位为米
返回:无
说明:设置观察某点,只改变观察方向,不改变位置
易景地球网页
20
/
74
CameraController_FlyToLookAt
void CameraController_FlyToLookAt(double lon, double lat, double alt, double
duration)
参数:lon lat 为被观察点的经纬度,单位为 alt 为被观察高度,duration 为飞
行时间,单位为秒
返回:无
说明:飞向观察目标点,保持摄像机姿态不变
CameraController_GetLongitude()
double CameraController_GetLongitude()
参数:无
返回:摄像机所在位置的经度值,单位为度
说明:获取摄像机坐标的经度值
CameraController_GetLatitude
double CameraController_GetLatitude()
参数:无
返回:摄像机所在位置的经度值,单位为度
说明:获取摄像机坐标的纬度值
CameraController_GetAltitude
double CameraController_GetAltitude()
参数:无
返回:摄像机所在位置的高度值,单位为米
说明:获取摄像机坐标的海拔高度值
CameraController_FlyToLookAtDirect
void CameraController_FlyToLookAtDirect(double lon, double lat, double alt, double
range, double duration)
参数:
返回:无
说明:直接飞到某处,摄像机姿态不变,高度线性插值
易景地球网页
21
/
74
CameraController_FlyToDirect
void CameraController_FlyToDirect(double lon, double lat, double alt, double
duration)
参数:
返回:无
说明:直接飞到某处,摄像机姿态不变,高度线性插值
CameraController_Forward
void CameraController_Forward()
参数:无
返回:无
说明:前进
CameraController_Back
void CameraController_Back()
参数:无
返回:无
说明:后退
CameraController_LeftMove
void CameraController_LeftMove()
参数:无
返回:无
说明:左移
CameraController_RightMove
void CameraController_RightMove()
参数:无
返回:无
说明:右移
易景地球网页
22
/
74
CameraController_Raise
void CameraController_Raise()
参数:无
返回:无
说明:抬升
CameraController_Descend
void CameraController_Descend()
参数:无
返回:无
说明:下降
CameraController_LeftRoll
void CameraController_LeftRoll()
参数:无
返回:无
说明:左旋转
CameraController_RightRoll
void CameraController_RightRoll()
参数:无
返回:无
说明:右旋转
CameraController_LookUp
void CameraController_LookUp()
参数:无
返回:无
说明:俯视
易景地球网页
23
/
74
CameraController_LookDown
void CameraController_LookDown()
参数:无
返回:无
说明:仰视
CameraController_Stop
void CameraController_Stop()
说明:停止当前任何的摄像机动作
如当前摄像机处于飞行状态,调用该方法后摄像机结束飞行。
2.8. LookAt
指定地球上正在观察的点、景点与视点间的距离以及观察的角度。
下图展示了 LookAt 视点的构建方式:
LookAt_GetLongitude
double LookAt_GetLongitude(EvEarthLookAt *lookAt)
参数:EvEarthLookAt 指针对象
返回:经度,单位度
易景地球网页
24
/
74
LookAt_GetLatitude
double LookAt_GetLatitude(EvEarthLookAt *lookAt)
参数:EvEarthLookAt 指针对象
返回:纬度,单位度
LookAt_GetAltitude
double LookAt_GetAltitude(EvEarthLookAt *lookAt)
参数:EvEarthLookAt 指针对象
返回:海拔高度,单位米
LookAt_GetRange
double LookAt_GetRange(EvEarthLookAt *lookAt)
参数:EvEarthLookAt 指针对象
返回:摄像机和视点焦距的距离,单位米
LookAt_GetTilt
double LookAt_GetTilt(EvEarthLookAt *lookAt)
参数:EvEarthLookAt 指针对象
返回:观察点到摄像机的方向与水平面的夹角,单位为度,范围-90 度到 90 度,
水平为 0
LookAt_Delete(EvEarthLookAt *lookAt)
参数:EvEarthLookAt 指针对象
返回:无
说明:删除对象,在使用完 Scene_GetLookAt 要调用该方法
易景地球网页
25
/
74
2.9. Geo
double Geo_x(S_Vec3Geo *g)
说明:获得 x
double Geo_y(S_Vec3Geo *g)
说明:获得 y
double Geo_z(S_Vec3Geo *g)
说明:获得 z
void Geo_Delete(S_Vec3Geo *g)
说明:删除 g 对象,释放空间
2.10. TerrainLayer
TerrainLayer_SetConnStr
void TerrainLayer_SetConnStr(TerrainLayer *layer,char* value)
说明:加载易景地形数据的连接路径。连接网络路径要求以 http://开头
TerrainLayer_GetConnStr
char* TerrainLayer_GetConnStr(TerrainLayer *layer)
说明:加载易景地形数据的连接路径。连接网络路径要求以 http://开头
注意:返回的数值需要调用 char_Delete 方法释放所占的内存空间。
易景地球网页
26
/
74
TerrainLayer_SetLod
void TerrainLayer_SetLod(TerrainLayer *layer,double value)
说明:
地形的 Lod 别,>1数值越大地形越粗糙,当<1 都是时候,地形图层在渲
图层的时候加载精度很高的地形数据块,这时候内存加载的地形数据块会很多。
TerrainLayer_GetLod
double TerrainLayer_GetLod(TerrainLayer *layer)
说明:
地形的 Lod 别,>1数值越大地形越粗糙,当<1 都是时候,地形图层在渲
图层的时候加载精度很高的地形数据块,这时候内存加载的地形数据块会很多。
TerrainLayer_SetOpacity
void TerrainLayer_SetOpacity(TerrainLayer *layer,double value)
说明:范围 0-10 表示不透明,1 表示完全透明。
TerrainLayer_GetOpacity
double TerrainLayer_GetOpacity(TerrainLayer *layer)
说明:范围 0-10 表示不透明,1 表示完全透明。
TerrainLayer_SetElevationExag
void TerrainLayer_SetElevationExag(TerrainLayer *layer,double value)
说明:
地形夸张程度,这个夸张是指地形高度上的拉伸。
0<ElevationExag<1,表示地形高度缩小
>1 表示地形高度拉伸
=1 表示地形原始高度显示
易景地球网页
27
/
74
TerrainLayer_GetElevationExag
double TerrainLayer_SetElevationExag(TerrainLayer *layer)
说明:
地形夸张程度,这个夸张是指地形高度上的拉伸。
0<ElevationExag<1,表示地形高度缩小
>1 表示地形高度拉伸
=1 表示地形原始高度显示
TerrainLayer_GetMinLevel
int TerrainLayer_GetMinLevel(TerrainLayer *layer)
说明:数据的最小级别,0 为最小值
TerrainLayer_GetMaxLevel
int TerrainLayer_GetMaxLevel(TerrainLayer *layer)
说明:数据的最大级别。
2.11. ImageLayer
edom
ImageLayer 图层只能加载一个 edom 文件或一个 edom 服务,易景地球三维场景
中可以加载多个影像图层。
ImageLayer_SetConnStr
void ImageLayer_SetConnStr(ImageLayer *layer,char* value)
说明:
加载影像数据的连接路径。连接网络路径要求以 http://开头
ImageLayer_GetConnStr
char* ImageLayer_SetConnStr(ImageLayer *layer)
说明:
易景地球网页
28
/
74
加载影像数据的连接路径。连接网络路径要求以 http://开头
注意:返回的数值需要调用 char_Delete 方法释放所占的内存空间。
ImageLaye_GetMinLevel
int ImageLaye_GetMinLevel(ImageLayer *layer)
说明:数据的最小级别,0 为最小值。
ImageLaye_GetMaxLevel
int ImageLaye_GetMaxLevel(ImageLayer *layer)
说明:数据的最大级别。
ImageLayer_SetOrder
void ImageLayer_SetOrder(ImageLayer *layer,int order)
说明:设置显示顺序, 2 个图层有重叠的时候,数值越大的影像图层会覆盖数
值小的影像图层。
ImageLayer_GetOrder
int ImageLayer_GetOrder(ImageLayer *layer)
说明:获得显示顺序, 2 个图层有重叠的时候,数值越大的影像图层会覆盖数
值小的影像图层。
ImageLayer_SetOpacity
void ImageLayer_SetOpacity(ImageLayer *layer,float opacity)
说明:设置影像图层不透明度,范围 0-10 表示不透明,1 表示完全透明。
ImageLayer_GetOpacity
float ImageLayer_GetOpacity(ImageLayer *layer)
说明:获得影像图层不透明度,范围 0-10 表示不透明,1 表示完全透明。
易景地球网页
29
/
74
ImageLayer_GetBrightness
int ImageLayer_GetOpacity(ImageLayer *layer)
说明:获得影像图层亮度值,范围 0-2000 表示全黑,默认为 100
ImageLayer_SetBrightness
void ImageLayer_SetOpacity(ImageLayer *layer,int opacity)
说明:设置影像图层亮度值,范围 0-2000 表示全黑,默认为 100
ImageLayer_SetParentPatch
void ImageLayer_SetParentPatch(ImageLayer *layer,bool newVal)
说明:设置影像图层是否父块补空。在三维系统中,如果出现某块影像数据缺失
的情况下,是否采用父块的数据来拟补,缺省为 TRUE
ImageLayer_GetParentPatch
bool ImageLayer_GetParentPatch(ImageLayer *layer)
说明:获得影像图层是否父块补空。在三维系统中,如果出现某块影像数据缺失
的情况下,是否采用父块的数据来拟补,缺省为 TRUE
2.12. GoogleLayer
在线互联网地图图层,该图层可以链接谷歌、天地图等影像和地图。
GoogleLayer_GetWest
double GoogleLayer_GetWest(GoogleLayer *layer)
说明:数据的范围,为经纬度坐标。
易景地球网页
30
/
74
GoogleLayer_SetWest
void GoogleLayer_GetWest(GoogleLayer *layer,double value)
说明:数据的范围,为经纬度坐标。
GoogleLayer_GetEast
double GoogleLayer_GetEast(GoogleLayer *layer)
说明:数据的范围,为经纬度坐标。
GoogleLayer_SetEast
void GoogleLayer_GetEast(GoogleLayer *layer,double value)
说明:数据的范围,为经纬度坐标。
GoogleLayer_GetSouth
double GoogleLayer_GetSouth(GoogleLayer *layer)
说明:数据的范围,为经纬度坐标。
GoogleLayer_SetSouth
void GoogleLayer_GetSouth(GoogleLayer *layer,double value)
说明:数据的范围,为经纬度坐标。
GoogleLayer_GetNorth
double GoogleLayer_GetNorth(GoogleLayer *layer)
说明:数据的范围,为经纬度坐标。
GoogleLayer_SetNorth
void GoogleLayer_GetNorth(GoogleLayer *layer,double value)
说明:数据的范围,为经纬度坐标。
易景地球网页
31
/
74
GoogleLayer_GetLayer
int GoogleLayer_GetLayer(GoogleLayer *layer)
说明:连接互联网地图数据的图层名称。
为枚举类型,具体如下:
enum GGMapLayerSel
{
GGMapLayerSel_Satellite= 0,
GGMapLayerSel_Terrain = ( GGMapLayerSel_Satellite + 1 ) ,
GGMapLayerSel_Map = ( GGMapLayerSel_Terrain + 1 ) ,
GGMapLayerSel_Labels = ( GGMapLayerSel_Map + 1 ) ,
GGMapLayerSel_SatelliteLabels = ( GGMapLayerSel_Labels + 1 ) ,
GGMapLayerSel_TerrainLabels = ( GGMapLayerSel_SatelliteLabels + 1 ) ,
GGMapLayerSel_SatelliteCN = ( GGMapLayerSel_TerrainLabels + 1 ) ,
ArcGis_World_Imagery = ( GGMapLayerSel_SatelliteCN + 1 ) ,
ArcGis_World_Reference_Overlay= ( ArcGis_World_Imagery + 1 ) ,
ArcGis_World_Boundaries_and_Places = ( ArcGis_World_Reference_Overlay
+ 1 ) ,
ArcGis_World_Street_Map = ( ArcGis_World_Boundaries_and_Places + 1 ) ,
ArcGis_World_Topo_Map = ( ArcGis_World_Street_Map + 1 ) ,
ArcGis_World_Terrain_Base = ( ArcGis_World_Topo_Map + 1 ) ,
ArcGis_World_Light_Gray_Base = ( ArcGis_World_Terrain_Base + 1 ) ,
ArcGis_NatGeo_World_Map = ( ArcGis_World_Light_Gray_Base + 1 ) ,
ArcGis_Ocean_Basemap = ( ArcGis_NatGeo_World_Map + 1 ) ,
Bing_Satellite = ( ArcGis_Ocean_Basemap + 1 ) ,
Bing_SatelliteLabels = ( Bing_Satellite + 1 ) ,
Bing_Map = ( Bing_SatelliteLabels + 1 ) ,
OpenStreet_Standard = ( Bing_Map + 1 ) ,
OpenStreet_CycleMap = ( OpenStreet_Standard + 1 ) ,
OpenStreet_TransportMap = ( OpenStreet_CycleMap + 1 ) ,
OpenStreet_MapQuestOpen = ( OpenStreet_TransportMap + 1 ) ,
Nokia_Map = ( OpenStreet_MapQuestOpen + 1 ) ,
Nokia_Hybrid = ( Nokia_Map + 1 ) ,
Nokia_Satellite = ( Nokia_Hybrid + 1 ) ,
Nokia_Terrain = ( Nokia_Satellite + 1 ) ,
QQ_Map = ( Nokia_Terrain + 1 ) ,
QQ_SatLabel = ( QQ_Map + 1 ) ,
QQ_Satellite = ( QQ_SatLabel + 1 ) ,
AMap_Map = ( QQ_Satellite + 1 ) ,
AMap_SatLabel = ( AMap_Map + 1 ) ,
AMap_Satellite = ( AMap_SatLabel + 1 ) ,
Tianditu_Map = ( AMap_Satellite + 1 ) ,
易景地球网页
32
/
74
Tianditu_MapLabel = ( Tianditu_Map + 1 ) ,
Tianditu_Image = ( Tianditu_MapLabel + 1 ) ,
Tianditu_ImageLabel= ( Tianditu_Image + 1 ) ,
Tianditu_Terrain= ( Tianditu_ImageLabel + 1 ) ,
Tianditu_TerrainLabel = ( Tianditu_Terrain + 1 )
} ;
GoogleLayer_SetLayer
void GoogleLayer_SetLayer(GoogleLayer *layer,int value)
说明:连接互联网地图数据的图层名称。
为枚举类型,具体如下:
enum GGMapLayerSel
{
GGMapLayerSel_Satellite= 0,
GGMapLayerSel_Terrain = ( GGMapLayerSel_Satellite + 1 ) ,
GGMapLayerSel_Map = ( GGMapLayerSel_Terrain + 1 ) ,
GGMapLayerSel_Labels = ( GGMapLayerSel_Map + 1 ) ,
GGMapLayerSel_SatelliteLabels = ( GGMapLayerSel_Labels + 1 ) ,
GGMapLayerSel_TerrainLabels = ( GGMapLayerSel_SatelliteLabels + 1 ) ,
GGMapLayerSel_SatelliteCN = ( GGMapLayerSel_TerrainLabels + 1 ) ,
ArcGis_World_Imagery = ( GGMapLayerSel_SatelliteCN + 1 ) ,
ArcGis_World_Reference_Overlay= ( ArcGis_World_Imagery + 1 ) ,
ArcGis_World_Boundaries_and_Places = ( ArcGis_World_Reference_Overlay
+ 1 ) ,
ArcGis_World_Street_Map = ( ArcGis_World_Boundaries_and_Places + 1 ) ,
ArcGis_World_Topo_Map = ( ArcGis_World_Street_Map + 1 ) ,
ArcGis_World_Terrain_Base = ( ArcGis_World_Topo_Map + 1 ) ,
ArcGis_World_Light_Gray_Base = ( ArcGis_World_Terrain_Base + 1 ) ,
ArcGis_NatGeo_World_Map = ( ArcGis_World_Light_Gray_Base + 1 ) ,
ArcGis_Ocean_Basemap = ( ArcGis_NatGeo_World_Map + 1 ) ,
Bing_Satellite = ( ArcGis_Ocean_Basemap + 1 ) ,
Bing_SatelliteLabels = ( Bing_Satellite + 1 ) ,
Bing_Map = ( Bing_SatelliteLabels + 1 ) ,
OpenStreet_Standard = ( Bing_Map + 1 ) ,
OpenStreet_CycleMap = ( OpenStreet_Standard + 1 ) ,
OpenStreet_TransportMap = ( OpenStreet_CycleMap + 1 ) ,
OpenStreet_MapQuestOpen = ( OpenStreet_TransportMap + 1 ) ,
Nokia_Map = ( OpenStreet_MapQuestOpen + 1 ) ,
Nokia_Hybrid = ( Nokia_Map + 1 ) ,
Nokia_Satellite = ( Nokia_Hybrid + 1 ) ,
Nokia_Terrain = ( Nokia_Satellite + 1 ) ,
QQ_Map = ( Nokia_Terrain + 1 ) ,
易景地球网页
33
/
74
QQ_SatLabel = ( QQ_Map + 1 ) ,
QQ_Satellite = ( QQ_SatLabel + 1 ) ,
AMap_Map = ( QQ_Satellite + 1 ) ,
AMap_SatLabel = ( AMap_Map + 1 ) ,
AMap_Satellite = ( AMap_SatLabel + 1 ) ,
Tianditu_Map = ( AMap_Satellite + 1 ) ,
Tianditu_MapLabel = ( Tianditu_Map + 1 ) ,
Tianditu_Image = ( Tianditu_MapLabel + 1 ) ,
Tianditu_ImageLabel= ( Tianditu_Image + 1 ) ,
Tianditu_Terrain= ( Tianditu_ImageLabel + 1 ) ,
Tianditu_TerrainLabel = ( Tianditu_Terrain + 1 )
} ;
GoogleLayer_GetMaxLevel
int GoogleLayer_GetMaxLevel(GoogleLayer *layer)
说明:数据的最大级别。即需要显示在线数据的最大级别。
GoogleLayer_SetMaxLevel
void GoogleLayer_SetMaxLevel(GoogleLayer *layer,int value)
说明:数据的最大级别。即需要显示在线数据的最大级别。
2.13. KmlLayer
KmlLayer_RootFolder
KmlFolder* KmlLayer_RootFolder(EvEarthKmlLayer *kmllayer)
说明:
获得 KML 图层的 KML 树根节点对象
2.14. VectorLayer
易景地球三维矢量层,用来显示大范围,高比例尺的矢量数据。
该类型的矢量数据要求采用易景地球矢量编译工具处理后才能够加载进来。
矢量图层分矢量点、矢量线。
易景地球网页
34
/
74
VectorLayer_GetConnStr
char* VectorLayer_GetConnStr(CEvEarthVectorLayer *layer)
说明:图层连接地址路径,
注意:返回的数值需要调用 char_Delete 方法释放所占的内存空间。
VectorLayer_SetConnStr
void VectorLayer_GetConnStr(CEvEarthVectorLayer *layer,char* value)
说明:图层连接地址路径,
VectorLayer_GetType
int VectorLayer_GetType(CEvEarthVectorLayer *layer)
说明:图层类型,=1 为矢量点,=2 为矢量线,=3 为矢量面
VectorLayer_SetType
void VectorLayer_SetType(CEvEarthVectorLayer *layer,int value)
说明:图层类型,=1 为矢量点,=2 为矢量线,=3 为矢量面
VectorLayer_GetCount
int VectorLayer_GetCount(CEvEarthVectorLayer *layer)
说明:矢量图层中的矢量对象个数。
VectorLayer_GetColor
int VectorLayer_GetColor(CEvEarthVectorLayer *layer)
说明:如果是矢量线,该颜色值线的显示颜色,如果是矢量点,设置的是矢量点
图标颜色。
易景地球网页
35
/
74
VectorLayer_SetColor
void VectorLayer_SetColor(CEvEarthVectorLayer *layer,int value)
说明:如果是矢量线,该颜色值线的显示颜色,如果是矢量点,设置的是矢量点
图标颜色。
VectorLayer_GetMouseSelected
bool VectorLayer_GetMouseSelected(CEvEarthVectorLayer *layer)
说明:是否支持鼠标被选中状态。
VectorLayer_SetMouseSelected
void VectorLayer_SetMouseSelected(CEvEarthVectorLayer *layer,bool value)
说明:是否支持鼠标被选中状态。
VectorLayer_GetShowText
bool VectorLayer_GetShowText(CEvEarthVectorLayer *layer)
说明:只对矢量点类型图层有效,是否显示点的文本标注。
VectorLayer_SetShowText
void VectorLayer_SetShowText(CEvEarthVectorLayer *layer, bool value)
说明:只对矢量点类型图层有效,是否显示点的文本标注。
VectorLayer_GetVisibleDistance
double VectorLayer_GetVisibleDistance(CEvEarthVectorLayer *layer)
VisibleDistance 值时,矢量对象不可见。
当该属性的值小于等于 0 时,属性无效。
易景地球网页
36
/
74
VectorLayer_SetVisibleDistance
void VectorLayer_SetVisibleDistance(CEvEarthVectorLayer *layer, double value)
VisibleDistance 值时,矢量对象不可见。
当该属性的值小于等于 0 时,属性无效。
VectorLayer_GetMinVisibleElevation
double VectorLayer_GetMinVisibleElevation(CEvEarthVectorLayer *layer)
说明:以摄像机高度为参考值,但摄像机的高度小 MinVisibleElevation 值时,
矢量对象不可见,否则可见。单位“米”
如果该值小于等于 0,该属性无效。
VectorLayer_SetMinVisibleElevation
void VectorLayer_SetMinVisibleElevation(CEvEarthVectorLayer *layer, double value)
说明:以摄像机高度为参考值,但摄像机的高度小 MinVisibleElevation 值时,
矢量对象不可见,否则可见。单位“米”
如果该值小于等于 0,该属性无效。
VectorLayer_GetMaxVisibleElevation
double VectorLayer_GetMaxVisibleElevation(CEvEarthVectorLayer *layer)
说明:以摄像机高度为参考值,但摄像机的高度大于 MaxVisibleElevation 值时,
矢量对象不可见,否则可见。单位“米”
如果该值小于等于 0,该属性无效。
VectorLayer_SetMaxVisibleElevation
void VectorLayer_SetMaxVisibleElevation(CEvEarthVectorLayer *layer, double value)
说明:以摄像机高度为参考值,但摄像机的高度大于 MaxVisibleElevation 值时,
矢量对象不可见,否则可见。单位“米”
如果该值小于等于 0,该属性无效。
易景地球网页
37
/
74
VectorLayer_GetFontColor
int VectorLayer_GetFontColor(CEvEarthVectorLayer *layer)
说明:该属性是对矢量点层有效,设置矢量点显示的文字颜色。
VectorLayer_SetFontColor
void VectorLayer_SetFontColor(CEvEarthVectorLayer *layer, int value)
说明:该属性是对矢量点层有效,设置矢量点显示的文字颜色。
VectorLayer_GetLinePixelWidth
int VectorLayer_GetLinePixelWidth(CEvEarthVectorLayer *layer)
说明:该属性对矢量线有效,设置矢量线显示的宽度,单位为象素
VectorLayer_SetLinePixelWidth
void VectorLayer_SetLinePixelWidth(CEvEarthVectorLayer *layer, int value)
说明:该属性对矢量线有效,设置矢量线显示的宽度,单位为象素
VectorLayer_GetLevel
int VectorLayer_GetLevel(CEvEarthVectorLayer *layer)
说明:矢量数据对应的级别。
VectorLayer_GetShowCompositeMark
bool VectorLayer_GetShowCompositeMark(CEvEarthVectorLayer *layer)
说明:是否采用符合标注方式显示文字,缺省为 false
VectorLayer_SetShowCompositeMark
void VectorLayer_SetShowCompositeMark(CEvEarthVectorLayer *layer, int value)
易景地球网页
38
/
74
说明:是否采用符合标注方式显示文字,缺省为 false
VectorLayer_GetHeightMode
int VectorLayer_GetHeightMode(CEvEarthVectorLayer *layer)
说明:高度模式,=1 贴地面 2 相对地面高度 3 绝对高度,缺省为贴地
VectorLayer_SetHeightMode
void VectorLayer_SetHeightMode(CEvEarthVectorLayer *layer,int value)
说明:高度模式,=1 贴地面 2 相对地面高度 3 绝对高度,缺省为贴地
VectorLayer_GetRelativeHeight
double VectorLayer_GetRelativeHeight(CEvEarthVectorLayer *layer)
说明:相对地表高度,本属性在高度模式=2 的情况下有效。
VectorLayer_SetRelativeHeight
void VectorLayer_SetRelativeHeight(CEvEarthVectorLayer *layer, double value)
说明:相对地表高度,本属性在高度模式=2 的情况下有效。
2.15. ObliqueLayer
倾斜摄影图层。
ObliqueLayer_SetConnStr
void ObliqueLayer_SetConnStr(EvObliqueLayer *layer,char* value)
说明:倾斜摄影图层链接地址。
ObliqueLayer_GetConnStr
char* ObliqueLayer_GetConnStr(EvObliqueLayer *layer)
易景地球网页
39
/
74
说明:倾斜摄影图层链接地址。
注意:返回的数值需要调用 char_Delete 方法释放所占的内存空间。
ObliqueLayer_SetDoubleSideRender
void ObliqueLayer_SetDoubleSideRender(EvObliqueLayer *layer,bool value)
说明:倾斜摄影图层是否采用双面渲染模式。=TRUE 表示采用双面渲染。
ObliqueLayer_GetDoubleSideRender
bool ObliqueLayer_SetDoubleSideRender(EvObliqueLayer *layer)
说明:倾斜摄影图层是否采用双面渲染模式。=TRUE 表示采用双面渲染。
ObliqueLayer_SetOpacity
void ObliqueLayer_SetOpacity (EvObliqueLayer *layer,float value)
说明:透明度,0 为全透明,1 为不透明。
ObliqueLayer_GetOpacity
float ObliqueLayer_SetOpacity(EvObliqueLayer *layer)
说明:透明度,0 为全透明,1 为不透明。
ObliqueLayer_SetOffsetHeight
void ObliqueLayer_SetOffsetHeight(EvObliqueLayer *layer,float value)
说明:高度偏移,单位为米
ObliqueLayer_GetOffsetHeight
float ObliqueLayer_SetOffsetHeight(EvObliqueLayer *layer)
说明:高度偏移,单位为米
易景地球网页
40
/
74
2.16. PointCloudLayer
点云图层。
PointCloudLayer_SetConnStr
void PointCloudLayer_SetConnStr(EvPointCloudLayer *layer,char* value)
说明:点云图层链接地址。
PointCloudLayer_GetConnStr
char* PointCloudLayer_GetConnStr(EvPointCloudLayer *layer)
说明:点云图层链接地址。
注意:返回的数值需要调用 char_Delete 方法释放所占的内存空间。
PointCloudLayer_SetPointSize
void PointCloudLayer_SetPointSize(EvPointCloudLayer *layer,int value)
说明:点云的大小,单位为像素。
PointCloudLayer_GetPointSize
int PointCloudLayer_GetPointSize(EvPointCloudLayer *layer)
说明:点云的大小,单位为像素。
PointCloudLayer_SetOpacity
void PointCloudLayer_SetOpacity (EvPointCloudLayer *layer,float value)
说明:透明度,0 为全透明,1 为不透明。
PointCloudLayer_GetOpacity
float PointCloudLayer_SetOpacity(EvPointCloudLayer *layer)
说明:透明度,0 为全透明,1 为不透明。
易景地球网页
41
/
74
PointCloudLayer_SetColorMode
void PointCloudLayer_SetColorMode(EvPointCloudLayer *layer,int value)
说明:点云颜色模式
= 0,//正常颜色
= 1,//反射强度颜色
= 2,//分类颜色
PointCloudLayer_GetColorMode
int PointCloudLayer_SetColorMode(EvPointCloudLayer *layer)
说明:点云颜色模式
= 0,//正常颜色
= 1,//反射强度颜色
= 2,//分类颜色
PointCloudLayer_SetOffsetHeight
void PointCloudLayer_SetOffsetHeight(EvPointCloudLayer *layer,float value)
说明:高度偏移,单位为米
PointCloudLayer_GetOffsetHeight
float PointCloudLayer_SetOffsetHeight(EvPointCloudLayer *layer)
说明:高度偏移,单位为米
PointCloudLayer_SetIntelligibility
void PointCloudLayer_SetIntelligibility (EvPointCloudLayer *layer,int value)
说明:清晰度,最小为 1,值越小越清晰
PointCloudLayer_GetIntelligibility
int PointCloudLayer_SetIntelligibility (EvPointCloudLayer *layer)
说明:清晰度,最小为 1,值越小越清晰
易景地球网页
42
/
74
2.17. EarthModelLayer
模型图层
EarthModelLayer_SetConnStr
void EarthModelLayer_SetConnStr(EvEarthModelLayer *layer,char* value)
说明:模型图层的 url 地址。
EarthModelLayer_GetConnStr
char* EarthModelLayer_SetConnStr(EvEarthModelLayer *layer)
说明:模型图层的 url 地址。
注意:返回的数值需要调用 char_Delete 方法释放所占的内存空间。
EarthModelLayer_SetDoubleSideRender
void EarthModelLayer_SetDoubleSideRender(EvEarthModelLayer *layer,bool value)
说明:模型是否采用双面显示,=true 表示采用双面显示
EarthModelLayer_GetDoubleSideRender
bool EarthModelLayer_GetDoubleSideRender(EvEarthModelLayer *layer)
说明:模型是否采用双面显示,=true 表示采用双面显示
EarthModelLayer_GetModelCount
int EarthModelLayer_GetModelCount(EvEarthModelLayer *layer)
说明:模型层包含的对象个数。
EarthModelLayer_SetMinVisibleArea
void EarthModelLayer_SetMinVisibleArea(EvEarthModelLayer *layer,int value)
易景地球网页
43
/
74
说明:模型层模型对象最小可见象素面积。
EarthModelLayer_GetMinVisibleArea
int EarthModelLayer_GetMinVisibleArea(EvEarthModelLayer *layer)
说明:模型层模型对象最小可见象素面积。
EarthModelLayer_SetMinVisibleDistance
void EarthModelLayer_SetMinVisibleDistance(EvEarthModelLayer *layer,double
value)
说明:设置模型对象最小可见距离,单位米
EarthModelLayer_GetMinVisibleDistance
double EarthModelLayer_GetMinVisibleDistance(EvEarthModelLayer *layer)
说明:获得模型对象最小可见距离,单位米
EarthModelLayer_SetMaxVisibleDistance
void EarthModelLayer_SetMaxVisibleDistance(EvEarthModelLayer *layer,double
value)
说明:设置模型对象最大可见距离,单位米
EarthModelLayer_GetMaxVisibleDistance
double EarthModelLayer_GetMaxVisibleDistance(EvEarthModelLayer *layer)
说明:获得模型对象最大可见距离,单位米
EarthModelLayer_SetRelativeHeight
void EarthModelLayer_SetRelativeHeight(EvEarthModelLayer *layer,double value)
说明:相对地表高度,单位米。本方法只有在模型层高度模式为相对地表高度的
时候才有效。
易景地球网页
44
/
74
EarthModelLayer_GetRelativeHeight
double EarthModelLayer_GetRelativeHeight(EvEarthModelLayer *layer)
说明:相对地表高度,单位米。本方法只有在模型层高度模式为相对地表高度的
时候才有效。
EarthModelLayer_SetHeightModel
void EarthModelLayer_SetHeightModel(EvEarthModelLayer *layer,int value)
说明:设置模型层模型对象的高度模式。=1 贴地面 2 相对地面高度 3
对高度,缺省为绝对高度。
EarthModelLayer_GetHeightModel
int EarthModelLayer_GetHeightModel(EvEarthModelLayer *layer)
说明:获得模型层模型对象的高度模式。=1 贴地面 2 相对地面高度 3
对高度,缺省为绝对高度。
EarthModelLayer_SetOpacity
void EarthModelLayer_SetOpacity(EvEarthModelLayer *layer,double value)
说明:设置模型层对象的透明度,范围 0-100
EarthModelLayer_GetOpacity
double EarthModelLayer_GetOpacity(EvEarthModelLayer *layer)
说明:获得模型层对象的透明度,范围 0-100
2.18. KmlNode
KmlNode 作为基本的对象,包含了名称和 ID 编号的信息。
易景地球网页
45
/
74
KmlNode_SetName
void KmlNode_SetName(KmlNode *node,char *name)
说明:设置 kml 对象节点名称。
KmlNode_GetName
char* KmlNode_GetName(KmlNode *node)
说明:获得 kml 对象节点名称
KmlNode_SetMarkID
void KmlNode_SetMarkID(KmlNode *node,char *id)
说明:设置 kml 对象节点的 ID 编号
KmlNode_GetMarkID
char* KmlNode_SetMarkID(KmlNode *node)
说明:获得 kml 对象节点的 ID 编号
注意:返回的数值需要调用 char_Delete 方法释放所占的内存空间。
KmlNode_SetVisible
void KmlNode_SetVisible(KmlNode *node,bool vis)
说明:设置 kml 对象节点的可见性
KmlNode_GetVisible
bool KmlNode_SetMarkID(KmlNode *node)
说明:获得 kml 对象节点的可见性
KmlNode_SetAltitudeMode
void KmlNode_SetAltitudeMode(KmlNode*obj,int alt_mode )
易景地球网页
46
/
74
说明:设置标注的高度模式
=0 为贴地,=1 表示相对高度,图标坐标的高度为相对地表的高度值,=2 为绝对
高度,图标坐标的高度为海拔高度值。
KmlNode_GetAltitudeMode
int KmlNode_GetAltitudeMode(KmlNode*obj)
说明:获得图标对象的高度模式
=0 为贴地,=1 表示相对高度,图标坐标的高度为相对地表的高度值,=2 为绝对
高度,图标坐标的高度为海拔高度值。
2.19. KmlFolder
KmlFolder_ChildCount
int KmlFolder_ChildCount(KmlFolder *Folder)
说明:
取得 Folder 的子节点数量
KmlFolder_GetChild
KmlNode* KmlFolder_GetChild(KmlFolder *Folder,int index)
说明:
取得指定索引的子节点对象
KmlFolder_RemoveChild
void KmlFolder_RemoveChild(KmlFolder *Folder,int index)
说明:
移除指定索引的子节点对象
KmlFolder_ClearChild
void KmlFolder_ClearChild(KmlFolder *Folder)
说明:
易景地球网页
47
/
74
清除 Folder 对象包含的所有子节点对象
KmlFolder_AddFolder
KmlFolder* KmlFolder_AddFolder(KmlFolder *Folder,char *name)
说明:
增加一个新的文件夹对象,name 为文件夹名称
KmlFolder_AddParticlesLine
CParticlesLine* KmlFolder_AddParticlesLine(KmlFolder *Folder,char *name)
说明:
增加一个火线效果的对象,name 为对象名称
增加成功则返回对象指针
KmlFolder_AddParticles
CParticles* KmlFolder_AddParticles(KmlFolder *Folder,char *name)
说明:
增加一个火线效果的对象,name 为对象名称
增加成功则返回对象指针
KmlFolder_AddIconPoint
CIconPoint* KmlFolder_AddIconPoint(KmlFolder *Folder,char *name)
说明:
增加一个注记对象,name 为对象名称
增加成功则返回对象指针
KmlFolder_AddIconPoints
CIconPoints* KmlFolder_AddIconPoint(KmlFolder *Folder,char *name)
说明:
增加一个图标注记集合对象,name 为对象名称
增加成功则返回对象指针
易景地球网页
48
/
74
KmlFolder_AddLineString
CLineString* KmlFolder_AddLineString(KmlFolder *Folder,char *name)
说明:
增加一个线对象,name 为对象名称
增加成功则返回对象指针
KmlFolder_AddGroundOverlay
CGroundOverlay* KmlFolder_AddGroundOverlay(KmlFolder *Folder,char *name)
说明:增加一个矩形纹理对象,成功返回对象指针
KmlFolder _SetFontSize
void KmlFolder _SetFontSize(KmlFolder *obj,int size)
说明:设置渲染文字对象中的字体大小,单位为:像素
KmlFolder_GetFontSize
int KmlFolder_GetFontSize(KmlFolder *obj)
说明:获得渲染文字对象中的字体大小,单位为:像素
KmlFolder_SetItalic
void KmlFolder_SetItalic(KmlFolder *obj,bool italic)
说明:渲染对象中的文字是否设置斜体,italic=true 表示为斜体
KmlFolder _GetItalic
bool KmlFolder _GetItalic(KmlFolder *obj)
说明:获得渲染对象中的文字是否为斜体,返回 true 表示为斜体
易景地球网页
49
/
74
KmlFolder_SetBold
void KmlFolder _SetBold(KmlFolder *obj, bool bold)
说明:渲染对象中的文字是否设置为粗体,bold=true 表示为粗体
KmlFolder_GetBold
bool KmlFolder _GetBold(KmlFolder *obj)
说明:获得渲染对象中的文字是否为粗体,返回 true 表示为粗体
KmlFolder _SetOutlineW
void KmlFolder_SetOutlineW(KmlFolder *obj, float v)
说明:设置渲染对象中字体的轮廓大小
KmlFolder_GetOutlineW
float KmlFolder_GetOutlineW(KmlFolder *obj)
说明:获得渲染对象中的文字轮廓大小
KmlFolder_UpdateFont
void KmlFolder_UpdateFont(KmlFolder *obj)
说明:设置字体的信息后需要调用该方法更新一下内存渲染文字数据。
2.20. IconPoint
IconPoint_SetAltitudeMode
void IconPoint_SetAltitudeMode(CIconPoint *obj,int alt_mode )
说明:设置标注的高度模式
易景地球网页
50
/
74
=0 为贴地,=1 表示相对高度,图标坐标的高度为相对地表的高度值,=2 为绝对
高度,图标坐标的高度为海拔高度值。
IconPoint_GetAltitudeMode
int IconPoint_GetAltitudeMode(CIconPoint *obj)
说明:获得图标对象的高度模式
=0 为贴地,=1 表示相对高度,图标坐标的高度为相对地表的高度值,=2 为绝对
高度,图标坐标的高度为海拔高度值。
IconPoint_SetCoord
void IconPoint_SetCoord(CIconPoint *obj,double lon,double lat,double alt)
说明:
设置注记对象的经纬度坐标
IconPoint_SetIconUrl
void IconPoint_SetIconUrl(CIconPoint *obj,char *url)
说明:
设置注记图标的网络地址
IconPoint_SetIconSize
void IconPoint_SetIconSize(CIconPoint *obj, int size)
说明:统一设置图标大小。
IconPoint_GetIconSize
int IconPoint_GetIconSize(CIconPoint *obj)
说明:获得图标大小
易景地球网页
51
/
74
IconPoint_SetTextOffset
void IconPoint_SetTextOffset(CIconPoint *obj, int offsetX,int offsetY)
参数:
CIconPoint *obj:图标对象
int offsetXX 轴偏移量
int offsetYY 轴偏移量
说明:
图标注记对象偏移的位置,以图标 1/2 大小为单位,具体文字坐标位置示意如下:
-11
01
11
-10
00
10
-1-1
0-1
1-1
00)参数表示文字在图标的中心。
IconPoint_SetIconColor
void IconPoint_SetIconColor(CIconPoint *obj, int color)
参数:
CIconPoint *obj:图标对象
int color:图标颜色,为 32 为整形,最高 8 位表示位透明度。
说明:设置图标的颜色。
IconPoint_SetFontColor
void IconPoint_SetFontColor(CIconPoint *obj, int color)
参数:
CIconPoint *obj:图标对象
int color:文字颜色,为 32 为整形,最高 8 位表示位透明度。
说明:设置文字的颜色。
2.21. IconPoints
为集合对象,该对象中可以添加多个地点显示文字+图标,但图标的样式是统一
的。
代码示意:
CIconPoints *ibj = new CIconPoints(f);
ibj->Init(this);
易景地球网页
52
/
74
ibj->m_name = QString::fromStdWString(L"地名");
ibj->m_markID = QString("folder%1").arg(rand());
ibj->SetIconUrl("http://IP 地址/images/image.png");
double dx = 113.4812;
double dy = 28.7371;
for(int i=0;i<20;i++){
dx += 0.2;
dy += 0.04;
QString strname = QString::fromStdWString(L"地名:%1").arg(i);
ibj->AddCoord(strname,dx,dy,50000);
}
IconPoints_SetAltitudeMode
void IconPoints_SetAltitudeMode(CIconPoints *obj,int alt_mode )
说明:设置标注的高度模式
=0 为贴地,=1 表示相对高度,图标坐标的高度为相对地表的高度值,=2 为绝对
高度,图标坐标的高度为海拔高度值。
IconPoints_GetAltitudeMode
int IconPoints_GetAltitudeMode(CIconPoints *obj)
说明:获得图标对象的高度模式
=0 为贴地,=1 表示相对高度,图标坐标的高度为相对地表的高度值,=2 为绝对
高度,图标坐标的高度为海拔高度值。
IconPoints_AddCoord
void IconPoints_SetCoord(CIconPoints *obj,char *name,double lon,double lat,double
alt)
说明:
设置注记对象的经纬度坐标
IconPoints_GetCoordCount
int IconPoints_GetCoordCount(CIconPoints *obj)
说明:获得已经加入坐标点的数量
易景地球网页
53
/
74
IconPoints_ClearCoord
void IconPoints_ClearCoord(CIconPoints *obj)
说明:清空所有已经加入坐标点的数据
IconPoints_RemoveAt
void IconPoints_RemoveAt(CIconPoints *obj, int nIndex)
说明:删除指定序号的集合对象
IconPoints_RemoveName
void IconPoints_RemoveName(CIconPoints *obj, char* name)
说明:删除其中一个指定名称的集合对象,字符串比较不区分大小写
IconPoints_SetIconUrl
void IconPoints_SetIconUrl(CIconPoints *obj,char *url)
说明:
设置注记图标的网络地址
IconPoints_SetIconSize
void IconPoints_SetIconSize(CIconPoints *obj, int size)
说明:统一设置图标大小。
IconPoints_GetIconSize
int IconPoints_GetIconSize(CIconPoints *obj)
说明:获得图标大小
IconPoints_SetTextOffset
void IconPoints_SetTextOffset(CIconPoints *obj, int offsetX,int offsetY)
易景地球网页
54
/
74
参数:
CIconPoints *obj:图标对象
int offsetXX 轴偏移量
int offsetYY 轴偏移量
说明:
图标注记对象偏移的位置,以图标 1/2 大小为单位,具体文字坐标位置示意如下:
-11
01
11
-10
00
10
-1-1
0-1
1-1
00)参数表示文字在图标的中心。
IconPoints_SetIconColor
void IconPoints_SetIconColor(CIconPoints *obj, int color)
参数:
CIconPoints *obj:图标对象
int color:图标颜色,为 32 为整形,最高 8 位表示位透明度。
说明:设置图标的颜色。
IconPoints_SetFontColor
void IconPoints_SetFontColor(CIconPoints *obj, int color)
参数:
CIconPoints *obj:图标对象
int color:文字颜色,为 32 为整形,最高 8 位表示位透明度。
说明:设置文字的颜色。
2.22. LineString
LineString_ClearCoords
void LineString_ClearCoords(CLineString *obj)
说明:
清除线对象所有坐标
易景地球网页
55
/
74
LineString_SetLineColor
void LineString_SetLineColor(CLineString *obj,int color)
说明:
设置线的颜色,参数 color 32 位颜色值,各个位数表达意思如下表所示:
位数
说明
范围
备注
0-7
蓝色
0-255
8-15
绿色
0-255
16-24
红色
0-255
25-31
透明度
0-255
0 表示全透明
255 表示不透明
例如:color=0xFFFF0000;值表示红色,最高位为不透明
LineString_SetLineWidth
void LineString_SetLineWidth(CLineString *obj,int linewidth)
说明:
设置线的宽度,单位为像素
LineString_BeginAddCoord
void LineString_BeginAddCoord(CLineString *obj)
说明:
线
LineString_EndAddCoord 方法。
LineString_AddCoord
void LineString_AddCoord(CLineString *obj,double lon,double lat,double alt)
说明:
线
LineString_BeginAddCoord
LineString_EndAddCoord
void LineString_EndAddCoord(CLineString *obj)
说明:
易景地球网页
56
/
74
结束线对象的坐标添加,调用本方法前需要调用 LineString_BeginAddCoord
2.23. Particles
Particles_GetLocation
S_Vec3Geo* Particles_GetLocation(CParticles *obj)
说明:获得粒子所在的位置,返回经纬度坐标。
注意调用改方法后获得的 S_Vec3Geo 对象需要用 Geo_Delete 方法释放空间
Particles_SetLocation
void Particles_SetLocation(CParticles *obj,double lon,double lat,double alt)
说明:设置粒子的经纬度坐标位置
Particles_GetScale
S_Vec3Geo* Particles_GetScale(CParticles *obj)
说明:粒子比例
注意调用改方法后获得的 S_Vec3Geo 对象需要用 Geo_Delete 方法释放空间
Particles_SetScale
void Particles_SetScale(CParticles *obj,double x,double y,double z)
说明:粒子比例
Particles_GetOffset
S_Vec3Geo* Particles_GetOffset(CParticles *obj)
说明:偏移坐标
注意调用改方法后获得的 S_Vec3Geo 对象需要用 Geo_Delete 方法释放空间
易景地球网页
57
/
74
Particles_SetOffset
void Particles_SetOffset(CParticles *obj,double x,double y,double z)
说明:偏移坐标
Particles_GetLife
double Particles_GetLife(CParticles *obj)
说明:生存时间,单位秒
Particles_SetLife
void Particles_SetLife(CParticles *obj,double life)
说明:生存时间,单位秒
Particles_GetFadeTime
double Particles_GetFadeTime(CParticles *obj)
说明:渐变时间,单位秒
Particles_SetFadeTime
void Particles_SetFadeTime(CParticles *obj,double fadeTime)
说明:渐变时间,单位秒
Particles_SetSize
void Particles_SetSize(CParticles *obj,double Size)
说明:粒子大小
Particles_GetSize
double Particles_GetSize(CParticles *obj)
易景地球网页
58
/
74
说明:粒子大小
Particles_SetEmiteRate
void Particles_SetEmiteRate(CParticles *obj,double EmiteRate)
说明:产生速率
Particles_GetEmiteRate
double Particles_GetEmiteRate(CParticles *obj)
说明:产生速率
Particles_SetAngleWidth
void Particles_SetAngleWidth(CParticles *obj,double AngleWidth)
说明:角度范围
Particles_GetAngleWidth
double Particles_GetAngleWidth(CParticles *obj)
说明:角度范围
Particles_SetMaxCount
void Particles_SetMaxCount(CParticles *obj,int MaxCount)
说明:最大个数
Particles_GetMaxCount
int Particles_GetMaxCount(CParticles *obj)
说明:最大个数
易景地球网页
59
/
74
Particles_SetTexType
void Particles_SetTexType(CParticles *obj,int TexType)
说明:纹理类型
=0, //火焰类型的纹理
=1, //云类型的纹理,烟效果
=2, //用户自定义纹理
Particles_GetTexType
int Particles_GetTexType(CParticles *obj)
说明:纹理类型
=0, //火焰类型的纹理
=1, //云类型的纹理,烟效果
=2, //用户自定义纹理
Particles_SetEmiteColor
void Particles_SetEmiteColor(CParticles *obj,DWORD clr)
说明:初始颜色
Particles_GetEmiteColor
DWORD Particles_GetEmiteColor(CParticles *obj)
说明:初始颜色
Particles_SetFadeColor
void Particles_SetFadeColor(CParticles *obj,DWORD clr)
说明:渐变颜色
Particles_GetFadeColor
DWORD Particles_GetFadeColor(CParticles *obj)
说明:渐变颜色
易景地球网页
60
/
74
Particles_SetVelocity
void Particles_SetVelocity(CParticles *obj,double x,double y,double z)
说明:速度
Particles_GetVelocity
S_Vec3Geo* Particles_GetVelocity(CParticles *obj)
说明:速度
Particles_SetAcceleration
void Particles_SetAcceleration(CParticles *obj,double x,double y,double z)
说明:加速度
Particles_GetAcceleration
S_Vec3Geo* Particles_GetAcceleration(CParticles *obj)
说明:加速度
Particles_LoadConfig
void Particles_LoadConfig(CParticles *obj,int cfg)
说明:加载默认效果
2.24. ParticlesLine
ParticlesLine_BeginAddCoord
void ParticlesLine_BeginAddCoord(CParticlesLine *obj)
说明:开始添加坐标点
易景地球网页
61
/
74
ParticlesLine_AddCoord
void ParticlesLine_AddCoord(CParticlesLine *obj,double lat,double lon,double alt)
说明:添加坐标点
ParticlesLine_EndAddCoord
void ParticlesLine_EndAddCoord(CParticlesLine *obj)
说明:结束添加坐标点
ParticlesLine_GetOffset
S_Vec3Geo* ParticlesLine_GetOffset(CParticles *obj)
说明:偏移坐标
注意调用改方法后获得的 S_Vec3Geo 对象需要用 Geo_Delete 方法释放空间
ParticlesLine_SetOffset
void ParticlesLine_SetOffset(CParticlesLine *obj,double x,double y,double z)
说明:偏移坐标
ParticlesLine_GetLife
double ParticlesLine_GetLife(CParticlesLine *obj)
说明:生存时间,单位秒
ParticlesLine_SetLife
void ParticlesLine_SetLife(CParticlesLine *obj,double life)
说明:生存时间,单位秒
易景地球网页
62
/
74
ParticlesLine_GetFadeTime
double ParticlesLine_GetFadeTime(CParticlesLine *obj)
说明:渐变时间,单位秒
ParticlesLine_SetFadeTime
void ParticlesLine_SetFadeTime(CParticlesLine *obj,double fadeTime)
说明:渐变时间,单位秒
ParticlesLine_SetSize
void ParticlesLine_SetSize(CParticlesLine *obj,double Size)
说明:粒子大小
ParticlesLine_GetSize
double ParticlesLine_GetSize(CParticlesLine *obj)
说明:粒子大小
ParticlesLine_SetEmiteRate
void ParticlesLine_SetEmiteRate(CParticlesLine *obj,double EmiteRate)
说明:产生速率
ParticlesLine_GetEmiteRate
double ParticlesLine_GetEmiteRate(CParticlesLine *obj)
说明:产生速率
ParticlesLine_SetAngleWidth
void ParticlesLine_SetAngleWidth(CParticlesLine *obj,double AngleWidth)
易景地球网页
63
/
74
说明:角度范围
ParticlesLine_GetAngleWidth
double ParticlesLine_GetAngleWidth(CParticlesLine *obj)
说明:角度范围
ParticlesLine_SetMaxCount
void ParticlesLine_SetMaxCount(CParticlesLine *obj,int MaxCount)
说明:最大个数
ParticlesLine_GetMaxCount
int ParticlesLine_GetMaxCount(CParticlesLine *obj)
说明:最大个数
ParticlesLine_SetTexType
void ParticlesLine_SetTexType(CParticlesLine *obj,int TexType)
说明:纹理类型
=0, //火焰类型的纹理
=1, //云类型的纹理,烟效果
=2, //用户自定义纹理
ParticlesLine_GetTexType
int ParticlesLine_GetTexType(CParticlesLine *obj)
说明:纹理类型
=0, //火焰类型的纹理
=1, //云类型的纹理,烟效果
=2, //用户自定义纹理
易景地球网页
64
/
74
ParticlesLine_SetEmiteColor
void ParticlesLine_SetEmiteColor(CParticlesLine *obj,DWORD clr)
说明:初始颜色
ParticlesLine_GetEmiteColor
DWORD ParticlesLine_GetEmiteColor(CParticlesLine *obj)
说明:初始颜色
ParticlesLine_SetFadeColor
void ParticlesLine_SetFadeColor(CParticlesLine *obj,DWORD clr)
说明:渐变颜色
ParticlesLine_GetFadeColor
DWORD ParticlesLine_GetFadeColor(CParticlesLine *obj)
说明:渐变颜色
ParticlesLine_SetVelocity
void ParticlesLine_SetVelocity(CParticlesLine *obj,double x,double y,double z)
说明:速度
ParticlesLine_GetVelocity
S_Vec3Geo* ParticlesLine_GetVelocity(CParticlesLine *obj)
说明:速度
ParticlesLine_SetAcceleration
void ParticlesLine_SetAcceleration(CParticlesLine *obj,double x,double y,double z)
易景地球网页
65
/
74
说明:加速度
ParticlesLine_GetAcceleration
S_Vec3Geo* ParticlesLine_GetAcceleration(CParticlesLine *obj)
说明:加速度
ParticlesLine_LoadConfig
void ParticlesLine_LoadConfig(CParticlesLine *obj,int cfg)
说明:加载默认效果
2.25. GroundOverlay
矩形纹理对象,支持贴地模式。
GroundOverlay_SetBox
void GroundOverlay_SetBox(CGroundOverlay *obj,double west,double east,double
south,double north)
说明:设置矩形的经纬度范围
GroundOverlay_GetAltitudeMode
int GroundOverlay_GetAltitudeMode(CGroundOverlay *obj)
说明:对象的贴地方式 = 1 贴地 =2 相对地表高度 = 3 绝对高度
GroundOverlay_SetAltitudeMode
void GroundOverlay_SetAltitudeMode(CGroundOverlay *obj,int mode)
说明:对象的贴地方式 = 1 贴地 =2 相对地表高度 = 3 绝对高度
易景地球网页
66
/
74
GroundOverlay_GetAltitude
double GroundOverlay_GetAltitude(CGroundOverlay *obj)
说明:获得对象高度
GroundOverlay_SetAltitude
void GroundOverlay_SetAltitude(CGroundOverlay *obj,double alt)
说明:设置对象高度
GroundOverlay_SetTextureUrl
void GroundOverlay_SetTextureUrl(CGroundOverlay *obj,char* url)
说明:纹理地址
GroundOverlay_GetTextureUrl
char* GroundOverlay_GetTextureUrl(CGroundOverlay *obj)
说明:纹理地址
注意:返回的数值需要调用 char_Delete 方法释放所占的内存空间。
GroundOverlay_GetWest
double GroundOverlay_GetWest(CGroundOverlay *obj)
说明:最小经度
GroundOverlay_GetEast
double GroundOverlay_GetEast(CGroundOverlay *obj)
说明:最大经度
GroundOverlay_GetSouth
double GroundOverlay_GetSouth(CGroundOverlay *obj)
易景地球网页
67
/
74
说明:最小纬度
GroundOverlay_GetNorth
double GroundOverlay_GetNorth(CGroundOverlay *obj)
说明:最大纬度
2.26. FlyPath
飞行路线管理对象,可以实现摄像机沿指定的路线移动,属性包括设置飞行的速
度、飞行路线等。
本对象可以通过方法:Scene_GetFlyPath 来获得。
FlyPath_AddPathPoint
void FlyPath_AddPathPoint(CFlyPath *obj,double lon, double lat, double altitude)
参数:
CFlyPath *obj:飞行管理对象
double lon:经度,单位度
double lat:纬度,单位度
double altitude:海拔高度,单位米
功能:添加飞行路径。
FlyPath_ClearPoint
void FlyPath_ClearPoint(CFlyPath *obj)
功能:清空加入的飞行路线坐标点。
FlyPath_GetCurveMode
int FlyPath_GetCurveMode(CFlyPath *obj)
说明:是否对加入的路径做曲线化,=0,不做,=1 Bezier 曲线,默认=1
易景地球网页
68
/
74
FlyPath_SetCurveMode
void FlyPath_SetCurveMode(CFlyPath *obj,int value)
说明:是否对加入的路径做曲线化,=0,不做,=1 Bezier 曲线,默认=1
FlyPath_GetPathVisible
bool FlyPath_GetPathVisible(CFlyPath *obj)
说明:飞行路线在三维场景中是否渲染可见,默认为可见
FlyPath_SetPathVisible
void FlyPath_SetPathVisible(CFlyPath *obj,bool value)
说明:飞行路线在三维场景中是否渲染可见,默认为可见
FlyPath_GetPathPointCount
int FlyPath_GetPathPointCount(CFlyPath *obj)
说明:飞行路线坐标点的数量
FlyPath_GetPathPointX
double FlyPath_GetPathPointX(CFlyPath *obj,int nIndex)
说明:获得飞行路线指定坐标点的经度
FlyPath_SetPathPointX
void FlyPath_SetPathPointX(CFlyPath *obj,int nIndex,double value)
说明:修改飞行路线指定索引的坐标点经度
FlyPath_GetPathPointY
double FlyPath_GetPathPointY(CFlyPath *obj,int nIndex)
易景地球网页
69
/
74
说明:获得飞行路线指定坐标点的纬度
FlyPath_SetPathPointY
void FlyPath_SetPathPointY(CFlyPath *obj,int nIndex,double value)
说明:修改飞行路线指定索引的坐标点纬度
FlyPath_GetPathPointAlt
double FlyPath_GetPathPointAlt (CFlyPath *obj,int nIndex)
说明:获得飞行路线指定坐标点的海拔高度
FlyPath_SetPathPointAlt
void FlyPath_SetPathPointAlt (CFlyPath *obj,int nIndex,double value)
说明:修改飞行路线指定索引的坐标点海拔高度
FlyPath_DelPoint
void FlyPath_DelPoint(CFlyPath *obj,int nIndex)
说明:删除指定飞行路线坐标点
FlyPath_Fly
void FlyPath_Fly(CFlyPath *obj)
说明:开始飞行
FlyPath_StopFly
void FlyPath_StopFly(CFlyPath *obj)
说明:停止飞行
易景地球网页
70
/
74
FlyPath_PauseFly
void FlyPath_PauseFly(CFlyPath *obj)
说明:飞行暂停
FlyPath_GetFlyStatus
int FlyPath_GetFlyStatus(CFlyPath *obj)
说明:获得飞行状态,=0 停止飞行状态,=-1 为暂停状态 = 1 表示飞行状态
FlyPath_GetSpeed
float FlyPath_GetSpeed(CFlyPath *obj)
说明:获得飞行速度,单位:米/
FlyPath_SetSpeed
void FlyPath_SetSpeed(CFlyPath *obj,float value)
说明:修改飞行速度,单位:米/
3. 事件函数
3.1. 场景事件
OnSceneOpened
void OnSceneOpened(string url)
说明:场景加载后触发该事件
参数:url,字符串,加载的场景路径
OnFolderOpened
void OnFolderOpened (string foldername)
说明:子场景加载后触发该事件
参数:url,字符串,加载的子场景路径
易景地球网页
71
/
74
3.2. 摄像机事件
OnCameraChanging
void OnCameraChanging()
说明:易景三维视窗中摄像机的位置,方位角,俯仰角将要发生了改变前触发此
消息。
注意:在三维场景中,三维视野中的每一次变化表明摄像机发生了变化,即触发
此消息,所以此消息在三维场景中可能频繁触发,所以不要在该事件中出来太多
的事务。
OnCameraChanged
void OnCameraChanged()
说明:易景三维视窗中摄像机的位置,方位角,俯仰角发生了改变后触发此消息。
注意:在三维场景中,三维视野中的每一次变化表明摄像机发生了变化,即触发
此消息,所以此消息在三维场景中可能频繁触发,所以不要在该事件中出来太多
的事务。
3.3.
鼠标事件
OnLButtonDown
void OnLButtonDown(int x,int y)
说明:鼠标左键按下事件
参数:x,y 对应鼠标屏幕坐标
OnLButtonUp
void OnLButtonUp (int x,int y)
说明:鼠标左键释放事件
参数:x,y 对应鼠标屏幕坐标
易景地球网页
72
/
74
OnRButtonDown
void OnRButtonDown (int x,int y)
说明:鼠标右键按下事件
参数:x,y 对应鼠标屏幕坐标
OnRButtonUp
void OnRButtonUp (int x,int y)
说明:鼠标右键释放事件
参数:x,y 对应鼠标屏幕坐标
OnMButtonDown
void OnMButtonDown (int x,int y)
说明:鼠标中间键按下事件
参数:x,y 对应鼠标屏幕坐标
OnMButtonUp
void OnMButtonUp (int x,int y)
说明:鼠标中间键释放事件
参数:x,y 对应鼠标屏幕坐标
OnObjectMouseDown
void OnObjectMouseDown(String name,String type,String xml)
说明:鼠标点击了场景中的三维对象要素事件
参数:
name:场景中三维要素对象名称
type:场景中三维要素对象路径
xml: 三维要素对象要素附属属性信息
易景地球网页
73
/
74
OnObjectMouseUp
void OnObjectMouseUp(String name,String type,String xml)
说明:鼠标点击了场景中的三维对象要素事件
参数:
name:场景中三维要素对象名称
type:场景中三维要素对象路径
xml: 三维要素对象要素附属属性信息
OnObjectMouseMove
void OnObjectMouseMove (String name,String type,String xml)
说明:鼠标在场景中的三维对象要素上移动事件
参数:
name:场景中三维要素对象名称
type:场景中三维要素对象路径
xml: 三维要素对象要素附属属性信息
OnObjectMouseOver
void OnObjectMouseOver (String name,String type,String xml)
说明:鼠标移动到了场景中的三维对象要素事件
参数:
name:场景中三维要素对象名称
type:场景中三维要素对象路径
xml: 三维要素对象要素附属属性信息
OnObjectMouseOut
void OnObjectMouseOut (String name,String type,String xml)
说明:鼠标移出了场景中的三维对象要素事件
参数:
name:场景中三维要素对象名称
type:场景中三维要素对象路径
xml: 三维要素对象要素附属属性信息
易景地球网页
74
/
74
3.4.
飞行控制事件
飞行控制事件是针对特定的飞行场景在飞行过程中触发的事件,比如摄像机沿指
定路线飞行的时候就会出发事件。
注意:对飞行定位、环绕等操作不会触发该事件。
OnFlyStart
void OnFlyStart()
说明:开始飞行事件。
OnFlyPause
void OnFlyPause()
说明:暂停飞行事件。
OnFlyEnd
void OnFlyEnd()
说明:飞行结束事件