From 03da721341232b6054d5d25f94a3bd1014771805 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期一, 23 九月 2024 13:19:01 +0800 Subject: [PATCH] 增加bimface 定位 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/02-bimface/XhsProjectSimulationBimfaceCtrl.cs | 84 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 83 insertions(+), 1 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/02-bimface/XhsProjectSimulationBimfaceCtrl.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/02-bimface/XhsProjectSimulationBimfaceCtrl.cs index e02e10b..c200425 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/02-bimface/XhsProjectSimulationBimfaceCtrl.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/04-simulation/02-bimface/XhsProjectSimulationBimfaceCtrl.cs @@ -1,4 +1,7 @@ -锘縩amespace HStation.WinFrmUI +锘縰sing DevExpress.Office.Utils; +using DevExpress.Xpo.Helpers; + +namespace HStation.WinFrmUI { public partial class XhsProjectSimulationBimfaceCtrl : DevExpress.XtraEditors.XtraUserControl { @@ -75,6 +78,8 @@ this.ClickParterEvent?.Invoke(obj.ObjectId); } + #region 鏋勪欢鐨勬樉绀轰笌闅愯棌 + /// <summary> /// 鏄剧ず鏋勪欢 /// </summary> @@ -104,6 +109,10 @@ await this.bimfaceInterop3dContainer1.ShowAllComponents(); } + #endregion + + #region 鏋勪欢鐨勫崐閫忔槑涓庡彇娑� + /// <summary> /// 鍗婇�忔槑鏋勪欢 /// </summary> @@ -124,5 +133,78 @@ await this.bimfaceInterop3dContainer1.OpaqueComponents(elementIds); } + #endregion + + #region 鏋勪欢鐨勯�変腑涓庡彇娑� + + /// <summary> + /// 璁剧疆閫夋嫨鐨勬瀯浠� + /// </summary> + /// <returns></returns> + public async Task SetSelectedComponents(List<string> elements) + { + await this.bimfaceInterop3dContainer1.SetSelectedComponents(elements); + } + + /// <summary> + /// 澧炲姞閫夋嫨鐨勬瀯浠� + /// </summary> + /// <param name="elements"></param> + /// <returns></returns> + public async Task AddSelectedComponents(List<string> elements) + { + await this.bimfaceInterop3dContainer1.AddSelectedComponents(elements); + } + + /// <summary> + /// 绉婚櫎閫夋嫨鐨勬瀯浠� + /// </summary> + /// <param name="elements"></param> + /// <returns></returns> + public async Task RemoveSelectedComponents(List<string> elements) + { + await this.bimfaceInterop3dContainer1.RemoveSelectedComponents(elements); + } + + /// <summary> + /// 娓呴櫎閫夋嫨鐨勬瀯浠� + /// </summary> + /// <param name="elements"></param> + /// <returns></returns> + public async Task ClearSelectedComponents() + { + await this.bimfaceInterop3dContainer1.ClearSelectedComponents(); + } + + #endregion + + #region 缂╂斁 + + /// <summary> + /// 缂╂斁鑷虫瀯浠� + /// </summary> + public async Task ZoomToComponent(string elementId) + { + await this.bimfaceInterop3dContainer1.ZoomToComponent(elementId); + } + + /// <summary> + /// 缂╂斁鑷抽�夋嫨鏋勪欢 + /// </summary> + public async Task ZoomToSelectedComponents() + { + await this.bimfaceInterop3dContainer1.ZoomToSelectedComponents(); + } + + /// <summary> + /// 缂╂斁鑷抽�夋嫨鏋勪欢 + /// </summary> + public async Task ZoomAndSelectComponents(List<string> elementIds) + { + await this.bimfaceInterop3dContainer1.ZoomAndSelectComponents(elementIds); + } + + #endregion + } } -- Gitblit v1.9.3