Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkNavigationDataVisualizationFilter.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,
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 
18 
19 namespace mitk{
20 
22  {
23  }
24 
26  {
27  }
28 
30  {
31  // Process object is not const-correct so the const_cast is required here
32  this->ProcessObject::SetNthInput(0, const_cast<NavigationData*>(nd));
33  this->CreateOutputsForAllInputs();
34  }
35 
37  {
38  // Process object is not const-correct so the const_cast is required here
39  this->ProcessObject::SetNthInput(idx, const_cast<NavigationData*>(nd));
40  this->CreateOutputsForAllInputs();
41  }
42 
44  {
45  if (this->GetNumberOfInputs() < 1)
46  return NULL;
47 
48  return static_cast<const NavigationData*>(this->ProcessObject::GetInput(0));
49  }
50 
52  {
53  if (this->GetNumberOfInputs() < 1)
54  return NULL;
55 
56  return static_cast<const NavigationData*>(this->ProcessObject::GetInput(idx));
57  }
58 
59 } //namespace mitk
Navigation Data.
DataCollection - Class to facilitate loading/accessing structured data.
const NavigationData * GetInput(void)
Get the input of this filter.
virtual void SetInput(const NavigationData *nd)
Set the input of this filter.