package safeluck.drive.evaluation.routecollect.impl;
|
|
import com.anyun.exam.lib.IRemoteInterface;
|
|
import safeluck.drive.evaluation.routecollect.CollectPointResult;
|
import safeluck.drive.evaluation.routecollect.ILoadListener;
|
import safeluck.drive.evaluation.routecollect.IRouteCollectInterface;
|
import safeluck.drive.evaluation.routecollect.IRouteRemotePointCallback;
|
|
/**
|
* DriveJudge
|
* Created by lzw on 2020/9/16. 10:38:39
|
* 邮箱:632393724@qq.com
|
* All Rights Saved! Chongqing AnYun Tech co. LTD
|
*/
|
public class RouteModel implements IRouteCollectInterface,IRouteRemotePointCallback {
|
|
ILoadListener iLoadListener;
|
private double sx=120.0,sy=10.03;
|
@Override
|
public void startCollect(ILoadListener listener) {
|
iLoadListener = listener;
|
//调用AYSdk 方法启动采点
|
//set IRouteRemotePointCallback
|
|
//如果采用application的callback ,可能需要注册一个CEventLisntener
|
}
|
|
/**
|
* 停止采点
|
*/
|
@Override
|
public void endCollect() {
|
//如果采用application的callback ,可能需要反注册一个CEventLisntener 解绑
|
}
|
|
|
@Override
|
public void javaPoint(int qf, double x, double y, double z, double heading, double pitch, double roll) {
|
|
if (iLoadListener != null){
|
CollectPointResult collectPointResult = new CollectPointResult();
|
collectPointResult.setX(sx);
|
collectPointResult.setY(sy);
|
iLoadListener.finishCollectItem(collectPointResult);
|
}
|
}
|
}
|