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

device相关操作 更多...

Public 成员函数

 MapDevice (MapDeviceImpl control)
 
void addDeviceObserver (IDeviceObserver pIDeviceObserver)
 设置Device回调观察者 更多...
 
void removeDeviceObserver (IDeviceObserver pIDeviceObserver)
 删除Device回调观察者 更多...
 
.EGLDeviceID1 int getDeviceId ()
 获取设备的ID 更多...
 
void attachSurfaceToDevice (EGLSurfaceAttr surfaceAttr)
 绑定Surface到设备 一个surface对应一个native window 更多...
 
void detachSurfaceFromDevice ()
 解绑Surface 更多...
 
boolean changeDeviceSize (EGLSurfaceAttr surfaceAttr)
 surface大小变化 如横竖屏切换 更多...
 
long getWindowFromSurface (Surface surface)
 获取Android Surface设备句柄(该接口只适用于Android系统) 更多...
 
int getRenderFpsByMode (@MapRenderMode.MapRenderMode1 int mode)
 
void setRenderFpsByMode (@MapRenderMode.MapRenderMode1 int mode, int fps)
 设置渲染帧率 更多...
 
void setRenderFpsByMode (int fps)
 
void setRenderFpsWithTimer (int fps, boolean needRestartTimer)
 设置渲染帧率 更多...
 
void resetTickCount (int tickCount)
 设置渲染持续帧数 持续帧数完成后,进入降帧处理。实际绘制帧率为:持续帧数 + 降帧帧数 更多...
 
void renderPause ()
 请求引擎停止绘制 更多...
 
void renderResume ()
 请求引擎恢复绘制 更多...
 
void setInnerRenderResume (boolean bEnable)
 控制内部临时恢复渲染,当前OnSurfaceChange/OnMapStyleSwitch如果渲染为暂停模式,临时恢复渲染,刷指定帧后继续暂停 更多...
 
boolean isRenderPaused ()
 渲染引擎是否已经停止绘制 更多...
 
void setMaxFps (long fps)
 设置渲染期望最大帧率 更多...
 
void setMinFps (long fps)
 设置渲染期望最小帧率 更多...
 
void resetRenderState ()
 重置渲染状态,用于插入自定义GL调用前 更多...
 
void setScreenshotCarType (@ScreenshotCarType.ScreenshotCarType1 int carType)
 设置截图车型 更多...
 
void setScreenshotMode (@ScreenShotMode.ScreenShotMode1 int screenshotMode)
 设置截图模式 更多...
 
void setScreenshotMode (@ScreenShotMode.ScreenShotMode1 int screenshotMode, IEGLScreenshotObserver Observer)
 设置截图模式 更多...
 
void setScreenshotRect (int px1, int py1, int w, int h)
 设置截图矩形区域 更多...
 
void setScreenshotCallBackMethod (@ScreenShotCallbackMethod.ScreenShotCallbackMethod1 int method)
 设置截图成功后通知方法 更多...
 
.ScreenShotMode1 int getScreenShotMode ()
 获取截屏模式 更多...
 
void setScreenshotParameter (@BLGLParameter.BLGLParameter1 int param, ScreenShotParam shotParam)
 设置截屏通用参数 更多...
 
void onDestroy ()
 

Protected 成员函数

 MapDevice (long cPtr, boolean cMemoryOwn)
 
MapDeviceImpl getControl ()
 
void unbind ()
 
void clean ()
 
synchronized void delete ()
 

详细描述

device相关操作

构造及析构函数说明

◆ MapDevice() [1/2]

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

◆ MapDevice() [2/2]

com.autonavi.gbl.map.MapDevice.MapDevice ( MapDeviceImpl  control)

成员函数说明

◆ addDeviceObserver()

void com.autonavi.gbl.map.MapDevice.addDeviceObserver ( IDeviceObserver  pIDeviceObserver)

设置Device回调观察者

参数
[in]pIDeviceObserver回调句柄
注解
mutli

◆ attachSurfaceToDevice()

void com.autonavi.gbl.map.MapDevice.attachSurfaceToDevice ( EGLSurfaceAttr  surfaceAttr)

绑定Surface到设备 一个surface对应一个native window

参数
[in]surfaceAttr属性信息
注解
thread:normal

◆ changeDeviceSize()

boolean com.autonavi.gbl.map.MapDevice.changeDeviceSize ( EGLSurfaceAttr  surfaceAttr)

surface大小变化 如横竖屏切换

参数
[in]surfaceAttr属性信息
注解
thread:normal
返回
bool 返回是否切换成功

◆ clean()

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

◆ delete()

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

◆ detachSurfaceFromDevice()

void com.autonavi.gbl.map.MapDevice.detachSurfaceFromDevice ( )

解绑Surface

注解
thread:normal

◆ getControl()

MapDeviceImpl com.autonavi.gbl.map.MapDevice.getControl ( )
protected

◆ getDeviceId()

.EGLDeviceID1 int com.autonavi.gbl.map.MapDevice.getDeviceId ( )

获取设备的ID

返回
EGLDeviceID 返回设备的ID
注解
mutli

◆ getRenderFpsByMode()

int com.autonavi.gbl.map.MapDevice.getRenderFpsByMode ( @MapRenderMode.MapRenderMode1 int  mode)

◆ getScreenShotMode()

.ScreenShotMode1 int com.autonavi.gbl.map.MapDevice.getScreenShotMode ( )

获取截屏模式

返回
ScreenShotMode 截图模式
注解
normal

◆ getWindowFromSurface()

long com.autonavi.gbl.map.MapDevice.getWindowFromSurface ( Surface  surface)

获取Android Surface设备句柄(该接口只适用于Android系统)

参数
[in]surfacesurface实例
返回
int64_t surface句柄

◆ isRenderPaused()

boolean com.autonavi.gbl.map.MapDevice.isRenderPaused ( )

渲染引擎是否已经停止绘制

返回
bool 返回渲染状态
注解
thread:normal

◆ onDestroy()

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

◆ removeDeviceObserver()

void com.autonavi.gbl.map.MapDevice.removeDeviceObserver ( IDeviceObserver  pIDeviceObserver)

删除Device回调观察者

参数
[in]pIDeviceObserver回调句柄,通过AddDeviceObserver添加的句柄
注解
mutli

◆ renderPause()

void com.autonavi.gbl.map.MapDevice.renderPause ( )

请求引擎停止绘制

注解
thread:normal

◆ renderResume()

void com.autonavi.gbl.map.MapDevice.renderResume ( )

请求引擎恢复绘制

注解
thread:normal

◆ resetRenderState()

void com.autonavi.gbl.map.MapDevice.resetRenderState ( )

重置渲染状态,用于插入自定义GL调用前

◆ resetTickCount()

void com.autonavi.gbl.map.MapDevice.resetTickCount ( int  tickCount)

设置渲染持续帧数 持续帧数完成后,进入降帧处理。实际绘制帧率为:持续帧数 + 降帧帧数

参数
[in]tickCount持续帧数
注解
thread: multi

◆ setInnerRenderResume()

void com.autonavi.gbl.map.MapDevice.setInnerRenderResume ( boolean  bEnable)

控制内部临时恢复渲染,当前OnSurfaceChange/OnMapStyleSwitch如果渲染为暂停模式,临时恢复渲染,刷指定帧后继续暂停

注解
thread:normal

◆ setMaxFps()

void com.autonavi.gbl.map.MapDevice.setMaxFps ( long  fps)

设置渲染期望最大帧率

参数
[in]fps最大帧率
返回
void
注解
帧率控制内部是按降帧模式

◆ setMinFps()

void com.autonavi.gbl.map.MapDevice.setMinFps ( long  fps)

设置渲染期望最小帧率

参数
[in]fps最小帧率
返回
void
注解
帧率控制内部是按降帧模式

◆ setRenderFpsByMode() [1/2]

void com.autonavi.gbl.map.MapDevice.setRenderFpsByMode ( @MapRenderMode.MapRenderMode1 int  mode,
int  fps 
)

设置渲染帧率

参数
[in]fps帧率
注解
thread:normal

◆ setRenderFpsByMode() [2/2]

void com.autonavi.gbl.map.MapDevice.setRenderFpsByMode ( int  fps)

◆ setRenderFpsWithTimer()

void com.autonavi.gbl.map.MapDevice.setRenderFpsWithTimer ( int  fps,
boolean  needRestartTimer 
)

设置渲染帧率

参数
[in]fps目标帧率 true,引擎降帧;false,引擎不降帧

◆ setScreenshotCallBackMethod()

void com.autonavi.gbl.map.MapDevice.setScreenshotCallBackMethod ( @ScreenShotCallbackMethod.ScreenShotCallbackMethod1 int  method)

设置截图成功后通知方法

参数
[in]method通知方法
注解
只支持android平台
thread:normal

◆ setScreenshotCarType()

void com.autonavi.gbl.map.MapDevice.setScreenshotCarType ( @ScreenshotCarType.ScreenshotCarType1 int  carType)

设置截图车型

参数
[in]carType车型
注解
thread:normal

◆ setScreenshotMode() [1/2]

void com.autonavi.gbl.map.MapDevice.setScreenshotMode ( @ScreenShotMode.ScreenShotMode1 int  screenshotMode)

设置截图模式

参数
[in]screenshotMode模式
注解
只支持android平台
thread:normal

◆ setScreenshotMode() [2/2]

void com.autonavi.gbl.map.MapDevice.setScreenshotMode ( @ScreenShotMode.ScreenShotMode1 int  screenshotMode,
IEGLScreenshotObserver  Observer 
)

设置截图模式

参数
[in]screenshotMode模式
[in]Observer截屏观察者
注解
只支持android平台
thread:normal

◆ setScreenshotParameter()

void com.autonavi.gbl.map.MapDevice.setScreenshotParameter ( @BLGLParameter.BLGLParameter1 int  param,
ScreenShotParam  shotParam 
)

设置截屏通用参数

参数
[in]param功能类型
[in]shotParamvalue参数
注解
thread:normal

◆ setScreenshotRect()

void com.autonavi.gbl.map.MapDevice.setScreenshotRect ( int  px1,
int  py1,
int  w,
int  h 
)

设置截图矩形区域

参数
[in]px1截图起点,gl坐标x,左下是(0,0)
[in]py1截图起点,gl坐标y,左下是(0,0)
[in]w截屏宽
[in]h截屏高
注解
只支持android平台
thread:normal

◆ unbind()

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

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