diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 83405b8de1..4ff10f68a5 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -91,6 +91,7 @@ diff --git a/modules/mogo-module-main/src/main/res/layout/module_main_activity_main.xml b/modules/mogo-module-main/src/main/res/layout/module_main_activity_main.xml index d3e106ad3c..4a05e4e99e 100644 --- a/modules/mogo-module-main/src/main/res/layout/module_main_activity_main.xml +++ b/modules/mogo-module-main/src/main/res/layout/module_main_activity_main.xml @@ -1,20 +1,21 @@ - + + @@ -23,20 +24,21 @@ android:id="@+id/iv_wu1" android:layout_width="wrap_content" android:layout_height="match_parent" - android:src="@drawable/wu1" android:alpha="0" + android:src="@drawable/wu1" app:layout_constraintStart_toStartOf="parent" /> + + - + - + - + + + { @Override diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/pushVR/V2XPushVREventMarker.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/route/V2XOptimalRouteVREventMarker.java similarity index 92% rename from modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/pushVR/V2XPushVREventMarker.java rename to modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/route/V2XOptimalRouteVREventMarker.java index 120088508a..0702296ea3 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/pushVR/V2XPushVREventMarker.java +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/route/V2XOptimalRouteVREventMarker.java @@ -1,4 +1,4 @@ -package com.mogo.module.v2x.scenario.scene.pushVR; +package com.mogo.module.v2x.scenario.scene.route; import com.mogo.map.overlay.IMogoPolyline; import com.mogo.map.overlay.MogoPolylineOptions; @@ -19,7 +19,7 @@ import java.util.List; * desc : 推送VR场景 * version: 1.0 */ -public class V2XPushVREventMarker implements IV2XMarker { +public class V2XOptimalRouteVREventMarker implements IV2XMarker { private final String TAG = "V2XPushVREventMarker"; private static IMogoPolyline mMogoPolyline; @@ -59,7 +59,7 @@ public class V2XPushVREventMarker implements IV2XMarker { colors.add(0xFFCB253A); // 线条粗细,渐变,渐变色值 - options.width(15).useGradient(true).color(0xFFF95959); + options.width(30).useGradient(true).colorValues(colors); for (double[] doubles : entity.getRecommendPolyline()) { options.add(doubles[0], doubles[1]); diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/pushVR/V2XPushVREventScenario.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/route/V2XOptimalRouteVREventScenario.java similarity index 92% rename from modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/pushVR/V2XPushVREventScenario.java rename to modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/route/V2XOptimalRouteVREventScenario.java index 59c29c99ff..ac5971f613 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/pushVR/V2XPushVREventScenario.java +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/route/V2XOptimalRouteVREventScenario.java @@ -1,4 +1,4 @@ -package com.mogo.module.v2x.scenario.scene.pushVR; +package com.mogo.module.v2x.scenario.scene.route; import android.view.View; import android.view.ViewGroup; @@ -20,17 +20,18 @@ import com.mogo.utils.network.utils.GsonUtil; * author : donghongyu * e-mail : 1358506549@qq.com * date : 2020/5/15 5:37 PM - * desc : 推送VR场景控制 + * desc : 最优车道选择 * version: 1.0 + * wiki : http://wiki.zhidaohulian.com/pages/viewpage.action?pageId=52829799 */ -public class V2XPushVREventScenario +public class V2XOptimalRouteVREventScenario extends AbsV2XScenario implements IMogoTopViewStatusListener { private String TAG = "V2XPushVREventWindow"; - public V2XPushVREventScenario() { - setV2XMarker(new V2XPushVREventMarker()); - setV2XWindow(new V2XPushVREventWindow()); + public V2XOptimalRouteVREventScenario() { + setV2XMarker(new V2XOptimalRouteVREventMarker()); + setV2XWindow(new V2XOptimalRouteVREventWindow()); } @Override diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/pushVR/V2XPushVREventWindow.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/route/V2XOptimalRouteVREventWindow.java similarity index 81% rename from modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/pushVR/V2XPushVREventWindow.java rename to modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/route/V2XOptimalRouteVREventWindow.java index d41e60a714..e63b0d96ae 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/pushVR/V2XPushVREventWindow.java +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/scenario/scene/route/V2XOptimalRouteVREventWindow.java @@ -1,4 +1,4 @@ -package com.mogo.module.v2x.scenario.scene.pushVR; +package com.mogo.module.v2x.scenario.scene.route; import android.content.Context; import android.os.Handler; @@ -24,7 +24,7 @@ import static com.mogo.module.v2x.V2XConst.MODULE_NAME; * TODO 只有VR演示场景使用 * version: 1.0 */ -public class V2XPushVREventWindow extends V2XBasWindow implements IV2XWindow { +public class V2XOptimalRouteVREventWindow extends V2XBasWindow implements IV2XWindow { private String TAG = "V2XPushVREventWindow"; // 处理道路事件,30秒倒计时 @@ -32,24 +32,22 @@ public class V2XPushVREventWindow extends V2XBasWindow implements IV2XWindow + + + + + + + + \ No newline at end of file diff --git a/modules/mogo-module-v2x/src/main/res/layout/window_test_console.xml b/modules/mogo-module-v2x/src/main/res/layout/window_test_console.xml index 8f79dc7c1e..98db0c3e37 100644 --- a/modules/mogo-module-v2x/src/main/res/layout/window_test_console.xml +++ b/modules/mogo-module-v2x/src/main/res/layout/window_test_console.xml @@ -455,7 +455,7 @@ android:layout_marginBottom="@dimen/dp_10" android:background="#4CAF50" android:padding="@dimen/dp_10" - android:text="拥堵路线推荐" + android:text="最优车道推荐" android:textColor="#FFFFFF" android:textSize="@dimen/dp_22" app:layout_constraintBottom_toBottomOf="parent" diff --git a/modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_event_data_yongdu_gongsi.json b/modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_event_data_yongdu_gongsi.json index b466e96184..7eac88ddd5 100644 --- a/modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_event_data_yongdu_gongsi.json +++ b/modules/mogo-module-v2x/src/main/res/raw/scenario_push_vr_event_data_yongdu_gongsi.json @@ -18,78 +18,42 @@ "lon":116.41808, "polyline": [ [ - 116.408012,39.968598 + 116.417437,39.983323 ], [ - 116.408784,39.968688 + 116.41924,39.983364 ], [ - 116.409632,39.968688 + 116.421396,39.983397 ], [ - 116.410168,39.968688 + 116.422984,39.983421 ], [ - 116.410898,39.968795 + 116.423016,39.983405 ], [ - 116.412143,39.968812 - ], - [ - 116.414481,39.968919 - ], - [ - 116.41681,39.969025 - ], - [ - 116.417947,39.96905 - ], - [ - 116.418011,39.968179 - ], - [ - 116.418033,39.967644 - ], - [ - 116.417947,39.967225 + 116.424272,39.983397 ] ], "recommendPolyline": [ [ - 116.408012,39.968598 + 116.417437,39.983323 ], [ - 116.408784,39.968688 + 116.41924,39.983364 ], [ - 116.409632,39.968688 + 116.421396,39.983397 ], [ - 116.410168,39.968688 + 116.422984,39.983421 ], [ - 116.410898,39.968795 + 116.423016,39.983405 ], [ - 116.412143,39.968812 - ], - [ - 116.414481,39.968919 - ], - [ - 116.41681,39.969025 - ], - [ - 116.417947,39.96905 - ], - [ - 116.418011,39.968179 - ], - [ - 116.418033,39.967644 - ], - [ - 116.417947,39.967225 + 116.424272,39.983397 ] ] } \ No newline at end of file