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

Method SendSelection

Modules/Core/src/DataManagement/mitkNodeSelectionService.cpp:90–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90bool mitk::NodeSelectionService::SendSelection(const std::string& context, const std::vector<mitk::DataNode::Pointer>& selection) const
91{
92 if (context.empty())
93 return false;
94
95 std::scoped_lock lock(m_Mutex);
96
97 auto range = m_Listeners.equal_range(context);
98
99 for (auto it = range.first; it != range.second; ++it)
100 it->second->OnSelectionReceived(context, selection);
101
102 return true;
103}

Callers 1

LoadTaskMethod · 0.80

Calls 3

equal_rangeMethod · 0.80
OnSelectionReceivedMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected