| 712 | } |
| 713 | |
| 714 | void RenderWindowBridge::SetMxNSelectedSliceStep(const std::string& windowId, unsigned int step) const |
| 715 | { |
| 716 | MxNSelectedSliceStepSetter setter; |
| 717 | StorageThreadDispatcherBase::Pointer dispatcher; |
| 718 | { |
| 719 | std::lock_guard<std::mutex> lock(m_Mutex); |
| 720 | setter = m_MxNSelectedSliceStepSetter; |
| 721 | dispatcher = m_Dispatcher.Lock(); |
| 722 | } |
| 723 | |
| 724 | if (!setter) |
| 725 | throw std::runtime_error("No MxN selected-slice step setter is connected to the RenderWindowBridge"); |
| 726 | |
| 727 | Dispatch(dispatcher, [&]() { setter(windowId, step); }); |
| 728 | } |
| 729 | |
| 730 | SelectedPositionInfo RenderWindowBridge::GetMxNSelectedPosition(const std::string& windowId) const |
| 731 | { |