| | |
| | | /// <summary> |
| | | /// 水力点击事件(包含左键和右键) |
| | | /// </summary> |
| | | public event Action<Yw.Model.HydroParterInfo> HydroClickEvent; |
| | | public event Action<Yw.Model.HydroVisualInfo> HydroClickEvent; |
| | | /// <summary> |
| | | /// 水力点击事件(仅左键) |
| | | /// </summary> |
| | | public event Action<Yw.Model.HydroParterInfo> HydroMouseLeftClickEvent; |
| | | public event Action<Yw.Model.HydroVisualInfo> HydroMouseLeftClickEvent; |
| | | /// <summary> |
| | | /// 加载完成事件 |
| | | /// </summary> |
| | |
| | | { |
| | | return; |
| | | } |
| | | var allParterList = hydroInfo.GetAllParters(); |
| | | var allParterList = hydroInfo.GetAllVisuals(); |
| | | var parter = allParterList?.Find(x => x.Code == obj.ObjectId); |
| | | this.HydroClickEvent.Invoke(parter); |
| | | } |
| | |
| | | { |
| | | return; |
| | | } |
| | | var allParterList = hydroInfo.GetAllParters(); |
| | | var allParterList = hydroInfo.GetAllVisuals(); |
| | | var parter = allParterList?.Find(x => x.Code == obj.ObjectId); |
| | | this.HydroMouseLeftClickEvent.Invoke(parter); |
| | | } |
| | |
| | | /// <summary> |
| | | /// 显示构件 |
| | | /// </summary> |
| | | /// <param name="elementIds">构件id列表</param> |
| | | /// <returns></returns> |
| | | public async Task ShowComponents(List<string> elementIds) |
| | | { |
| | | if (_bimfaceInteropContainer == null) |
| | |
| | | /// <summary> |
| | | /// 隐藏构件 |
| | | /// </summary> |
| | | /// <param name="elementIds">构件id列表</param> |
| | | /// <returns></returns> |
| | | public async Task HideComponents(List<string> elementIds) |
| | | { |
| | | if (_bimfaceInteropContainer == null) |
| | |
| | | /// <summary> |
| | | /// 显示所有构件 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public async Task ShowAllComponents() |
| | | { |
| | | if (_bimfaceInteropContainer == null) |
| | |
| | | /// <summary> |
| | | /// 缩放至选择构件 |
| | | /// </summary> |
| | | public async Task ZoomAndSelectComponents(List<string> elementIds) |
| | | public async Task ZoomAndSelectComponent(string elementId) |
| | | { |
| | | if (_bimfaceInteropContainer == null) |
| | | if (string.IsNullOrEmpty(elementId)) |
| | | { |
| | | return; |
| | | } |
| | | await _bimfaceInteropContainer.ZoomAndSelectComponents(new List<string>() { elementId }); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 缩放至选择构件 |
| | | /// </summary> |
| | | public async Task ZoomAndSelectComponents(List<string> elementIds) |
| | | { |
| | | await _bimfaceInteropContainer.ZoomAndSelectComponents(elementIds); |
| | | } |
| | | |
| | |
| | | #region 业务水流动画 |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// 加载水流动画 |
| | | /// </summary> |
| | | public async Task LoadAllFlowMaterialList(List<LogicFlowEffect> obj) |
| | | public async Task LoadFlowEffect(LogicFlowEffect obj) |
| | | { |
| | | await _bimfaceInteropContainer?.LoadAllFlowMaterialList(obj); |
| | | await _bimfaceInteropContainer?.LoadFlowEffect(obj); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 加载水流动画 |
| | | /// </summary> |
| | | public async Task LoadFlowEffect(List<LogicFlowEffect> obj) |
| | | { |
| | | await _bimfaceInteropContainer?.LoadFlowEffectList(obj); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 更新水流动画 |
| | | /// </summary> |
| | | public async Task UpdateFlowEffect(LogicFlowEffect obj) |
| | | { |
| | | await _bimfaceInteropContainer?.UpdateFlowEffect(obj); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 更新水流动画 |
| | | /// </summary> |
| | | public async Task UpdateFlowEffectList(List<LogicFlowEffect> obj) |
| | | { |
| | | await _bimfaceInteropContainer?.UpdateFlowEffectList(obj); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 卸载水流动画 |
| | | /// </summary> |
| | | public async Task UnloadFlowEffect() |
| | | { |
| | | await _bimfaceInteropContainer?.UnloadFlowEffect(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 通过Id卸载水流动画 |
| | | /// </summary> |
| | | public async Task UnloadFlowEffectById(string Id) |
| | | { |
| | | await _bimfaceInteropContainer?.UnloadFlowEffectById(Id); |
| | | } |
| | | |
| | | #endregion |
| | |
| | | |
| | | #endregion |
| | | |
| | | #region 业务监测点 |
| | | |
| | | /// <summary> |
| | | /// 设置业务监测点 |
| | | /// </summary> |
| | | public async Task SetLogicMonitors(List<LogicMonitor> obj) |
| | | { |
| | | await _bimfaceInteropContainer?.SetLogicMonitors(obj); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 清除业务监测点 |
| | | /// </summary> |
| | | public async Task ClearLogicMonitors() |
| | | { |
| | | await _bimfaceInteropContainer?.ClearLogicMonitors(); |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | } |
| | | } |