| | |
| | | |
| | | namespace HStation.WinFrmUI |
| | | { |
| | | public partial class XhsProjectSimulationBimfaceCtrl : DevExpress.XtraEditors.XtraUserControl |
| | | public partial class XhsProjectSimulationBimfaceCtrl : DevExpress.XtraEditors.XtraUserControl, ISimulationFlowEffectView, ISimulationVisualVisibleView, ISimulationMonitorMarkerView, ISimulationCalcuResultLabelView, ISimulationMarkView, ISimulationGradingView |
| | | { |
| | | public XhsProjectSimulationBimfaceCtrl() |
| | | { |
| | |
| | | |
| | | #endregion |
| | | |
| | | #region 构件的半透明与取消 |
| | | #region 半透明 |
| | | |
| | | /// <summary> |
| | | /// 半透明构件 |
| | | /// 半透明 |
| | | /// </summary> |
| | | public async Task TranslucentComponents(List<string> elementIds) |
| | | public async Task TranslucentComponents(List<string> codes) |
| | | { |
| | | if (_bimfaceInteropContainer == null) |
| | | { |
| | | return; |
| | | } |
| | | await _bimfaceInteropContainer.TranslucentComponents(elementIds); |
| | | await _bimfaceInteropContainer?.TranslucentComponents(codes); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 取消构件半透明 |
| | | /// 取消半透明 |
| | | /// </summary> |
| | | public async Task OpaqueComponents(List<string> elementIds) |
| | | public async Task OpaqueComponents(List<string> codes) |
| | | { |
| | | if (_bimfaceInteropContainer == null) |
| | | { |
| | | return; |
| | | } |
| | | await _bimfaceInteropContainer.OpaqueComponents(elementIds); |
| | | await _bimfaceInteropContainer?.OpaqueComponents(codes); |
| | | } |
| | | |
| | | #endregion |
| | |
| | | |
| | | #endregion |
| | | |
| | | #region 缩放 |
| | | #region 缩放与选择 |
| | | |
| | | /// <summary> |
| | | /// 缩放至构件 |
| | | /// </summary> |
| | | public async Task ZoomToComponent(string elementId) |
| | | public async Task ZoomToComponent(string code) |
| | | { |
| | | if (_bimfaceInteropContainer == null) |
| | | { |
| | | return; |
| | | } |
| | | await _bimfaceInteropContainer.ZoomToComponent(elementId); |
| | | await _bimfaceInteropContainer?.ZoomToComponent(code); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | public async Task ZoomToSelectedComponents() |
| | | { |
| | | if (_bimfaceInteropContainer == null) |
| | | { |
| | | return; |
| | | } |
| | | await _bimfaceInteropContainer.ZoomToSelectedComponents(); |
| | | await _bimfaceInteropContainer?.ZoomToSelectedComponents(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 缩放至选择构件 |
| | | /// </summary> |
| | | public async Task ZoomAndSelectComponent(string elementId) |
| | | public async Task ZoomAndSelectComponent(string code) |
| | | { |
| | | if (string.IsNullOrEmpty(elementId)) |
| | | if (string.IsNullOrEmpty(code)) |
| | | { |
| | | return; |
| | | } |
| | | await _bimfaceInteropContainer.ZoomAndSelectComponents(new List<string>() { elementId }); |
| | | await _bimfaceInteropContainer?.ZoomAndSelectComponents(new List<string>() { code }); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 缩放至选择构件 |
| | | /// </summary> |
| | | public async Task ZoomAndSelectComponents(List<string> elementIds) |
| | | public async Task ZoomAndSelectComponents(List<string> codes) |
| | | { |
| | | await _bimfaceInteropContainer.ZoomAndSelectComponents(elementIds); |
| | | await _bimfaceInteropContainer?.ZoomAndSelectComponents(codes); |
| | | } |
| | | |
| | | #endregion |
| | |
| | | |
| | | #endregion |
| | | |
| | | #region 业务标注引线标签 |
| | | #region 模型标注 |
| | | |
| | | /// <summary> |
| | | /// 设置业务标注引线标签 |
| | |
| | | |
| | | #endregion |
| | | |
| | | #region 业务水流动画 |
| | | #region 水流动画 |
| | | |
| | | /// <summary> |
| | | /// 加载水流动画 |
| | |
| | | |
| | | #endregion |
| | | |
| | | #region 业务监测点 |
| | | #region 监测点标记 |
| | | |
| | | /// <summary> |
| | | /// 设置业务监测点 |
| | | /// </summary> |
| | | public async Task SetLogicMonitors(List<LogicMonitor> obj) |
| | | public async Task SetLogicMonitors(List<LogicMonitorMarker> obj) |
| | | { |
| | | await _bimfaceInteropContainer?.SetLogicMonitors(obj); |
| | | } |