ITK  5.2.0
Insight Toolkit
itkPathToPathFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkPathToPathFilter_h
19 #define itkPathToPathFilter_h
20 
21 #include "itkPathSource.h"
22 
23 namespace itk
24 {
37 template <typename TInputPath, typename TOutputPath>
38 class ITK_TEMPLATE_EXPORT PathToPathFilter : public PathSource<TOutputPath>
39 {
40 public:
41  ITK_DISALLOW_COPY_AND_MOVE(PathToPathFilter);
42 
48 
50  itkNewMacro(Self);
51 
53  itkTypeMacro(PathToPathFilter, PathSource);
54 
56  using InputPathType = TInputPath;
57  using InputPathPointer = typename InputPathType::Pointer;
58  using InputPathConstPointer = typename InputPathType::ConstPointer;
59 
61  using Superclass::SetInput;
62  virtual void
63  SetInput(const InputPathType * path);
64 
65  virtual void
66  SetInput(unsigned int, const TInputPath * path);
67 
68  const InputPathType *
69  GetInput();
70 
71  const InputPathType *
72  GetInput(unsigned int idx);
73 
74 protected:
76  ~PathToPathFilter() override = default;
77 
78  void
79  PrintSelf(std::ostream & os, Indent indent) const override;
80 
88  void
89  GenerateInputRequestedRegion() override;
90 };
91 } // end namespace itk
93 
94 #ifndef ITK_MANUAL_INSTANTIATION
95 # include "itkPathToPathFilter.hxx"
96 #endif
97 
98 #endif
itk::PathToPathFilter< TFourierSeriesPath, OrthogonallyCorrected2DParametricPath >::InputPathType
TFourierSeriesPath InputPathType
Definition: itkPathToPathFilter.h:56
itkPathSource.h
itk::PathSource
Base class for all process objects that output path data.
Definition: itkPathSource.h:42
itk::PathToPathFilter< TFourierSeriesPath, OrthogonallyCorrected2DParametricPath >::InputPathConstPointer
typename InputPathType::ConstPointer InputPathConstPointer
Definition: itkPathToPathFilter.h:58
itk::PathToPathFilter
Base class for filters that take a path as input and produce a path as output.
Definition: itkPathToPathFilter.h:38
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::PathToPathFilter< TFourierSeriesPath, OrthogonallyCorrected2DParametricPath >::InputPathPointer
typename InputPathType::Pointer InputPathPointer
Definition: itkPathToPathFilter.h:57
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24