Orfeo Toolbox  3.16
itkPathToPathFilter.txx
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: $RCSfile: itkPathToPathFilter.txx,v $
5  Language: C++
6  Date: $Date: 2009-02-19 19:41:23 $
7  Version: $Revision: 1.5 $
8 
9  Copyright (c) Insight Software Consortium. All rights reserved.
10  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11 
12  This software is distributed WITHOUT ANY WARRANTY; without even
13  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  PURPOSE. See the above copyright notices for more information.
15 
16 =========================================================================*/
17 #ifndef __itkPathToPathFilter_txx
18 #define __itkPathToPathFilter_txx
19 
20 #include "itkPathToPathFilter.h"
21 
22 namespace itk
23 {
24 
28 template <class TInputPath, class TOutputPath>
31 {
32  // Let the superclass do everything
33 }
34 
38 template <class TInputPath, class TOutputPath>
39 void
42 {
43  // Process object is not const-correct so the const_cast is required here
45  const_cast< InputPathType * >( path ) );
46 }
47 
48 
52 template <class TInputPath, class TOutputPath>
53 void
55 ::SetInput( unsigned int index, const TInputPath * path )
56 {
57  // Process object is not const-correct so the const_cast is required here
58  this->ProcessObject::SetNthInput(index,
59  const_cast< TInputPath *>( path ) );
60 }
61 
65 template <class TInputPath, class TOutputPath>
68 ::GetInput(void)
69 {
70  if (this->GetNumberOfInputs() < 1)
71  {
72  return 0;
73  }
74 
75  return static_cast<const TInputPath * >
76  (this->ProcessObject::GetInput(0) );
77 }
78 
82 template <class TInputPath, class TOutputPath>
85 ::GetInput(unsigned int idx)
86 {
87  return static_cast< const TInputPath * >
88  (this->ProcessObject::GetInput(idx));
89 }
90 
94 template <class TInputPath, class TOutputPath>
95 void
98 {
99  // ProcessObject::GenerateInputRequestedRegion() will (for each input) call
100  // Path::SetRequestedRegionToLargestPossibleRegion(), which is empty.
101  Superclass::GenerateInputRequestedRegion();
102 }
103 
107 template <class TInputPath, class TOutputPath>
108 void
110 ::PrintSelf(std::ostream& os, Indent indent) const
111 {
112  Superclass::PrintSelf(os, indent);
113 }
114 
115 
116 } // end namespace itk
117 
118 #endif

Generated at Sat Feb 2 2013 23:59:04 for Orfeo Toolbox with doxygen 1.8.1.1