From 5610ef481946ff15d856f65e08b3f25aeaf3e269 Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期二, 24 九月 2024 10:54:15 +0800
Subject: [PATCH] 新增曲线设置界面

---
 WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-scheme/02-asset-mgr/XhsProjectAssetsBimfaceCtrl.cs |   31 ++++++++++++++++++++++++++++---
 1 files changed, 28 insertions(+), 3 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-scheme/02-asset-mgr/XhsProjectAssetsBimfaceCtrl.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-scheme/02-asset-mgr/XhsProjectAssetsBimfaceCtrl.cs
index 3050540..4e80934 100644
--- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-scheme/02-asset-mgr/XhsProjectAssetsBimfaceCtrl.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-scheme/02-asset-mgr/XhsProjectAssetsBimfaceCtrl.cs
@@ -25,20 +25,20 @@
         //椤甸潰鍔犺浇瀹屾垚鍚庤Е鍙�
         private async void BimfaceInterop3dContainer1_LoadCompletedEvent()
         {
-            var projectSite = await new BLL.XhsProjectSiteStd().GetDefaultByProjectID(_projectId);
+            var projectSite = await BLLFactory<HStation.BLL.XhsProjectSite>.Instance.GetDefaultByProjectID(_projectId);
             if (projectSite == null)
             {
                 return;
             }
 
-            var relation = await new Yw.BLL.BimfaceFileRelationStd()
+            var relation = await BLLFactory<Yw.BLL.BimfaceFileRelation>.Instance
                 .GetDefaultByObjectTypeAndObjectIDOfPurpose(HStation.Xhs.DataType.XhsProjectSite, projectSite.ID, Yw.Bimface.Purpose.Simulation);
             if (relation == null)
             {
                 return;
             }
 
-            var bimfaceFile = await new Yw.BLL.BimfaceFileStd().GetByID(relation.BimfaceFileID);
+            var bimfaceFile = await BLLFactory<Yw.BLL.BimfaceFile>.Instance.GetByID(relation.BimfaceFileID);
             if (bimfaceFile == null)
             {
                 return;
@@ -63,5 +63,30 @@
             this.ClickParterEvent?.Invoke(obj.ObjectId);
         }
 
+        public async Task HideComponents(List<string> elementIds)
+        {
+            await this.bimfaceInterop3dContainer1.HideComponents(elementIds);
+        }
+
+        public async Task ShowComponents(List<string> elementIds)
+        {
+            await this.bimfaceInterop3dContainer1.ShowComponents(elementIds);
+        }
+
+        public async Task ShowAllComponents()
+        {
+            await this.bimfaceInterop3dContainer1.ShowAllComponents();
+        }
+
+        public async Task TranslucentComponents(List<string> elementIds)
+        {
+            await this.bimfaceInterop3dContainer1.TranslucentComponents(elementIds);
+        }
+
+        public async Task OpaqueComponents(List<string> elementIds)
+        {
+            await this.bimfaceInterop3dContainer1.OpaqueComponents(elementIds);
+        }
+
     }
 }

--
Gitblit v1.9.3