From 5ca6c8792edf5f2cfe5a59ff61139a9dc20aace2 Mon Sep 17 00:00:00 2001
From: wulitaotao <547306458@qq.com>
Date: 星期四, 09 二月 2023 14:23:15 +0800
Subject: [PATCH] 合并

---
 src/views/Synthesis/LeftMenu.vue |  135 +++++++++++++++++++++++++++++++++++++++------
 1 files changed, 117 insertions(+), 18 deletions(-)

diff --git a/src/views/Synthesis/LeftMenu.vue b/src/views/Synthesis/LeftMenu.vue
index d2d2206..7074bfa 100644
--- a/src/views/Synthesis/LeftMenu.vue
+++ b/src/views/Synthesis/LeftMenu.vue
@@ -195,6 +195,26 @@
             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",
+          },
+
+
         ],
         [
           {
@@ -260,6 +280,12 @@
             label: 'synthesis.synthobj.m2',
             name: '绌洪棿璺濈',
             css: 'twoMenu_imge76',
+          },
+          {
+            id: "j7",
+            label: "synthesis.synthobj.m9",
+            name: "楂樼▼閲忔祴",
+            css: "twoMenu_imge77",
           },
         ],
         [
@@ -573,26 +599,17 @@
             }
           );
           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);
+        // case 'j3':
+
+        //   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;
+        //   break;
         case 'j2':
           var measure = window.sgworld.Command.execute(
             0,
@@ -664,6 +681,18 @@
             }
           );
           break;
+          case "j7":
+          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)
+            }
+          )
+          break
       }
     },
     openMeasureResultInfo(name, data) {
@@ -867,6 +896,48 @@
             );
           }
           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
+
+
       }
     },
     setclippingModel() {
@@ -1094,7 +1165,8 @@
 .menu_Box {
   width: 100%;
   height: 100%;
-
+  background: #303030;
+  color: white;
   margin: 0;
   padding: 0;
   overflow-y: auto;
@@ -1233,6 +1305,23 @@
     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;
@@ -1269,6 +1358,15 @@
   .twoMenu_imge76 {
     background: url("../../assets/img/synthesis/绌洪棿娴嬭窛.png") no-repeat center;
   }
+
+    // 楂樺眰閲忔祴鍥炬爣
+    .twoMenu_imge77 {
+    background: url("../../assets/img/synthesis/鍥惧眰 31 鎷疯礉.png") no-repeat
+      center;
+  }
+
+
+
   //鏍囩粯
   .twoMenu_imge81 {
     background: url("../../assets/img/synthesis/妞渾 5 鎷疯礉 3.png") no-repeat
@@ -1298,5 +1396,6 @@
   .twoMenu_imge88 {
     background: url("../../assets/img/synthesis/鍥惧眰 32.png") no-repeat center;
   }
+
 }
 </style>

--
Gitblit v1.9.3