Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryISelectionChangedListener.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
19 
20 namespace berry {
21 
22 void
25 {
26  if (listener == nullptr) return;
27 
28  this->selectionChanged += Delegate(listener, &ISelectionChangedListener::SelectionChanged);
29 }
30 
31 void
34 {
35  if (listener == nullptr) return;
36 
37  this->selectionChanged -= Delegate(listener, &ISelectionChangedListener::SelectionChanged);
38 }
39 
41 {
42 }
43 
44 }
void RemoveListener(ISelectionChangedListener *listener)
virtual void SelectionChanged(const SelectionChangedEvent::Pointer &event)=0
void AddListener(ISelectionChangedListener *listener)