| | |
| | | |
| | | #region 强调构件 |
| | | |
| | | private const string _blinkColor = "#32D3A6";//强调构件颜色 |
| | | private const double _blinkTransparency = 0.8d; //强调构件透明度 |
| | | |
| | | /// <summary> |
| | | /// 设置强调构件 |
| | | /// </summary> |
| | | public async Task SetBlinkComponents(List<string> elementIds, string color, double transparency) |
| | | { |
| | | if (_bimfaceInteropContainer == null) |
| | | { |
| | | return; |
| | | } |
| | | await _bimfaceInteropContainer.SetBlinkComponents(elementIds, color, transparency); |
| | | await _bimfaceInteropContainer?.SetBlinkComponents(elementIds, color, transparency); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 设置强调构件 |
| | | /// </summary> |
| | | public async Task SetBlinkComponents(List<string> elementIds) |
| | | { |
| | | await _bimfaceInteropContainer?.SetBlinkComponents(elementIds, _blinkColor, _blinkTransparency); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 清除强调构件 |
| | | /// </summary> |
| | | public async Task SetBlinkComponents() |
| | | public async Task ClearBlinkComponents() |
| | | { |
| | | if (_bimfaceInteropContainer == null) |
| | | { |
| | | return; |
| | | } |
| | | await _bimfaceInteropContainer.ClearBlinkComponents(); |
| | | await _bimfaceInteropContainer?.ClearBlinkComponents(); |
| | | } |
| | | |
| | | #endregion |
| | |
| | | /// <summary> |
| | | /// 恢复构件颜色 |
| | | /// </summary> |
| | | public async Task SetBlinkComponents(List<string> elementIds) |
| | | public async Task RestoreComponentsColor(List<string> elementIds) |
| | | { |
| | | if (_bimfaceInteropContainer == null) |
| | | { |