AutoSDK
500
|
地图姿态操作接口 地图姿态定义为位置、旋转角度等 地图操作 地图变化核心类 地图为东0 更多...
Public 成员函数 | |
OperatorPosture (OperatorPostureImpl control) | |
SizeFloat | getViewSize () |
获取视口宽高 更多... | |
SizeFloat | getScreenSize () |
获取屏幕宽高 更多... | |
MapBound | getMapBound () |
获取地图范围 更多... | |
PointD | getMapCenter () |
获取地图中心 更多... | |
Point3D | getMapCenterWithZ () |
Coord3DDouble | getMapCenterByLonLat () |
获取地图中心 更多... | |
SizeFloat | getProjectionCenter () |
获取视口锚点(投影中心) 相对于view左上角坐标 更多... | |
float | getMaxScale () |
地图引擎支持的最大比例 更多... | |
float | getMinScale () |
地图引擎支持的最小比例 更多... | |
float | getZoomLevel () |
获取地图比例尺 更多... | |
float | getScaleFactor () |
获取地图视野放大比例 更多... | |
float | getPitchAngle () |
获取地图仰角(x轴旋转角度) 更多... | |
float | getRollAngle () |
获取地图翻滚角(z轴旋转角度) 更多... | |
float | getRawAngle () |
获取地图偏航角(y轴旋转角度), 基本不用 更多... | |
float | getWinSkyHeight () |
获取天空高度 屏幕单位 更多... | |
float | getScreenDpi () |
获取屏幕像素,屏幕的dpi 更多... | |
float | getNearScaleRate () |
获取推进的比例系数 更多... | |
float | getCameraToCenterOriDis () |
获取相机到地图中心的距离 更多... | |
float | getPixelToWorldScale () |
获取像素转世界坐标的比例系数 更多... | |
void | setMapCenter (double x, double y, double z) |
设置地图中心(P20坐标) 更多... | |
void | setMapCenterByLonLat (Coord3DDouble mapCenter) |
设置地图中心(经纬度坐标) 更多... | |
void | setMapCenter (double lon, double lat, double z, boolean bAnimation, boolean bSync) |
设置地图中心(经纬度坐标) 更多... | |
void | setProjectionCenter (float x, float y) |
设置视口锚点(投影中心) 相对于view左上角坐标 更多... | |
void | setZoomLevel (float scale) |
设置地图比例尺 更多... | |
void | setMaxZoomLevel (float scale) |
设置地图最大显示级别(3~20级别) 更多... | |
void | setMinZoomLevel (float scale) |
设置地图最小显示级别(3~20级别) 更多... | |
void | setZoomLevel (float fScale, boolean bAnimation, boolean bSync) |
设置比例尺 更多... | |
void | setRollAngle (float angle) |
设置地图翻滚角(z轴旋转角度) 更多... | |
void | setRollAngle (float fAngle, boolean bAnimation, boolean bSync) |
设置地图翻滚角(z轴旋转角度) 更多... | |
void | setRawAngle (float angle) |
设置地图偏航角度(y轴旋转角度) 更多... | |
void | setPitchAngle (float angle) |
设置地图仰角(x轴旋转角度) 更多... | |
void | setPitchAngle (float fAngle, boolean bAnimation, boolean bSync) |
设置地图仰角的角度,即camera angle 更多... | |
void | setNearDefaultValue (float tilt, float cameraHight) |
设置相机推进默认值 更多... | |
void | recalculate () |
重新计算,使设置参数生效 更多... | |
Coord2DDouble | screenToMap (double screenX, double screenY) |
屏幕坐标转地图P20坐标 更多... | |
Coord2DDouble | screenToLonLat (double screenX, double screenY) |
屏幕坐标转经纬度坐标 更多... | |
PointD | mapToScreen (double mapX, double mapY, double mapZ) |
地图P20坐标转屏幕坐标 更多... | |
PointD | lonLatToScreen (double Lon, double Lat, double z) |
经纬度坐标转屏幕坐标 更多... | |
double | getMapLenWithScreen (double screenLen) |
获取屏幕对应的地图长度 更多... | |
double | getMapLenWithScreenByY (double screenLen, double y) |
获取指定y坐标的像素对应的地图长度 更多... | |
float | calculateMapZoomer (CalMapZoomerParam param) |
获取比例尺 更多... | |
float | calculateMapZoomerGeo (CalMapZoomerGeoParam param) |
通过Geo两点坐标,屏幕指定的宽度,屏幕指定的高度获取地图缩放比例尺 更多... | |
float | calculateMapZoomerLonLat (CalMapZoomerLonLatParam param) |
通过两点坐标,屏幕指定的宽度,屏幕指定的高度获取地图缩放比例尺 更多... | |
Matrix4x4F | getViewMatrix () |
获取视图矩阵 更多... | |
Matrix4x4F | getProjectionMatrix () |
获取投影矩阵 更多... | |
OperatorPosture | cloneMapPosture () |
克隆地图姿态操作器 更多... | |
void | updateMapPosture (OperatorPosture copy) |
更新地图姿态到地图上 更多... | |
OperatorPosture | cloneDicePosture () |
克隆地图引擎姿态操作器 更多... | |
void | updateDicePosture (OperatorPosture copy) |
更新地图引擎姿态到地图上 更多... | |
void | onDestroy () |
静态 Public 成员函数 | |
static double | getMaxPitchAngle () |
得到最大的俯仰角 更多... | |
static double | getMinPitchAngle () |
得到最小的俯仰角 更多... | |
static float | calcMapZoomScaleFactor (int width, int height, float dpi) |
根据地图屏幕宽高,以及屏幕像素密度获取比例尺基准参数 更多... | |
static int | meterToP20 (double mapx, double mapy, float meter) |
米转p20像素 更多... | |
static Coord2DDouble | mapToLonLat (double mapX, double mapY) |
地图P20坐标转经纬度坐标 更多... | |
static Coord2DDouble | lonLatToMap (double lon, double lat) |
经纬度转地图P20坐标 更多... | |
static void | destroyClonedMapPosture (OperatorPosture pMapPosture) |
释放克隆的地图姿态操作器 更多... | |
static void | destroyClonedDicePosture (OperatorPosture pMapPosture) |
释放克隆的地图引擎姿态操作器 更多... | |
static double | meterToMapPixel (double lontitude, double latitude, double meter) |
米数转换为P20像素数 更多... | |
static boolean | isSameCoordByLonLat (Coord3DDouble startPoint, Coord3DDouble endPoint) |
判断两点是否相同 更多... | |
Protected 成员函数 | |
OperatorPosture (long cPtr, boolean cMemoryOwn) | |
OperatorPostureImpl | getControl () |
void | unbind () |
void | clean () |
synchronized void | delete () |
地图姿态操作接口 地图姿态定义为位置、旋转角度等 地图操作 地图变化核心类 地图为东0
|
protected |
com.autonavi.gbl.map.OperatorPosture.OperatorPosture | ( | OperatorPostureImpl | control | ) |
|
static |
根据地图屏幕宽高,以及屏幕像素密度获取比例尺基准参数
[in] | width | 屏幕宽 |
[in] | height | 屏幕高 |
[in] | dpi | 像素密度 |
float com.autonavi.gbl.map.OperatorPosture.calculateMapZoomer | ( | CalMapZoomerParam | param | ) |
获取比例尺
[in] | param | 计算比例尺需要的参数,详情参考CalMapZoomerParam定义 |
float com.autonavi.gbl.map.OperatorPosture.calculateMapZoomerGeo | ( | CalMapZoomerGeoParam | param | ) |
通过Geo两点坐标,屏幕指定的宽度,屏幕指定的高度获取地图缩放比例尺
[in] | param | 计算比例尺需要的参数, 参考CalMapZoomerGeoParam |
float com.autonavi.gbl.map.OperatorPosture.calculateMapZoomerLonLat | ( | CalMapZoomerLonLatParam | param | ) |
通过两点坐标,屏幕指定的宽度,屏幕指定的高度获取地图缩放比例尺
[in] | param | 计算比例尺需要的参数, 参考CalMapZoomerLonLatParam |
|
protected |
OperatorPosture com.autonavi.gbl.map.OperatorPosture.cloneDicePosture | ( | ) |
克隆地图引擎姿态操作器
OperatorPosture com.autonavi.gbl.map.OperatorPosture.cloneMapPosture | ( | ) |
克隆地图姿态操作器
|
protected |
|
static |
释放克隆的地图引擎姿态操作器
|
static |
释放克隆的地图姿态操作器
float com.autonavi.gbl.map.OperatorPosture.getCameraToCenterOriDis | ( | ) |
获取相机到地图中心的距离
|
protected |
MapBound com.autonavi.gbl.map.OperatorPosture.getMapBound | ( | ) |
获取地图范围
PointD com.autonavi.gbl.map.OperatorPosture.getMapCenter | ( | ) |
获取地图中心
Coord3DDouble com.autonavi.gbl.map.OperatorPosture.getMapCenterByLonLat | ( | ) |
获取地图中心
Point3D com.autonavi.gbl.map.OperatorPosture.getMapCenterWithZ | ( | ) |
double com.autonavi.gbl.map.OperatorPosture.getMapLenWithScreen | ( | double | screenLen | ) |
获取屏幕对应的地图长度
[in] | screenLen | 屏幕长度 |
double com.autonavi.gbl.map.OperatorPosture.getMapLenWithScreenByY | ( | double | screenLen, |
double | y | ||
) |
获取指定y坐标的像素对应的地图长度
[in] | screenLen | 屏幕长度 |
[in] | y | y坐标 |
|
static |
得到最大的俯仰角
float com.autonavi.gbl.map.OperatorPosture.getMaxScale | ( | ) |
地图引擎支持的最大比例
|
static |
得到最小的俯仰角
float com.autonavi.gbl.map.OperatorPosture.getMinScale | ( | ) |
地图引擎支持的最小比例
float com.autonavi.gbl.map.OperatorPosture.getNearScaleRate | ( | ) |
获取推进的比例系数
float com.autonavi.gbl.map.OperatorPosture.getPitchAngle | ( | ) |
获取地图仰角(x轴旋转角度)
float com.autonavi.gbl.map.OperatorPosture.getPixelToWorldScale | ( | ) |
获取像素转世界坐标的比例系数
SizeFloat com.autonavi.gbl.map.OperatorPosture.getProjectionCenter | ( | ) |
获取视口锚点(投影中心) 相对于view左上角坐标
Matrix4x4F com.autonavi.gbl.map.OperatorPosture.getProjectionMatrix | ( | ) |
获取投影矩阵
float com.autonavi.gbl.map.OperatorPosture.getRawAngle | ( | ) |
获取地图偏航角(y轴旋转角度), 基本不用
float com.autonavi.gbl.map.OperatorPosture.getRollAngle | ( | ) |
获取地图翻滚角(z轴旋转角度)
float com.autonavi.gbl.map.OperatorPosture.getScaleFactor | ( | ) |
获取地图视野放大比例
float com.autonavi.gbl.map.OperatorPosture.getScreenDpi | ( | ) |
获取屏幕像素,屏幕的dpi
SizeFloat com.autonavi.gbl.map.OperatorPosture.getScreenSize | ( | ) |
获取屏幕宽高
Matrix4x4F com.autonavi.gbl.map.OperatorPosture.getViewMatrix | ( | ) |
获取视图矩阵
SizeFloat com.autonavi.gbl.map.OperatorPosture.getViewSize | ( | ) |
获取视口宽高
float com.autonavi.gbl.map.OperatorPosture.getWinSkyHeight | ( | ) |
获取天空高度 屏幕单位
float com.autonavi.gbl.map.OperatorPosture.getZoomLevel | ( | ) |
获取地图比例尺
|
static |
判断两点是否相同
传入比较的经纬度坐标及距离计算圆周的点集
|
static |
经纬度转地图P20坐标
[in] | lon | 经度 |
[in] | lat | 纬度 |
PointD com.autonavi.gbl.map.OperatorPosture.lonLatToScreen | ( | double | Lon, |
double | Lat, | ||
double | z | ||
) |
经纬度坐标转屏幕坐标
[in] | Lon | 地图的经度 |
[in] | Lat | 地图的纬度 |
[in] | z | 地图的z坐标,预留 |
|
static |
地图P20坐标转经纬度坐标
[in] | mapX | 地图的P20 x坐标 |
[in] | mapY | 地图的P20 y坐标 |
PointD com.autonavi.gbl.map.OperatorPosture.mapToScreen | ( | double | mapX, |
double | mapY, | ||
double | mapZ | ||
) |
地图P20坐标转屏幕坐标
[in] | mapX | 地图的P20 x坐标 |
[in] | mapY | 地图的P20 y坐标 |
[in] | mapZ | 地图的P20 z坐标 |
|
static |
米数转换为P20像素数
[in] | lontitude | 转换点经度 |
[in] | latitude | 转换点纬度 |
[in] | meter | 转换距离 |
|
static |
米转p20像素
[in] | mapx | 附近的p20坐标X,圆使用圆心坐标 |
[in] | mapy | 附近的p20坐标Y,圆使用圆心坐标 |
[in] | meter | 米 |
void com.autonavi.gbl.map.OperatorPosture.onDestroy | ( | ) |
void com.autonavi.gbl.map.OperatorPosture.recalculate | ( | ) |
重新计算,使设置参数生效
Coord2DDouble com.autonavi.gbl.map.OperatorPosture.screenToLonLat | ( | double | screenX, |
double | screenY | ||
) |
屏幕坐标转经纬度坐标
[in] | screenX | 屏幕的x坐标 |
[in] | screenY | 屏幕的y坐标 |
Coord2DDouble com.autonavi.gbl.map.OperatorPosture.screenToMap | ( | double | screenX, |
double | screenY | ||
) |
屏幕坐标转地图P20坐标
[in] | screenX | 屏幕的x坐标 |
[in] | screenY | 屏幕的y坐标 |
void com.autonavi.gbl.map.OperatorPosture.setMapCenter | ( | double | lon, |
double | lat, | ||
double | z, | ||
boolean | bAnimation, | ||
boolean | bSync | ||
) |
设置地图中心(经纬度坐标)
[in] | lon | 经度 |
[in] | lat | 纬度 |
[in] | z | z轴预留 |
[in] | bAnimation | 是否带动画 |
[in] | bSync | 是否同步方式 |
void com.autonavi.gbl.map.OperatorPosture.setMapCenter | ( | double | x, |
double | y, | ||
double | z | ||
) |
设置地图中心(P20坐标)
[in] | x | 地图中心P20 x坐标 |
[in] | y | 地图中心P20 y坐标 |
[in] | z | 地图中心P20 z坐标 |
void com.autonavi.gbl.map.OperatorPosture.setMapCenterByLonLat | ( | Coord3DDouble | mapCenter | ) |
设置地图中心(经纬度坐标)
[in] | mapCenter | 设置地图中心所在经纬度坐标 |
void com.autonavi.gbl.map.OperatorPosture.setMaxZoomLevel | ( | float | scale | ) |
设置地图最大显示级别(3~20级别)
[in] | scale | 显示级别 |
void com.autonavi.gbl.map.OperatorPosture.setMinZoomLevel | ( | float | scale | ) |
设置地图最小显示级别(3~20级别)
[in] | scale | 显示级别 |
void com.autonavi.gbl.map.OperatorPosture.setNearDefaultValue | ( | float | tilt, |
float | cameraHight | ||
) |
设置相机推进默认值
[in] | tilt | 仰角 |
[in] | cameraHight | 高度像素 |
void com.autonavi.gbl.map.OperatorPosture.setPitchAngle | ( | float | angle | ) |
设置地图仰角(x轴旋转角度)
[in] | angle | 仰角 |
void com.autonavi.gbl.map.OperatorPosture.setPitchAngle | ( | float | fAngle, |
boolean | bAnimation, | ||
boolean | bSync | ||
) |
设置地图仰角的角度,即camera angle
[in] | fAngle | 地图仰角 |
[in] | bAnimation | 是否带动画 |
[in] | bSync | 是否同步方式 |
void com.autonavi.gbl.map.OperatorPosture.setProjectionCenter | ( | float | x, |
float | y | ||
) |
设置视口锚点(投影中心) 相对于view左上角坐标
[in] | x | x坐标,正常范围值要落在[0,屏幕宽度w] |
[in] | y | y坐标,正常范围值要落在[0,屏幕高度h] |
void com.autonavi.gbl.map.OperatorPosture.setRawAngle | ( | float | angle | ) |
设置地图偏航角度(y轴旋转角度)
[in] | angle | 偏航角度 |
void com.autonavi.gbl.map.OperatorPosture.setRollAngle | ( | float | angle | ) |
设置地图翻滚角(z轴旋转角度)
[in] | angle | 翻滚角度 |
void com.autonavi.gbl.map.OperatorPosture.setRollAngle | ( | float | fAngle, |
boolean | bAnimation, | ||
boolean | bSync | ||
) |
设置地图翻滚角(z轴旋转角度)
[in] | fAngle | 地图旋转角度 |
[in] | bAnimation | 是否带动画 |
[in] | bSync | 是否同步方式 |
void com.autonavi.gbl.map.OperatorPosture.setZoomLevel | ( | float | fScale, |
boolean | bAnimation, | ||
boolean | bSync | ||
) |
设置比例尺
[in] | fScale | 地图比例尺 |
[in] | bAnimation | 是否带动画 |
[in] | bSync | 是否同步方式 |
void com.autonavi.gbl.map.OperatorPosture.setZoomLevel | ( | float | scale | ) |
设置地图比例尺
[in] | scale | 比例尺 |
|
protected |
void com.autonavi.gbl.map.OperatorPosture.updateDicePosture | ( | OperatorPosture | copy | ) |
更新地图引擎姿态到地图上
[in] | copy | 要更新的引擎姿态操作器对应的地图操作器 |
void com.autonavi.gbl.map.OperatorPosture.updateMapPosture | ( | OperatorPosture | copy | ) |
更新地图姿态到地图上