MCPcopy Create free account
hub / github.com/MITK/MITK / SetMxNSelectedPosition

Method SetMxNSelectedPosition

Modules/RESTAPI/src/mitkRenderWindowBridge.cpp:749–763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

747}
748
749void 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
765std::string RenderWindowBridge::GetMxNLayout() const
766{

Calls 2

DispatchFunction · 0.85
LockMethod · 0.45