Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef mitkNodeSelectionService_h
14 #define mitkNodeSelectionService_h
19 #include <unordered_map>
33 bool SendSelection(
const std::string& context,
const std::vector<mitk::DataNode::Pointer>& selection)
const override;
36 std::unordered_multimap<std::string, INodeSelectionListener*> m_Listeners;
37 mutable std::mutex m_Mutex;
bool SendSelection(const std::string &context, const std::vector< mitk::DataNode::Pointer > &selection) const override
Send a selection to all listeners of a certain selection context.
Interface for listening to node selections sent via the INodeSelectionService.
bool RemoveListener(const std::string &context, const INodeSelectionListener *listener) override
Remove a listener from selections of a certain selection context.
~NodeSelectionService() override
Find image slices visible on a given plane.
bool AddListener(const std::string &context, INodeSelectionListener *listener) override
Add a listener for selections in a certain selection context.
A simple messaging service for sending and receiving data node selections for certain contexts.