From b2733f97751c2769f44b9f3506e0ce3d5714cce6 Mon Sep 17 00:00:00 2001
From: TreeWish <1131093754@qq.com>
Date: 星期二, 07 二月 2023 14:48:53 +0800
Subject: [PATCH] 三维通视分析&视域分析

---
 src/views/Synthesis/LeftMenu.vue |   94 +++++++++++++++++++++++++++++++++++-----------
 1 files changed, 71 insertions(+), 23 deletions(-)

diff --git a/src/views/Synthesis/LeftMenu.vue b/src/views/Synthesis/LeftMenu.vue
index 9af0593..a775bb9 100644
--- a/src/views/Synthesis/LeftMenu.vue
+++ b/src/views/Synthesis/LeftMenu.vue
@@ -186,6 +186,24 @@
             name: "鍦板舰寮�鎸�",
             css: "twoMenu_imge411",
           },
+          {
+            id: "d12",
+            label: "synthesis.visibilityAnalysis",
+            name: "閫氳鍒嗘瀽",
+            css: "twoMenu_imge412",
+          },
+          {
+            id: "d13",
+            label: "synthesis.viewAnalysis",
+            name: "瑙嗗煙鍒嗘瀽",
+            css: "twoMenu_imge413",
+          },
+          {
+            id: "d14",
+            label: "synthesis.circularViewAnalysis",
+            name: "鍦嗗舰瑙嗗煙鍒嗘瀽",
+            css: "twoMenu_imge414",
+          },
         ],
         [
           {
@@ -551,29 +569,6 @@
             }
           )
           break
-        case "j3":
-          // var measure = window.sgworld.Command.execute(
-          //   1,
-          //   11,
-          //   this.colorAll,
-          //   (data) => {
-          //     data.id = window.sgworld.Core.getuid();
-          //     this.measureData.set(data.id, measure);
-          //     this.openMeasureResultInfo('娴锋嫈楂樺害', data);
-          //   }
-          // );
-          var measure = window.sgworld.Command.execute(
-            0,
-            3,
-            this.colorAll,
-            data => {
-              data.id = window.sgworld.Core.getuid()
-              this.measureData.set(data.id, measure)
-              this.openMeasureResultInfo("骞抽潰闈㈢Н", data)
-            }
-          )
-
-          break
         case "j2":
           var measure = window.sgworld.Command.execute(
             0,
@@ -613,6 +608,7 @@
               this.openMeasureResultInfo("骞抽潰闈㈢Н", data)
             }
           )
+          // sgworld.Analysis.planeArea(this.colorAll, () => {})
           break
         case "j4":
           var volumetricMeasurementTool =
@@ -866,6 +862,45 @@
               function () {}
             )
           }
+          break
+        case "d12":
+          if (window.Excavation) {
+            window.Excavation.deleteObject()
+            window.Excavation = null
+          } else {
+            window.Excavation = sgworld.Analysis.createSightLine({
+              type: "default",
+            })
+          }
+          break
+        case "d13":
+          if (window.Excavation) {
+            window.Excavation.destroy()
+            window.Excavation = null
+          } else {
+            window.Excavation = sgworld.Analysis.create3DViewshedPoss({
+              height: 1.8,
+            })
+          }
+          break
+        case "d14":
+          if (window.Excavation) {
+            window.Excavation.close()
+            window.Excavation = null
+          } else {
+            var SYFX_visible_color = { r: 0.0, g: 1.0, b: 0.0 },
+              SYFX_notVisible_color = { r: 1.0, g: 0.0, b: 0.0 }
+            window.Excavation = sgworld.Analysis.create3DViewshed({
+              name: "Viewshed On Frederick",
+              height: 1.8,
+              color: {
+                Back: SYFX_notVisible_color,
+                Fore: SYFX_visible_color,
+              },
+              isSpherical: "spherical",
+            })
+          }
+
           break
       }
     },
@@ -1229,6 +1264,19 @@
     background: url("../../assets/img/synthesis/鐭╁舰 14 鎷疯礉 7.png") no-repeat
       center;
   }
+  // 閫氳鍒嗘瀽銆佽鍩熷垎鏋� 棰勭暀
+  .twoMenu_imge412 {
+    background: url("../../assets/img/synthesis/鐭╁舰 14 鎷疯礉 7.png") no-repeat
+      center;
+  }
+  .twoMenu_imge413 {
+    background: url("../../assets/img/synthesis/鐭╁舰 14 鎷疯礉 7.png") no-repeat
+      center;
+  }
+  .twoMenu_imge414 {
+    background: url("../../assets/img/synthesis/鐭╁舰 14 鎷疯礉 7.png") no-repeat
+      center;
+  }
   //鏌ヨ
   .twoMenu_imge51 {
     background: url("../../assets/img/synthesis/鍥惧眰 23.png") no-repeat center;

--
Gitblit v1.9.3