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

Method SetMxNLayout

Modules/RESTAPI/src/mitkRenderWindowBridge.cpp:783–799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

781}
782
783std::string RenderWindowBridge::SetMxNLayout(const std::string& layoutJson) const
784{
785 MxNLayoutSetter setter;
786 StorageThreadDispatcherBase::Pointer dispatcher;
787 {
788 std::lock_guard<std::mutex> lock(m_Mutex);
789 setter = m_MxNLayoutSetter;
790 dispatcher = m_Dispatcher.Lock();
791 }
792
793 if (!setter)
794 throw std::runtime_error("No MxN layout setter is connected to the RenderWindowBridge");
795
796 std::string result;
797 Dispatch(dispatcher, [&]() { result = setter(layoutJson); });
798 return result;
799}
800
801}

Calls 2

DispatchFunction · 0.85
LockMethod · 0.45