| | |
| | | using DevExpress.Xpo.Helpers; |
| | | using Yw.WinFrmUI.Bimface; |
| | | using Yw.WinFrmUI.Bimface; |
| | | |
| | | namespace HStation.WinFrmUI |
| | | { |
| | |
| | | /// <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> |
| | | public async Task OverrideComponentsColor(List<string> elementIds, string color, double transparency) |
| | | { |
| | | if (_bimfaceInteropContainer == null) |
| | | await _bimfaceInteropContainer?.OverrideComponentsColor(elementIds, color, transparency); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 设置强调构件 |
| | | /// </summary> |
| | | public async Task OverrideComponentsColor(string elementId, string color, double transparency) |
| | | { |
| | | if (string.IsNullOrEmpty(elementId)) |
| | | { |
| | | return; |
| | | } |
| | | await _bimfaceInteropContainer.OverrideComponentsColor(elementIds, color, transparency); |
| | | await _bimfaceInteropContainer.OverrideComponentsColor(new List<string>() { elementId }, color, transparency); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | public async Task RestoreComponentsColor(List<string> elementIds) |
| | | { |
| | | if (_bimfaceInteropContainer == null) |
| | | await _bimfaceInteropContainer?.RestoreComponentsColor(elementIds); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 恢复构件颜色 |
| | | /// </summary> |
| | | public async Task RestoreComponentsColor(string elementId) |
| | | { |
| | | if (string.IsNullOrEmpty(elementId)) |
| | | { |
| | | return; |
| | | } |
| | | await _bimfaceInteropContainer.RestoreComponentsColor(elementIds); |
| | | await _bimfaceInteropContainer?.RestoreComponentsColor(new List<string>() { elementId }); |
| | | } |
| | | |
| | | #endregion |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 更新业务标注引线标签 |
| | | /// </summary> |
| | | public async Task UpdateLogicMarkLeadLabel(LogicMarkLeadLabel obj) |
| | | { |
| | | await _bimfaceInteropContainer?.UpdateLogicMarkLeadLabel(obj); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 更新业务标注引线标签 |
| | | /// </summary> |
| | | public async Task UpdateLogicMarkLeadLabels(List<LogicMarkLeadLabel> obj) |
| | | { |
| | | await _bimfaceInteropContainer?.UpdateLogicMarkLeadLabels(obj); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 清除业务标注引线标签 |
| | | /// </summary> |
| | | public async Task ClearLogicMarkLeadLabels() |
| | |
| | | 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> |
| | |
| | | |
| | | #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 |
| | | |
| | | } |
| | | } |