「Change」
地图接口增加 1、setIsDrawPointCloud--打开点云绘制、 2、setPointCloudSize--设制点云大小、 3、setPointCloudColor--设置点云颜色 Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
@@ -69,7 +69,6 @@ import mogo.telematics.pad.MessagePad
|
||||
import mogo_msg.MogoReportMsg
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.*
|
||||
import kotlin.collections.ArrayList
|
||||
import kotlin.math.abs
|
||||
|
||||
/**
|
||||
@@ -612,7 +611,7 @@ class DebugSettingView @JvmOverloads constructor(
|
||||
tbDrawPointCloudData.isChecked = FunctionBuildConfig.isDrawPointCloudData
|
||||
//是否渲染点云数据
|
||||
tbDrawPointCloudData.setOnCheckedChangeListener { _, isChecked ->
|
||||
FunctionBuildConfig.isDrawPointCloudData = isChecked
|
||||
CallerHDMapManager.setIsDrawPointCloud(isChecked)
|
||||
}
|
||||
|
||||
// 模拟自动驾驶中
|
||||
|
||||
@@ -21,6 +21,7 @@ import com.mogo.map.IMogoMap;
|
||||
import com.mogo.map.IMogoUiSettings;
|
||||
import com.mogo.map.MogoMapView;
|
||||
import com.mogo.map.uicontroller.IMogoMapUIController;
|
||||
import com.zhidaoauto.map.sdk.open.business.PointCloudHelper;
|
||||
|
||||
/**
|
||||
* @author donghongyu
|
||||
@@ -275,4 +276,21 @@ public class MapFragment extends MvpFragment<MapView, MapPresenter>
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setPointCloudSize(float pointCloudSize) {
|
||||
//设置点云大小
|
||||
PointCloudHelper.INSTANCE.setPointCloudSize(pointCloudSize);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setPointCloudColor(@NonNull String color) {
|
||||
// 设置点云颜色
|
||||
PointCloudHelper.INSTANCE.setPointCloudColor(color);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setIsDrawPointCloud(boolean isDrawPointCloud) {
|
||||
// 是否绘制点云
|
||||
PointCloudHelper.INSTANCE.setIsDrawPointCloud(isDrawPointCloud);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user