| | |
| | | /// </summary> |
| | | public async Task TranslucentComponents(List<string> elementIds) |
| | | { |
| | | if (_bimfaceInteropContainer == null) |
| | | { |
| | | return; |
| | | } |
| | | await _bimfaceInteropContainer.TranslucentComponents(elementIds); |
| | | await _bimfaceInteropContainer?.TranslucentComponents(elementIds); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | public async Task OpaqueComponents(List<string> elementIds) |
| | | { |
| | | if (_bimfaceInteropContainer == null) |
| | | { |
| | | return; |
| | | } |
| | | await _bimfaceInteropContainer.OpaqueComponents(elementIds); |
| | | await _bimfaceInteropContainer?.OpaqueComponents(elementIds); |
| | | } |
| | | |
| | | #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 |