| 432 | } |
| 433 | |
| 434 | void RenderWindowBridge::SetSelectedPosition(const Point3D& pos) const |
| 435 | { |
| 436 | PositionSetter setter; |
| 437 | StorageThreadDispatcherBase::Pointer dispatcher; |
| 438 | { |
| 439 | std::lock_guard<std::mutex> lock(m_Mutex); |
| 440 | setter = m_PositionSetter; |
| 441 | dispatcher = m_Dispatcher.Lock(); |
| 442 | } |
| 443 | |
| 444 | if (!setter) |
| 445 | throw std::runtime_error("No position setter is connected to the RenderWindowBridge"); |
| 446 | |
| 447 | Dispatch(dispatcher, [&]() { setter(pos); }); |
| 448 | } |
| 449 | |
| 450 | std::vector<EditorInfo> RenderWindowBridge::ListEditors() const |
| 451 | { |
no test coverage detected