ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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 * https://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
23namespace itk
24{
35
36template <typename TInputPath, typename TOutputPath>
37class ITK_TEMPLATE_EXPORT PathToPathFilter : public PathSource<TOutputPath>
38{
39public:
40 ITK_DISALLOW_COPY_AND_MOVE(PathToPathFilter);
41
47
49 itkNewMacro(Self);
50
52 itkOverrideGetNameOfClassMacro(PathToPathFilter);
53
55 using InputPathType = TInputPath;
56 using InputPathPointer = typename InputPathType::Pointer;
57 using InputPathConstPointer = typename InputPathType::ConstPointer;
58
61 virtual void
62 SetInput(const InputPathType * path);
63
64 virtual void
65 SetInput(unsigned int, const TInputPath * path);
66
67 const InputPathType *
69
70 const InputPathType *
71 GetInput(unsigned int idx);
72
73protected:
74 PathToPathFilter() = default;
75 ~PathToPathFilter() override = default;
76 void
77 PrintSelf(std::ostream & os, Indent indent) const override;
78
86 void
88};
89} // end namespace itk
90
91#ifndef ITK_MANUAL_INSTANTIATION
92# include "itkPathToPathFilter.hxx"
93#endif
94
95#endif
Control indentation during Print() invocation.
Definition itkIndent.h:50
const InputPathType * GetInput(unsigned int idx)
void PrintSelf(std::ostream &os, Indent indent) const override
~PathToPathFilter() override=default
const InputPathType * GetInput()
virtual void SetInput(unsigned int, const TInputPath *path)
virtual void SetInput(const InputPathType *path)
void GenerateInputRequestedRegion() override
PathToPathFilter()=default
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....