AutoSDK
500
|
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相关操作
|
protected |
com.autonavi.gbl.map.MapDevice.MapDevice | ( | MapDeviceImpl | control | ) |
void com.autonavi.gbl.map.MapDevice.addDeviceObserver | ( | IDeviceObserver | pIDeviceObserver | ) |
设置Device回调观察者
[in] | pIDeviceObserver | 回调句柄 |
void com.autonavi.gbl.map.MapDevice.attachSurfaceToDevice | ( | EGLSurfaceAttr | surfaceAttr | ) |
绑定Surface到设备 一个surface对应一个native window
[in] | surfaceAttr | 属性信息 |
boolean com.autonavi.gbl.map.MapDevice.changeDeviceSize | ( | EGLSurfaceAttr | surfaceAttr | ) |
surface大小变化 如横竖屏切换
[in] | surfaceAttr | 属性信息 |
|
protected |
|
protected |
void com.autonavi.gbl.map.MapDevice.detachSurfaceFromDevice | ( | ) |
解绑Surface
|
protected |
.EGLDeviceID1 int com.autonavi.gbl.map.MapDevice.getDeviceId | ( | ) |
获取设备的ID
int com.autonavi.gbl.map.MapDevice.getRenderFpsByMode | ( | @MapRenderMode.MapRenderMode1 int | mode | ) |
.ScreenShotMode1 int com.autonavi.gbl.map.MapDevice.getScreenShotMode | ( | ) |
获取截屏模式
long com.autonavi.gbl.map.MapDevice.getWindowFromSurface | ( | Surface | surface | ) |
获取Android Surface设备句柄(该接口只适用于Android系统)
[in] | surface | surface实例 |
boolean com.autonavi.gbl.map.MapDevice.isRenderPaused | ( | ) |
渲染引擎是否已经停止绘制
void com.autonavi.gbl.map.MapDevice.onDestroy | ( | ) |
void com.autonavi.gbl.map.MapDevice.removeDeviceObserver | ( | IDeviceObserver | pIDeviceObserver | ) |
删除Device回调观察者
[in] | pIDeviceObserver | 回调句柄,通过AddDeviceObserver添加的句柄 |
void com.autonavi.gbl.map.MapDevice.renderPause | ( | ) |
请求引擎停止绘制
void com.autonavi.gbl.map.MapDevice.renderResume | ( | ) |
请求引擎恢复绘制
void com.autonavi.gbl.map.MapDevice.resetRenderState | ( | ) |
重置渲染状态,用于插入自定义GL调用前
void com.autonavi.gbl.map.MapDevice.resetTickCount | ( | int | tickCount | ) |
设置渲染持续帧数 持续帧数完成后,进入降帧处理。实际绘制帧率为:持续帧数 + 降帧帧数
[in] | tickCount | 持续帧数 |
void com.autonavi.gbl.map.MapDevice.setInnerRenderResume | ( | boolean | bEnable | ) |
控制内部临时恢复渲染,当前OnSurfaceChange/OnMapStyleSwitch如果渲染为暂停模式,临时恢复渲染,刷指定帧后继续暂停
void com.autonavi.gbl.map.MapDevice.setMaxFps | ( | long | fps | ) |
设置渲染期望最大帧率
[in] | fps | 最大帧率 |
void com.autonavi.gbl.map.MapDevice.setMinFps | ( | long | fps | ) |
设置渲染期望最小帧率
[in] | fps | 最小帧率 |
void com.autonavi.gbl.map.MapDevice.setRenderFpsByMode | ( | @MapRenderMode.MapRenderMode1 int | mode, |
int | fps | ||
) |
设置渲染帧率
[in] | fps | 帧率 |
void com.autonavi.gbl.map.MapDevice.setRenderFpsByMode | ( | int | fps | ) |
void com.autonavi.gbl.map.MapDevice.setRenderFpsWithTimer | ( | int | fps, |
boolean | needRestartTimer | ||
) |
设置渲染帧率
[in] | fps | 目标帧率 true,引擎降帧;false,引擎不降帧 |
void com.autonavi.gbl.map.MapDevice.setScreenshotCallBackMethod | ( | @ScreenShotCallbackMethod.ScreenShotCallbackMethod1 int | method | ) |
设置截图成功后通知方法
[in] | method | 通知方法 |
void com.autonavi.gbl.map.MapDevice.setScreenshotCarType | ( | @ScreenshotCarType.ScreenshotCarType1 int | carType | ) |
设置截图车型
[in] | carType | 车型 |
void com.autonavi.gbl.map.MapDevice.setScreenshotMode | ( | @ScreenShotMode.ScreenShotMode1 int | screenshotMode | ) |
设置截图模式
[in] | screenshotMode | 模式 |
void com.autonavi.gbl.map.MapDevice.setScreenshotMode | ( | @ScreenShotMode.ScreenShotMode1 int | screenshotMode, |
IEGLScreenshotObserver | Observer | ||
) |
设置截图模式
[in] | screenshotMode | 模式 |
[in] | Observer | 截屏观察者 |
void com.autonavi.gbl.map.MapDevice.setScreenshotParameter | ( | @BLGLParameter.BLGLParameter1 int | param, |
ScreenShotParam | shotParam | ||
) |
设置截屏通用参数
[in] | param | 功能类型 |
[in] | shotParam | value参数 |
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 | 截屏高 |
|
protected |