ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkPathToPathFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 {
36 template< typename TInputPath, typename TOutputPath >
37 class ITK_TEMPLATE_EXPORT PathToPathFilter:public PathSource< TOutputPath >
38 {
39 public:
40  ITK_DISALLOW_COPY_AND_ASSIGN(PathToPathFilter);
41 
47 
49  itkNewMacro(Self);
50 
52  itkTypeMacro(PathToPathFilter, PathSource);
53 
55  using InputPathType = TInputPath;
56  using InputPathPointer = typename InputPathType::Pointer;
57  using InputPathConstPointer = typename InputPathType::ConstPointer;
58 
60  using Superclass::SetInput;
61  virtual void SetInput(const InputPathType *path);
62 
63  virtual void SetInput(unsigned int, const TInputPath *path);
64 
65  const InputPathType * GetInput();
66 
67  const InputPathType * GetInput(unsigned int idx);
68 
69 protected:
71  ~PathToPathFilter() override = default;
72 
73  void PrintSelf(std::ostream & os, Indent indent) const override;
74 
82  void GenerateInputRequestedRegion() override;
83 };
84 } // end namespace itk
86 
87 #ifndef ITK_MANUAL_INSTANTIATION
88 #include "itkPathToPathFilter.hxx"
89 #endif
90 
91 #endif
Light weight base class for most itk classes.
Base class for all process objects that output path data.
Definition: itkPathSource.h:41
Base class for filters that take a path as input and produce a path as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:49