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

Method GetStdMultiSelectedSlice

Modules/RESTAPI/src/mitkRenderWindowBridge.cpp:564–581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562}
563
564SliceState RenderWindowBridge::GetStdMultiSelectedSlice(const std::string& windowName) const
565{
566 StdMultiSelectedSliceGetter getter;
567 StorageThreadDispatcherBase::Pointer dispatcher;
568 {
569 std::lock_guard<std::mutex> lock(m_Mutex);
570 getter = m_StdMultiSelectedSliceGetter;
571 dispatcher = m_Dispatcher.Lock();
572 }
573
574 if (!getter)
575 throw std::runtime_error("No StdMulti selected-slice getter is connected to the RenderWindowBridge");
576
577 SliceState result;
578 result.position.Fill(0.0);
579 Dispatch(dispatcher, [&]() { result = getter(windowName); });
580 return result;
581}
582
583void RenderWindowBridge::SetStdMultiSelectedSliceStep(const std::string& windowName, unsigned int step) const
584{

Calls 3

DispatchFunction · 0.85
LockMethod · 0.45
FillMethod · 0.45