|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
A simple messaging service for sending and receiving data node selections for certain contexts. More...
#include <mitkINodeSelectionService.h>

Public Member Functions | |
| virtual | ~INodeSelectionService () |
| Virtual destructor. More... | |
| virtual bool | AddListener (const std::string &context, INodeSelectionListener *listener)=0 |
| Add a listener for selections in a certain selection context. More... | |
| virtual bool | RemoveListener (const std::string &context, const INodeSelectionListener *listener)=0 |
| Remove a listener from selections of a certain selection context. More... | |
| virtual bool | RemoveListener (const INodeSelectionListener *listener)=0 |
| Remove a listener from selections of all selection contexts. More... | |
| virtual bool | SendSelection (const std::string &context, const std::vector< mitk::DataNode::Pointer > &selection) const =0 |
| Send a selection to all listeners of a certain selection context. More... | |
A simple messaging service for sending and receiving data node selections for certain contexts.
Definition at line 31 of file mitkINodeSelectionService.h.
|
virtual |
Virtual destructor.
|
pure virtual |
Add a listener for selections in a certain selection context.
A selection context is a non-empty, arbitrary and unique string that both sender and receiver agreed upon. A listener must not be nullptr and can be added only once.
| context | A non-empty, arbitrary and unique string that both sender and receiver agreed upon. |
| listener | A valid pointer to a class implementing the listener interface. |
true if the listener was successfully added or already has been added before, or false otherwise. Implemented in mitk::NodeSelectionService.
|
pure virtual |
Remove a listener from selections of all selection contexts.
| listener | A pointer to an already added listener. |
true if the listener was actually found, or false otherwise.Implemented in mitk::NodeSelectionService.
|
pure virtual |
Remove a listener from selections of a certain selection context.
| context | A non-empty, arbitrary and unique string that both sender and receiver agreed upon. |
| listener | A pointer to an already added listener. |
true if the listener was actually found for the given context, or false otherwise.Implemented in mitk::NodeSelectionService.
|
pure virtual |
Send a selection to all listeners of a certain selection context.
| context | A non-empty, arbitrary and unique string that both sender and receiver agreed upon. |
| selection | A selection of potentially multiple data nodes to send to any listeners for the given selection context. |
Implemented in mitk::NodeSelectionService.