Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
berrySelectionChangedEvent.cpp
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
15 
16 
17 namespace berry
18 {
19 
22 {
23  poco_assert(source.IsNotNull());
24  poco_assert(selection.IsNotNull());
25 
26  this->source = source;
27  this->selection = selection;
28 }
29 
31 {
32  return source;
33 }
34 
36 {
37  return selection;
38 }
39 
41 {
42  return this->GetSource();
43 }
44 
45 }
SmartPointer< ISelectionProvider > GetSource() const
ISelection::ConstPointer GetSelection() const
SelectionChangedEvent(SmartPointer< ISelectionProvider > source, ISelection::ConstPointer selection)
SmartPointer< ISelectionProvider > GetSelectionProvider() const