AutoSDK  500
Public 成员函数 | 静态 Public 成员函数 | Protected 成员函数 | 所有成员列表
com.autonavi.gbl.map.OperatorPosture类 参考

地图姿态操作接口 地图姿态定义为位置、旋转角度等 地图操作 地图变化核心类 地图为东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

构造及析构函数说明

◆ OperatorPosture() [1/2]

com.autonavi.gbl.map.OperatorPosture.OperatorPosture ( long  cPtr,
boolean  cMemoryOwn 
)
protected

◆ OperatorPosture() [2/2]

com.autonavi.gbl.map.OperatorPosture.OperatorPosture ( OperatorPostureImpl  control)

成员函数说明

◆ calcMapZoomScaleFactor()

static float com.autonavi.gbl.map.OperatorPosture.calcMapZoomScaleFactor ( int  width,
int  height,
float  dpi 
)
static

根据地图屏幕宽高,以及屏幕像素密度获取比例尺基准参数

参数
[in]width屏幕宽
[in]height屏幕高
[in]dpi像素密度
返回
float 比例尺基准参数
注解
thread:multi

◆ calculateMapZoomer()

float com.autonavi.gbl.map.OperatorPosture.calculateMapZoomer ( CalMapZoomerParam  param)

获取比例尺

参数
[in]param计算比例尺需要的参数,详情参考CalMapZoomerParam定义
返回
float 比例尺
注解
thread:multi

◆ calculateMapZoomerGeo()

float com.autonavi.gbl.map.OperatorPosture.calculateMapZoomerGeo ( CalMapZoomerGeoParam  param)

通过Geo两点坐标,屏幕指定的宽度,屏幕指定的高度获取地图缩放比例尺

参数
[in]param计算比例尺需要的参数, 参考CalMapZoomerGeoParam
返回
float 比例尺
注解
thread:multi

◆ calculateMapZoomerLonLat()

float com.autonavi.gbl.map.OperatorPosture.calculateMapZoomerLonLat ( CalMapZoomerLonLatParam  param)

通过两点坐标,屏幕指定的宽度,屏幕指定的高度获取地图缩放比例尺

参数
[in]param计算比例尺需要的参数, 参考CalMapZoomerLonLatParam
返回
float 比例尺
注解
thread:multi

◆ clean()

void com.autonavi.gbl.map.OperatorPosture.clean ( )
protected

◆ cloneDicePosture()

OperatorPosture com.autonavi.gbl.map.OperatorPosture.cloneDicePosture ( )

克隆地图引擎姿态操作器

返回
克隆后的引擎原生姿态操作器对应的地图姿态操作器
注解
thread:multi

◆ cloneMapPosture()

OperatorPosture com.autonavi.gbl.map.OperatorPosture.cloneMapPosture ( )

克隆地图姿态操作器

返回
克隆的地图姿态操作器
注解
thread:multi

◆ delete()

synchronized void com.autonavi.gbl.map.OperatorPosture.delete ( )
protected

◆ destroyClonedDicePosture()

static void com.autonavi.gbl.map.OperatorPosture.destroyClonedDicePosture ( OperatorPosture  pMapPosture)
static

释放克隆的地图引擎姿态操作器

注解
thread:multi

◆ destroyClonedMapPosture()

static void com.autonavi.gbl.map.OperatorPosture.destroyClonedMapPosture ( OperatorPosture  pMapPosture)
static

释放克隆的地图姿态操作器

注解
thread:multi

◆ getCameraToCenterOriDis()

float com.autonavi.gbl.map.OperatorPosture.getCameraToCenterOriDis ( )

获取相机到地图中心的距离

返回
float 相机到地图中心的距离
注解
thread:multi

◆ getControl()

OperatorPostureImpl com.autonavi.gbl.map.OperatorPosture.getControl ( )
protected

◆ getMapBound()

MapBound com.autonavi.gbl.map.OperatorPosture.getMapBound ( )

获取地图范围

注解
thread:multi

◆ getMapCenter()

PointD com.autonavi.gbl.map.OperatorPosture.getMapCenter ( )

获取地图中心

注解
thread:multi

◆ getMapCenterByLonLat()

Coord3DDouble com.autonavi.gbl.map.OperatorPosture.getMapCenterByLonLat ( )

获取地图中心

注解
thread:multi

◆ getMapCenterWithZ()

Point3D com.autonavi.gbl.map.OperatorPosture.getMapCenterWithZ ( )

◆ getMapLenWithScreen()

double com.autonavi.gbl.map.OperatorPosture.getMapLenWithScreen ( double  screenLen)

获取屏幕对应的地图长度

参数
[in]screenLen屏幕长度
返回
double 对应的map长度
注解
thread:multi

◆ getMapLenWithScreenByY()

double com.autonavi.gbl.map.OperatorPosture.getMapLenWithScreenByY ( double  screenLen,
double  y 
)

获取指定y坐标的像素对应的地图长度

参数
[in]screenLen屏幕长度
[in]yy坐标
返回
double 对应的map长度
注解
thread:multi

◆ getMaxPitchAngle()

static double com.autonavi.gbl.map.OperatorPosture.getMaxPitchAngle ( )
static

得到最大的俯仰角

返回
double 最大俯仰角
注解
thread:multi

◆ getMaxScale()

float com.autonavi.gbl.map.OperatorPosture.getMaxScale ( )

地图引擎支持的最大比例

返回
float 返回最大比例
注解
thread:multi

◆ getMinPitchAngle()

static double com.autonavi.gbl.map.OperatorPosture.getMinPitchAngle ( )
static

得到最小的俯仰角

返回
double 最小俯仰角
注解
thread:multi

◆ getMinScale()

float com.autonavi.gbl.map.OperatorPosture.getMinScale ( )

地图引擎支持的最小比例

返回
float 返回最小比例
注解
thread:multi

◆ getNearScaleRate()

float com.autonavi.gbl.map.OperatorPosture.getNearScaleRate ( )

获取推进的比例系数

返回
float 推进的比例系数
注解
thread:multi

◆ getPitchAngle()

float com.autonavi.gbl.map.OperatorPosture.getPitchAngle ( )

获取地图仰角(x轴旋转角度)

返回
float 仰角
注解
thread:multi

◆ getPixelToWorldScale()

float com.autonavi.gbl.map.OperatorPosture.getPixelToWorldScale ( )

获取像素转世界坐标的比例系数

返回
float 像素转世界坐标的比例系数
注解
thread:multi

◆ getProjectionCenter()

SizeFloat com.autonavi.gbl.map.OperatorPosture.getProjectionCenter ( )

获取视口锚点(投影中心) 相对于view左上角坐标

注解
thread:multi

◆ getProjectionMatrix()

Matrix4x4F com.autonavi.gbl.map.OperatorPosture.getProjectionMatrix ( )

获取投影矩阵

返回
投影矩阵

◆ getRawAngle()

float com.autonavi.gbl.map.OperatorPosture.getRawAngle ( )

获取地图偏航角(y轴旋转角度), 基本不用

返回
float 偏航角
注解
thread:multi

◆ getRollAngle()

float com.autonavi.gbl.map.OperatorPosture.getRollAngle ( )

获取地图翻滚角(z轴旋转角度)

返回
float 滚角
注解
thread:multi

◆ getScaleFactor()

float com.autonavi.gbl.map.OperatorPosture.getScaleFactor ( )

获取地图视野放大比例

返回
float 视野放大比例
注解
thread:multi

◆ getScreenDpi()

float com.autonavi.gbl.map.OperatorPosture.getScreenDpi ( )

获取屏幕像素,屏幕的dpi

返回
float 屏幕dpi
注解
thread:multi

◆ getScreenSize()

SizeFloat com.autonavi.gbl.map.OperatorPosture.getScreenSize ( )

获取屏幕宽高

注解
thread:multi

◆ getViewMatrix()

Matrix4x4F com.autonavi.gbl.map.OperatorPosture.getViewMatrix ( )

获取视图矩阵

返回
视图矩阵

◆ getViewSize()

SizeFloat com.autonavi.gbl.map.OperatorPosture.getViewSize ( )

获取视口宽高

注解
thread:multi

◆ getWinSkyHeight()

float com.autonavi.gbl.map.OperatorPosture.getWinSkyHeight ( )

获取天空高度 屏幕单位

返回
float 屏幕单位
注解
thread:multi

◆ getZoomLevel()

float com.autonavi.gbl.map.OperatorPosture.getZoomLevel ( )

获取地图比例尺

返回
float 比例尺
注解
thread:multi

◆ isSameCoordByLonLat()

static boolean com.autonavi.gbl.map.OperatorPosture.isSameCoordByLonLat ( Coord3DDouble  startPoint,
Coord3DDouble  endPoint 
)
static

判断两点是否相同

传入比较的经纬度坐标及距离计算圆周的点集

注解
thread Multi

◆ lonLatToMap()

static Coord2DDouble com.autonavi.gbl.map.OperatorPosture.lonLatToMap ( double  lon,
double  lat 
)
static

经纬度转地图P20坐标

参数
[in]lon经度
[in]lat纬度
注解
thread:multi

◆ lonLatToScreen()

PointD com.autonavi.gbl.map.OperatorPosture.lonLatToScreen ( double  Lon,
double  Lat,
double  z 
)

经纬度坐标转屏幕坐标

参数
[in]Lon地图的经度
[in]Lat地图的纬度
[in]z地图的z坐标,预留
注解
thread:multi

◆ mapToLonLat()

static Coord2DDouble com.autonavi.gbl.map.OperatorPosture.mapToLonLat ( double  mapX,
double  mapY 
)
static

地图P20坐标转经纬度坐标

参数
[in]mapX地图的P20 x坐标
[in]mapY地图的P20 y坐标
注解
thread:multi

◆ mapToScreen()

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坐标
注解
thread:multi

◆ meterToMapPixel()

static double com.autonavi.gbl.map.OperatorPosture.meterToMapPixel ( double  lontitude,
double  latitude,
double  meter 
)
static

米数转换为P20像素数

参数
[in]lontitude转换点经度
[in]latitude转换点纬度
[in]meter转换距离
备注
P20像素对应地图位于20级比例尺下的像素数,在转换点附近以转换点为圆心,转换距离为半径,转换为像素数,存在一定偏差
注解
thread:multi

◆ meterToP20()

static int com.autonavi.gbl.map.OperatorPosture.meterToP20 ( double  mapx,
double  mapy,
float  meter 
)
static

米转p20像素

参数
[in]mapx附近的p20坐标X,圆使用圆心坐标
[in]mapy附近的p20坐标Y,圆使用圆心坐标
[in]meter
返回
int32_t

◆ onDestroy()

void com.autonavi.gbl.map.OperatorPosture.onDestroy ( )

◆ recalculate()

void com.autonavi.gbl.map.OperatorPosture.recalculate ( )

重新计算,使设置参数生效

注解
thread:multi

◆ screenToLonLat()

Coord2DDouble com.autonavi.gbl.map.OperatorPosture.screenToLonLat ( double  screenX,
double  screenY 
)

屏幕坐标转经纬度坐标

参数
[in]screenX屏幕的x坐标
[in]screenY屏幕的y坐标
注解
thread:multi

◆ screenToMap()

Coord2DDouble com.autonavi.gbl.map.OperatorPosture.screenToMap ( double  screenX,
double  screenY 
)

屏幕坐标转地图P20坐标

参数
[in]screenX屏幕的x坐标
[in]screenY屏幕的y坐标
注解
thread:multi

◆ setMapCenter() [1/2]

void com.autonavi.gbl.map.OperatorPosture.setMapCenter ( double  lon,
double  lat,
double  z,
boolean  bAnimation,
boolean  bSync 
)

设置地图中心(经纬度坐标)

参数
[in]lon经度
[in]lat纬度
[in]zz轴预留
[in]bAnimation是否带动画
[in]bSync是否同步方式
注解
thread:multi

◆ setMapCenter() [2/2]

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坐标
注解
thread:multi

◆ setMapCenterByLonLat()

void com.autonavi.gbl.map.OperatorPosture.setMapCenterByLonLat ( Coord3DDouble  mapCenter)

设置地图中心(经纬度坐标)

参数
[in]mapCenter设置地图中心所在经纬度坐标
注解
thread:multi

◆ setMaxZoomLevel()

void com.autonavi.gbl.map.OperatorPosture.setMaxZoomLevel ( float  scale)

设置地图最大显示级别(3~20级别)

参数
[in]scale显示级别
注解
thread:multi

◆ setMinZoomLevel()

void com.autonavi.gbl.map.OperatorPosture.setMinZoomLevel ( float  scale)

设置地图最小显示级别(3~20级别)

参数
[in]scale显示级别
注解
thread:multi

◆ setNearDefaultValue()

void com.autonavi.gbl.map.OperatorPosture.setNearDefaultValue ( float  tilt,
float  cameraHight 
)

设置相机推进默认值

参数
[in]tilt仰角
[in]cameraHight高度像素
注解
thread:multi

◆ setPitchAngle() [1/2]

void com.autonavi.gbl.map.OperatorPosture.setPitchAngle ( float  angle)

设置地图仰角(x轴旋转角度)

参数
[in]angle仰角
注解
thread:multi

◆ setPitchAngle() [2/2]

void com.autonavi.gbl.map.OperatorPosture.setPitchAngle ( float  fAngle,
boolean  bAnimation,
boolean  bSync 
)

设置地图仰角的角度,即camera angle

参数
[in]fAngle地图仰角
[in]bAnimation是否带动画
[in]bSync是否同步方式
注解
thread:multi

◆ setProjectionCenter()

void com.autonavi.gbl.map.OperatorPosture.setProjectionCenter ( float  x,
float  y 
)

设置视口锚点(投影中心) 相对于view左上角坐标

参数
[in]xx坐标,正常范围值要落在[0,屏幕宽度w]
[in]yy坐标,正常范围值要落在[0,屏幕高度h]
注解
thread:multi

◆ setRawAngle()

void com.autonavi.gbl.map.OperatorPosture.setRawAngle ( float  angle)

设置地图偏航角度(y轴旋转角度)

参数
[in]angle偏航角度
注解
thread:multi

◆ setRollAngle() [1/2]

void com.autonavi.gbl.map.OperatorPosture.setRollAngle ( float  angle)

设置地图翻滚角(z轴旋转角度)

参数
[in]angle翻滚角度
注解
thread:normal

◆ setRollAngle() [2/2]

void com.autonavi.gbl.map.OperatorPosture.setRollAngle ( float  fAngle,
boolean  bAnimation,
boolean  bSync 
)

设置地图翻滚角(z轴旋转角度)

参数
[in]fAngle地图旋转角度
[in]bAnimation是否带动画
[in]bSync是否同步方式
注解
thread:multi

◆ setZoomLevel() [1/2]

void com.autonavi.gbl.map.OperatorPosture.setZoomLevel ( float  fScale,
boolean  bAnimation,
boolean  bSync 
)

设置比例尺

参数
[in]fScale地图比例尺
[in]bAnimation是否带动画
[in]bSync是否同步方式
注解
thread:multi

◆ setZoomLevel() [2/2]

void com.autonavi.gbl.map.OperatorPosture.setZoomLevel ( float  scale)

设置地图比例尺

参数
[in]scale比例尺
注解
thread:multi

◆ unbind()

void com.autonavi.gbl.map.OperatorPosture.unbind ( )
protected

◆ updateDicePosture()

void com.autonavi.gbl.map.OperatorPosture.updateDicePosture ( OperatorPosture  copy)

更新地图引擎姿态到地图上

参数
[in]copy要更新的引擎姿态操作器对应的地图操作器
备注
立即更新
注解
thread:multi

◆ updateMapPosture()

void com.autonavi.gbl.map.OperatorPosture.updateMapPosture ( OperatorPosture  copy)

更新地图姿态到地图上

备注
立即更新
注解
thread:multi

该类的文档由以下文件生成: