Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitk::INodeSelectionListener Class Referenceabstract

Interface for listening to node selections sent via the INodeSelectionService. More...

#include <mitkINodeSelectionListener.h>

Inheritance diagram for mitk::INodeSelectionListener:

Public Member Functions

virtual void OnSelectionReceived (const std::string &context, const std::vector< mitk::DataNode::Pointer > &selection)=0
 Callback method for received selections. More...
 

Detailed Description

Interface for listening to node selections sent via the INodeSelectionService.

To receive node selections, listeners must first subscribe via INodeSelectionService::AddListener().

See also
INodeSelectionService

Definition at line 26 of file mitkINodeSelectionListener.h.

Member Function Documentation

◆ OnSelectionReceived()

virtual void mitk::INodeSelectionListener::OnSelectionReceived ( const std::string &  context,
const std::vector< mitk::DataNode::Pointer > &  selection 
)
pure virtual

Callback method for received selections.

Parameters
contextAn arbitrary string that sender and receiver agreed upon to establish a connection.
selectionThe sent selection of potentially multiple data nodes.

Implemented in QmitkAbstractNodeSelectionWidget.


The documentation for this class was generated from the following file: