From f7c48a68804c1fb7a9239fa79f81a3324915f120 Mon Sep 17 00:00:00 2001 From: renwj Date: Tue, 29 Mar 2022 18:37:12 +0800 Subject: [PATCH] =?UTF-8?q?[V2X]=E9=81=93=E8=B7=AF=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E6=B5=93=E9=9B=BE=E7=B1=BB=E5=9E=8B=E6=B2=A1=E6=9C=89=E6=B5=93?= =?UTF-8?q?=E9=9B=BE=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scene/road/V2XRoadEventScenario.java | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/events/scenario/scene/road/V2XRoadEventScenario.java b/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/events/scenario/scene/road/V2XRoadEventScenario.java index ed566537b0..72dbae0235 100644 --- a/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/events/scenario/scene/road/V2XRoadEventScenario.java +++ b/core/function-impl/mogo-core-function-v2x/src/main/java/com/mogo/eagle/core/function/v2x/events/scenario/scene/road/V2XRoadEventScenario.java @@ -13,9 +13,13 @@ import com.mogo.eagle.core.function.v2x.events.manager.V2XStatusManager; import com.mogo.eagle.core.function.v2x.events.scenario.impl.AbsV2XScenario; import com.mogo.eagle.core.function.v2x.events.scenario.view.IV2XMarker; import com.mogo.eagle.core.network.utils.GsonUtil; +import com.mogo.module.common.entity.MarkerExploreWay; import com.mogo.module.common.entity.V2XMessageEntity; import com.mogo.module.common.entity.V2XRoadEventEntity; +import com.mogo.module.common.enums.EventTypeEnum; import com.mogo.service.analytics.IMogoAnalytics; +import com.mogo.service.v2x.DisplayEffectsInterface; + import java.util.HashMap; import java.util.Map; import java.util.concurrent.TimeUnit; @@ -121,8 +125,18 @@ public class V2XRoadEventScenario extends AbsV2XScenario imp CallerVisualAngleManager.INSTANCE.changeVisualAngle(CallerVisualAngleManager.Scene.RoadEvent.INSTANCE); CallerHmiManager.INSTANCE.showWarning(WarningDirectionEnum.ALERT_WARNING_TOP, TimeUnit.HOURS.toMillis(1)); V2XMessageEntity entity = getV2XMessageEntity(); - if (entity != null && entity.isNeedAddLine()) { - drawPOI(); + if (entity != null) { + if (entity.isNeedAddLine()) { + drawPOI(); + } + DisplayEffectsInterface wu = BridgeApi.INSTANCE.displayEffects(); + V2XRoadEventEntity content = entity.getContent(); + if (wu != null && content != null) { + MarkerExploreWay noveltyInfo = content.getNoveltyInfo(); + if (noveltyInfo != null && EventTypeEnum.FOURS_FOG.getPoiType().equals(content.getNoveltyInfo().getPoiType())) { + wu.displayEffects(EventTypeEnum.FOURS_FOG.getPoiType()); + } + } } }