13 #ifndef mitkINodeSelectionService_h
14 #define mitkINodeSelectionService_h
89 virtual bool SendSelection(
const std::string& context,
const std::vector<mitk::DataNode::Pointer>& selection)
const = 0;
Interface for listening to node selections sent via the INodeSelectionService.
A simple messaging service for sending and receiving data node selections for certain contexts.
virtual bool RemoveListener(const std::string &context, const INodeSelectionListener *listener)=0
Remove a listener from selections of a certain selection context.
virtual bool AddListener(const std::string &context, INodeSelectionListener *listener)=0
Add a listener for selections in a certain selection context.
virtual bool RemoveListener(const INodeSelectionListener *listener)=0
Remove a listener from selections of all selection contexts.
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.
virtual ~INodeSelectionService()
#define MITK_DECLARE_SERVICE_INTERFACE(IFace, IId)
Find image slices visible on a given plane.