Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
berryShowInContext.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 
13 #include "berryShowInContext.h"
14 
15 #include "berryISelection.h"
16 
17 namespace berry {
18 
20  : input(input)
21  , selection(selection)
22 {
23 }
24 
26 {
27  return input;
28 }
29 
31 {
32  return selection;
33 }
34 
36 {
37  this->input = input;
38 }
39 
41 {
42  this->selection = selection;
43 }
44 
45 }
void SetSelection(const SmartPointer< const ISelection > &selection)
SmartPointer< const ISelection > GetSelection() const
void SetInput(const Object::Pointer &input)
Object::Pointer GetInput() const
ShowInContext(const Object::Pointer &input, const SmartPointer< const ISelection > &selection)