Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryShowInContext.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 
17 #include "berryShowInContext.h"
18 
19 #include "berryISelection.h"
20 
21 namespace berry {
22 
23 ShowInContext::ShowInContext(const Object::Pointer& input, const SmartPointer<const ISelection>& selection)
24  : input(input)
25  , selection(selection)
26 {
27 }
28 
29 Object::Pointer ShowInContext::GetInput() const
30 {
31  return input;
32 }
33 
35 {
36  return selection;
37 }
38 
40 {
41  this->input = input;
42 }
43 
45 {
46  this->selection = selection;
47 }
48 
49 }
SmartPointer< const ISelection > GetSelection() const
Implements transparent reference counting.
void SetSelection(const SmartPointer< const ISelection > &selection)
berry::SmartPointer< Self > Pointer
Definition: berryObject.h:88
void SetInput(const Object::Pointer &input)