Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berrySelectionChangedEvent.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 
21 namespace berry
22 {
23 
26 {
27  poco_assert(source.IsNotNull());
28  poco_assert(selection.IsNotNull());
29 
30  this->source = source;
31  this->selection = selection;
32 }
33 
35 {
36  return source;
37 }
38 
40 {
41  return selection;
42 }
43 
45 {
46  return this->GetSource();
47 }
48 
49 }
ISelection::ConstPointer GetSelection() const
SmartPointer< ISelectionProvider > GetSource() const
SmartPointer< ISelectionProvider > GetSelectionProvider() const
SelectionChangedEvent(SmartPointer< ISelectionProvider > source, ISelection::ConstPointer selection)