ITK  4.13.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:
45 
47  itkNewMacro(Self);
48 
50  itkTypeMacro(PathToPathFilter, PathSource);
51 
53  typedef TInputPath InputPathType;
54  typedef typename InputPathType::Pointer InputPathPointer;
55  typedef typename InputPathType::ConstPointer InputPathConstPointer;
56 
58  using Superclass::SetInput;
59  virtual void SetInput(const InputPathType *path);
60 
61  virtual void SetInput(unsigned int, const TInputPath *path);
62 
63  const InputPathType * GetInput();
64 
65  const InputPathType * GetInput(unsigned int idx);
66 
67 protected:
69  ~PathToPathFilter() ITK_OVERRIDE {}
70 
71  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
72 
80  virtual void GenerateInputRequestedRegion() ITK_OVERRIDE;
81 
82 private:
83  ITK_DISALLOW_COPY_AND_ASSIGN(PathToPathFilter);
84 };
85 } // 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.
PathSource< TOutputPath > Superclass
Base class for all process objects that output path data.
Definition: itkPathSource.h:41
InputPathType::ConstPointer InputPathConstPointer
SmartPointer< Self > Pointer
InputPathType::Pointer InputPathPointer
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
SmartPointer< const Self > ConstPointer