| 747 | } |
| 748 | |
| 749 | void RenderWindowBridge::SetMxNSelectedPosition(const std::string& windowId, const Point3D& position) const |
| 750 | { |
| 751 | MxNSelectedPositionSetter setter; |
| 752 | StorageThreadDispatcherBase::Pointer dispatcher; |
| 753 | { |
| 754 | std::lock_guard<std::mutex> lock(m_Mutex); |
| 755 | setter = m_MxNSelectedPositionSetter; |
| 756 | dispatcher = m_Dispatcher.Lock(); |
| 757 | } |
| 758 | |
| 759 | if (!setter) |
| 760 | throw std::runtime_error("No MxN selected-position setter is connected to the RenderWindowBridge"); |
| 761 | |
| 762 | Dispatch(dispatcher, [&]() { setter(windowId, position); }); |
| 763 | } |
| 764 | |
| 765 | std::string RenderWindowBridge::GetMxNLayout() const |
| 766 | { |