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

Method SetSelectedPosition

Modules/RESTAPI/src/mitkRenderWindowBridge.cpp:434–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432}
433
434void RenderWindowBridge::SetSelectedPosition(const Point3D& pos) const
435{
436 PositionSetter setter;
437 StorageThreadDispatcherBase::Pointer dispatcher;
438 {
439 std::lock_guard<std::mutex> lock(m_Mutex);
440 setter = m_PositionSetter;
441 dispatcher = m_Dispatcher.Lock();
442 }
443
444 if (!setter)
445 throw std::runtime_error("No position setter is connected to the RenderWindowBridge");
446
447 Dispatch(dispatcher, [&]() { setter(pos); });
448}
449
450std::vector<EditorInfo> RenderWindowBridge::ListEditors() const
451{

Callers 1

Calls 2

DispatchFunction · 0.85
LockMethod · 0.45

Tested by

no test coverage detected