Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 (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 
14 
15 namespace mitk{
16 
18  {
19  }
20 
22  {
23  }
24 
26  {
27  // Process object is not const-correct so the const_cast is required here
28  this->ProcessObject::SetNthInput(0, const_cast<NavigationData*>(nd));
30  }
31 
33  {
34  // Process object is not const-correct so the const_cast is required here
35  this->ProcessObject::SetNthInput(idx, const_cast<NavigationData*>(nd));
37  }
38 
40  {
41  if (this->GetNumberOfInputs() < 1)
42  return nullptr;
43 
44  return static_cast<const NavigationData*>(this->ProcessObject::GetInput(0));
45  }
46 
48  {
49  if (this->GetNumberOfInputs() < 1)
50  return nullptr;
51 
52  return static_cast<const NavigationData*>(this->ProcessObject::GetInput(idx));
53  }
54 
55 } //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.